Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 1.14 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for LCMAPS plugins voms 1.7.1.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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 # Copyright (c) 2004 The EU EGEE Project
14 # See LICENCE file for details
15 #
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 # Use a proper internal environment variable to ensure we don't fall
141 # into an infinite loop, continuously re-executing ourselves.
142 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
143 _as_can_reexec=no; export _as_can_reexec;
144 # We cannot yet assume a decent shell, so we have to provide a
145 # neutralization value for shells without unset; and this also
146 # works around shells that cannot unset nonexistent variables.
147 # Preserve -v and -x to the replacement shell.
148 BASH_ENV=/dev/null
149 ENV=/dev/null
150 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 case $- in # ((((
152 *v*x* | *x*v* ) as_opts=-vx ;;
153 *v* ) as_opts=-v ;;
154 *x* ) as_opts=-x ;;
155 * ) as_opts= ;;
156 esac
157 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
158 # Admittedly, this is quite paranoid, since all the known shells bail
159 # out after a failed `exec'.
160 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 as_fn_exit 255
162 fi
163 # We don't want this to propagate to other subprocesses.
164 { _as_can_reexec=; unset _as_can_reexec;}
165 if test "x$CONFIG_SHELL" = x; then
166 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 emulate sh
168 NULLCMD=:
169 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
170 # is contrary to our usage. Disable this feature.
171 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 setopt NO_GLOB_SUBST
173 else
174 case \`(set -o) 2>/dev/null\` in #(
175 *posix*) :
176 set -o posix ;; #(
177 *) :
178 ;;
179 esac
180 fi
181 "
182 as_required="as_fn_return () { (exit \$1); }
183 as_fn_success () { as_fn_return 0; }
184 as_fn_failure () { as_fn_return 1; }
185 as_fn_ret_success () { return 0; }
186 as_fn_ret_failure () { return 1; }
187
188 exitcode=0
189 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
190 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
191 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
192 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
193 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194
195 else
196 exitcode=1; echo positional parameters were not saved.
197 fi
198 test x\$exitcode = x0 || exit 1
199 test -x / || exit 1"
200 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
201 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
202 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
203 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
204
205 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
206 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
209 PATH=/empty FPATH=/empty; export PATH FPATH
210 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
211 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
212 test \$(( 1 + 1 )) = 2 || exit 1"
213 if (eval "$as_required") 2>/dev/null; then :
214 as_have_required=yes
215 else
216 as_have_required=no
217 fi
218 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219
220 else
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 as_found=false
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 as_found=:
228 case $as_dir in #(
229 /*)
230 for as_base in sh bash ksh sh5; do
231 # Try only shells that exist, to save several forks.
232 as_shell=$as_dir/$as_base
233 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 CONFIG_SHELL=$as_shell as_have_required=yes
236 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
237 break 2
238 fi
239 fi
240 done;;
241 esac
242 as_found=false
243 done
244 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
245 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
246 CONFIG_SHELL=$SHELL as_have_required=yes
247 fi; }
248 IFS=$as_save_IFS
249
250
251 if test "x$CONFIG_SHELL" != x; then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed `exec'.
269 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno; then :
274 $as_echo "$0: This script requires a shell more modern than all"
275 $as_echo "$0: the shells that I found on your system."
276 if test x${ZSH_VERSION+set} = xset ; then
277 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
278 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
279 else
280 $as_echo "$0: Please tell [email protected] about your system,
281 $0: including any error possibly output before this
282 $0: message. Then install a modern shell, or manually run
283 $0: the script under such a shell if you do have one."
284 fi
285 exit 1
286 fi
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 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='LCMAPS plugins voms'
594 PACKAGE_TARNAME='lcmaps-plugins-voms'
595 PACKAGE_VERSION='1.7.1'
596 PACKAGE_STRING='LCMAPS plugins voms 1.7.1'
597 PACKAGE_BUGREPORT=''
598 PACKAGE_URL=''
599
600 ac_unique_file="src/lcmaps_voms_config.h.in"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 SHREXT
642 MODULEDIR
643 NEED_PROTOTYPE_FALSE
644 NEED_PROTOTYPE_TRUE
645 LCMAPS_CFLAGS
646 LCMAPS_INTERFACE_LIBS
647 LCMAPS_INTERFACE_CFLAGS
648 LCMAPS_BASIC_INTERFACE_LIBS
649 LCMAPS_BASIC_INTERFACE_CFLAGS
650 PKG_CONFIG_LIBDIR
651 PKG_CONFIG_PATH
652 PKG_CONFIG
653 DL_LIBS
654 CPP
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 NM
667 ac_ct_DUMPBIN
668 DUMPBIN
669 LD
670 FGREP
671 EGREP
672 GREP
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 LIBTOOL
683 LN_S
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 DISTBIN
702 WORKDIR
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 with_lcmaps_prefix
781 with_lcmaps_includes
782 with_moduledir
783 '
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 CPP
793 PKG_CONFIG
794 PKG_CONFIG_PATH
795 PKG_CONFIG_LIBDIR
796 LCMAPS_BASIC_INTERFACE_CFLAGS
797 LCMAPS_BASIC_INTERFACE_LIBS
798 LCMAPS_INTERFACE_CFLAGS
799 LCMAPS_INTERFACE_LIBS'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures LCMAPS plugins voms 1.7.1 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root
1389 [DATAROOTDIR/doc/lcmaps-plugins-voms]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of LCMAPS plugins voms 1.7.1:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --enable-shared[=PKGS] build shared libraries [default=yes]
1426 --enable-static[=PKGS] build static libraries [default=yes]
1427 --enable-fast-install[=PKGS]
1428 optimize for fast installation [default=yes]
1429 --disable-libtool-lock avoid locking (might break parallel builds)
1430
1431 Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 --with-sysroot=DIR Search for dependent libraries within DIR
1438 (or the compiler's sysroot if not specified).
1439 --with-lcmaps-prefix=DIR
1440 Prefix where LCMAPS is installed (default /usr)
1441 --with-lcmaps-includes=DIR
1442 Directory where LCMAPS headers are installed
1443 (default LCMAPS-PREFIX/include)
1444 --with-moduledir=path Specify the install location of the plug-ins
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 CPP C preprocessor
1455 PKG_CONFIG path to pkg-config utility
1456 PKG_CONFIG_PATH
1457 directories to add to pkg-config's search path
1458 PKG_CONFIG_LIBDIR
1459 path overriding pkg-config's built-in search path
1460 LCMAPS_BASIC_INTERFACE_CFLAGS
1461 C compiler flags for LCMAPS_BASIC_INTERFACE, overriding
1462 pkg-config
1463 LCMAPS_BASIC_INTERFACE_LIBS
1464 linker flags for LCMAPS_BASIC_INTERFACE, overriding pkg-config
1465 LCMAPS_INTERFACE_CFLAGS
1466 C compiler flags for LCMAPS_INTERFACE, overriding pkg-config
1467 LCMAPS_INTERFACE_LIBS
1468 linker flags for LCMAPS_INTERFACE, overriding pkg-config
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to the package provider.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 LCMAPS plugins voms configure 1.7.1
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542
1543 Copyright (c) 2004 The EU EGEE Project
1544 See LICENCE file for details
1545
1546 _ACEOF
1547 exit
1548 fi
1549
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1553
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_c_try_link LINENO
1593 # -----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_link ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 test -x conftest$ac_exeext
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_link
1637
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 eval "$3=yes"
1657 else
1658 eval "$3=no"
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 fi
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667 } # ac_fn_c_check_header_compile
1668
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_cpp ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_cpp
1705
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=$ac_status
1741 fi
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_run
1747
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1764
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1769
1770 #ifdef __STDC__
1771 # include <limits.h>
1772 #else
1773 # include <assert.h>
1774 #endif
1775
1776 #undef $2
1777
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1781 #ifdef __cplusplus
1782 extern "C"
1783 #endif
1784 char $2 ();
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1789 choke me
1790 #endif
1791
1792 int
1793 main ()
1794 {
1795 return $2 ();
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_link "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814
1815 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1818 # the include files in INCLUDES and setting the cache variable VAR
1819 # accordingly.
1820 ac_fn_c_check_header_mongrel ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if eval \${$3+:} false; then :
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 fi
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 else
1833 # Is the header compilable?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1835 $as_echo_n "checking $2 usability... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_header_compiler=yes
1843 else
1844 ac_header_compiler=no
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1848 $as_echo "$ac_header_compiler" >&6; }
1849
1850 # Is the header present?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1852 $as_echo_n "checking $2 presence... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_cpp "$LINENO"; then :
1858 ac_header_preproc=yes
1859 else
1860 ac_header_preproc=no
1861 fi
1862 rm -f conftest.err conftest.i conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1864 $as_echo "$ac_header_preproc" >&6; }
1865
1866 # So? What about this header?
1867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 yes:no: )
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1870 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 ;;
1874 no:yes:* )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1876 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1878 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1880 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1882 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ;;
1886 esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891 else
1892 eval "$3=\$ac_header_compiler"
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 fi
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_header_mongrel
1901
1902 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1903 # -------------------------------------------
1904 # Tests whether TYPE exists after having included INCLUDES, setting cache
1905 # variable VAR accordingly.
1906 ac_fn_c_check_type ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 eval "$3=no"
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $4
1918 int
1919 main ()
1920 {
1921 if (sizeof ($2))
1922 return 0;
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $4
1931 int
1932 main ()
1933 {
1934 if (sizeof (($2)))
1935 return 0;
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941
1942 else
1943 eval "$3=yes"
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_type
1955 cat >config.log <<_ACEOF
1956 This file contains any messages produced by compilers while
1957 running configure, to aid debugging if configure makes a mistake.
1958
1959 It was created by LCMAPS plugins voms $as_me 1.7.1, which was
1960 generated by GNU Autoconf 2.69. Invocation command line was
1961
1962 $ $0 $@
1963
1964 _ACEOF
1965 exec 5>>config.log
1966 {
1967 cat <<_ASUNAME
1968 ## --------- ##
1969 ## Platform. ##
1970 ## --------- ##
1971
1972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977
1978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1980
1981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988
1989 _ASUNAME
1990
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 $as_echo "PATH: $as_dir"
1997 done
1998 IFS=$as_save_IFS
1999
2000 } >&5
2001
2002 cat >&5 <<_ACEOF
2003
2004
2005 ## ----------- ##
2006 ## Core tests. ##
2007 ## ----------- ##
2008
2009 _ACEOF
2010
2011
2012 # Keep a trace of the command line.
2013 # Strip out --no-create and --no-recursion so they do not pile up.
2014 # Strip out --silent because we don't want to record it for future runs.
2015 # Also quote any args containing shell meta-characters.
2016 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_configure_args=
2018 ac_configure_args0=
2019 ac_configure_args1=
2020 ac_must_keep_next=false
2021 for ac_pass in 1 2
2022 do
2023 for ac_arg
2024 do
2025 case $ac_arg in
2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2029 continue ;;
2030 *\'*)
2031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 esac
2033 case $ac_pass in
2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035 2)
2036 as_fn_append ac_configure_args1 " '$ac_arg'"
2037 if test $ac_must_keep_next = true; then
2038 ac_must_keep_next=false # Got value, back to normal.
2039 else
2040 case $ac_arg in
2041 *=* | --config-cache | -C | -disable-* | --disable-* \
2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044 | -with-* | --with-* | -without-* | --without-* | --x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047 esac
2048 ;;
2049 -* ) ac_must_keep_next=true ;;
2050 esac
2051 fi
2052 as_fn_append ac_configure_args " '$ac_arg'"
2053 ;;
2054 esac
2055 done
2056 done
2057 { ac_configure_args0=; unset ac_configure_args0;}
2058 { ac_configure_args1=; unset ac_configure_args1;}
2059
2060 # When interrupted or exit'd, cleanup temporary files, and complete
2061 # config.log. We remove comments because anyway the quotes in there
2062 # would cause problems or look ugly.
2063 # WARNING: Use '\'' to represent an apostrophe within the trap.
2064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065 trap 'exit_status=$?
2066 # Save into config.log some information that might help in debugging.
2067 {
2068 echo
2069
2070 $as_echo "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
2075 (
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
2091 (set) 2>&1 |
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2094 sed -n \
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
2098 *)
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100 ;;
2101 esac |
2102 sort
2103 )
2104 echo
2105
2106 $as_echo "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2109 echo
2110 for ac_var in $ac_subst_vars
2111 do
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2119
2120 if test -n "$ac_subst_files"; then
2121 $as_echo "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2124 echo
2125 for ac_var in $ac_subst_files
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134 fi
2135
2136 if test -s confdefs.h; then
2137 $as_echo "## ----------- ##
2138 ## confdefs.h. ##
2139 ## ----------- ##"
2140 echo
2141 cat confdefs.h
2142 echo
2143 fi
2144 test "$ac_signal" != 0 &&
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
2147 } >&5
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150 exit $exit_status
2151 ' 0
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2156
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2159
2160 $as_echo "/* confdefs.h */" > confdefs.h
2161
2162 # Predefined preprocessor variables.
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2186 _ACEOF
2187
2188
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 ac_site_file1=NONE
2192 ac_site_file2=NONE
2193 if test -n "$CONFIG_SITE"; then
2194 # We do not want a PATH search for config.site.
2195 case $CONFIG_SITE in #((
2196 -*) ac_site_file1=./$CONFIG_SITE;;
2197 */*) ac_site_file1=$CONFIG_SITE;;
2198 *) ac_site_file1=./$CONFIG_SITE;;
2199 esac
2200 elif test "x$prefix" != xNONE; then
2201 ac_site_file1=$prefix/share/config.site
2202 ac_site_file2=$prefix/etc/config.site
2203 else
2204 ac_site_file1=$ac_default_prefix/share/config.site
2205 ac_site_file2=$ac_default_prefix/etc/config.site
2206 fi
2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208 do
2209 test "x$ac_site_file" = xNONE && continue
2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2214 . "$ac_site_file" \
2215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $? "failed to load site script $ac_site_file
2218 See \`config.log' for more details" "$LINENO" 5; }
2219 fi
2220 done
2221
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 $as_echo "$as_me: loading cache $cache_file" >&6;}
2228 case $cache_file in
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2231 esac
2232 fi
2233 else
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236 >$cache_file
2237 fi
2238
2239 # Check that the precious variables saved in the cache have kept the same
2240 # value.
2241 ac_cache_corrupted=false
2242 for ac_var in $ac_precious_vars; do
2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244 eval ac_new_set=\$ac_env_${ac_var}_set
2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246 eval ac_new_val=\$ac_env_${ac_var}_value
2247 case $ac_old_set,$ac_new_set in
2248 set,)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,set)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2256 ,);;
2257 *)
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w=`echo x $ac_old_val`
2261 ac_new_val_w=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted=:
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\$ac_old_val
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2275 fi;;
2276 esac
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2279 case $ac_new_val in
2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 *) ac_arg=$ac_var=$ac_new_val ;;
2282 esac
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286 esac
2287 fi
2288 done
2289 if $ac_cache_corrupted; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295 fi
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2299
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305
2306
2307
2308 am__api_version='1.13'
2309
2310 ac_aux_dir=
2311 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2312 if test -f "$ac_dir/install-sh"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install-sh -c"
2315 break
2316 elif test -f "$ac_dir/install.sh"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/install.sh -c"
2319 break
2320 elif test -f "$ac_dir/shtool"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/shtool install -c"
2323 break
2324 fi
2325 done
2326 if test -z "$ac_aux_dir"; then
2327 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2328 fi
2329
2330 # These three variables are undocumented and unsupported,
2331 # and are intended to be withdrawn in a future Autoconf release.
2332 # They can cause serious problems if a builder's source tree is in a directory
2333 # whose full name contains unusual characters.
2334 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2335 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2336 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2337
2338
2339 # Find a good install program. We prefer a C program (faster),
2340 # so one script is as good as another. But avoid the broken or
2341 # incompatible versions:
2342 # SysV /etc/install, /usr/sbin/install
2343 # SunOS /usr/etc/install
2344 # IRIX /sbin/install
2345 # AIX /bin/install
2346 # AmigaOS /C/install, which installs bootblocks on floppy discs
2347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350 # OS/2's system install, which has a completely different semantic
2351 # ./install, which can be erroneously created by make from ./install.sh.
2352 # Reject install programs that cannot install multiple files.
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2355 if test -z "$INSTALL"; then
2356 if ${ac_cv_path_install+:} false; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 # Account for people who put trailing slashes in PATH elements.
2365 case $as_dir/ in #((
2366 ./ | .// | /[cC]/* | \
2367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2369 /usr/ucb/* ) ;;
2370 *)
2371 # OSF1 and SCO ODT 3.0 have their own names for install.
2372 # Don't use installbsd from OSF since it installs stuff as root
2373 # by default.
2374 for ac_prog in ginstall scoinst install; do
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2377 if test $ac_prog = install &&
2378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379 # AIX install. It has an incompatible calling convention.
2380 :
2381 elif test $ac_prog = install &&
2382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383 # program-specific install script used by HP pwplus--don't use.
2384 :
2385 else
2386 rm -rf conftest.one conftest.two conftest.dir
2387 echo one > conftest.one
2388 echo two > conftest.two
2389 mkdir conftest.dir
2390 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391 test -s conftest.one && test -s conftest.two &&
2392 test -s conftest.dir/conftest.one &&
2393 test -s conftest.dir/conftest.two
2394 then
2395 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2396 break 3
2397 fi
2398 fi
2399 fi
2400 done
2401 done
2402 ;;
2403 esac
2404
2405 done
2406 IFS=$as_save_IFS
2407
2408 rm -rf conftest.one conftest.two conftest.dir
2409
2410 fi
2411 if test "${ac_cv_path_install+set}" = set; then
2412 INSTALL=$ac_cv_path_install
2413 else
2414 # As a last resort, use the slow shell script. Don't cache a
2415 # value for INSTALL within a source directory, because that will
2416 # break other packages using the cache if that directory is
2417 # removed, or if the value is a relative name.
2418 INSTALL=$ac_install_sh
2419 fi
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422 $as_echo "$INSTALL" >&6; }
2423
2424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425 # It thinks the first close brace ends the variable substitution.
2426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427
2428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429
2430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2431
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433 $as_echo_n "checking whether build environment is sane... " >&6; }
2434 # Reject unsafe characters in $srcdir or the absolute working directory
2435 # name. Accept space and tab only in the latter.
2436 am_lf='
2437 '
2438 case `pwd` in
2439 *[\\\"\#\$\&\'\`$am_lf]*)
2440 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2441 esac
2442 case $srcdir in
2443 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2444 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2445 esac
2446
2447 # Do 'set' in a subshell so we don't clobber the current shell's
2448 # arguments. Must try -L first in case configure is actually a
2449 # symlink; some systems play weird games with the mod time of symlinks
2450 # (eg FreeBSD returns the mod time of the symlink's containing
2451 # directory).
2452 if (
2453 am_has_slept=no
2454 for am_try in 1 2; do
2455 echo "timestamp, slept: $am_has_slept" > conftest.file
2456 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457 if test "$*" = "X"; then
2458 # -L didn't work.
2459 set X `ls -t "$srcdir/configure" conftest.file`
2460 fi
2461 if test "$*" != "X $srcdir/configure conftest.file" \
2462 && test "$*" != "X conftest.file $srcdir/configure"; then
2463
2464 # If neither matched, then we have a broken ls. This can happen
2465 # if, for instance, CONFIG_SHELL is bash and it inherits a
2466 # broken ls alias from the environment. This has actually
2467 # happened. Such a system could not be considered "sane".
2468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2469 alias in your environment" "$LINENO" 5
2470 fi
2471 if test "$2" = conftest.file || test $am_try -eq 2; then
2472 break
2473 fi
2474 # Just in case.
2475 sleep 1
2476 am_has_slept=yes
2477 done
2478 test "$2" = conftest.file
2479 )
2480 then
2481 # Ok.
2482 :
2483 else
2484 as_fn_error $? "newly created file is older than distributed files!
2485 Check your system clock" "$LINENO" 5
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488 $as_echo "yes" >&6; }
2489 # If we didn't sleep, we still need to ensure time stamps of config.status and
2490 # generated files are strictly newer.
2491 am_sleep_pid=
2492 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2493 ( sleep 1 ) &
2494 am_sleep_pid=$!
2495 fi
2496
2497 rm -f conftest.file
2498
2499 test "$program_prefix" != NONE &&
2500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501 # Use a double $ so make ignores it.
2502 test "$program_suffix" != NONE &&
2503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504 # Double any \ or $.
2505 # By default was `s,x,x', remove it if useless.
2506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2508
2509 # expand $ac_aux_dir to an absolute path
2510 am_aux_dir=`cd $ac_aux_dir && pwd`
2511
2512 if test x"${MISSING+set}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2516 *)
2517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518 esac
2519 fi
2520 # Use eval to expand $SHELL
2521 if eval "$MISSING --is-lightweight"; then
2522 am_missing_run="$MISSING "
2523 else
2524 am_missing_run=
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2526 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2527 fi
2528
2529 if test x"${install_sh}" != xset; then
2530 case $am_aux_dir in
2531 *\ * | *\ *)
2532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2533 *)
2534 install_sh="\${SHELL} $am_aux_dir/install-sh"
2535 esac
2536 fi
2537
2538 # Installed binaries are usually stripped using 'strip' when the user
2539 # run "make install-strip". However 'strip' might not be the right
2540 # tool to use in cross-compilation environments, therefore Automake
2541 # will honor the 'STRIP' environment variable to overrule this program.
2542 if test "$cross_compiling" != no; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}strip; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_STRIP+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$STRIP"; then
2552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 STRIP=$ac_cv_prog_STRIP
2572 if test -n "$STRIP"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574 $as_echo "$STRIP" >&6; }
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580
2581 fi
2582 if test -z "$ac_cv_prog_STRIP"; then
2583 ac_ct_STRIP=$STRIP
2584 # Extract the first word of "strip", so it can be a program name with args.
2585 set dummy strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test -n "$ac_ct_STRIP"; then
2592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_ac_ct_STRIP="strip"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612 if test -n "$ac_ct_STRIP"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614 $as_echo "$ac_ct_STRIP" >&6; }
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620 if test "x$ac_ct_STRIP" = x; then
2621 STRIP=":"
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627 ac_tool_warned=yes ;;
2628 esac
2629 STRIP=$ac_ct_STRIP
2630 fi
2631 else
2632 STRIP="$ac_cv_prog_STRIP"
2633 fi
2634
2635 fi
2636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640 if test -z "$MKDIR_P"; then
2641 if ${ac_cv_path_mkdir+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_prog in mkdir gmkdir; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653 'mkdir (GNU coreutils) '* | \
2654 'mkdir (coreutils) '* | \
2655 'mkdir (fileutils) '4.1*)
2656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657 break 3;;
2658 esac
2659 done
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665
2666 test -d ./--version && rmdir ./--version
2667 if test "${ac_cv_path_mkdir+set}" = set; then
2668 MKDIR_P="$ac_cv_path_mkdir -p"
2669 else
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for MKDIR_P within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 MKDIR_P="$ac_install_sh -d"
2675 fi
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678 $as_echo "$MKDIR_P" >&6; }
2679
2680 for ac_prog in gawk mawk nawk awk
2681 do
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_AWK+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test -n "$AWK"; then
2690 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_AWK="$ac_prog"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 AWK=$ac_cv_prog_AWK
2710 if test -n "$AWK"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712 $as_echo "$AWK" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718
2719 test -n "$AWK" && break
2720 done
2721
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2724 set x ${MAKE-make}
2725 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 cat >conftest.make <<\_ACEOF
2730 SHELL = /bin/sh
2731 all:
2732 @echo '@@@%%%=$(MAKE)=@@@%%%'
2733 _ACEOF
2734 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2735 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2736 *@@@%%%=?*=@@@%%%*)
2737 eval ac_cv_prog_make_${ac_make}_set=yes;;
2738 *)
2739 eval ac_cv_prog_make_${ac_make}_set=no;;
2740 esac
2741 rm -f conftest.make
2742 fi
2743 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2746 SET_MAKE=
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 SET_MAKE="MAKE=${MAKE-make}"
2751 fi
2752
2753 rm -rf .tst 2>/dev/null
2754 mkdir .tst 2>/dev/null
2755 if test -d .tst; then
2756 am__leading_dot=.
2757 else
2758 am__leading_dot=_
2759 fi
2760 rmdir .tst 2>/dev/null
2761
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2765 fi
2766
2767 case $enable_silent_rules in # (((
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=1;;
2771 esac
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if $as_echo 'TRUE=$(BAR$(V))
2779 BAR0=false
2780 BAR1=true
2781 V=1
2782 am__doit:
2783 @$(TRUE)
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2786 else
2787 am_cv_make_support_nested_variables=no
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2793 AM_V='$(V)'
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2795 else
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798 fi
2799 AM_BACKSLASH='\'
2800
2801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803 # is not polluted with repeated "-I."
2804 am__isrc=' -I$(srcdir)'
2805 # test to see if srcdir already configured
2806 if test -f $srcdir/config.status; then
2807 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2808 fi
2809 fi
2810
2811 # test whether we have cygpath
2812 if test -z "$CYGPATH_W"; then
2813 if (cygpath --version) >/dev/null 2>/dev/null; then
2814 CYGPATH_W='cygpath -w'
2815 else
2816 CYGPATH_W=echo
2817 fi
2818 fi
2819
2820
2821 # Define the identity of the package.
2822 PACKAGE='lcmaps-plugins-voms'
2823 VERSION='1.7.1'
2824
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE "$PACKAGE"
2828 _ACEOF
2829
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define VERSION "$VERSION"
2833 _ACEOF
2834
2835 # Some tools Automake needs.
2836
2837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2838
2839
2840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2841
2842
2843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2844
2845
2846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2847
2848
2849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2850
2851 # For better backward compatibility. To be removed once Automake 1.9.x
2852 # dies out for good. For more background, see:
2853 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2854 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2855 mkdir_p='$(MKDIR_P)'
2856
2857 # We need awk for the "check" target. The system "awk" is bad on
2858 # some platforms.
2859 # Always define AMTAR for backward compatibility. Yes, it's still used
2860 # in the wild :-( We should find a proper way to deprecate it ...
2861 AMTAR='$${TAR-tar}'
2862
2863
2864 # We'll loop over all known methods to create a tar archive until one works.
2865 _am_tools='gnutar pax cpio none'
2866
2867 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2868
2869
2870
2871
2872
2873
2874
2875
2876 # Notices.
2877
2878
2879
2880 #Environment.
2881 WORKDIR=`pwd`
2882
2883
2884 DISTBIN=$WORKDIR/../../dist
2885
2886
2887 # Checks for programs.
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 if test -z "$ac_cv_prog_CC"; then
2933 ac_ct_CC=$CC
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935 set dummy gcc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_ac_ct_CC="gcc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962 if test -n "$ac_ct_CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964 $as_echo "$ac_ct_CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974 yes:)
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977 ac_tool_warned=yes ;;
2978 esac
2979 CC=$ac_ct_CC
2980 fi
2981 else
2982 CC="$ac_cv_prog_CC"
2983 fi
2984
2985 if test -z "$CC"; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_CC="${ac_tool_prefix}cc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 fi
3026 if test -z "$CC"; then
3027 # Extract the first word of "cc", so it can be a program name with args.
3028 set dummy cc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 ac_prog_rejected=no
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3048 fi
3049 ac_cv_prog_CC="cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
3061 if test $# != 0; then
3062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
3066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067 fi
3068 fi
3069 fi
3070 fi
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 fi
3082 if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in cl.exe
3085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 test -n "$CC" && break
3124 done
3125 fi
3126 if test -z "$CC"; then
3127 ac_ct_CC=$CC
3128 for ac_prog in cl.exe
3129 do
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167 test -n "$ac_ct_CC" && break
3168 done
3169
3170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179 CC=$ac_ct_CC
3180 fi
3181 fi
3182
3183 fi
3184
3185
3186 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $? "no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details" "$LINENO" 5; }
3190
3191 # Provide some information about the compiler.
3192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193 set X $ac_compile
3194 ac_compiler=$2
3195 for ac_option in --version -v -V -qversion; do
3196 { { ac_try="$ac_compiler $ac_option >&5"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204 ac_status=$?
3205 if test -s conftest.err; then
3206 sed '10a\
3207 ... rest of stderr output deleted ...
3208 10q' conftest.err >conftest.er1
3209 cat conftest.er1 >&5
3210 fi
3211 rm -f conftest.er1 conftest.err
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214 done
3215
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 ac_clean_files_save=$ac_clean_files
3228 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3229 # Try to create an executable without -o first, disregard a.out.
3230 # It will help us diagnose broken compilers, and finding out an intuition
3231 # of exeext.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3233 $as_echo_n "checking whether the C compiler works... " >&6; }
3234 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235
3236 # The possible output files:
3237 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238
3239 ac_rmfiles=
3240 for ac_file in $ac_files
3241 do
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 esac
3246 done
3247 rm -f $ac_rmfiles
3248
3249 if { { ac_try="$ac_link_default"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link_default") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3263 # so that the user can short-circuit this test for compilers unknown to
3264 # Autoconf.
3265 for ac_file in $ac_files ''
3266 do
3267 test -f "$ac_file" || continue
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270 ;;
3271 [ab].out )
3272 # We found the default executable, but exeext='' is most
3273 # certainly right.
3274 break;;
3275 *.* )
3276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277 then :; else
3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 fi
3280 # We set ac_cv_exeext here because the later test for it is not
3281 # safe: cross compilers may not add the suffix if given an `-o'
3282 # argument, so we may need to know it at that point already.
3283 # Even if this section looks crufty: it has the advantage of
3284 # actually working.
3285 break;;
3286 * )
3287 break;;
3288 esac
3289 done
3290 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291
3292 else
3293 ac_file=''
3294 fi
3295 if test -z "$ac_file"; then :
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error 77 "C compiler cannot create executables
3304 See \`config.log' for more details" "$LINENO" 5; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307 $as_echo "yes" >&6; }
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3310 $as_echo_n "checking for C compiler default output file name... " >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312 $as_echo "$ac_file" >&6; }
3313 ac_exeext=$ac_cv_exeext
3314
3315 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316 ac_clean_files=$ac_clean_files_save
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3318 $as_echo_n "checking for suffix of executables... " >&6; }
3319 if { { ac_try="$ac_link"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332 # work properly (i.e., refer to `conftest.exe'), while it won't with
3333 # `rm'.
3334 for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 break;;
3340 * ) break;;
3341 esac
3342 done
3343 else
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347 See \`config.log' for more details" "$LINENO" 5; }
3348 fi
3349 rm -f conftest conftest$ac_cv_exeext
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3351 $as_echo "$ac_cv_exeext" >&6; }
3352
3353 rm -f conftest.$ac_ext
3354 EXEEXT=$ac_cv_exeext
3355 ac_exeext=$EXEEXT
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #include <stdio.h>
3359 int
3360 main ()
3361 {
3362 FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 ac_clean_files="$ac_clean_files conftest.out"
3370 # Check that the compiler produces executables we can run. If not, either
3371 # the compiler is broken, or we cross compile.
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373 $as_echo_n "checking whether we are cross compiling... " >&6; }
3374 if test "$cross_compiling" != yes; then
3375 { { ac_try="$ac_link"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 if { ac_try='./conftest$ac_cv_exeext'
3387 { { case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_try") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; }; then
3397 cross_compiling=no
3398 else
3399 if test "$cross_compiling" = maybe; then
3400 cross_compiling=yes
3401 else
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details" "$LINENO" 5; }
3407 fi
3408 fi
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411 $as_echo "$cross_compiling" >&6; }
3412
3413 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414 ac_clean_files=$ac_clean_files_save
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3416 $as_echo_n "checking for suffix of object files... " >&6; }
3417 if ${ac_cv_objext+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422
3423 int
3424 main ()
3425 {
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.o conftest.obj
3432 if { { ac_try="$ac_compile"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_compile") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
3443 for ac_file in conftest.o conftest.obj conftest.*; do
3444 test -f "$ac_file" || continue;
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 break;;
3449 esac
3450 done
3451 else
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot compute suffix of object files: cannot compile
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 fi
3460 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3463 $as_echo "$ac_cv_objext" >&6; }
3464 OBJEXT=$ac_cv_objext
3465 ac_objext=$OBJEXT
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3467 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3468 if ${ac_cv_c_compiler_gnu+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477 #ifndef __GNUC__
3478 choke me
3479 #endif
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_compiler_gnu=yes
3487 else
3488 ac_compiler_gnu=no
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3492
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3495 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496 if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498 else
3499 GCC=
3500 fi
3501 ac_test_CFLAGS=${CFLAGS+set}
3502 ac_save_CFLAGS=$CFLAGS
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3504 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3505 if ${ac_cv_prog_cc_g+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_g=yes
3525 else
3526 CFLAGS=""
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529
3530 int
3531 main ()
3532 {
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539
3540 else
3541 ac_c_werror_flag=$ac_save_c_werror_flag
3542 CFLAGS="-g"
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_g=yes
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3565 $as_echo "$ac_cv_prog_cc_g" >&6; }
3566 if test "$ac_test_CFLAGS" = set; then
3567 CFLAGS=$ac_save_CFLAGS
3568 elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3573 fi
3574 else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3579 fi
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3582 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3583 if ${ac_cv_prog_cc_c89+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 ac_cv_prog_cc_c89=no
3587 ac_save_CC=$CC
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590 #include <stdarg.h>
3591 #include <stdio.h>
3592 struct stat;
3593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3594 struct buf { int x; };
3595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596 static char *e (p, i)
3597 char **p;
3598 int i;
3599 {
3600 return p[i];
3601 }
3602 static char *f (char * (*g) (char **, int), char **p, ...)
3603 {
3604 char *s;
3605 va_list v;
3606 va_start (v,p);
3607 s = g (p, va_arg (v,int));
3608 va_end (v);
3609 return s;
3610 }
3611
3612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3613 function prototypes and stuff, but not '\xHH' hex character constants.
3614 These don't provoke an error unfortunately, instead are silently treated
3615 as 'x'. The following induces an error, until -std is added to get
3616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3617 array size at least. It's necessary to write '\x00'==0 to get something
3618 that's true only with -std. */
3619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620
3621 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622 inside strings and character constants. */
3623 #define FOO(x) 'x'
3624 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625
3626 int test (int i, double x);
3627 struct s1 {int (*f) (int a);};
3628 struct s2 {int (*f) (double a);};
3629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630 int argc;
3631 char **argv;
3632 int
3633 main ()
3634 {
3635 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642 do
3643 CC="$ac_save_CC $ac_arg"
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_cv_prog_cc_c89=$ac_arg
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext
3648 test "x$ac_cv_prog_cc_c89" != "xno" && break
3649 done
3650 rm -f conftest.$ac_ext
3651 CC=$ac_save_CC
3652
3653 fi
3654 # AC_CACHE_VAL
3655 case "x$ac_cv_prog_cc_c89" in
3656 x)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3658 $as_echo "none needed" >&6; } ;;
3659 xno)
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661 $as_echo "unsupported" >&6; } ;;
3662 *)
3663 CC="$CC $ac_cv_prog_cc_c89"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3665 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3666 esac
3667 if test "x$ac_cv_prog_cc_c89" != xno; then :
3668
3669 fi
3670
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 DEPDIR="${am__leading_dot}deps"
3677
3678 ac_config_commands="$ac_config_commands depfiles"
3679
3680
3681 am_make=${MAKE-make}
3682 cat > confinc << 'END'
3683 am__doit:
3684 @echo this is the am__doit target
3685 .PHONY: am__doit
3686 END
3687 # If we don't find an include directive, just comment out the code.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3689 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3690 am__include="#"
3691 am__quote=
3692 _am_result=none
3693 # First try GNU make style include.
3694 echo "include confinc" > confmf
3695 # Ignore all kinds of additional output from 'make'.
3696 case `$am_make -s -f confmf 2> /dev/null` in #(
3697 *the\ am__doit\ target*)
3698 am__include=include
3699 am__quote=
3700 _am_result=GNU
3701 ;;
3702 esac
3703 # Now try BSD make style include.
3704 if test "$am__include" = "#"; then
3705 echo '.include "confinc"' > confmf
3706 case `$am_make -s -f confmf 2> /dev/null` in #(
3707 *the\ am__doit\ target*)
3708 am__include=.include
3709 am__quote="\""
3710 _am_result=BSD
3711 ;;
3712 esac
3713 fi
3714
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3717 $as_echo "$_am_result" >&6; }
3718 rm -f confinc confmf
3719
3720 # Check whether --enable-dependency-tracking was given.
3721 if test "${enable_dependency_tracking+set}" = set; then :
3722 enableval=$enable_dependency_tracking;
3723 fi
3724
3725 if test "x$enable_dependency_tracking" != xno; then
3726 am_depcomp="$ac_aux_dir/depcomp"
3727 AMDEPBACKSLASH='\'
3728 am__nodep='_no'
3729 fi
3730 if test "x$enable_dependency_tracking" != xno; then
3731 AMDEP_TRUE=
3732 AMDEP_FALSE='#'
3733 else
3734 AMDEP_TRUE='#'
3735 AMDEP_FALSE=
3736 fi
3737
3738
3739
3740 depcc="$CC" am_compiler_list=
3741
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3743 $as_echo_n "checking dependency style of $depcc... " >&6; }
3744 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748 # We make a subdir and do the tests there. Otherwise we can end up
3749 # making bogus files that we don't know about and never remove. For
3750 # instance it was reported that on HP-UX the gcc test will end up
3751 # making a dummy file named 'D' -- because '-MD' means "put the output
3752 # in D".
3753 rm -rf conftest.dir
3754 mkdir conftest.dir
3755 # Copy depcomp to subdir because otherwise we won't find it if we're
3756 # using a relative directory.
3757 cp "$am_depcomp" conftest.dir
3758 cd conftest.dir
3759 # We will build objects and dependencies in a subdirectory because
3760 # it helps to detect inapplicable dependency modes. For instance
3761 # both Tru64's cc and ICC support -MD to output dependencies as a
3762 # side effect of compilation, but ICC will put the dependencies in
3763 # the current directory while Tru64 will put them in the object
3764 # directory.
3765 mkdir sub
3766
3767 am_cv_CC_dependencies_compiler_type=none
3768 if test "$am_compiler_list" = ""; then
3769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3770 fi
3771 am__universal=false
3772 case " $depcc " in #(
3773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3774 esac
3775
3776 for depmode in $am_compiler_list; do
3777 # Setup a source with many dependencies, because some compilers
3778 # like to wrap large dependency lists on column 80 (with \), and
3779 # we should not choose a depcomp mode which is confused by this.
3780 #
3781 # We need to recreate these files for each test, as the compiler may
3782 # overwrite some of them when testing with obscure command lines.
3783 # This happens at least with the AIX C compiler.
3784 : > sub/conftest.c
3785 for i in 1 2 3 4 5 6; do
3786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3787 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3788 # Solaris 10 /bin/sh.
3789 echo '/* dummy */' > sub/conftst$i.h
3790 done
3791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792
3793 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3794 # mode. It turns out that the SunPro C++ compiler does not properly
3795 # handle '-M -o', and we need to detect this. Also, some Intel
3796 # versions had trouble with output in subdirs.
3797 am__obj=sub/conftest.${OBJEXT-o}
3798 am__minus_obj="-o $am__obj"
3799 case $depmode in
3800 gcc)
3801 # This depmode causes a compiler race in universal mode.
3802 test "$am__universal" = false || continue
3803 ;;
3804 nosideeffect)
3805 # After this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested.
3807 if test "x$enable_dependency_tracking" = xyes; then
3808 continue
3809 else
3810 break
3811 fi
3812 ;;
3813 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3814 # This compiler won't grok '-c -o', but also, the minuso test has
3815 # not run yet. These depmodes are late enough in the game, and
3816 # so weak that their functioning should not be impacted.
3817 am__obj=conftest.${OBJEXT-o}
3818 am__minus_obj=
3819 ;;
3820 none) break ;;
3821 esac
3822 if depmode=$depmode \
3823 source=sub/conftest.c object=$am__obj \
3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3826 >/dev/null 2>conftest.err &&
3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831 # icc doesn't choke on unknown options, it will just issue warnings
3832 # or remarks (even with -Werror). So we grep stderr for any message
3833 # that says an option was ignored or not supported.
3834 # When given -MP, icc 7.0 and 7.1 complain thusly:
3835 # icc: Command line warning: ignoring option '-M'; no argument required
3836 # The diagnosis changed in icc 8.0:
3837 # icc: Command line remark: option '-MP' not supported
3838 if (grep 'ignoring option' conftest.err ||
3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840 am_cv_CC_dependencies_compiler_type=$depmode
3841 break
3842 fi
3843 fi
3844 done
3845
3846 cd ..
3847 rm -rf conftest.dir
3848 else
3849 am_cv_CC_dependencies_compiler_type=none
3850 fi
3851
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3856
3857 if
3858 test "x$enable_dependency_tracking" != xno \
3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860 am__fastdepCC_TRUE=
3861 am__fastdepCC_FALSE='#'
3862 else
3863 am__fastdepCC_TRUE='#'
3864 am__fastdepCC_FALSE=
3865 fi
3866
3867
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3869 $as_echo_n "checking whether ln -s works... " >&6; }
3870 LN_S=$as_ln_s
3871 if test "$LN_S" = "ln -s"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3873 $as_echo "yes" >&6; }
3874 else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3876 $as_echo "no, using $LN_S" >&6; }
3877 fi
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3881 set x ${MAKE-make}
3882 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3883 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat >conftest.make <<\_ACEOF
3887 SHELL = /bin/sh
3888 all:
3889 @echo '@@@%%%=$(MAKE)=@@@%%%'
3890 _ACEOF
3891 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3893 *@@@%%%=?*=@@@%%%*)
3894 eval ac_cv_prog_make_${ac_make}_set=yes;;
3895 *)
3896 eval ac_cv_prog_make_${ac_make}_set=no;;
3897 esac
3898 rm -f conftest.make
3899 fi
3900 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3902 $as_echo "yes" >&6; }
3903 SET_MAKE=
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3907 SET_MAKE="MAKE=${MAKE-make}"
3908 fi
3909
3910 case `pwd` in
3911 *\ * | *\ *)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3913 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3914 esac
3915
3916
3917
3918 macro_version='2.4.2'
3919 macro_revision='1.3337'
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933 ltmain="$ac_aux_dir/ltmain.sh"
3934
3935 # Make sure we can run config.sub.
3936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3937 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940 $as_echo_n "checking build system type... " >&6; }
3941 if ${ac_cv_build+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 ac_build_alias=$build_alias
3945 test "x$ac_build_alias" = x &&
3946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3947 test "x$ac_build_alias" = x &&
3948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3951
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954 $as_echo "$ac_cv_build" >&6; }
3955 case $ac_cv_build in
3956 *-*-*) ;;
3957 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3958 esac
3959 build=$ac_cv_build
3960 ac_save_IFS=$IFS; IFS='-'
3961 set x $ac_cv_build
3962 shift
3963 build_cpu=$1
3964 build_vendor=$2
3965 shift; shift
3966 # Remember, the first character of IFS is used to create $*,
3967 # except with old shells:
3968 build_os=$*
3969 IFS=$ac_save_IFS
3970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3971
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974 $as_echo_n "checking host system type... " >&6; }
3975 if ${ac_cv_host+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test "x$host_alias" = x; then
3979 ac_cv_host=$ac_cv_build
3980 else
3981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3983 fi
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3988 case $ac_cv_host in
3989 *-*-*) ;;
3990 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3991 esac
3992 host=$ac_cv_host
3993 ac_save_IFS=$IFS; IFS='-'
3994 set x $ac_cv_host
3995 shift
3996 host_cpu=$1
3997 host_vendor=$2
3998 shift; shift
3999 # Remember, the first character of IFS is used to create $*,
4000 # except with old shells:
4001 host_os=$*
4002 IFS=$ac_save_IFS
4003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4004
4005
4006 # Backslashify metacharacters that are still active within
4007 # double-quoted strings.
4008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4009
4010 # Same as above, but do not quote variable references.
4011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4012
4013 # Sed substitution to delay expansion of an escaped shell variable in a
4014 # double_quote_subst'ed string.
4015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4016
4017 # Sed substitution to delay expansion of an escaped single quote.
4018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4019
4020 # Sed substitution to avoid accidental globbing in evaled expressions
4021 no_glob_subst='s/\*/\\\*/g'
4022
4023 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4025 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4028 $as_echo_n "checking how to print strings... " >&6; }
4029 # Test print first, because it will be a builtin if present.
4030 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4031 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4032 ECHO='print -r --'
4033 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4034 ECHO='printf %s\n'
4035 else
4036 # Use this function as a fallback that always works.
4037 func_fallback_echo ()
4038 {
4039 eval 'cat <<_LTECHO_EOF
4040 $1
4041 _LTECHO_EOF'
4042 }
4043 ECHO='func_fallback_echo'
4044 fi
4045
4046 # func_echo_all arg...
4047 # Invoke $ECHO with all args, space-separated.
4048 func_echo_all ()
4049 {
4050 $ECHO ""
4051 }
4052
4053 case "$ECHO" in
4054 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4055 $as_echo "printf" >&6; } ;;
4056 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4057 $as_echo "print -r" >&6; } ;;
4058 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4059 $as_echo "cat" >&6; } ;;
4060 esac
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4077 if ${ac_cv_path_SED+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4081 for ac_i in 1 2 3 4 5 6 7; do
4082 ac_script="$ac_script$as_nl$ac_script"
4083 done
4084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4085 { ac_script=; unset ac_script;}
4086 if test -z "$SED"; then
4087 ac_path_SED_found=false
4088 # Loop through the user's path and test for each of PROGNAME-LIST
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_prog in sed gsed; do
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4097 as_fn_executable_p "$ac_path_SED" || continue
4098 # Check for GNU ac_path_SED and select it if it is found.
4099 # Check for GNU $ac_path_SED
4100 case `"$ac_path_SED" --version 2>&1` in
4101 *GNU*)
4102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4103 *)
4104 ac_count=0
4105 $as_echo_n 0123456789 >"conftest.in"
4106 while :
4107 do
4108 cat "conftest.in" "conftest.in" >"conftest.tmp"
4109 mv "conftest.tmp" "conftest.in"
4110 cp "conftest.in" "conftest.nl"
4111 $as_echo '' >> "conftest.nl"
4112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4114 as_fn_arith $ac_count + 1 && ac_count=$as_val
4115 if test $ac_count -gt ${ac_path_SED_max-0}; then
4116 # Best one so far, save it but keep looking for a better one
4117 ac_cv_path_SED="$ac_path_SED"
4118 ac_path_SED_max=$ac_count
4119 fi
4120 # 10*(2^10) chars as input seems more than enough
4121 test $ac_count -gt 10 && break
4122 done
4123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124 esac
4125
4126 $ac_path_SED_found && break 3
4127 done
4128 done
4129 done
4130 IFS=$as_save_IFS
4131 if test -z "$ac_cv_path_SED"; then
4132 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4133 fi
4134 else
4135 ac_cv_path_SED=$SED
4136 fi
4137
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4140 $as_echo "$ac_cv_path_SED" >&6; }
4141 SED="$ac_cv_path_SED"
4142 rm -f conftest.sed
4143
4144 test -z "$SED" && SED=sed
4145 Xsed="$SED -e 1s/^X//"
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4158 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4159 if ${ac_cv_path_GREP+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 if test -z "$GREP"; then
4163 ac_path_GREP_found=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_prog in grep ggrep; do
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4173 as_fn_executable_p "$ac_path_GREP" || continue
4174 # Check for GNU ac_path_GREP and select it if it is found.
4175 # Check for GNU $ac_path_GREP
4176 case `"$ac_path_GREP" --version 2>&1` in
4177 *GNU*)
4178 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4179 *)
4180 ac_count=0
4181 $as_echo_n 0123456789 >"conftest.in"
4182 while :
4183 do
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
4187 $as_echo 'GREP' >> "conftest.nl"
4188 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4190 as_fn_arith $ac_count + 1 && ac_count=$as_val
4191 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_GREP="$ac_path_GREP"
4194 ac_path_GREP_max=$ac_count
4195 fi
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4198 done
4199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200 esac
4201
4202 $ac_path_GREP_found && break 3
4203 done
4204 done
4205 done
4206 IFS=$as_save_IFS
4207 if test -z "$ac_cv_path_GREP"; then
4208 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4209 fi
4210 else
4211 ac_cv_path_GREP=$GREP
4212 fi
4213
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4216 $as_echo "$ac_cv_path_GREP" >&6; }
4217 GREP="$ac_cv_path_GREP"
4218
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4221 $as_echo_n "checking for egrep... " >&6; }
4222 if ${ac_cv_path_EGREP+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4226 then ac_cv_path_EGREP="$GREP -E"
4227 else
4228 if test -z "$EGREP"; then
4229 ac_path_EGREP_found=false
4230 # Loop through the user's path and test for each of PROGNAME-LIST
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_prog in egrep; do
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4239 as_fn_executable_p "$ac_path_EGREP" || continue
4240 # Check for GNU ac_path_EGREP and select it if it is found.
4241 # Check for GNU $ac_path_EGREP
4242 case `"$ac_path_EGREP" --version 2>&1` in
4243 *GNU*)
4244 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4245 *)
4246 ac_count=0
4247 $as_echo_n 0123456789 >"conftest.in"
4248 while :
4249 do
4250 cat "conftest.in" "conftest.in" >"conftest.tmp"
4251 mv "conftest.tmp" "conftest.in"
4252 cp "conftest.in" "conftest.nl"
4253 $as_echo 'EGREP' >> "conftest.nl"
4254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256 as_fn_arith $ac_count + 1 && ac_count=$as_val
4257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4258 # Best one so far, save it but keep looking for a better one
4259 ac_cv_path_EGREP="$ac_path_EGREP"
4260 ac_path_EGREP_max=$ac_count
4261 fi
4262 # 10*(2^10) chars as input seems more than enough
4263 test $ac_count -gt 10 && break
4264 done
4265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266 esac
4267
4268 $ac_path_EGREP_found && break 3
4269 done
4270 done
4271 done
4272 IFS=$as_save_IFS
4273 if test -z "$ac_cv_path_EGREP"; then
4274 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275 fi
4276 else
4277 ac_cv_path_EGREP=$EGREP
4278 fi
4279
4280 fi
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4283 $as_echo "$ac_cv_path_EGREP" >&6; }
4284 EGREP="$ac_cv_path_EGREP"
4285
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4288 $as_echo_n "checking for fgrep... " >&6; }
4289 if ${ac_cv_path_FGREP+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4293 then ac_cv_path_FGREP="$GREP -F"
4294 else
4295 if test -z "$FGREP"; then
4296 ac_path_FGREP_found=false
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300 do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_prog in fgrep; do
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4306 as_fn_executable_p "$ac_path_FGREP" || continue
4307 # Check for GNU ac_path_FGREP and select it if it is found.
4308 # Check for GNU $ac_path_FGREP
4309 case `"$ac_path_FGREP" --version 2>&1` in
4310 *GNU*)
4311 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4312 *)
4313 ac_count=0
4314 $as_echo_n 0123456789 >"conftest.in"
4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 $as_echo 'FGREP' >> "conftest.nl"
4321 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323 as_fn_arith $ac_count + 1 && ac_count=$as_val
4324 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_FGREP="$ac_path_FGREP"
4327 ac_path_FGREP_max=$ac_count
4328 fi
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333 esac
4334
4335 $ac_path_FGREP_found && break 3
4336 done
4337 done
4338 done
4339 IFS=$as_save_IFS
4340 if test -z "$ac_cv_path_FGREP"; then
4341 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4342 fi
4343 else
4344 ac_cv_path_FGREP=$FGREP
4345 fi
4346
4347 fi
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4350 $as_echo "$ac_cv_path_FGREP" >&6; }
4351 FGREP="$ac_cv_path_FGREP"
4352
4353
4354 test -z "$GREP" && GREP=grep
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374 # Check whether --with-gnu-ld was given.
4375 if test "${with_gnu_ld+set}" = set; then :
4376 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4377 else
4378 with_gnu_ld=no
4379 fi
4380
4381 ac_prog=ld
4382 if test "$GCC" = yes; then
4383 # Check if gcc -print-prog-name=ld gives a path.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4385 $as_echo_n "checking for ld used by $CC... " >&6; }
4386 case $host in
4387 *-*-mingw*)
4388 # gcc leaves a trailing carriage return which upsets mingw
4389 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4390 *)
4391 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4392 esac
4393 case $ac_prog in
4394 # Accept absolute paths.
4395 [\\/]* | ?:[\\/]*)
4396 re_direlt='/[^/][^/]*/\.\./'
4397 # Canonicalize the pathname of ld
4398 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4399 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4400 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4401 done
4402 test -z "$LD" && LD="$ac_prog"
4403 ;;
4404 "")
4405 # If it fails, then pretend we aren't using GCC.
4406 ac_prog=ld
4407 ;;
4408 *)
4409 # If it is relative, then search for the first ld in PATH.
4410 with_gnu_ld=unknown
4411 ;;
4412 esac
4413 elif test "$with_gnu_ld" = yes; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4415 $as_echo_n "checking for GNU ld... " >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4418 $as_echo_n "checking for non-GNU ld... " >&6; }
4419 fi
4420 if ${lt_cv_path_LD+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -z "$LD"; then
4424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4425 for ac_dir in $PATH; do
4426 IFS="$lt_save_ifs"
4427 test -z "$ac_dir" && ac_dir=.
4428 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4429 lt_cv_path_LD="$ac_dir/$ac_prog"
4430 # Check to see if the program is GNU ld. I'd rather use --version,
4431 # but apparently some variants of GNU ld only accept -v.
4432 # Break only if it was the GNU/non-GNU ld that we prefer.
4433 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4434 *GNU* | *'with BFD'*)
4435 test "$with_gnu_ld" != no && break
4436 ;;
4437 *)
4438 test "$with_gnu_ld" != yes && break
4439 ;;
4440 esac
4441 fi
4442 done
4443 IFS="$lt_save_ifs"
4444 else
4445 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4446 fi
4447 fi
4448
4449 LD="$lt_cv_path_LD"
4450 if test -n "$LD"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4452 $as_echo "$LD" >&6; }
4453 else
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4459 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4460 if ${lt_cv_prog_gnu_ld+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4464 case `$LD -v 2>&1 </dev/null` in
4465 *GNU* | *'with BFD'*)
4466 lt_cv_prog_gnu_ld=yes
4467 ;;
4468 *)
4469 lt_cv_prog_gnu_ld=no
4470 ;;
4471 esac
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4474 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4475 with_gnu_ld=$lt_cv_prog_gnu_ld
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4486 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4487 if ${lt_cv_path_NM+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$NM"; then
4491 # Let the user override the test.
4492 lt_cv_path_NM="$NM"
4493 else
4494 lt_nm_to_check="${ac_tool_prefix}nm"
4495 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4496 lt_nm_to_check="$lt_nm_to_check nm"
4497 fi
4498 for lt_tmp_nm in $lt_nm_to_check; do
4499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4500 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4501 IFS="$lt_save_ifs"
4502 test -z "$ac_dir" && ac_dir=.
4503 tmp_nm="$ac_dir/$lt_tmp_nm"
4504 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4505 # Check to see if the nm accepts a BSD-compat flag.
4506 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4507 # nm: unknown option "B" ignored
4508 # Tru64's nm complains that /dev/null is an invalid object file
4509 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4510 */dev/null* | *'Invalid file or object type'*)
4511 lt_cv_path_NM="$tmp_nm -B"
4512 break
4513 ;;
4514 *)
4515 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4516 */dev/null*)
4517 lt_cv_path_NM="$tmp_nm -p"
4518 break
4519 ;;
4520 *)
4521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4522 continue # so that we can try to find one that supports BSD flags
4523 ;;
4524 esac
4525 ;;
4526 esac
4527 fi
4528 done
4529 IFS="$lt_save_ifs"
4530 done
4531 : ${lt_cv_path_NM=no}
4532 fi
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4535 $as_echo "$lt_cv_path_NM" >&6; }
4536 if test "$lt_cv_path_NM" != "no"; then
4537 NM="$lt_cv_path_NM"
4538 else
4539 # Didn't find any BSD compatible name lister, look for dumpbin.
4540 if test -n "$DUMPBIN"; then :
4541 # Let the user override the test.
4542 else
4543 if test -n "$ac_tool_prefix"; then
4544 for ac_prog in dumpbin "link -dump"
4545 do
4546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_DUMPBIN+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$DUMPBIN"; then
4554 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571 fi
4572 fi
4573 DUMPBIN=$ac_cv_prog_DUMPBIN
4574 if test -n "$DUMPBIN"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4576 $as_echo "$DUMPBIN" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581
4582
4583 test -n "$DUMPBIN" && break
4584 done
4585 fi
4586 if test -z "$DUMPBIN"; then
4587 ac_ct_DUMPBIN=$DUMPBIN
4588 for ac_prog in dumpbin "link -dump"
4589 do
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$ac_ct_DUMPBIN"; then
4598 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4618 if test -n "$ac_ct_DUMPBIN"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4620 $as_echo "$ac_ct_DUMPBIN" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 test -n "$ac_ct_DUMPBIN" && break
4628 done
4629
4630 if test "x$ac_ct_DUMPBIN" = x; then
4631 DUMPBIN=":"
4632 else
4633 case $cross_compiling:$ac_tool_warned in
4634 yes:)
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637 ac_tool_warned=yes ;;
4638 esac
4639 DUMPBIN=$ac_ct_DUMPBIN
4640 fi
4641 fi
4642
4643 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4644 *COFF*)
4645 DUMPBIN="$DUMPBIN -symbols"
4646 ;;
4647 *)
4648 DUMPBIN=:
4649 ;;
4650 esac
4651 fi
4652
4653 if test "$DUMPBIN" != ":"; then
4654 NM="$DUMPBIN"
4655 fi
4656 fi
4657 test -z "$NM" && NM=nm
4658
4659
4660
4661
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4665 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4666 if ${lt_cv_nm_interface+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 lt_cv_nm_interface="BSD nm"
4670 echo "int some_variable = 0;" > conftest.$ac_ext
4671 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4672 (eval "$ac_compile" 2>conftest.err)
4673 cat conftest.err >&5
4674 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4675 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4676 cat conftest.err >&5
4677 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4678 cat conftest.out >&5
4679 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4680 lt_cv_nm_interface="MS dumpbin"
4681 fi
4682 rm -f conftest*
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4685 $as_echo "$lt_cv_nm_interface" >&6; }
4686
4687 # find the maximum length of command line arguments
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4689 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4690 if ${lt_cv_sys_max_cmd_len+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 i=0
4694 teststring="ABCD"
4695
4696 case $build_os in
4697 msdosdjgpp*)
4698 # On DJGPP, this test can blow up pretty badly due to problems in libc
4699 # (any single argument exceeding 2000 bytes causes a buffer overrun
4700 # during glob expansion). Even if it were fixed, the result of this
4701 # check would be larger than it should be.
4702 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4703 ;;
4704
4705 gnu*)
4706 # Under GNU Hurd, this test is not required because there is
4707 # no limit to the length of command line arguments.
4708 # Libtool will interpret -1 as no limit whatsoever
4709 lt_cv_sys_max_cmd_len=-1;
4710 ;;
4711
4712 cygwin* | mingw* | cegcc*)
4713 # On Win9x/ME, this test blows up -- it succeeds, but takes
4714 # about 5 minutes as the teststring grows exponentially.
4715 # Worse, since 9x/ME are not pre-emptively multitasking,
4716 # you end up with a "frozen" computer, even though with patience
4717 # the test eventually succeeds (with a max line length of 256k).
4718 # Instead, let's just punt: use the minimum linelength reported by
4719 # all of the supported platforms: 8192 (on NT/2K/XP).
4720 lt_cv_sys_max_cmd_len=8192;
4721 ;;
4722
4723 mint*)
4724 # On MiNT this can take a long time and run out of memory.
4725 lt_cv_sys_max_cmd_len=8192;
4726 ;;
4727
4728 amigaos*)
4729 # On AmigaOS with pdksh, this test takes hours, literally.
4730 # So we just punt and use a minimum line length of 8192.
4731 lt_cv_sys_max_cmd_len=8192;
4732 ;;
4733
4734 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4735 # This has been around since 386BSD, at least. Likely further.
4736 if test -x /sbin/sysctl; then
4737 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4738 elif test -x /usr/sbin/sysctl; then
4739 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4740 else
4741 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4742 fi
4743 # And add a safety zone
4744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746 ;;
4747
4748 interix*)
4749 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4750 lt_cv_sys_max_cmd_len=196608
4751 ;;
4752
4753 os2*)
4754 # The test takes a long time on OS/2.
4755 lt_cv_sys_max_cmd_len=8192
4756 ;;
4757
4758 osf*)
4759 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4760 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4761 # nice to cause kernel panics so lets avoid the loop below.
4762 # First set a reasonable default.
4763 lt_cv_sys_max_cmd_len=16384
4764 #
4765 if test -x /sbin/sysconfig; then
4766 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4767 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4768 esac
4769 fi
4770 ;;
4771 sco3.2v5*)
4772 lt_cv_sys_max_cmd_len=102400
4773 ;;
4774 sysv5* | sco5v6* | sysv4.2uw2*)
4775 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4776 if test -n "$kargmax"; then
4777 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4778 else
4779 lt_cv_sys_max_cmd_len=32768
4780 fi
4781 ;;
4782 *)
4783 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4784 if test -n "$lt_cv_sys_max_cmd_len"; then
4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4787 else
4788 # Make teststring a little bigger before we do anything with it.
4789 # a 1K string should be a reasonable start.
4790 for i in 1 2 3 4 5 6 7 8 ; do
4791 teststring=$teststring$teststring
4792 done
4793 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4794 # If test is not a shell built-in, we'll probably end up computing a
4795 # maximum length that is only half of the actual maximum length, but
4796 # we can't tell.
4797 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4798 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4799 test $i != 17 # 1/2 MB should be enough
4800 do
4801 i=`expr $i + 1`
4802 teststring=$teststring$teststring
4803 done
4804 # Only check the string length outside the loop.
4805 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4806 teststring=
4807 # Add a significant safety factor because C++ compilers can tack on
4808 # massive amounts of additional arguments before passing them to the
4809 # linker. It appears as though 1/2 is a usable value.
4810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4811 fi
4812 ;;
4813 esac
4814
4815 fi
4816
4817 if test -n $lt_cv_sys_max_cmd_len ; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4819 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4820 else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4822 $as_echo "none" >&6; }
4823 fi
4824 max_cmd_len=$lt_cv_sys_max_cmd_len
4825
4826
4827
4828
4829
4830
4831 : ${CP="cp -f"}
4832 : ${MV="mv -f"}
4833 : ${RM="rm -f"}
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4836 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4837 # Try some XSI features
4838 xsi_shell=no
4839 ( _lt_dummy="a/b/c"
4840 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4841 = c,a/b,b/c, \
4842 && eval 'test $(( 1 + 1 )) -eq 2 \
4843 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4844 && xsi_shell=yes
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4846 $as_echo "$xsi_shell" >&6; }
4847
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4850 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4851 lt_shell_append=no
4852 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4853 >/dev/null 2>&1 \
4854 && lt_shell_append=yes
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4856 $as_echo "$lt_shell_append" >&6; }
4857
4858
4859 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4860 lt_unset=unset
4861 else
4862 lt_unset=false
4863 fi
4864
4865
4866
4867
4868
4869 # test EBCDIC or ASCII
4870 case `echo X|tr X '\101'` in
4871 A) # ASCII based system
4872 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4873 lt_SP2NL='tr \040 \012'
4874 lt_NL2SP='tr \015\012 \040\040'
4875 ;;
4876 *) # EBCDIC based system
4877 lt_SP2NL='tr \100 \n'
4878 lt_NL2SP='tr \r\n \100\100'
4879 ;;
4880 esac
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4891 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4892 if ${lt_cv_to_host_file_cmd+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 case $host in
4896 *-*-mingw* )
4897 case $build in
4898 *-*-mingw* ) # actually msys
4899 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4900 ;;
4901 *-*-cygwin* )
4902 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4903 ;;
4904 * ) # otherwise, assume *nix
4905 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4906 ;;
4907 esac
4908 ;;
4909 *-*-cygwin* )
4910 case $build in
4911 *-*-mingw* ) # actually msys
4912 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4913 ;;
4914 *-*-cygwin* )
4915 lt_cv_to_host_file_cmd=func_convert_file_noop
4916 ;;
4917 * ) # otherwise, assume *nix
4918 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4919 ;;
4920 esac
4921 ;;
4922 * ) # unhandled hosts (and "normal" native builds)
4923 lt_cv_to_host_file_cmd=func_convert_file_noop
4924 ;;
4925 esac
4926
4927 fi
4928
4929 to_host_file_cmd=$lt_cv_to_host_file_cmd
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4931 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4932
4933
4934
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4938 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4939 if ${lt_cv_to_tool_file_cmd+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 #assume ordinary cross tools, or native build.
4943 lt_cv_to_tool_file_cmd=func_convert_file_noop
4944 case $host in
4945 *-*-mingw* )
4946 case $build in
4947 *-*-mingw* ) # actually msys
4948 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4949 ;;
4950 esac
4951 ;;
4952 esac
4953
4954 fi
4955
4956 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4958 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4959
4960
4961
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4965 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4966 if ${lt_cv_ld_reload_flag+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 lt_cv_ld_reload_flag='-r'
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4972 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4973 reload_flag=$lt_cv_ld_reload_flag
4974 case $reload_flag in
4975 "" | " "*) ;;
4976 *) reload_flag=" $reload_flag" ;;
4977 esac
4978 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4979 case $host_os in
4980 cygwin* | mingw* | pw32* | cegcc*)
4981 if test "$GCC" != yes; then
4982 reload_cmds=false
4983 fi
4984 ;;
4985 darwin*)
4986 if test "$GCC" = yes; then
4987 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4988 else
4989 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4990 fi
4991 ;;
4992 esac
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5004 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_OBJDUMP+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 if test -n "$OBJDUMP"; then
5011 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024 done
5025 done
5026 IFS=$as_save_IFS
5027
5028 fi
5029 fi
5030 OBJDUMP=$ac_cv_prog_OBJDUMP
5031 if test -n "$OBJDUMP"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5033 $as_echo "$OBJDUMP" >&6; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038
5039
5040 fi
5041 if test -z "$ac_cv_prog_OBJDUMP"; then
5042 ac_ct_OBJDUMP=$OBJDUMP
5043 # Extract the first word of "objdump", so it can be a program name with args.
5044 set dummy objdump; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$ac_ct_OBJDUMP"; then
5051 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5071 if test -n "$ac_ct_OBJDUMP"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5073 $as_echo "$ac_ct_OBJDUMP" >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5078
5079 if test "x$ac_ct_OBJDUMP" = x; then
5080 OBJDUMP="false"
5081 else
5082 case $cross_compiling:$ac_tool_warned in
5083 yes:)
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5086 ac_tool_warned=yes ;;
5087 esac
5088 OBJDUMP=$ac_ct_OBJDUMP
5089 fi
5090 else
5091 OBJDUMP="$ac_cv_prog_OBJDUMP"
5092 fi
5093
5094 test -z "$OBJDUMP" && OBJDUMP=objdump
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5105 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5106 if ${lt_cv_deplibs_check_method+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 lt_cv_file_magic_cmd='$MAGIC_CMD'
5110 lt_cv_file_magic_test_file=
5111 lt_cv_deplibs_check_method='unknown'
5112 # Need to set the preceding variable on all platforms that support
5113 # interlibrary dependencies.
5114 # 'none' -- dependencies not supported.
5115 # `unknown' -- same as none, but documents that we really don't know.
5116 # 'pass_all' -- all dependencies passed with no checks.
5117 # 'test_compile' -- check by making test program.
5118 # 'file_magic [[regex]]' -- check by looking for files in library path
5119 # which responds to the $file_magic_cmd with a given extended regex.
5120 # If you have `file' or equivalent on your system and you're not sure
5121 # whether `pass_all' will *always* work, you probably want this one.
5122
5123 case $host_os in
5124 aix[4-9]*)
5125 lt_cv_deplibs_check_method=pass_all
5126 ;;
5127
5128 beos*)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
5131
5132 bsdi[45]*)
5133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5134 lt_cv_file_magic_cmd='/usr/bin/file -L'
5135 lt_cv_file_magic_test_file=/shlib/libc.so
5136 ;;
5137
5138 cygwin*)
5139 # func_win32_libid is a shell function defined in ltmain.sh
5140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5141 lt_cv_file_magic_cmd='func_win32_libid'
5142 ;;
5143
5144 mingw* | pw32*)
5145 # Base MSYS/MinGW do not provide the 'file' command needed by
5146 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5147 # unless we find 'file', for example because we are cross-compiling.
5148 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5149 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5150 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5151 lt_cv_file_magic_cmd='func_win32_libid'
5152 else
5153 # Keep this pattern in sync with the one in func_win32_libid.
5154 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5155 lt_cv_file_magic_cmd='$OBJDUMP -f'
5156 fi
5157 ;;
5158
5159 cegcc*)
5160 # use the weaker test based on 'objdump'. See mingw*.
5161 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5162 lt_cv_file_magic_cmd='$OBJDUMP -f'
5163 ;;
5164
5165 darwin* | rhapsody*)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 freebsd* | dragonfly*)
5170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5171 case $host_cpu in
5172 i*86 )
5173 # Not sure whether the presence of OpenBSD here was a mistake.
5174 # Let's accept both of them until this is cleared up.
5175 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5176 lt_cv_file_magic_cmd=/usr/bin/file
5177 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5178 ;;
5179 esac
5180 else
5181 lt_cv_deplibs_check_method=pass_all
5182 fi
5183 ;;
5184
5185 gnu*)
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188
5189 haiku*)
5190 lt_cv_deplibs_check_method=pass_all
5191 ;;
5192
5193 hpux10.20* | hpux11*)
5194 lt_cv_file_magic_cmd=/usr/bin/file
5195 case $host_cpu in
5196 ia64*)
5197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5198 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5199 ;;
5200 hppa*64*)
5201 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]'
5202 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5203 ;;
5204 *)
5205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5206 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5207 ;;
5208 esac
5209 ;;
5210
5211 interix[3-9]*)
5212 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5214 ;;
5215
5216 irix5* | irix6* | nonstopux*)
5217 case $LD in
5218 *-32|*"-32 ") libmagic=32-bit;;
5219 *-n32|*"-n32 ") libmagic=N32;;
5220 *-64|*"-64 ") libmagic=64-bit;;
5221 *) libmagic=never-match;;
5222 esac
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225
5226 # This must be glibc/ELF.
5227 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231 netbsd*)
5232 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5234 else
5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5236 fi
5237 ;;
5238
5239 newos6*)
5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5241 lt_cv_file_magic_cmd=/usr/bin/file
5242 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5243 ;;
5244
5245 *nto* | *qnx*)
5246 lt_cv_deplibs_check_method=pass_all
5247 ;;
5248
5249 openbsd*)
5250 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5252 else
5253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5254 fi
5255 ;;
5256
5257 osf3* | osf4* | osf5*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261 rdos*)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264
5265 solaris*)
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
5268
5269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272
5273 sysv4 | sysv4.3*)
5274 case $host_vendor in
5275 motorola)
5276 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]'
5277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5278 ;;
5279 ncr)
5280 lt_cv_deplibs_check_method=pass_all
5281 ;;
5282 sequent)
5283 lt_cv_file_magic_cmd='/bin/file'
5284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5285 ;;
5286 sni)
5287 lt_cv_file_magic_cmd='/bin/file'
5288 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5289 lt_cv_file_magic_test_file=/lib/libc.so
5290 ;;
5291 siemens)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294 pc)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297 esac
5298 ;;
5299
5300 tpf*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303 esac
5304
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5307 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5308
5309 file_magic_glob=
5310 want_nocaseglob=no
5311 if test "$build" = "$host"; then
5312 case $host_os in
5313 mingw* | pw32*)
5314 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5315 want_nocaseglob=yes
5316 else
5317 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5318 fi
5319 ;;
5320 esac
5321 fi
5322
5323 file_magic_cmd=$lt_cv_file_magic_cmd
5324 deplibs_check_method=$lt_cv_deplibs_check_method
5325 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_DLLTOOL+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$DLLTOOL"; then
5357 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 DLLTOOL=$ac_cv_prog_DLLTOOL
5377 if test -n "$DLLTOOL"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5379 $as_echo "$DLLTOOL" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 fi
5387 if test -z "$ac_cv_prog_DLLTOOL"; then
5388 ac_ct_DLLTOOL=$DLLTOOL
5389 # Extract the first word of "dlltool", so it can be a program name with args.
5390 set dummy dlltool; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$ac_ct_DLLTOOL"; then
5397 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5409 fi
5410 done
5411 done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5417 if test -n "$ac_ct_DLLTOOL"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5419 $as_echo "$ac_ct_DLLTOOL" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425 if test "x$ac_ct_DLLTOOL" = x; then
5426 DLLTOOL="false"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434 DLLTOOL=$ac_ct_DLLTOOL
5435 fi
5436 else
5437 DLLTOOL="$ac_cv_prog_DLLTOOL"
5438 fi
5439
5440 test -z "$DLLTOOL" && DLLTOOL=dlltool
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5452 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5453 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 lt_cv_sharedlib_from_linklib_cmd='unknown'
5457
5458 case $host_os in
5459 cygwin* | mingw* | pw32* | cegcc*)
5460 # two different shell functions defined in ltmain.sh
5461 # decide which to use based on capabilities of $DLLTOOL
5462 case `$DLLTOOL --help 2>&1` in
5463 *--identify-strict*)
5464 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5465 ;;
5466 *)
5467 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5468 ;;
5469 esac
5470 ;;
5471 *)
5472 # fallback: assume linklib IS sharedlib
5473 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5474 ;;
5475 esac
5476
5477 fi
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5479 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5480 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5481 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5482
5483
5484
5485
5486
5487
5488
5489
5490 if test -n "$ac_tool_prefix"; then
5491 for ac_prog in ar
5492 do
5493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_AR+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$AR"; then
5501 ac_cv_prog_AR="$AR" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514 done
5515 done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 AR=$ac_cv_prog_AR
5521 if test -n "$AR"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5523 $as_echo "$AR" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 test -n "$AR" && break
5531 done
5532 fi
5533 if test -z "$AR"; then
5534 ac_ct_AR=$AR
5535 for ac_prog in ar
5536 do
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$ac_ct_AR"; then
5545 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_AR="$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5565 if test -n "$ac_ct_AR"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5567 $as_echo "$ac_ct_AR" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574 test -n "$ac_ct_AR" && break
5575 done
5576
5577 if test "x$ac_ct_AR" = x; then
5578 AR="false"
5579 else
5580 case $cross_compiling:$ac_tool_warned in
5581 yes:)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586 AR=$ac_ct_AR
5587 fi
5588 fi
5589
5590 : ${AR=ar}
5591 : ${AR_FLAGS=cru}
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5604 $as_echo_n "checking for archiver @FILE support... " >&6; }
5605 if ${lt_cv_ar_at_file+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 lt_cv_ar_at_file=no
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611
5612 int
5613 main ()
5614 {
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 echo conftest.$ac_objext > conftest.lst
5622 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5624 (eval $lt_ar_try) 2>&5
5625 ac_status=$?
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; }
5628 if test "$ac_status" -eq 0; then
5629 # Ensure the archiver fails upon bogus file names.
5630 rm -f conftest.$ac_objext libconftest.a
5631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5632 (eval $lt_ar_try) 2>&5
5633 ac_status=$?
5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635 test $ac_status = 0; }
5636 if test "$ac_status" -ne 0; then
5637 lt_cv_ar_at_file=@
5638 fi
5639 fi
5640 rm -f conftest.* libconftest.a
5641
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5647 $as_echo "$lt_cv_ar_at_file" >&6; }
5648
5649 if test "x$lt_cv_ar_at_file" = xno; then
5650 archiver_list_spec=
5651 else
5652 archiver_list_spec=$lt_cv_ar_at_file
5653 fi
5654
5655
5656
5657
5658
5659
5660
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}strip; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_STRIP+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$STRIP"; then
5670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 STRIP=$ac_cv_prog_STRIP
5690 if test -n "$STRIP"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5692 $as_echo "$STRIP" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 fi
5700 if test -z "$ac_cv_prog_STRIP"; then
5701 ac_ct_STRIP=$STRIP
5702 # Extract the first word of "strip", so it can be a program name with args.
5703 set dummy strip; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$ac_ct_STRIP"; then
5710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_ac_ct_STRIP="strip"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5730 if test -n "$ac_ct_STRIP"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5732 $as_echo "$ac_ct_STRIP" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738 if test "x$ac_ct_STRIP" = x; then
5739 STRIP=":"
5740 else
5741 case $cross_compiling:$ac_tool_warned in
5742 yes:)
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747 STRIP=$ac_ct_STRIP
5748 fi
5749 else
5750 STRIP="$ac_cv_prog_STRIP"
5751 fi
5752
5753 test -z "$STRIP" && STRIP=:
5754
5755
5756
5757
5758
5759
5760 if test -n "$ac_tool_prefix"; then
5761 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5762 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_RANLIB+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -n "$RANLIB"; then
5769 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 RANLIB=$ac_cv_prog_RANLIB
5789 if test -n "$RANLIB"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5791 $as_echo "$RANLIB" >&6; }
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5796
5797
5798 fi
5799 if test -z "$ac_cv_prog_RANLIB"; then
5800 ac_ct_RANLIB=$RANLIB
5801 # Extract the first word of "ranlib", so it can be a program name with args.
5802 set dummy ranlib; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if test -n "$ac_ct_RANLIB"; then
5809 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_ac_ct_RANLIB="ranlib"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5829 if test -n "$ac_ct_RANLIB"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5831 $as_echo "$ac_ct_RANLIB" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837 if test "x$ac_ct_RANLIB" = x; then
5838 RANLIB=":"
5839 else
5840 case $cross_compiling:$ac_tool_warned in
5841 yes:)
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844 ac_tool_warned=yes ;;
5845 esac
5846 RANLIB=$ac_ct_RANLIB
5847 fi
5848 else
5849 RANLIB="$ac_cv_prog_RANLIB"
5850 fi
5851
5852 test -z "$RANLIB" && RANLIB=:
5853
5854
5855
5856
5857
5858
5859 # Determine commands to create old-style static archives.
5860 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5861 old_postinstall_cmds='chmod 644 $oldlib'
5862 old_postuninstall_cmds=
5863
5864 if test -n "$RANLIB"; then
5865 case $host_os in
5866 openbsd*)
5867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5868 ;;
5869 *)
5870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5871 ;;
5872 esac
5873 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5874 fi
5875
5876 case $host_os in
5877 darwin*)
5878 lock_old_archive_extraction=yes ;;
5879 *)
5880 lock_old_archive_extraction=no ;;
5881 esac
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 # If no C compiler was specified, use CC.
5922 LTCC=${LTCC-"$CC"}
5923
5924 # If no C compiler flags were specified, use CFLAGS.
5925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5926
5927 # Allow CC to be a program name with arguments.
5928 compiler=$CC
5929
5930
5931 # Check for command to grab the raw symbol name followed by C symbol from nm.
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5933 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5934 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937
5938 # These are sane defaults that work on at least a few old systems.
5939 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5940
5941 # Character class describing NM global symbol codes.
5942 symcode='[BCDEGRST]'
5943
5944 # Regexp to match symbols that can be accessed directly from C.
5945 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5946
5947 # Define system-specific variables.
5948 case $host_os in
5949 aix*)
5950 symcode='[BCDT]'
5951 ;;
5952 cygwin* | mingw* | pw32* | cegcc*)
5953 symcode='[ABCDGISTW]'
5954 ;;
5955 hpux*)
5956 if test "$host_cpu" = ia64; then
5957 symcode='[ABCDEGRST]'
5958 fi
5959 ;;
5960 irix* | nonstopux*)
5961 symcode='[BCDEGRST]'
5962 ;;
5963 osf*)
5964 symcode='[BCDEGQRST]'
5965 ;;
5966 solaris*)
5967 symcode='[BDRT]'
5968 ;;
5969 sco3.2v5*)
5970 symcode='[DT]'
5971 ;;
5972 sysv4.2uw2*)
5973 symcode='[DT]'
5974 ;;
5975 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5976 symcode='[ABDT]'
5977 ;;
5978 sysv4)
5979 symcode='[DFNSTU]'
5980 ;;
5981 esac
5982
5983 # If we're using GNU nm, then use its standard symbol codes.
5984 case `$NM -V 2>&1` in
5985 *GNU* | *'with BFD'*)
5986 symcode='[ABCDGIRSTW]' ;;
5987 esac
5988
5989 # Transform an extracted symbol line into a proper C declaration.
5990 # Some systems (esp. on ia64) link data and code symbols differently,
5991 # so use this general approach.
5992 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5993
5994 # Transform an extracted symbol line into symbol name and symbol address
5995 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5996 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5997
5998 # Handle CRLF in mingw tool chain
5999 opt_cr=
6000 case $build_os in
6001 mingw*)
6002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6003 ;;
6004 esac
6005
6006 # Try without a prefix underscore, then with it.
6007 for ac_symprfx in "" "_"; do
6008
6009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6010 symxfrm="\\1 $ac_symprfx\\2 \\2"
6011
6012 # Write the raw and C identifiers.
6013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6014 # Fake it for dumpbin and say T for any non-static function
6015 # and D for any global variable.
6016 # Also find C++ and __fastcall symbols from MSVC++,
6017 # which start with @ or ?.
6018 lt_cv_sys_global_symbol_pipe="$AWK '"\
6019 " {last_section=section; section=\$ 3};"\
6020 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6021 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6022 " \$ 0!~/External *\|/{next};"\
6023 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6024 " {if(hide[section]) next};"\
6025 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6026 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6027 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6028 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6029 " ' prfx=^$ac_symprfx"
6030 else
6031 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6032 fi
6033 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6034
6035 # Check to see that the pipe works correctly.
6036 pipe_works=no
6037
6038 rm -f conftest*
6039 cat > conftest.$ac_ext <<_LT_EOF
6040 #ifdef __cplusplus
6041 extern "C" {
6042 #endif
6043 char nm_test_var;
6044 void nm_test_func(void);
6045 void nm_test_func(void){}
6046 #ifdef __cplusplus
6047 }
6048 #endif
6049 int main(){nm_test_var='a';nm_test_func();return(0);}
6050 _LT_EOF
6051
6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 # Now try to grab the symbols.
6058 nlist=conftest.nm
6059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6060 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6061 ac_status=$?
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; } && test -s "$nlist"; then
6064 # Try sorting and uniquifying the output.
6065 if sort "$nlist" | uniq > "$nlist"T; then
6066 mv -f "$nlist"T "$nlist"
6067 else
6068 rm -f "$nlist"T
6069 fi
6070
6071 # Make sure that we snagged all the symbols we need.
6072 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6073 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6074 cat <<_LT_EOF > conftest.$ac_ext
6075 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6076 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6077 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6078 relocations are performed -- see ld's documentation on pseudo-relocs. */
6079 # define LT_DLSYM_CONST
6080 #elif defined(__osf__)
6081 /* This system does not cope well with relocations in const data. */
6082 # define LT_DLSYM_CONST
6083 #else
6084 # define LT_DLSYM_CONST const
6085 #endif
6086
6087 #ifdef __cplusplus
6088 extern "C" {
6089 #endif
6090
6091 _LT_EOF
6092 # Now generate the symbol file.
6093 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6094
6095 cat <<_LT_EOF >> conftest.$ac_ext
6096
6097 /* The mapping between symbol names and symbols. */
6098 LT_DLSYM_CONST struct {
6099 const char *name;
6100 void *address;
6101 }
6102 lt__PROGRAM__LTX_preloaded_symbols[] =
6103 {
6104 { "@PROGRAM@", (void *) 0 },
6105 _LT_EOF
6106 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6107 cat <<\_LT_EOF >> conftest.$ac_ext
6108 {0, (void *) 0}
6109 };
6110
6111 /* This works around a problem in FreeBSD linker */
6112 #ifdef FREEBSD_WORKAROUND
6113 static const void *lt_preloaded_setup() {
6114 return lt__PROGRAM__LTX_preloaded_symbols;
6115 }
6116 #endif
6117
6118 #ifdef __cplusplus
6119 }
6120 #endif
6121 _LT_EOF
6122 # Now try linking the two files.
6123 mv conftest.$ac_objext conftstm.$ac_objext
6124 lt_globsym_save_LIBS=$LIBS
6125 lt_globsym_save_CFLAGS=$CFLAGS
6126 LIBS="conftstm.$ac_objext"
6127 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6129 (eval $ac_link) 2>&5
6130 ac_status=$?
6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6133 pipe_works=yes
6134 fi
6135 LIBS=$lt_globsym_save_LIBS
6136 CFLAGS=$lt_globsym_save_CFLAGS
6137 else
6138 echo "cannot find nm_test_func in $nlist" >&5
6139 fi
6140 else
6141 echo "cannot find nm_test_var in $nlist" >&5
6142 fi
6143 else
6144 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6145 fi
6146 else
6147 echo "$progname: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 fi
6150 rm -rf conftest* conftst*
6151
6152 # Do not use the global_symbol_pipe unless it works.
6153 if test "$pipe_works" = yes; then
6154 break
6155 else
6156 lt_cv_sys_global_symbol_pipe=
6157 fi
6158 done
6159
6160 fi
6161
6162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6163 lt_cv_sys_global_symbol_to_cdecl=
6164 fi
6165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6167 $as_echo "failed" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6170 $as_echo "ok" >&6; }
6171 fi
6172
6173 # Response file support.
6174 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6175 nm_file_list_spec='@'
6176 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6177 nm_file_list_spec='@'
6178 fi
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6207 $as_echo_n "checking for sysroot... " >&6; }
6208
6209 # Check whether --with-sysroot was given.
6210 if test "${with_sysroot+set}" = set; then :
6211 withval=$with_sysroot;
6212 else
6213 with_sysroot=no
6214 fi
6215
6216
6217 lt_sysroot=
6218 case ${with_sysroot} in #(
6219 yes)
6220 if test "$GCC" = yes; then
6221 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6222 fi
6223 ;; #(
6224 /*)
6225 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6226 ;; #(
6227 no|'')
6228 ;; #(
6229 *)
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6231 $as_echo "${with_sysroot}" >&6; }
6232 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6233 ;;
6234 esac
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6237 $as_echo "${lt_sysroot:-no}" >&6; }
6238
6239
6240
6241
6242
6243 # Check whether --enable-libtool-lock was given.
6244 if test "${enable_libtool_lock+set}" = set; then :
6245 enableval=$enable_libtool_lock;
6246 fi
6247
6248 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6249
6250 # Some flags need to be propagated to the compiler or linker for good
6251 # libtool support.
6252 case $host in
6253 ia64-*-hpux*)
6254 # Find out which ABI we are using.
6255 echo 'int i;' > conftest.$ac_ext
6256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6257 (eval $ac_compile) 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260 test $ac_status = 0; }; then
6261 case `/usr/bin/file conftest.$ac_objext` in
6262 *ELF-32*)
6263 HPUX_IA64_MODE="32"
6264 ;;
6265 *ELF-64*)
6266 HPUX_IA64_MODE="64"
6267 ;;
6268 esac
6269 fi
6270 rm -rf conftest*
6271 ;;
6272 *-*-irix6*)
6273 # Find out which ABI we are using.
6274 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6276 (eval $ac_compile) 2>&5
6277 ac_status=$?
6278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279 test $ac_status = 0; }; then
6280 if test "$lt_cv_prog_gnu_ld" = yes; then
6281 case `/usr/bin/file conftest.$ac_objext` in
6282 *32-bit*)
6283 LD="${LD-ld} -melf32bsmip"
6284 ;;
6285 *N32*)
6286 LD="${LD-ld} -melf32bmipn32"
6287 ;;
6288 *64-bit*)
6289 LD="${LD-ld} -melf64bmip"
6290 ;;
6291 esac
6292 else
6293 case `/usr/bin/file conftest.$ac_objext` in
6294 *32-bit*)
6295 LD="${LD-ld} -32"
6296 ;;
6297 *N32*)
6298 LD="${LD-ld} -n32"
6299 ;;
6300 *64-bit*)
6301 LD="${LD-ld} -64"
6302 ;;
6303 esac
6304 fi
6305 fi
6306 rm -rf conftest*
6307 ;;
6308
6309 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6310 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6311 # Find out which ABI we are using.
6312 echo 'int i;' > conftest.$ac_ext
6313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6314 (eval $ac_compile) 2>&5
6315 ac_status=$?
6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317 test $ac_status = 0; }; then
6318 case `/usr/bin/file conftest.o` in
6319 *32-bit*)
6320 case $host in
6321 x86_64-*kfreebsd*-gnu)
6322 LD="${LD-ld} -m elf_i386_fbsd"
6323 ;;
6324 x86_64-*linux*)
6325 LD="${LD-ld} -m elf_i386"
6326 ;;
6327 powerpc64le-*linux*)
6328 LD="${LD-ld} -m elf32lppclinux"
6329 ;;
6330 powerpc64-*linux*)
6331 LD="${LD-ld} -m elf32ppclinux"
6332 ;;
6333 s390x-*linux*)
6334 LD="${LD-ld} -m elf_s390"
6335 ;;
6336 sparc64-*linux*)
6337 LD="${LD-ld} -m elf32_sparc"
6338 ;;
6339 esac
6340 ;;
6341 *64-bit*)
6342 case $host in
6343 x86_64-*kfreebsd*-gnu)
6344 LD="${LD-ld} -m elf_x86_64_fbsd"
6345 ;;
6346 x86_64-*linux*)
6347 LD="${LD-ld} -m elf_x86_64"
6348 ;;
6349 powerpcle-*linux*)
6350 LD="${LD-ld} -m elf64lppc"
6351 ;;
6352 powerpc-*linux*)
6353 LD="${LD-ld} -m elf64ppc"
6354 ;;
6355 s390*-*linux*|s390*-*tpf*)
6356 LD="${LD-ld} -m elf64_s390"
6357 ;;
6358 sparc*-*linux*)
6359 LD="${LD-ld} -m elf64_sparc"
6360 ;;
6361 esac
6362 ;;
6363 esac
6364 fi
6365 rm -rf conftest*
6366 ;;
6367
6368 *-*-sco3.2v5*)
6369 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6370 SAVE_CFLAGS="$CFLAGS"
6371 CFLAGS="$CFLAGS -belf"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6373 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6374 if ${lt_cv_cc_needs_belf+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 ac_ext=c
6378 ac_cpp='$CPP $CPPFLAGS'
6379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385
6386 int
6387 main ()
6388 {
6389
6390 ;
6391 return 0;
6392 }
6393 _ACEOF
6394 if ac_fn_c_try_link "$LINENO"; then :
6395 lt_cv_cc_needs_belf=yes
6396 else
6397 lt_cv_cc_needs_belf=no
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 ac_ext=c
6402 ac_cpp='$CPP $CPPFLAGS'
6403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6409 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6410 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6412 CFLAGS="$SAVE_CFLAGS"
6413 fi
6414 ;;
6415 *-*solaris*)
6416 # Find out which ABI we are using.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.o` in
6424 *64-bit*)
6425 case $lt_cv_prog_gnu_ld in
6426 yes*)
6427 case $host in
6428 i?86-*-solaris*)
6429 LD="${LD-ld} -m elf_x86_64"
6430 ;;
6431 sparc*-*-solaris*)
6432 LD="${LD-ld} -m elf64_sparc"
6433 ;;
6434 esac
6435 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6436 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6437 LD="${LD-ld}_sol2"
6438 fi
6439 ;;
6440 *)
6441 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6442 LD="${LD-ld} -64"
6443 fi
6444 ;;
6445 esac
6446 ;;
6447 esac
6448 fi
6449 rm -rf conftest*
6450 ;;
6451 esac
6452
6453 need_locks="$enable_libtool_lock"
6454
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}mt; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$MANIFEST_TOOL"; then
6464 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6484 if test -n "$MANIFEST_TOOL"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6486 $as_echo "$MANIFEST_TOOL" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492
6493 fi
6494 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6495 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6496 # Extract the first word of "mt", so it can be a program name with args.
6497 set dummy mt; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$ac_ct_MANIFEST_TOOL"; then
6504 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6524 if test -n "$ac_ct_MANIFEST_TOOL"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6526 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6533 MANIFEST_TOOL=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6542 fi
6543 else
6544 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6545 fi
6546
6547 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6549 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6550 if ${lt_cv_path_mainfest_tool+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 lt_cv_path_mainfest_tool=no
6554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6556 cat conftest.err >&5
6557 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6558 lt_cv_path_mainfest_tool=yes
6559 fi
6560 rm -f conftest*
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6563 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6564 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6565 MANIFEST_TOOL=:
6566 fi
6567
6568
6569
6570
6571
6572
6573 case $host_os in
6574 rhapsody* | darwin*)
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6577 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 if test -n "$DSYMUTIL"; then
6584 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6604 if test -n "$DSYMUTIL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6606 $as_echo "$DSYMUTIL" >&6; }
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612
6613 fi
6614 if test -z "$ac_cv_prog_DSYMUTIL"; then
6615 ac_ct_DSYMUTIL=$DSYMUTIL
6616 # Extract the first word of "dsymutil", so it can be a program name with args.
6617 set dummy dsymutil; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$ac_ct_DSYMUTIL"; then
6624 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6644 if test -n "$ac_ct_DSYMUTIL"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6646 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652 if test "x$ac_ct_DSYMUTIL" = x; then
6653 DSYMUTIL=":"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656 yes:)
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661 DSYMUTIL=$ac_ct_DSYMUTIL
6662 fi
6663 else
6664 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6665 fi
6666
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_NMEDIT+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$NMEDIT"; then
6676 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 NMEDIT=$ac_cv_prog_NMEDIT
6696 if test -n "$NMEDIT"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6698 $as_echo "$NMEDIT" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_NMEDIT"; then
6707 ac_ct_NMEDIT=$NMEDIT
6708 # Extract the first word of "nmedit", so it can be a program name with args.
6709 set dummy nmedit; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_NMEDIT"; then
6716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6736 if test -n "$ac_ct_NMEDIT"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6738 $as_echo "$ac_ct_NMEDIT" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744 if test "x$ac_ct_NMEDIT" = x; then
6745 NMEDIT=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 NMEDIT=$ac_ct_NMEDIT
6754 fi
6755 else
6756 NMEDIT="$ac_cv_prog_NMEDIT"
6757 fi
6758
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_prog_LIPO+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 if test -n "$LIPO"; then
6768 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 LIPO=$ac_cv_prog_LIPO
6788 if test -n "$LIPO"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6790 $as_echo "$LIPO" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796
6797 fi
6798 if test -z "$ac_cv_prog_LIPO"; then
6799 ac_ct_LIPO=$LIPO
6800 # Extract the first word of "lipo", so it can be a program name with args.
6801 set dummy lipo; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$ac_ct_LIPO"; then
6808 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_ac_ct_LIPO="lipo"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6828 if test -n "$ac_ct_LIPO"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6830 $as_echo "$ac_ct_LIPO" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836 if test "x$ac_ct_LIPO" = x; then
6837 LIPO=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845 LIPO=$ac_ct_LIPO
6846 fi
6847 else
6848 LIPO="$ac_cv_prog_LIPO"
6849 fi
6850
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}otool; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_OTOOL+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$OTOOL"; then
6860 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 OTOOL=$ac_cv_prog_OTOOL
6880 if test -n "$OTOOL"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6882 $as_echo "$OTOOL" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888
6889 fi
6890 if test -z "$ac_cv_prog_OTOOL"; then
6891 ac_ct_OTOOL=$OTOOL
6892 # Extract the first word of "otool", so it can be a program name with args.
6893 set dummy otool; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$ac_ct_OTOOL"; then
6900 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_ac_ct_OTOOL="otool"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6920 if test -n "$ac_ct_OTOOL"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6922 $as_echo "$ac_ct_OTOOL" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928 if test "x$ac_ct_OTOOL" = x; then
6929 OTOOL=":"
6930 else
6931 case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937 OTOOL=$ac_ct_OTOOL
6938 fi
6939 else
6940 OTOOL="$ac_cv_prog_OTOOL"
6941 fi
6942
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_OTOOL64+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 if test -n "$OTOOL64"; then
6952 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 OTOOL64=$ac_cv_prog_OTOOL64
6972 if test -n "$OTOOL64"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6974 $as_echo "$OTOOL64" >&6; }
6975 else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980
6981 fi
6982 if test -z "$ac_cv_prog_OTOOL64"; then
6983 ac_ct_OTOOL64=$OTOOL64
6984 # Extract the first word of "otool64", so it can be a program name with args.
6985 set dummy otool64; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$ac_ct_OTOOL64"; then
6992 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_ac_ct_OTOOL64="otool64"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7012 if test -n "$ac_ct_OTOOL64"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7014 $as_echo "$ac_ct_OTOOL64" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020 if test "x$ac_ct_OTOOL64" = x; then
7021 OTOOL64=":"
7022 else
7023 case $cross_compiling:$ac_tool_warned in
7024 yes:)
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027 ac_tool_warned=yes ;;
7028 esac
7029 OTOOL64=$ac_ct_OTOOL64
7030 fi
7031 else
7032 OTOOL64="$ac_cv_prog_OTOOL64"
7033 fi
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7062 $as_echo_n "checking for -single_module linker flag... " >&6; }
7063 if ${lt_cv_apple_cc_single_mod+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 lt_cv_apple_cc_single_mod=no
7067 if test -z "${LT_MULTI_MODULE}"; then
7068 # By default we will add the -single_module flag. You can override
7069 # by either setting the environment variable LT_MULTI_MODULE
7070 # non-empty at configure time, or by adding -multi_module to the
7071 # link flags.
7072 rm -rf libconftest.dylib*
7073 echo "int foo(void){return 1;}" > conftest.c
7074 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7075 -dynamiclib -Wl,-single_module conftest.c" >&5
7076 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7077 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7078 _lt_result=$?
7079 # If there is a non-empty error log, and "single_module"
7080 # appears in it, assume the flag caused a linker warning
7081 if test -s conftest.err && $GREP single_module conftest.err; then
7082 cat conftest.err >&5
7083 # Otherwise, if the output was created with a 0 exit code from
7084 # the compiler, it worked.
7085 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7086 lt_cv_apple_cc_single_mod=yes
7087 else
7088 cat conftest.err >&5
7089 fi
7090 rm -rf libconftest.dylib*
7091 rm -f conftest.*
7092 fi
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7095 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7096
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7098 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7099 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 lt_cv_ld_exported_symbols_list=no
7103 save_LDFLAGS=$LDFLAGS
7104 echo "_main" > conftest.sym
7105 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108
7109 int
7110 main ()
7111 {
7112
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 if ac_fn_c_try_link "$LINENO"; then :
7118 lt_cv_ld_exported_symbols_list=yes
7119 else
7120 lt_cv_ld_exported_symbols_list=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext \
7123 conftest$ac_exeext conftest.$ac_ext
7124 LDFLAGS="$save_LDFLAGS"
7125
7126 fi
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7128 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7131 $as_echo_n "checking for -force_load linker flag... " >&6; }
7132 if ${lt_cv_ld_force_load+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 lt_cv_ld_force_load=no
7136 cat > conftest.c << _LT_EOF
7137 int forced_loaded() { return 2;}
7138 _LT_EOF
7139 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7140 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7141 echo "$AR cru libconftest.a conftest.o" >&5
7142 $AR cru libconftest.a conftest.o 2>&5
7143 echo "$RANLIB libconftest.a" >&5
7144 $RANLIB libconftest.a 2>&5
7145 cat > conftest.c << _LT_EOF
7146 int main() { return 0;}
7147 _LT_EOF
7148 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7149 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7150 _lt_result=$?
7151 if test -s conftest.err && $GREP force_load conftest.err; then
7152 cat conftest.err >&5
7153 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7154 lt_cv_ld_force_load=yes
7155 else
7156 cat conftest.err >&5
7157 fi
7158 rm -f conftest.err libconftest.a conftest conftest.c
7159 rm -rf conftest.dSYM
7160
7161 fi
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7163 $as_echo "$lt_cv_ld_force_load" >&6; }
7164 case $host_os in
7165 rhapsody* | darwin1.[012])
7166 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7167 darwin1.*)
7168 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7169 darwin*) # darwin 5.x on
7170 # if running on 10.5 or later, the deployment target defaults
7171 # to the OS version, if on x86, and 10.4, the deployment
7172 # target defaults to 10.4. Don't you love it?
7173 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7174 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7175 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7176 10.[012]*)
7177 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7178 10.*)
7179 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7180 esac
7181 ;;
7182 esac
7183 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7184 _lt_dar_single_mod='$single_module'
7185 fi
7186 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7187 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7188 else
7189 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7190 fi
7191 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7192 _lt_dsymutil='~$DSYMUTIL $lib || :'
7193 else
7194 _lt_dsymutil=
7195 fi
7196 ;;
7197 esac
7198
7199 ac_ext=c
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7205 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7206 # On Suns, sometimes $CPP names a directory.
7207 if test -n "$CPP" && test -d "$CPP"; then
7208 CPP=
7209 fi
7210 if test -z "$CPP"; then
7211 if ${ac_cv_prog_CPP+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 # Double quotes because CPP needs to be expanded
7215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7216 do
7217 ac_preproc_ok=false
7218 for ac_c_preproc_warn_flag in '' yes
7219 do
7220 # Use a header file that comes with gcc, so configuring glibc
7221 # with a fresh cross-compiler works.
7222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7223 # <limits.h> exists even on freestanding compilers.
7224 # On the NeXT, cc -E runs the code through the compiler's parser,
7225 # not just through cpp. "Syntax error" is here to catch this case.
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #ifdef __STDC__
7229 # include <limits.h>
7230 #else
7231 # include <assert.h>
7232 #endif
7233 Syntax error
7234 _ACEOF
7235 if ac_fn_c_try_cpp "$LINENO"; then :
7236
7237 else
7238 # Broken: fails on valid input.
7239 continue
7240 fi
7241 rm -f conftest.err conftest.i conftest.$ac_ext
7242
7243 # OK, works on sane cases. Now check whether nonexistent headers
7244 # can be detected and how.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <ac_nonexistent.h>
7248 _ACEOF
7249 if ac_fn_c_try_cpp "$LINENO"; then :
7250 # Broken: success on invalid input.
7251 continue
7252 else
7253 # Passes both tests.
7254 ac_preproc_ok=:
7255 break
7256 fi
7257 rm -f conftest.err conftest.i conftest.$ac_ext
7258
7259 done
7260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7261 rm -f conftest.i conftest.err conftest.$ac_ext
7262 if $ac_preproc_ok; then :
7263 break
7264 fi
7265
7266 done
7267 ac_cv_prog_CPP=$CPP
7268
7269 fi
7270 CPP=$ac_cv_prog_CPP
7271 else
7272 ac_cv_prog_CPP=$CPP
7273 fi
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7275 $as_echo "$CPP" >&6; }
7276 ac_preproc_ok=false
7277 for ac_c_preproc_warn_flag in '' yes
7278 do
7279 # Use a header file that comes with gcc, so configuring glibc
7280 # with a fresh cross-compiler works.
7281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7282 # <limits.h> exists even on freestanding compilers.
7283 # On the NeXT, cc -E runs the code through the compiler's parser,
7284 # not just through cpp. "Syntax error" is here to catch this case.
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 #ifdef __STDC__
7288 # include <limits.h>
7289 #else
7290 # include <assert.h>
7291 #endif
7292 Syntax error
7293 _ACEOF
7294 if ac_fn_c_try_cpp "$LINENO"; then :
7295
7296 else
7297 # Broken: fails on valid input.
7298 continue
7299 fi
7300 rm -f conftest.err conftest.i conftest.$ac_ext
7301
7302 # OK, works on sane cases. Now check whether nonexistent headers
7303 # can be detected and how.
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 #include <ac_nonexistent.h>
7307 _ACEOF
7308 if ac_fn_c_try_cpp "$LINENO"; then :
7309 # Broken: success on invalid input.
7310 continue
7311 else
7312 # Passes both tests.
7313 ac_preproc_ok=:
7314 break
7315 fi
7316 rm -f conftest.err conftest.i conftest.$ac_ext
7317
7318 done
7319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7320 rm -f conftest.i conftest.err conftest.$ac_ext
7321 if $ac_preproc_ok; then :
7322
7323 else
7324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7326 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7327 See \`config.log' for more details" "$LINENO" 5; }
7328 fi
7329
7330 ac_ext=c
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
7336
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7338 $as_echo_n "checking for ANSI C header files... " >&6; }
7339 if ${ac_cv_header_stdc+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #include <stdlib.h>
7345 #include <stdarg.h>
7346 #include <string.h>
7347 #include <float.h>
7348
7349 int
7350 main ()
7351 {
7352
7353 ;
7354 return 0;
7355 }
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"; then :
7358 ac_cv_header_stdc=yes
7359 else
7360 ac_cv_header_stdc=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363
7364 if test $ac_cv_header_stdc = yes; then
7365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #include <string.h>
7369
7370 _ACEOF
7371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7372 $EGREP "memchr" >/dev/null 2>&1; then :
7373
7374 else
7375 ac_cv_header_stdc=no
7376 fi
7377 rm -f conftest*
7378
7379 fi
7380
7381 if test $ac_cv_header_stdc = yes; then
7382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 #include <stdlib.h>
7386
7387 _ACEOF
7388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7389 $EGREP "free" >/dev/null 2>&1; then :
7390
7391 else
7392 ac_cv_header_stdc=no
7393 fi
7394 rm -f conftest*
7395
7396 fi
7397
7398 if test $ac_cv_header_stdc = yes; then
7399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7400 if test "$cross_compiling" = yes; then :
7401 :
7402 else
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <ctype.h>
7406 #include <stdlib.h>
7407 #if ((' ' & 0x0FF) == 0x020)
7408 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7409 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7410 #else
7411 # define ISLOWER(c) \
7412 (('a' <= (c) && (c) <= 'i') \
7413 || ('j' <= (c) && (c) <= 'r') \
7414 || ('s' <= (c) && (c) <= 'z'))
7415 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7416 #endif
7417
7418 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7419 int
7420 main ()
7421 {
7422 int i;
7423 for (i = 0; i < 256; i++)
7424 if (XOR (islower (i), ISLOWER (i))
7425 || toupper (i) != TOUPPER (i))
7426 return 2;
7427 return 0;
7428 }
7429 _ACEOF
7430 if ac_fn_c_try_run "$LINENO"; then :
7431
7432 else
7433 ac_cv_header_stdc=no
7434 fi
7435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7436 conftest.$ac_objext conftest.beam conftest.$ac_ext
7437 fi
7438
7439 fi
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7442 $as_echo "$ac_cv_header_stdc" >&6; }
7443 if test $ac_cv_header_stdc = yes; then
7444
7445 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7446
7447 fi
7448
7449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7451 inttypes.h stdint.h unistd.h
7452 do :
7453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7454 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7455 "
7456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7457 cat >>confdefs.h <<_ACEOF
7458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 _ACEOF
7460
7461 fi
7462
7463 done
7464
7465
7466 for ac_header in dlfcn.h
7467 do :
7468 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7469 "
7470 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7471 cat >>confdefs.h <<_ACEOF
7472 #define HAVE_DLFCN_H 1
7473 _ACEOF
7474
7475 fi
7476
7477 done
7478
7479
7480
7481
7482
7483 # Set options
7484
7485
7486
7487 enable_dlopen=no
7488
7489
7490 enable_win32_dll=no
7491
7492
7493 # Check whether --enable-shared was given.
7494 if test "${enable_shared+set}" = set; then :
7495 enableval=$enable_shared; p=${PACKAGE-default}
7496 case $enableval in
7497 yes) enable_shared=yes ;;
7498 no) enable_shared=no ;;
7499 *)
7500 enable_shared=no
7501 # Look at the argument we got. We use all the common list separators.
7502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7503 for pkg in $enableval; do
7504 IFS="$lt_save_ifs"
7505 if test "X$pkg" = "X$p"; then
7506 enable_shared=yes
7507 fi
7508 done
7509 IFS="$lt_save_ifs"
7510 ;;
7511 esac
7512 else
7513 enable_shared=yes
7514 fi
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524 # Check whether --enable-static was given.
7525 if test "${enable_static+set}" = set; then :
7526 enableval=$enable_static; p=${PACKAGE-default}
7527 case $enableval in
7528 yes) enable_static=yes ;;
7529 no) enable_static=no ;;
7530 *)
7531 enable_static=no
7532 # Look at the argument we got. We use all the common list separators.
7533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7534 for pkg in $enableval; do
7535 IFS="$lt_save_ifs"
7536 if test "X$pkg" = "X$p"; then
7537 enable_static=yes
7538 fi
7539 done
7540 IFS="$lt_save_ifs"
7541 ;;
7542 esac
7543 else
7544 enable_static=yes
7545 fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 # Check whether --with-pic was given.
7557 if test "${with_pic+set}" = set; then :
7558 withval=$with_pic; lt_p=${PACKAGE-default}
7559 case $withval in
7560 yes|no) pic_mode=$withval ;;
7561 *)
7562 pic_mode=default
7563 # Look at the argument we got. We use all the common list separators.
7564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7565 for lt_pkg in $withval; do
7566 IFS="$lt_save_ifs"
7567 if test "X$lt_pkg" = "X$lt_p"; then
7568 pic_mode=yes
7569 fi
7570 done
7571 IFS="$lt_save_ifs"
7572 ;;
7573 esac
7574 else
7575 pic_mode=default
7576 fi
7577
7578
7579 test -z "$pic_mode" && pic_mode=default
7580
7581
7582
7583
7584
7585
7586
7587 # Check whether --enable-fast-install was given.
7588 if test "${enable_fast_install+set}" = set; then :
7589 enableval=$enable_fast_install; p=${PACKAGE-default}
7590 case $enableval in
7591 yes) enable_fast_install=yes ;;
7592 no) enable_fast_install=no ;;
7593 *)
7594 enable_fast_install=no
7595 # Look at the argument we got. We use all the common list separators.
7596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7597 for pkg in $enableval; do
7598 IFS="$lt_save_ifs"
7599 if test "X$pkg" = "X$p"; then
7600 enable_fast_install=yes
7601 fi
7602 done
7603 IFS="$lt_save_ifs"
7604 ;;
7605 esac
7606 else
7607 enable_fast_install=yes
7608 fi
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620 # This can be used to rebuild libtool when needed
7621 LIBTOOL_DEPS="$ltmain"
7622
7623 # Always use our own libtool.
7624 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655 test -z "$LN_S" && LN_S="ln -s"
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670 if test -n "${ZSH_VERSION+set}" ; then
7671 setopt NO_GLOB_SUBST
7672 fi
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7675 $as_echo_n "checking for objdir... " >&6; }
7676 if ${lt_cv_objdir+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 rm -f .libs 2>/dev/null
7680 mkdir .libs 2>/dev/null
7681 if test -d .libs; then
7682 lt_cv_objdir=.libs
7683 else
7684 # MS-DOS does not allow filenames that begin with a dot.
7685 lt_cv_objdir=_libs
7686 fi
7687 rmdir .libs 2>/dev/null
7688 fi
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7690 $as_echo "$lt_cv_objdir" >&6; }
7691 objdir=$lt_cv_objdir
7692
7693
7694
7695
7696
7697 cat >>confdefs.h <<_ACEOF
7698 #define LT_OBJDIR "$lt_cv_objdir/"
7699 _ACEOF
7700
7701
7702
7703
7704 case $host_os in
7705 aix3*)
7706 # AIX sometimes has problems with the GCC collect2 program. For some
7707 # reason, if we set the COLLECT_NAMES environment variable, the problems
7708 # vanish in a puff of smoke.
7709 if test "X${COLLECT_NAMES+set}" != Xset; then
7710 COLLECT_NAMES=
7711 export COLLECT_NAMES
7712 fi
7713 ;;
7714 esac
7715
7716 # Global variables:
7717 ofile=libtool
7718 can_build_shared=yes
7719
7720 # All known linkers require a `.a' archive for static linking (except MSVC,
7721 # which needs '.lib').
7722 libext=a
7723
7724 with_gnu_ld="$lt_cv_prog_gnu_ld"
7725
7726 old_CC="$CC"
7727 old_CFLAGS="$CFLAGS"
7728
7729 # Set sane defaults for various variables
7730 test -z "$CC" && CC=cc
7731 test -z "$LTCC" && LTCC=$CC
7732 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7733 test -z "$LD" && LD=ld
7734 test -z "$ac_objext" && ac_objext=o
7735
7736 for cc_temp in $compiler""; do
7737 case $cc_temp in
7738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7740 \-*) ;;
7741 *) break;;
7742 esac
7743 done
7744 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7745
7746
7747 # Only perform the check for file, if the check method requires it
7748 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7749 case $deplibs_check_method in
7750 file_magic*)
7751 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7753 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7754 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 case $MAGIC_CMD in
7758 [\\/*] | ?:[\\/]*)
7759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 lt_save_MAGIC_CMD="$MAGIC_CMD"
7763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7765 for ac_dir in $ac_dummy; do
7766 IFS="$lt_save_ifs"
7767 test -z "$ac_dir" && ac_dir=.
7768 if test -f $ac_dir/${ac_tool_prefix}file; then
7769 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7770 if test -n "$file_magic_test_file"; then
7771 case $deplibs_check_method in
7772 "file_magic "*)
7773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7776 $EGREP "$file_magic_regex" > /dev/null; then
7777 :
7778 else
7779 cat <<_LT_EOF 1>&2
7780
7781 *** Warning: the command libtool uses to detect shared libraries,
7782 *** $file_magic_cmd, produces output that libtool cannot recognize.
7783 *** The result is that libtool may fail to recognize shared libraries
7784 *** as such. This will affect the creation of libtool libraries that
7785 *** depend on shared libraries, but programs linked with such libtool
7786 *** libraries will work regardless of this problem. Nevertheless, you
7787 *** may want to report the problem to your system manager and/or to
7788 *** [email protected]
7789
7790 _LT_EOF
7791 fi ;;
7792 esac
7793 fi
7794 break
7795 fi
7796 done
7797 IFS="$lt_save_ifs"
7798 MAGIC_CMD="$lt_save_MAGIC_CMD"
7799 ;;
7800 esac
7801 fi
7802
7803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7804 if test -n "$MAGIC_CMD"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7806 $as_echo "$MAGIC_CMD" >&6; }
7807 else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812
7813
7814
7815
7816 if test -z "$lt_cv_path_MAGIC_CMD"; then
7817 if test -n "$ac_tool_prefix"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7819 $as_echo_n "checking for file... " >&6; }
7820 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 case $MAGIC_CMD in
7824 [\\/*] | ?:[\\/]*)
7825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7826 ;;
7827 *)
7828 lt_save_MAGIC_CMD="$MAGIC_CMD"
7829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7831 for ac_dir in $ac_dummy; do
7832 IFS="$lt_save_ifs"
7833 test -z "$ac_dir" && ac_dir=.
7834 if test -f $ac_dir/file; then
7835 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7836 if test -n "$file_magic_test_file"; then
7837 case $deplibs_check_method in
7838 "file_magic "*)
7839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7842 $EGREP "$file_magic_regex" > /dev/null; then
7843 :
7844 else
7845 cat <<_LT_EOF 1>&2
7846
7847 *** Warning: the command libtool uses to detect shared libraries,
7848 *** $file_magic_cmd, produces output that libtool cannot recognize.
7849 *** The result is that libtool may fail to recognize shared libraries
7850 *** as such. This will affect the creation of libtool libraries that
7851 *** depend on shared libraries, but programs linked with such libtool
7852 *** libraries will work regardless of this problem. Nevertheless, you
7853 *** may want to report the problem to your system manager and/or to
7854 *** [email protected]
7855
7856 _LT_EOF
7857 fi ;;
7858 esac
7859 fi
7860 break
7861 fi
7862 done
7863 IFS="$lt_save_ifs"
7864 MAGIC_CMD="$lt_save_MAGIC_CMD"
7865 ;;
7866 esac
7867 fi
7868
7869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7870 if test -n "$MAGIC_CMD"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7872 $as_echo "$MAGIC_CMD" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 else
7880 MAGIC_CMD=:
7881 fi
7882 fi
7883
7884 fi
7885 ;;
7886 esac
7887
7888 # Use C for the default configuration in the libtool script
7889
7890 lt_save_CC="$CC"
7891 ac_ext=c
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896
7897
7898 # Source file extension for C test sources.
7899 ac_ext=c
7900
7901 # Object file extension for compiled C test sources.
7902 objext=o
7903 objext=$objext
7904
7905 # Code to be used in simple compile tests
7906 lt_simple_compile_test_code="int some_variable = 0;"
7907
7908 # Code to be used in simple link tests
7909 lt_simple_link_test_code='int main(){return(0);}'
7910
7911
7912
7913
7914
7915
7916
7917 # If no C compiler was specified, use CC.
7918 LTCC=${LTCC-"$CC"}
7919
7920 # If no C compiler flags were specified, use CFLAGS.
7921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7922
7923 # Allow CC to be a program name with arguments.
7924 compiler=$CC
7925
7926 # Save the default compiler, since it gets overwritten when the other
7927 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7928 compiler_DEFAULT=$CC
7929
7930 # save warnings/boilerplate of simple test code
7931 ac_outfile=conftest.$ac_objext
7932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7934 _lt_compiler_boilerplate=`cat conftest.err`
7935 $RM conftest*
7936
7937 ac_outfile=conftest.$ac_objext
7938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7940 _lt_linker_boilerplate=`cat conftest.err`
7941 $RM -r conftest*
7942
7943
7944 ## CAVEAT EMPTOR:
7945 ## There is no encapsulation within the following macros, do not change
7946 ## the running order or otherwise move them around unless you know exactly
7947 ## what you are doing...
7948 if test -n "$compiler"; then
7949
7950 lt_prog_compiler_no_builtin_flag=
7951
7952 if test "$GCC" = yes; then
7953 case $cc_basename in
7954 nvcc*)
7955 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7956 *)
7957 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7958 esac
7959
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7961 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7962 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 lt_cv_prog_compiler_rtti_exceptions=no
7966 ac_outfile=conftest.$ac_objext
7967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7968 lt_compiler_flag="-fno-rtti -fno-exceptions"
7969 # Insert the option either (1) after the last *FLAGS variable, or
7970 # (2) before a word containing "conftest.", or (3) at the end.
7971 # Note that $ac_compile itself does not contain backslashes and begins
7972 # with a dollar sign (not a hyphen), so the echo should work correctly.
7973 # The option is referenced via a variable to avoid confusing sed.
7974 lt_compile=`echo "$ac_compile" | $SED \
7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7977 -e 's:$: $lt_compiler_flag:'`
7978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7979 (eval "$lt_compile" 2>conftest.err)
7980 ac_status=$?
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 if (exit $ac_status) && test -s "$ac_outfile"; then
7984 # The compiler can only warn and ignore the option if not recognized
7985 # So say no if there are warnings other than the usual output.
7986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7989 lt_cv_prog_compiler_rtti_exceptions=yes
7990 fi
7991 fi
7992 $RM conftest*
7993
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7996 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7997
7998 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7999 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8000 else
8001 :
8002 fi
8003
8004 fi
8005
8006
8007
8008
8009
8010
8011 lt_prog_compiler_wl=
8012 lt_prog_compiler_pic=
8013 lt_prog_compiler_static=
8014
8015
8016 if test "$GCC" = yes; then
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_static='-static'
8019
8020 case $host_os in
8021 aix*)
8022 # All AIX code is PIC.
8023 if test "$host_cpu" = ia64; then
8024 # AIX 5 now supports IA64 processor
8025 lt_prog_compiler_static='-Bstatic'
8026 fi
8027 ;;
8028
8029 amigaos*)
8030 case $host_cpu in
8031 powerpc)
8032 # see comment about AmigaOS4 .so support
8033 lt_prog_compiler_pic='-fPIC'
8034 ;;
8035 m68k)
8036 # FIXME: we need at least 68020 code to build shared libraries, but
8037 # adding the `-m68020' flag to GCC prevents building anything better,
8038 # like `-m68040'.
8039 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8040 ;;
8041 esac
8042 ;;
8043
8044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8045 # PIC is the default for these OSes.
8046 ;;
8047
8048 mingw* | cygwin* | pw32* | os2* | cegcc*)
8049 # This hack is so that the source file can tell whether it is being
8050 # built for inclusion in a dll (and should export symbols for example).
8051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8052 # (--disable-auto-import) libraries
8053 lt_prog_compiler_pic='-DDLL_EXPORT'
8054 ;;
8055
8056 darwin* | rhapsody*)
8057 # PIC is the default on this platform
8058 # Common symbols not allowed in MH_DYLIB files
8059 lt_prog_compiler_pic='-fno-common'
8060 ;;
8061
8062 haiku*)
8063 # PIC is the default for Haiku.
8064 # The "-static" flag exists, but is broken.
8065 lt_prog_compiler_static=
8066 ;;
8067
8068 hpux*)
8069 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8070 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8071 # sets the default TLS model and affects inlining.
8072 case $host_cpu in
8073 hppa*64*)
8074 # +Z the default
8075 ;;
8076 *)
8077 lt_prog_compiler_pic='-fPIC'
8078 ;;
8079 esac
8080 ;;
8081
8082 interix[3-9]*)
8083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8084 # Instead, we relocate shared libraries at runtime.
8085 ;;
8086
8087 msdosdjgpp*)
8088 # Just because we use GCC doesn't mean we suddenly get shared libraries
8089 # on systems that don't support them.
8090 lt_prog_compiler_can_build_shared=no
8091 enable_shared=no
8092 ;;
8093
8094 *nto* | *qnx*)
8095 # QNX uses GNU C++, but need to define -shared option too, otherwise
8096 # it will coredump.
8097 lt_prog_compiler_pic='-fPIC -shared'
8098 ;;
8099
8100 sysv4*MP*)
8101 if test -d /usr/nec; then
8102 lt_prog_compiler_pic=-Kconform_pic
8103 fi
8104 ;;
8105
8106 *)
8107 lt_prog_compiler_pic='-fPIC'
8108 ;;
8109 esac
8110
8111 case $cc_basename in
8112 nvcc*) # Cuda Compiler Driver 2.2
8113 lt_prog_compiler_wl='-Xlinker '
8114 if test -n "$lt_prog_compiler_pic"; then
8115 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8116 fi
8117 ;;
8118 esac
8119 else
8120 # PORTME Check for flag to pass linker flags through the system compiler.
8121 case $host_os in
8122 aix*)
8123 lt_prog_compiler_wl='-Wl,'
8124 if test "$host_cpu" = ia64; then
8125 # AIX 5 now supports IA64 processor
8126 lt_prog_compiler_static='-Bstatic'
8127 else
8128 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8129 fi
8130 ;;
8131
8132 mingw* | cygwin* | pw32* | os2* | cegcc*)
8133 # This hack is so that the source file can tell whether it is being
8134 # built for inclusion in a dll (and should export symbols for example).
8135 lt_prog_compiler_pic='-DDLL_EXPORT'
8136 ;;
8137
8138 hpux9* | hpux10* | hpux11*)
8139 lt_prog_compiler_wl='-Wl,'
8140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8141 # not for PA HP-UX.
8142 case $host_cpu in
8143 hppa*64*|ia64*)
8144 # +Z the default
8145 ;;
8146 *)
8147 lt_prog_compiler_pic='+Z'
8148 ;;
8149 esac
8150 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8151 lt_prog_compiler_static='${wl}-a ${wl}archive'
8152 ;;
8153
8154 irix5* | irix6* | nonstopux*)
8155 lt_prog_compiler_wl='-Wl,'
8156 # PIC (with -KPIC) is the default.
8157 lt_prog_compiler_static='-non_shared'
8158 ;;
8159
8160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8161 case $cc_basename in
8162 # old Intel for x86_64 which still supported -KPIC.
8163 ecc*)
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='-KPIC'
8166 lt_prog_compiler_static='-static'
8167 ;;
8168 # icc used to be incompatible with GCC.
8169 # ICC 10 doesn't accept -KPIC any more.
8170 icc* | ifort*)
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='-fPIC'
8173 lt_prog_compiler_static='-static'
8174 ;;
8175 # Lahey Fortran 8.1.
8176 lf95*)
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='--shared'
8179 lt_prog_compiler_static='--static'
8180 ;;
8181 nagfor*)
8182 # NAG Fortran compiler
8183 lt_prog_compiler_wl='-Wl,-Wl,,'
8184 lt_prog_compiler_pic='-PIC'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8188 # Portland Group compilers (*not* the Pentium gcc compiler,
8189 # which looks to be a dead project)
8190 lt_prog_compiler_wl='-Wl,'
8191 lt_prog_compiler_pic='-fpic'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194 ccc*)
8195 lt_prog_compiler_wl='-Wl,'
8196 # All Alpha code is PIC.
8197 lt_prog_compiler_static='-non_shared'
8198 ;;
8199 xl* | bgxl* | bgf* | mpixl*)
8200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-qpic'
8203 lt_prog_compiler_static='-qstaticlink'
8204 ;;
8205 *)
8206 case `$CC -V 2>&1 | sed 5q` in
8207 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8209 lt_prog_compiler_pic='-KPIC'
8210 lt_prog_compiler_static='-Bstatic'
8211 lt_prog_compiler_wl=''
8212 ;;
8213 *Sun\ F* | *Sun*Fortran*)
8214 lt_prog_compiler_pic='-KPIC'
8215 lt_prog_compiler_static='-Bstatic'
8216 lt_prog_compiler_wl='-Qoption ld '
8217 ;;
8218 *Sun\ C*)
8219 # Sun C 5.9
8220 lt_prog_compiler_pic='-KPIC'
8221 lt_prog_compiler_static='-Bstatic'
8222 lt_prog_compiler_wl='-Wl,'
8223 ;;
8224 *Intel*\ [CF]*Compiler*)
8225 lt_prog_compiler_wl='-Wl,'
8226 lt_prog_compiler_pic='-fPIC'
8227 lt_prog_compiler_static='-static'
8228 ;;
8229 *Portland\ Group*)
8230 lt_prog_compiler_wl='-Wl,'
8231 lt_prog_compiler_pic='-fpic'
8232 lt_prog_compiler_static='-Bstatic'
8233 ;;
8234 esac
8235 ;;
8236 esac
8237 ;;
8238
8239 newsos6)
8240 lt_prog_compiler_pic='-KPIC'
8241 lt_prog_compiler_static='-Bstatic'
8242 ;;
8243
8244 *nto* | *qnx*)
8245 # QNX uses GNU C++, but need to define -shared option too, otherwise
8246 # it will coredump.
8247 lt_prog_compiler_pic='-fPIC -shared'
8248 ;;
8249
8250 osf3* | osf4* | osf5*)
8251 lt_prog_compiler_wl='-Wl,'
8252 # All OSF/1 code is PIC.
8253 lt_prog_compiler_static='-non_shared'
8254 ;;
8255
8256 rdos*)
8257 lt_prog_compiler_static='-non_shared'
8258 ;;
8259
8260 solaris*)
8261 lt_prog_compiler_pic='-KPIC'
8262 lt_prog_compiler_static='-Bstatic'
8263 case $cc_basename in
8264 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8265 lt_prog_compiler_wl='-Qoption ld ';;
8266 *)
8267 lt_prog_compiler_wl='-Wl,';;
8268 esac
8269 ;;
8270
8271 sunos4*)
8272 lt_prog_compiler_wl='-Qoption ld '
8273 lt_prog_compiler_pic='-PIC'
8274 lt_prog_compiler_static='-Bstatic'
8275 ;;
8276
8277 sysv4 | sysv4.2uw2* | sysv4.3*)
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_pic='-KPIC'
8280 lt_prog_compiler_static='-Bstatic'
8281 ;;
8282
8283 sysv4*MP*)
8284 if test -d /usr/nec ;then
8285 lt_prog_compiler_pic='-Kconform_pic'
8286 lt_prog_compiler_static='-Bstatic'
8287 fi
8288 ;;
8289
8290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_pic='-KPIC'
8293 lt_prog_compiler_static='-Bstatic'
8294 ;;
8295
8296 unicos*)
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_can_build_shared=no
8299 ;;
8300
8301 uts4*)
8302 lt_prog_compiler_pic='-pic'
8303 lt_prog_compiler_static='-Bstatic'
8304 ;;
8305
8306 *)
8307 lt_prog_compiler_can_build_shared=no
8308 ;;
8309 esac
8310 fi
8311
8312 case $host_os in
8313 # For platforms which do not support PIC, -DPIC is meaningless:
8314 *djgpp*)
8315 lt_prog_compiler_pic=
8316 ;;
8317 *)
8318 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8319 ;;
8320 esac
8321
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8323 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8324 if ${lt_cv_prog_compiler_pic+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8330 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8331 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8332
8333 #
8334 # Check to make sure the PIC flag actually works.
8335 #
8336 if test -n "$lt_prog_compiler_pic"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8338 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8339 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 lt_cv_prog_compiler_pic_works=no
8343 ac_outfile=conftest.$ac_objext
8344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8345 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8346 # Insert the option either (1) after the last *FLAGS variable, or
8347 # (2) before a word containing "conftest.", or (3) at the end.
8348 # Note that $ac_compile itself does not contain backslashes and begins
8349 # with a dollar sign (not a hyphen), so the echo should work correctly.
8350 # The option is referenced via a variable to avoid confusing sed.
8351 lt_compile=`echo "$ac_compile" | $SED \
8352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8354 -e 's:$: $lt_compiler_flag:'`
8355 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8356 (eval "$lt_compile" 2>conftest.err)
8357 ac_status=$?
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 if (exit $ac_status) && test -s "$ac_outfile"; then
8361 # The compiler can only warn and ignore the option if not recognized
8362 # So say no if there are warnings other than the usual output.
8363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8366 lt_cv_prog_compiler_pic_works=yes
8367 fi
8368 fi
8369 $RM conftest*
8370
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8373 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8374
8375 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8376 case $lt_prog_compiler_pic in
8377 "" | " "*) ;;
8378 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8379 esac
8380 else
8381 lt_prog_compiler_pic=
8382 lt_prog_compiler_can_build_shared=no
8383 fi
8384
8385 fi
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 #
8398 # Check to make sure the static flag actually works.
8399 #
8400 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8402 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8403 if ${lt_cv_prog_compiler_static_works+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 lt_cv_prog_compiler_static_works=no
8407 save_LDFLAGS="$LDFLAGS"
8408 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8409 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8411 # The linker can only warn and ignore the option if not recognized
8412 # So say no if there are warnings
8413 if test -s conftest.err; then
8414 # Append any errors to the config.log.
8415 cat conftest.err 1>&5
8416 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8418 if diff conftest.exp conftest.er2 >/dev/null; then
8419 lt_cv_prog_compiler_static_works=yes
8420 fi
8421 else
8422 lt_cv_prog_compiler_static_works=yes
8423 fi
8424 fi
8425 $RM -r conftest*
8426 LDFLAGS="$save_LDFLAGS"
8427
8428 fi
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8430 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8431
8432 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8433 :
8434 else
8435 lt_prog_compiler_static=
8436 fi
8437
8438
8439
8440
8441
8442
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8445 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8446 if ${lt_cv_prog_compiler_c_o+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 lt_cv_prog_compiler_c_o=no
8450 $RM -r conftest 2>/dev/null
8451 mkdir conftest
8452 cd conftest
8453 mkdir out
8454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455
8456 lt_compiler_flag="-o out/conftest2.$ac_objext"
8457 # Insert the option either (1) after the last *FLAGS variable, or
8458 # (2) before a word containing "conftest.", or (3) at the end.
8459 # Note that $ac_compile itself does not contain backslashes and begins
8460 # with a dollar sign (not a hyphen), so the echo should work correctly.
8461 lt_compile=`echo "$ac_compile" | $SED \
8462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464 -e 's:$: $lt_compiler_flag:'`
8465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8466 (eval "$lt_compile" 2>out/conftest.err)
8467 ac_status=$?
8468 cat out/conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8471 then
8472 # The compiler can only warn and ignore the option if not recognized
8473 # So say no if there are warnings
8474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8477 lt_cv_prog_compiler_c_o=yes
8478 fi
8479 fi
8480 chmod u+w . 2>&5
8481 $RM conftest*
8482 # SGI C++ compiler will create directory out/ii_files/ for
8483 # template instantiation
8484 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8485 $RM out/* && rmdir out
8486 cd ..
8487 $RM -r conftest
8488 $RM conftest*
8489
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8492 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8493
8494
8495
8496
8497
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8501 if ${lt_cv_prog_compiler_c_o+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 lt_cv_prog_compiler_c_o=no
8505 $RM -r conftest 2>/dev/null
8506 mkdir conftest
8507 cd conftest
8508 mkdir out
8509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8510
8511 lt_compiler_flag="-o out/conftest2.$ac_objext"
8512 # Insert the option either (1) after the last *FLAGS variable, or
8513 # (2) before a word containing "conftest.", or (3) at the end.
8514 # Note that $ac_compile itself does not contain backslashes and begins
8515 # with a dollar sign (not a hyphen), so the echo should work correctly.
8516 lt_compile=`echo "$ac_compile" | $SED \
8517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8519 -e 's:$: $lt_compiler_flag:'`
8520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8521 (eval "$lt_compile" 2>out/conftest.err)
8522 ac_status=$?
8523 cat out/conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8526 then
8527 # The compiler can only warn and ignore the option if not recognized
8528 # So say no if there are warnings
8529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8532 lt_cv_prog_compiler_c_o=yes
8533 fi
8534 fi
8535 chmod u+w . 2>&5
8536 $RM conftest*
8537 # SGI C++ compiler will create directory out/ii_files/ for
8538 # template instantiation
8539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8540 $RM out/* && rmdir out
8541 cd ..
8542 $RM -r conftest
8543 $RM conftest*
8544
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8547 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8548
8549
8550
8551
8552 hard_links="nottested"
8553 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8554 # do not overwrite the value of need_locks provided by the user
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8556 $as_echo_n "checking if we can lock with hard links... " >&6; }
8557 hard_links=yes
8558 $RM conftest*
8559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8560 touch conftest.a
8561 ln conftest.a conftest.b 2>&5 || hard_links=no
8562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8564 $as_echo "$hard_links" >&6; }
8565 if test "$hard_links" = no; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8567 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8568 need_locks=warn
8569 fi
8570 else
8571 need_locks=no
8572 fi
8573
8574
8575
8576
8577
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8580 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8581
8582 runpath_var=
8583 allow_undefined_flag=
8584 always_export_symbols=no
8585 archive_cmds=
8586 archive_expsym_cmds=
8587 compiler_needs_object=no
8588 enable_shared_with_static_runtimes=no
8589 export_dynamic_flag_spec=
8590 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8591 hardcode_automatic=no
8592 hardcode_direct=no
8593 hardcode_direct_absolute=no
8594 hardcode_libdir_flag_spec=
8595 hardcode_libdir_separator=
8596 hardcode_minus_L=no
8597 hardcode_shlibpath_var=unsupported
8598 inherit_rpath=no
8599 link_all_deplibs=unknown
8600 module_cmds=
8601 module_expsym_cmds=
8602 old_archive_from_new_cmds=
8603 old_archive_from_expsyms_cmds=
8604 thread_safe_flag_spec=
8605 whole_archive_flag_spec=
8606 # include_expsyms should be a list of space-separated symbols to be *always*
8607 # included in the symbol list
8608 include_expsyms=
8609 # exclude_expsyms can be an extended regexp of symbols to exclude
8610 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8612 # as well as any symbol that contains `d'.
8613 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8615 # platforms (ab)use it in PIC code, but their linkers get confused if
8616 # the symbol is explicitly referenced. Since portable code cannot
8617 # rely on this symbol name, it's probably fine to never include it in
8618 # preloaded symbol tables.
8619 # Exclude shared library initialization/finalization symbols.
8620 extract_expsyms_cmds=
8621
8622 case $host_os in
8623 cygwin* | mingw* | pw32* | cegcc*)
8624 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8625 # When not using gcc, we currently assume that we are using
8626 # Microsoft Visual C++.
8627 if test "$GCC" != yes; then
8628 with_gnu_ld=no
8629 fi
8630 ;;
8631 interix*)
8632 # we just hope/assume this is gcc and not c89 (= MSVC++)
8633 with_gnu_ld=yes
8634 ;;
8635 openbsd*)
8636 with_gnu_ld=no
8637 ;;
8638 esac
8639
8640 ld_shlibs=yes
8641
8642 # On some targets, GNU ld is compatible enough with the native linker
8643 # that we're better off using the native interface for both.
8644 lt_use_gnu_ld_interface=no
8645 if test "$with_gnu_ld" = yes; then
8646 case $host_os in
8647 aix*)
8648 # The AIX port of GNU ld has always aspired to compatibility
8649 # with the native linker. However, as the warning in the GNU ld
8650 # block says, versions before 2.19.5* couldn't really create working
8651 # shared libraries, regardless of the interface used.
8652 case `$LD -v 2>&1` in
8653 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8654 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8655 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8656 *)
8657 lt_use_gnu_ld_interface=yes
8658 ;;
8659 esac
8660 ;;
8661 *)
8662 lt_use_gnu_ld_interface=yes
8663 ;;
8664 esac
8665 fi
8666
8667 if test "$lt_use_gnu_ld_interface" = yes; then
8668 # If archive_cmds runs LD, not CC, wlarc should be empty
8669 wlarc='${wl}'
8670
8671 # Set some defaults for GNU ld with shared library support. These
8672 # are reset later if shared libraries are not supported. Putting them
8673 # here allows them to be overridden if necessary.
8674 runpath_var=LD_RUN_PATH
8675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8676 export_dynamic_flag_spec='${wl}--export-dynamic'
8677 # ancient GNU ld didn't support --whole-archive et. al.
8678 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8679 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8680 else
8681 whole_archive_flag_spec=
8682 fi
8683 supports_anon_versioning=no
8684 case `$LD -v 2>&1` in
8685 *GNU\ gold*) supports_anon_versioning=yes ;;
8686 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8687 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8688 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8689 *\ 2.11.*) ;; # other 2.11 versions
8690 *) supports_anon_versioning=yes ;;
8691 esac
8692
8693 # See if GNU ld supports shared libraries.
8694 case $host_os in
8695 aix[3-9]*)
8696 # On AIX/PPC, the GNU linker is very broken
8697 if test "$host_cpu" != ia64; then
8698 ld_shlibs=no
8699 cat <<_LT_EOF 1>&2
8700
8701 *** Warning: the GNU linker, at least up to release 2.19, is reported
8702 *** to be unable to reliably create shared libraries on AIX.
8703 *** Therefore, libtool is disabling shared libraries support. If you
8704 *** really care for shared libraries, you may want to install binutils
8705 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8706 *** You will then need to restart the configuration process.
8707
8708 _LT_EOF
8709 fi
8710 ;;
8711
8712 amigaos*)
8713 case $host_cpu in
8714 powerpc)
8715 # see comment about AmigaOS4 .so support
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds=''
8718 ;;
8719 m68k)
8720 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)'
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 hardcode_minus_L=yes
8723 ;;
8724 esac
8725 ;;
8726
8727 beos*)
8728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8729 allow_undefined_flag=unsupported
8730 # Joseph Beckenbach <[email protected]> says some releases of gcc
8731 # support --undefined. This deserves some investigation. FIXME
8732 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 else
8734 ld_shlibs=no
8735 fi
8736 ;;
8737
8738 cygwin* | mingw* | pw32* | cegcc*)
8739 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8740 # as there is no search path for DLLs.
8741 hardcode_libdir_flag_spec='-L$libdir'
8742 export_dynamic_flag_spec='${wl}--export-all-symbols'
8743 allow_undefined_flag=unsupported
8744 always_export_symbols=no
8745 enable_shared_with_static_runtimes=yes
8746 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'
8747 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8748
8749 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8751 # If the export-symbols file already is a .def file (1st line
8752 # is EXPORTS), use it as is; otherwise, prepend...
8753 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8754 cp $export_symbols $output_objdir/$soname.def;
8755 else
8756 echo EXPORTS > $output_objdir/$soname.def;
8757 cat $export_symbols >> $output_objdir/$soname.def;
8758 fi~
8759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8760 else
8761 ld_shlibs=no
8762 fi
8763 ;;
8764
8765 haiku*)
8766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8767 link_all_deplibs=yes
8768 ;;
8769
8770 interix[3-9]*)
8771 hardcode_direct=no
8772 hardcode_shlibpath_var=no
8773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8774 export_dynamic_flag_spec='${wl}-E'
8775 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8776 # Instead, shared libraries are loaded at an image base (0x10000000 by
8777 # default) and relocated if they conflict, which is a slow very memory
8778 # consuming and fragmenting process. To avoid this, we pick a random,
8779 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8780 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8782 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'
8783 ;;
8784
8785 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8786 tmp_diet=no
8787 if test "$host_os" = linux-dietlibc; then
8788 case $cc_basename in
8789 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8790 esac
8791 fi
8792 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8793 && test "$tmp_diet" = no
8794 then
8795 tmp_addflag=' $pic_flag'
8796 tmp_sharedflag='-shared'
8797 case $cc_basename,$host_cpu in
8798 pgcc*) # Portland Group C compiler
8799 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'
8800 tmp_addflag=' $pic_flag'
8801 ;;
8802 pgf77* | pgf90* | pgf95* | pgfortran*)
8803 # Portland Group f77 and f90 compilers
8804 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'
8805 tmp_addflag=' $pic_flag -Mnomain' ;;
8806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8807 tmp_addflag=' -i_dynamic' ;;
8808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8809 tmp_addflag=' -i_dynamic -nofor_main' ;;
8810 ifc* | ifort*) # Intel Fortran compiler
8811 tmp_addflag=' -nofor_main' ;;
8812 lf95*) # Lahey Fortran 8.1
8813 whole_archive_flag_spec=
8814 tmp_sharedflag='--shared' ;;
8815 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8816 tmp_sharedflag='-qmkshrobj'
8817 tmp_addflag= ;;
8818 nvcc*) # Cuda Compiler Driver 2.2
8819 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'
8820 compiler_needs_object=yes
8821 ;;
8822 esac
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ C*) # Sun C 5.9
8825 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'
8826 compiler_needs_object=yes
8827 tmp_sharedflag='-G' ;;
8828 *Sun\ F*) # Sun Fortran 8.3
8829 tmp_sharedflag='-G' ;;
8830 esac
8831 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832
8833 if test "x$supports_anon_versioning" = xyes; then
8834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8836 echo "local: *; };" >> $output_objdir/$libname.ver~
8837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8838 fi
8839
8840 case $cc_basename in
8841 xlf* | bgf* | bgxlf* | mpixlf*)
8842 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8843 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8845 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8846 if test "x$supports_anon_versioning" = xyes; then
8847 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8849 echo "local: *; };" >> $output_objdir/$libname.ver~
8850 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8851 fi
8852 ;;
8853 esac
8854 else
8855 ld_shlibs=no
8856 fi
8857 ;;
8858
8859 netbsd*)
8860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8861 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8862 wlarc=
8863 else
8864 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8866 fi
8867 ;;
8868
8869 solaris*)
8870 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8871 ld_shlibs=no
8872 cat <<_LT_EOF 1>&2
8873
8874 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8875 *** create shared libraries on Solaris systems. Therefore, libtool
8876 *** is disabling shared libraries support. We urge you to upgrade GNU
8877 *** binutils to release 2.9.1 or newer. Another option is to modify
8878 *** your PATH or compiler configuration so that the native linker is
8879 *** used, and then restart.
8880
8881 _LT_EOF
8882 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8885 else
8886 ld_shlibs=no
8887 fi
8888 ;;
8889
8890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8891 case `$LD -v 2>&1` in
8892 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8893 ld_shlibs=no
8894 cat <<_LT_EOF 1>&2
8895
8896 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8897 *** reliably create shared libraries on SCO systems. Therefore, libtool
8898 *** is disabling shared libraries support. We urge you to upgrade GNU
8899 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8900 *** your PATH or compiler configuration so that the native linker is
8901 *** used, and then restart.
8902
8903 _LT_EOF
8904 ;;
8905 *)
8906 # For security reasons, it is highly recommended that you always
8907 # use absolute paths for naming shared libraries, and exclude the
8908 # DT_RUNPATH tag from executables and libraries. But doing so
8909 # requires that you compile everything twice, which is a pain.
8910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8914 else
8915 ld_shlibs=no
8916 fi
8917 ;;
8918 esac
8919 ;;
8920
8921 sunos4*)
8922 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8923 wlarc=
8924 hardcode_direct=yes
8925 hardcode_shlibpath_var=no
8926 ;;
8927
8928 *)
8929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8930 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8932 else
8933 ld_shlibs=no
8934 fi
8935 ;;
8936 esac
8937
8938 if test "$ld_shlibs" = no; then
8939 runpath_var=
8940 hardcode_libdir_flag_spec=
8941 export_dynamic_flag_spec=
8942 whole_archive_flag_spec=
8943 fi
8944 else
8945 # PORTME fill in a description of your system's linker (not GNU ld)
8946 case $host_os in
8947 aix3*)
8948 allow_undefined_flag=unsupported
8949 always_export_symbols=yes
8950 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'
8951 # Note: this linker hardcodes the directories in LIBPATH if there
8952 # are no directories specified by -L.
8953 hardcode_minus_L=yes
8954 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8955 # Neither direct hardcoding nor static linking is supported with a
8956 # broken collect2.
8957 hardcode_direct=unsupported
8958 fi
8959 ;;
8960
8961 aix[4-9]*)
8962 if test "$host_cpu" = ia64; then
8963 # On IA64, the linker does run time linking by default, so we don't
8964 # have to do anything special.
8965 aix_use_runtimelinking=no
8966 exp_sym_flag='-Bexport'
8967 no_entry_flag=""
8968 else
8969 # If we're using GNU nm, then we don't want the "-C" option.
8970 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8971 # Also, AIX nm treats weak defined symbols like other global
8972 # defined symbols, whereas GNU nm marks them as "W".
8973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8974 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8975 else
8976 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8977 fi
8978 aix_use_runtimelinking=no
8979
8980 # Test if we are trying to use run time linking or normal
8981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8982 # need to do runtime linking.
8983 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8984 for ld_flag in $LDFLAGS; do
8985 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8986 aix_use_runtimelinking=yes
8987 break
8988 fi
8989 done
8990 ;;
8991 esac
8992
8993 exp_sym_flag='-bexport'
8994 no_entry_flag='-bnoentry'
8995 fi
8996
8997 # When large executables or shared objects are built, AIX ld can
8998 # have problems creating the table of contents. If linking a library
8999 # or program results in "error TOC overflow" add -mminimal-toc to
9000 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9001 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9002
9003 archive_cmds=''
9004 hardcode_direct=yes
9005 hardcode_direct_absolute=yes
9006 hardcode_libdir_separator=':'
9007 link_all_deplibs=yes
9008 file_list_spec='${wl}-f,'
9009
9010 if test "$GCC" = yes; then
9011 case $host_os in aix4.[012]|aix4.[012].*)
9012 # We only want to do this on AIX 4.2 and lower, the check
9013 # below for broken collect2 doesn't work under 4.3+
9014 collect2name=`${CC} -print-prog-name=collect2`
9015 if test -f "$collect2name" &&
9016 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9017 then
9018 # We have reworked collect2
9019 :
9020 else
9021 # We have old collect2
9022 hardcode_direct=unsupported
9023 # It fails to find uninstalled libraries when the uninstalled
9024 # path is not listed in the libpath. Setting hardcode_minus_L
9025 # to unsupported forces relinking
9026 hardcode_minus_L=yes
9027 hardcode_libdir_flag_spec='-L$libdir'
9028 hardcode_libdir_separator=
9029 fi
9030 ;;
9031 esac
9032 shared_flag='-shared'
9033 if test "$aix_use_runtimelinking" = yes; then
9034 shared_flag="$shared_flag "'${wl}-G'
9035 fi
9036 else
9037 # not using gcc
9038 if test "$host_cpu" = ia64; then
9039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9040 # chokes on -Wl,-G. The following line is correct:
9041 shared_flag='-G'
9042 else
9043 if test "$aix_use_runtimelinking" = yes; then
9044 shared_flag='${wl}-G'
9045 else
9046 shared_flag='${wl}-bM:SRE'
9047 fi
9048 fi
9049 fi
9050
9051 export_dynamic_flag_spec='${wl}-bexpall'
9052 # It seems that -bexpall does not export symbols beginning with
9053 # underscore (_), so it is better to generate a list of symbols to export.
9054 always_export_symbols=yes
9055 if test "$aix_use_runtimelinking" = yes; then
9056 # Warning - without using the other runtime loading flags (-brtl),
9057 # -berok will link without error, but may produce a broken library.
9058 allow_undefined_flag='-berok'
9059 # Determine the default libpath from the value encoded in an
9060 # empty executable.
9061 if test "${lt_cv_aix_libpath+set}" = set; then
9062 aix_libpath=$lt_cv_aix_libpath
9063 else
9064 if ${lt_cv_aix_libpath_+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069
9070 int
9071 main ()
9072 {
9073
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_c_try_link "$LINENO"; then :
9079
9080 lt_aix_libpath_sed='
9081 /Import File Strings/,/^$/ {
9082 /^0/ {
9083 s/^0 *\([^ ]*\) *$/\1/
9084 p
9085 }
9086 }'
9087 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9088 # Check for a 64-bit object if we didn't find anything.
9089 if test -z "$lt_cv_aix_libpath_"; then
9090 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9091 fi
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9095 if test -z "$lt_cv_aix_libpath_"; then
9096 lt_cv_aix_libpath_="/usr/lib:/lib"
9097 fi
9098
9099 fi
9100
9101 aix_libpath=$lt_cv_aix_libpath_
9102 fi
9103
9104 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9105 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9106 else
9107 if test "$host_cpu" = ia64; then
9108 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9109 allow_undefined_flag="-z nodefs"
9110 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"
9111 else
9112 # Determine the default libpath from the value encoded in an
9113 # empty executable.
9114 if test "${lt_cv_aix_libpath+set}" = set; then
9115 aix_libpath=$lt_cv_aix_libpath
9116 else
9117 if ${lt_cv_aix_libpath_+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122
9123 int
9124 main ()
9125 {
9126
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_link "$LINENO"; then :
9132
9133 lt_aix_libpath_sed='
9134 /Import File Strings/,/^$/ {
9135 /^0/ {
9136 s/^0 *\([^ ]*\) *$/\1/
9137 p
9138 }
9139 }'
9140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9141 # Check for a 64-bit object if we didn't find anything.
9142 if test -z "$lt_cv_aix_libpath_"; then
9143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9144 fi
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 if test -z "$lt_cv_aix_libpath_"; then
9149 lt_cv_aix_libpath_="/usr/lib:/lib"
9150 fi
9151
9152 fi
9153
9154 aix_libpath=$lt_cv_aix_libpath_
9155 fi
9156
9157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9158 # Warning - without using the other run time loading flags,
9159 # -berok will link without error, but may produce a broken library.
9160 no_undefined_flag=' ${wl}-bernotok'
9161 allow_undefined_flag=' ${wl}-berok'
9162 if test "$with_gnu_ld" = yes; then
9163 # We only use this code for GNU lds that support --whole-archive.
9164 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9165 else
9166 # Exported symbols can be pulled into shared objects from archives
9167 whole_archive_flag_spec='$convenience'
9168 fi
9169 archive_cmds_need_lc=yes
9170 # This is similar to how AIX traditionally builds its shared libraries.
9171 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9172 fi
9173 fi
9174 ;;
9175
9176 amigaos*)
9177 case $host_cpu in
9178 powerpc)
9179 # see comment about AmigaOS4 .so support
9180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9181 archive_expsym_cmds=''
9182 ;;
9183 m68k)
9184 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)'
9185 hardcode_libdir_flag_spec='-L$libdir'
9186 hardcode_minus_L=yes
9187 ;;
9188 esac
9189 ;;
9190
9191 bsdi[45]*)
9192 export_dynamic_flag_spec=-rdynamic
9193 ;;
9194
9195 cygwin* | mingw* | pw32* | cegcc*)
9196 # When not using gcc, we currently assume that we are using
9197 # Microsoft Visual C++.
9198 # hardcode_libdir_flag_spec is actually meaningless, as there is
9199 # no search path for DLLs.
9200 case $cc_basename in
9201 cl*)
9202 # Native MSVC
9203 hardcode_libdir_flag_spec=' '
9204 allow_undefined_flag=unsupported
9205 always_export_symbols=yes
9206 file_list_spec='@'
9207 # Tell ltmain to make .lib files, not .a files.
9208 libext=lib
9209 # Tell ltmain to make .dll files, not .so files.
9210 shrext_cmds=".dll"
9211 # FIXME: Setting linknames here is a bad hack.
9212 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9214 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9215 else
9216 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9217 fi~
9218 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9219 linknames='
9220 # The linker will not automatically build a static lib if we build a DLL.
9221 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9222 enable_shared_with_static_runtimes=yes
9223 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9225 # Don't use ranlib
9226 old_postinstall_cmds='chmod 644 $oldlib'
9227 postlink_cmds='lt_outputfile="@OUTPUT@"~
9228 lt_tool_outputfile="@TOOL_OUTPUT@"~
9229 case $lt_outputfile in
9230 *.exe|*.EXE) ;;
9231 *)
9232 lt_outputfile="$lt_outputfile.exe"
9233 lt_tool_outputfile="$lt_tool_outputfile.exe"
9234 ;;
9235 esac~
9236 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9237 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9238 $RM "$lt_outputfile.manifest";
9239 fi'
9240 ;;
9241 *)
9242 # Assume MSVC wrapper
9243 hardcode_libdir_flag_spec=' '
9244 allow_undefined_flag=unsupported
9245 # Tell ltmain to make .lib files, not .a files.
9246 libext=lib
9247 # Tell ltmain to make .dll files, not .so files.
9248 shrext_cmds=".dll"
9249 # FIXME: Setting linknames here is a bad hack.
9250 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9251 # The linker will automatically build a .lib file if we build a DLL.
9252 old_archive_from_new_cmds='true'
9253 # FIXME: Should let the user specify the lib program.
9254 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9255 enable_shared_with_static_runtimes=yes
9256 ;;
9257 esac
9258 ;;
9259
9260 darwin* | rhapsody*)
9261
9262
9263 archive_cmds_need_lc=no
9264 hardcode_direct=no
9265 hardcode_automatic=yes
9266 hardcode_shlibpath_var=unsupported
9267 if test "$lt_cv_ld_force_load" = "yes"; then
9268 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\"`'
9269
9270 else
9271 whole_archive_flag_spec=''
9272 fi
9273 link_all_deplibs=yes
9274 allow_undefined_flag="$_lt_dar_allow_undefined"
9275 case $cc_basename in
9276 ifort*) _lt_dar_can_shared=yes ;;
9277 *) _lt_dar_can_shared=$GCC ;;
9278 esac
9279 if test "$_lt_dar_can_shared" = "yes"; then
9280 output_verbose_link_cmd=func_echo_all
9281 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9282 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9283 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}"
9284 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}"
9285
9286 else
9287 ld_shlibs=no
9288 fi
9289
9290 ;;
9291
9292 dgux*)
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_shlibpath_var=no
9296 ;;
9297
9298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9299 # support. Future versions do this automatically, but an explicit c++rt0.o
9300 # does not break anything, and helps significantly (at the cost of a little
9301 # extra space).
9302 freebsd2.2*)
9303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9304 hardcode_libdir_flag_spec='-R$libdir'
9305 hardcode_direct=yes
9306 hardcode_shlibpath_var=no
9307 ;;
9308
9309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9310 freebsd2.*)
9311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_direct=yes
9313 hardcode_minus_L=yes
9314 hardcode_shlibpath_var=no
9315 ;;
9316
9317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9318 freebsd* | dragonfly*)
9319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9320 hardcode_libdir_flag_spec='-R$libdir'
9321 hardcode_direct=yes
9322 hardcode_shlibpath_var=no
9323 ;;
9324
9325 hpux9*)
9326 if test "$GCC" = yes; then
9327 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9328 else
9329 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9330 fi
9331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9332 hardcode_libdir_separator=:
9333 hardcode_direct=yes
9334
9335 # hardcode_minus_L: Not really in the search PATH,
9336 # but as the default location of the library.
9337 hardcode_minus_L=yes
9338 export_dynamic_flag_spec='${wl}-E'
9339 ;;
9340
9341 hpux10*)
9342 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9343 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9344 else
9345 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9346 fi
9347 if test "$with_gnu_ld" = no; then
9348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9349 hardcode_libdir_separator=:
9350 hardcode_direct=yes
9351 hardcode_direct_absolute=yes
9352 export_dynamic_flag_spec='${wl}-E'
9353 # hardcode_minus_L: Not really in the search PATH,
9354 # but as the default location of the library.
9355 hardcode_minus_L=yes
9356 fi
9357 ;;
9358
9359 hpux11*)
9360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9361 case $host_cpu in
9362 hppa*64*)
9363 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 ;;
9365 ia64*)
9366 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9367 ;;
9368 *)
9369 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370 ;;
9371 esac
9372 else
9373 case $host_cpu in
9374 hppa*64*)
9375 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 ;;
9377 ia64*)
9378 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9379 ;;
9380 *)
9381
9382 # Older versions of the 11.00 compiler do not understand -b yet
9383 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9385 $as_echo_n "checking if $CC understands -b... " >&6; }
9386 if ${lt_cv_prog_compiler__b+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 lt_cv_prog_compiler__b=no
9390 save_LDFLAGS="$LDFLAGS"
9391 LDFLAGS="$LDFLAGS -b"
9392 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9394 # The linker can only warn and ignore the option if not recognized
9395 # So say no if there are warnings
9396 if test -s conftest.err; then
9397 # Append any errors to the config.log.
9398 cat conftest.err 1>&5
9399 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9401 if diff conftest.exp conftest.er2 >/dev/null; then
9402 lt_cv_prog_compiler__b=yes
9403 fi
9404 else
9405 lt_cv_prog_compiler__b=yes
9406 fi
9407 fi
9408 $RM -r conftest*
9409 LDFLAGS="$save_LDFLAGS"
9410
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9413 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9414
9415 if test x"$lt_cv_prog_compiler__b" = xyes; then
9416 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417 else
9418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419 fi
9420
9421 ;;
9422 esac
9423 fi
9424 if test "$with_gnu_ld" = no; then
9425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426 hardcode_libdir_separator=:
9427
9428 case $host_cpu in
9429 hppa*64*|ia64*)
9430 hardcode_direct=no
9431 hardcode_shlibpath_var=no
9432 ;;
9433 *)
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9437
9438 # hardcode_minus_L: Not really in the search PATH,
9439 # but as the default location of the library.
9440 hardcode_minus_L=yes
9441 ;;
9442 esac
9443 fi
9444 ;;
9445
9446 irix5* | irix6* | nonstopux*)
9447 if test "$GCC" = yes; then
9448 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'
9449 # Try to use the -exported_symbol ld option, if it does not
9450 # work, assume that -exports_file does not work either and
9451 # implicitly export all symbols.
9452 # This should be the same for all languages, so no per-tag cache variable.
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9454 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9455 if ${lt_cv_irix_exported_symbol+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 save_LDFLAGS="$LDFLAGS"
9459 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 int foo (void) { return 0; }
9463 _ACEOF
9464 if ac_fn_c_try_link "$LINENO"; then :
9465 lt_cv_irix_exported_symbol=yes
9466 else
9467 lt_cv_irix_exported_symbol=no
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LDFLAGS="$save_LDFLAGS"
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9474 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9475 if test "$lt_cv_irix_exported_symbol" = yes; then
9476 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'
9477 fi
9478 else
9479 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'
9480 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'
9481 fi
9482 archive_cmds_need_lc='no'
9483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9484 hardcode_libdir_separator=:
9485 inherit_rpath=yes
9486 link_all_deplibs=yes
9487 ;;
9488
9489 netbsd*)
9490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9492 else
9493 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9494 fi
9495 hardcode_libdir_flag_spec='-R$libdir'
9496 hardcode_direct=yes
9497 hardcode_shlibpath_var=no
9498 ;;
9499
9500 newsos6)
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_direct=yes
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 hardcode_shlibpath_var=no
9506 ;;
9507
9508 *nto* | *qnx*)
9509 ;;
9510
9511 openbsd*)
9512 if test -f /usr/libexec/ld.so; then
9513 hardcode_direct=yes
9514 hardcode_shlibpath_var=no
9515 hardcode_direct_absolute=yes
9516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9519 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9520 export_dynamic_flag_spec='${wl}-E'
9521 else
9522 case $host_os in
9523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525 hardcode_libdir_flag_spec='-R$libdir'
9526 ;;
9527 *)
9528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9530 ;;
9531 esac
9532 fi
9533 else
9534 ld_shlibs=no
9535 fi
9536 ;;
9537
9538 os2*)
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_minus_L=yes
9541 allow_undefined_flag=unsupported
9542 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9543 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9544 ;;
9545
9546 osf3*)
9547 if test "$GCC" = yes; then
9548 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9549 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'
9550 else
9551 allow_undefined_flag=' -expect_unresolved \*'
9552 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'
9553 fi
9554 archive_cmds_need_lc='no'
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 hardcode_libdir_separator=:
9557 ;;
9558
9559 osf4* | osf5*) # as osf3* with the addition of -msym flag
9560 if test "$GCC" = yes; then
9561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9562 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'
9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564 else
9565 allow_undefined_flag=' -expect_unresolved \*'
9566 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'
9567 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~
9568 $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'
9569
9570 # Both c and cxx compiler support -rpath directly
9571 hardcode_libdir_flag_spec='-rpath $libdir'
9572 fi
9573 archive_cmds_need_lc='no'
9574 hardcode_libdir_separator=:
9575 ;;
9576
9577 solaris*)
9578 no_undefined_flag=' -z defs'
9579 if test "$GCC" = yes; then
9580 wlarc='${wl}'
9581 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9583 $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'
9584 else
9585 case `$CC -V 2>&1` in
9586 *"Compilers 5.0"*)
9587 wlarc=''
9588 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9591 ;;
9592 *)
9593 wlarc='${wl}'
9594 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9596 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9597 ;;
9598 esac
9599 fi
9600 hardcode_libdir_flag_spec='-R$libdir'
9601 hardcode_shlibpath_var=no
9602 case $host_os in
9603 solaris2.[0-5] | solaris2.[0-5].*) ;;
9604 *)
9605 # The compiler driver will combine and reorder linker options,
9606 # but understands `-z linker_flag'. GCC discards it without `$wl',
9607 # but is careful enough not to reorder.
9608 # Supported since Solaris 2.6 (maybe 2.5.1?)
9609 if test "$GCC" = yes; then
9610 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9611 else
9612 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9613 fi
9614 ;;
9615 esac
9616 link_all_deplibs=yes
9617 ;;
9618
9619 sunos4*)
9620 if test "x$host_vendor" = xsequent; then
9621 # Use $CC to link under sequent, because it throws in some extra .o
9622 # files that make .init and .fini sections work.
9623 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9624 else
9625 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9626 fi
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_direct=yes
9629 hardcode_minus_L=yes
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 sysv4)
9634 case $host_vendor in
9635 sni)
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_direct=yes # is this really true???
9638 ;;
9639 siemens)
9640 ## LD is ld it makes a PLAMLIB
9641 ## CC just makes a GrossModule.
9642 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9643 reload_cmds='$CC -r -o $output$reload_objs'
9644 hardcode_direct=no
9645 ;;
9646 motorola)
9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9649 ;;
9650 esac
9651 runpath_var='LD_RUN_PATH'
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 sysv4.3*)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_shlibpath_var=no
9658 export_dynamic_flag_spec='-Bexport'
9659 ;;
9660
9661 sysv4*MP*)
9662 if test -d /usr/nec; then
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_shlibpath_var=no
9665 runpath_var=LD_RUN_PATH
9666 hardcode_runpath_var=yes
9667 ld_shlibs=yes
9668 fi
9669 ;;
9670
9671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9672 no_undefined_flag='${wl}-z,text'
9673 archive_cmds_need_lc=no
9674 hardcode_shlibpath_var=no
9675 runpath_var='LD_RUN_PATH'
9676
9677 if test "$GCC" = yes; then
9678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 fi
9684 ;;
9685
9686 sysv5* | sco3.2v5* | sco5v6*)
9687 # Note: We can NOT use -z defs as we might desire, because we do not
9688 # link with -lc, and that would cause any symbols used from libc to
9689 # always be unresolved, which means just about no library would
9690 # ever link correctly. If we're not using GNU ld we use -z text
9691 # though, which does catch some bad symbols but isn't as heavy-handed
9692 # as -z defs.
9693 no_undefined_flag='${wl}-z,text'
9694 allow_undefined_flag='${wl}-z,nodefs'
9695 archive_cmds_need_lc=no
9696 hardcode_shlibpath_var=no
9697 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9698 hardcode_libdir_separator=':'
9699 link_all_deplibs=yes
9700 export_dynamic_flag_spec='${wl}-Bexport'
9701 runpath_var='LD_RUN_PATH'
9702
9703 if test "$GCC" = yes; then
9704 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 else
9707 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 fi
9710 ;;
9711
9712 uts4*)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 *)
9719 ld_shlibs=no
9720 ;;
9721 esac
9722
9723 if test x$host_vendor = xsni; then
9724 case $host in
9725 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9726 export_dynamic_flag_spec='${wl}-Blargedynsym'
9727 ;;
9728 esac
9729 fi
9730 fi
9731
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9733 $as_echo "$ld_shlibs" >&6; }
9734 test "$ld_shlibs" = no && can_build_shared=no
9735
9736 with_gnu_ld=$with_gnu_ld
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752 #
9753 # Do we need to explicitly link libc?
9754 #
9755 case "x$archive_cmds_need_lc" in
9756 x|xyes)
9757 # Assume -lc should be added
9758 archive_cmds_need_lc=yes
9759
9760 if test "$enable_shared" = yes && test "$GCC" = yes; then
9761 case $archive_cmds in
9762 *'~'*)
9763 # FIXME: we may have to deal with multi-command sequences.
9764 ;;
9765 '$CC '*)
9766 # Test whether the compiler implicitly links with -lc since on some
9767 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9768 # to ld, don't add -lc before -lgcc.
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9770 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9771 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 $RM conftest*
9775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9776
9777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9778 (eval $ac_compile) 2>&5
9779 ac_status=$?
9780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9781 test $ac_status = 0; } 2>conftest.err; then
9782 soname=conftest
9783 lib=conftest
9784 libobjs=conftest.$ac_objext
9785 deplibs=
9786 wl=$lt_prog_compiler_wl
9787 pic_flag=$lt_prog_compiler_pic
9788 compiler_flags=-v
9789 linker_flags=-v
9790 verstring=
9791 output_objdir=.
9792 libname=conftest
9793 lt_save_allow_undefined_flag=$allow_undefined_flag
9794 allow_undefined_flag=
9795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9796 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9797 ac_status=$?
9798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9799 test $ac_status = 0; }
9800 then
9801 lt_cv_archive_cmds_need_lc=no
9802 else
9803 lt_cv_archive_cmds_need_lc=yes
9804 fi
9805 allow_undefined_flag=$lt_save_allow_undefined_flag
9806 else
9807 cat conftest.err 1>&5
9808 fi
9809 $RM conftest*
9810
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9813 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9814 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9815 ;;
9816 esac
9817 fi
9818 ;;
9819 esac
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9974
9975 if test "$GCC" = yes; then
9976 case $host_os in
9977 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9978 *) lt_awk_arg="/^libraries:/" ;;
9979 esac
9980 case $host_os in
9981 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9982 *) lt_sed_strip_eq="s,=/,/,g" ;;
9983 esac
9984 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9985 case $lt_search_path_spec in
9986 *\;*)
9987 # if the path contains ";" then we assume it to be the separator
9988 # otherwise default to the standard path separator (i.e. ":") - it is
9989 # assumed that no part of a normal pathname contains ";" but that should
9990 # okay in the real world where ";" in dirpaths is itself problematic.
9991 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9992 ;;
9993 *)
9994 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9995 ;;
9996 esac
9997 # Ok, now we have the path, separated by spaces, we can step through it
9998 # and add multilib dir if necessary.
9999 lt_tmp_lt_search_path_spec=
10000 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10001 for lt_sys_path in $lt_search_path_spec; do
10002 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10003 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10004 else
10005 test -d "$lt_sys_path" && \
10006 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10007 fi
10008 done
10009 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10010 BEGIN {RS=" "; FS="/|\n";} {
10011 lt_foo="";
10012 lt_count=0;
10013 for (lt_i = NF; lt_i > 0; lt_i--) {
10014 if ($lt_i != "" && $lt_i != ".") {
10015 if ($lt_i == "..") {
10016 lt_count++;
10017 } else {
10018 if (lt_count == 0) {
10019 lt_foo="/" $lt_i lt_foo;
10020 } else {
10021 lt_count--;
10022 }
10023 }
10024 }
10025 }
10026 if (lt_foo != "") { lt_freq[lt_foo]++; }
10027 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10028 }'`
10029 # AWK program above erroneously prepends '/' to C:/dos/paths
10030 # for these hosts.
10031 case $host_os in
10032 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10033 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10034 esac
10035 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10036 else
10037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10038 fi
10039 library_names_spec=
10040 libname_spec='lib$name'
10041 soname_spec=
10042 shrext_cmds=".so"
10043 postinstall_cmds=
10044 postuninstall_cmds=
10045 finish_cmds=
10046 finish_eval=
10047 shlibpath_var=
10048 shlibpath_overrides_runpath=unknown
10049 version_type=none
10050 dynamic_linker="$host_os ld.so"
10051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10052 need_lib_prefix=unknown
10053 hardcode_into_libs=no
10054
10055 # when you set need_version to no, make sure it does not cause -set_version
10056 # flags to be left without arguments
10057 need_version=unknown
10058
10059 case $host_os in
10060 aix3*)
10061 version_type=linux # correct to gnu/linux during the next big refactor
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10063 shlibpath_var=LIBPATH
10064
10065 # AIX 3 has no versioning support, so we append a major version to the name.
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 ;;
10068
10069 aix[4-9]*)
10070 version_type=linux # correct to gnu/linux during the next big refactor
10071 need_lib_prefix=no
10072 need_version=no
10073 hardcode_into_libs=yes
10074 if test "$host_cpu" = ia64; then
10075 # AIX 5 supports IA64
10076 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 else
10079 # With GCC up to 2.95.x, collect2 would create an import file
10080 # for dependence libraries. The import file would start with
10081 # the line `#! .'. This would cause the generated library to
10082 # depend on `.', always an invalid library. This was fixed in
10083 # development snapshots of GCC prior to 3.0.
10084 case $host_os in
10085 aix4 | aix4.[01] | aix4.[01].*)
10086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10087 echo ' yes '
10088 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10089 :
10090 else
10091 can_build_shared=no
10092 fi
10093 ;;
10094 esac
10095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10096 # soname into executable. Probably we can add versioning support to
10097 # collect2, so additional links can be useful in future.
10098 if test "$aix_use_runtimelinking" = yes; then
10099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10100 # instead of lib<name>.a to let people know that these are not
10101 # typical AIX shared libraries.
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 else
10104 # We preserve .a as extension for shared libraries through AIX4.2
10105 # and later when we are not doing run time linking.
10106 library_names_spec='${libname}${release}.a $libname.a'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 fi
10109 shlibpath_var=LIBPATH
10110 fi
10111 ;;
10112
10113 amigaos*)
10114 case $host_cpu in
10115 powerpc)
10116 # Since July 2007 AmigaOS4 officially supports .so libraries.
10117 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 ;;
10120 m68k)
10121 library_names_spec='$libname.ixlibrary $libname.a'
10122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10123 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10124 ;;
10125 esac
10126 ;;
10127
10128 beos*)
10129 library_names_spec='${libname}${shared_ext}'
10130 dynamic_linker="$host_os ld.so"
10131 shlibpath_var=LIBRARY_PATH
10132 ;;
10133
10134 bsdi[45]*)
10135 version_type=linux # correct to gnu/linux during the next big refactor
10136 need_version=no
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10143 # the default ld.so.conf also contains /usr/contrib/lib and
10144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10145 # libtool to hard-code these into programs
10146 ;;
10147
10148 cygwin* | mingw* | pw32* | cegcc*)
10149 version_type=windows
10150 shrext_cmds=".dll"
10151 need_version=no
10152 need_lib_prefix=no
10153
10154 case $GCC,$cc_basename in
10155 yes,*)
10156 # gcc
10157 library_names_spec='$libname.dll.a'
10158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10159 postinstall_cmds='base_file=`basename \${file}`~
10160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10161 dldir=$destdir/`dirname \$dlpath`~
10162 test -d \$dldir || mkdir -p \$dldir~
10163 $install_prog $dir/$dlname \$dldir/$dlname~
10164 chmod a+x \$dldir/$dlname~
10165 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10166 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10167 fi'
10168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10169 dlpath=$dir/\$dldll~
10170 $RM \$dlpath'
10171 shlibpath_overrides_runpath=yes
10172
10173 case $host_os in
10174 cygwin*)
10175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177
10178 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10179 ;;
10180 mingw* | cegcc*)
10181 # MinGW DLLs use traditional 'lib' prefix
10182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183 ;;
10184 pw32*)
10185 # pw32 DLLs use 'pw' prefix rather than 'lib'
10186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10187 ;;
10188 esac
10189 dynamic_linker='Win32 ld.exe'
10190 ;;
10191
10192 *,cl*)
10193 # Native MSVC
10194 libname_spec='$name'
10195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10196 library_names_spec='${libname}.dll.lib'
10197
10198 case $build_os in
10199 mingw*)
10200 sys_lib_search_path_spec=
10201 lt_save_ifs=$IFS
10202 IFS=';'
10203 for lt_path in $LIB
10204 do
10205 IFS=$lt_save_ifs
10206 # Let DOS variable expansion print the short 8.3 style file name.
10207 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10208 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10209 done
10210 IFS=$lt_save_ifs
10211 # Convert to MSYS style.
10212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10213 ;;
10214 cygwin*)
10215 # Convert to unix form, then to dos form, then back to unix form
10216 # but this time dos style (no spaces!) so that the unix form looks
10217 # like /cygdrive/c/PROGRA~1:/cygdr...
10218 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10219 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10220 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10221 ;;
10222 *)
10223 sys_lib_search_path_spec="$LIB"
10224 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10225 # It is most probably a Windows format PATH.
10226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10227 else
10228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10229 fi
10230 # FIXME: find the short name or the path components, as spaces are
10231 # common. (e.g. "Program Files" -> "PROGRA~1")
10232 ;;
10233 esac
10234
10235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10236 postinstall_cmds='base_file=`basename \${file}`~
10237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10238 dldir=$destdir/`dirname \$dlpath`~
10239 test -d \$dldir || mkdir -p \$dldir~
10240 $install_prog $dir/$dlname \$dldir/$dlname'
10241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10242 dlpath=$dir/\$dldll~
10243 $RM \$dlpath'
10244 shlibpath_overrides_runpath=yes
10245 dynamic_linker='Win32 link.exe'
10246 ;;
10247
10248 *)
10249 # Assume MSVC wrapper
10250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10251 dynamic_linker='Win32 ld.exe'
10252 ;;
10253 esac
10254 # FIXME: first we should search . and the directory the executable is in
10255 shlibpath_var=PATH
10256 ;;
10257
10258 darwin* | rhapsody*)
10259 dynamic_linker="$host_os dyld"
10260 version_type=darwin
10261 need_lib_prefix=no
10262 need_version=no
10263 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10264 soname_spec='${libname}${release}${major}$shared_ext'
10265 shlibpath_overrides_runpath=yes
10266 shlibpath_var=DYLD_LIBRARY_PATH
10267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10268
10269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10271 ;;
10272
10273 dgux*)
10274 version_type=linux # correct to gnu/linux during the next big refactor
10275 need_lib_prefix=no
10276 need_version=no
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 ;;
10281
10282 freebsd* | dragonfly*)
10283 # DragonFly does not have aout. When/if they implement a new
10284 # versioning mechanism, adjust this.
10285 if test -x /usr/bin/objformat; then
10286 objformat=`/usr/bin/objformat`
10287 else
10288 case $host_os in
10289 freebsd[23].*) objformat=aout ;;
10290 *) objformat=elf ;;
10291 esac
10292 fi
10293 version_type=freebsd-$objformat
10294 case $version_type in
10295 freebsd-elf*)
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10297 need_version=no
10298 need_lib_prefix=no
10299 ;;
10300 freebsd-*)
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10302 need_version=yes
10303 ;;
10304 esac
10305 shlibpath_var=LD_LIBRARY_PATH
10306 case $host_os in
10307 freebsd2.*)
10308 shlibpath_overrides_runpath=yes
10309 ;;
10310 freebsd3.[01]* | freebsdelf3.[01]*)
10311 shlibpath_overrides_runpath=yes
10312 hardcode_into_libs=yes
10313 ;;
10314 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10315 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10316 shlibpath_overrides_runpath=no
10317 hardcode_into_libs=yes
10318 ;;
10319 *) # from 4.6 on, and DragonFly
10320 shlibpath_overrides_runpath=yes
10321 hardcode_into_libs=yes
10322 ;;
10323 esac
10324 ;;
10325
10326 gnu*)
10327 version_type=linux # correct to gnu/linux during the next big refactor
10328 need_lib_prefix=no
10329 need_version=no
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10335 ;;
10336
10337 haiku*)
10338 version_type=linux # correct to gnu/linux during the next big refactor
10339 need_lib_prefix=no
10340 need_version=no
10341 dynamic_linker="$host_os runtime_loader"
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LIBRARY_PATH
10345 shlibpath_overrides_runpath=yes
10346 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10347 hardcode_into_libs=yes
10348 ;;
10349
10350 hpux9* | hpux10* | hpux11*)
10351 # Give a soname corresponding to the major version so that dld.sl refuses to
10352 # link against other versions.
10353 version_type=sunos
10354 need_lib_prefix=no
10355 need_version=no
10356 case $host_cpu in
10357 ia64*)
10358 shrext_cmds='.so'
10359 hardcode_into_libs=yes
10360 dynamic_linker="$host_os dld.so"
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 if test "X$HPUX_IA64_MODE" = X32; then
10366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10367 else
10368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10369 fi
10370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10371 ;;
10372 hppa*64*)
10373 shrext_cmds='.sl'
10374 hardcode_into_libs=yes
10375 dynamic_linker="$host_os dld.sl"
10376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10382 ;;
10383 *)
10384 shrext_cmds='.sl'
10385 dynamic_linker="$host_os dld.sl"
10386 shlibpath_var=SHLIB_PATH
10387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 ;;
10391 esac
10392 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10393 postinstall_cmds='chmod 555 $lib'
10394 # or fails outright, so override atomically:
10395 install_override_mode=555
10396 ;;
10397
10398 interix[3-9]*)
10399 version_type=linux # correct to gnu/linux during the next big refactor
10400 need_lib_prefix=no
10401 need_version=no
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10403 soname_spec='${libname}${release}${shared_ext}$major'
10404 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 shlibpath_overrides_runpath=no
10407 hardcode_into_libs=yes
10408 ;;
10409
10410 irix5* | irix6* | nonstopux*)
10411 case $host_os in
10412 nonstopux*) version_type=nonstopux ;;
10413 *)
10414 if test "$lt_cv_prog_gnu_ld" = yes; then
10415 version_type=linux # correct to gnu/linux during the next big refactor
10416 else
10417 version_type=irix
10418 fi ;;
10419 esac
10420 need_lib_prefix=no
10421 need_version=no
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10424 case $host_os in
10425 irix5* | nonstopux*)
10426 libsuff= shlibsuff=
10427 ;;
10428 *)
10429 case $LD in # libtool.m4 will add one of these switches to LD
10430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10431 libsuff= shlibsuff= libmagic=32-bit;;
10432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10433 libsuff=32 shlibsuff=N32 libmagic=N32;;
10434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10436 *) libsuff= shlibsuff= libmagic=never-match;;
10437 esac
10438 ;;
10439 esac
10440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10441 shlibpath_overrides_runpath=no
10442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10444 hardcode_into_libs=yes
10445 ;;
10446
10447 # No shared lib support for Linux oldld, aout, or coff.
10448 linux*oldld* | linux*aout* | linux*coff*)
10449 dynamic_linker=no
10450 ;;
10451
10452 # This must be glibc/ELF.
10453 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10454 version_type=linux # correct to gnu/linux during the next big refactor
10455 need_lib_prefix=no
10456 need_version=no
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=no
10462
10463 # Some binutils ld are patched to set DT_RUNPATH
10464 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 lt_cv_shlibpath_overrides_runpath=no
10468 save_LDFLAGS=$LDFLAGS
10469 save_libdir=$libdir
10470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10474
10475 int
10476 main ()
10477 {
10478
10479 ;
10480 return 0;
10481 }
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"; then :
10484 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10485 lt_cv_shlibpath_overrides_runpath=yes
10486 fi
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490 LDFLAGS=$save_LDFLAGS
10491 libdir=$save_libdir
10492
10493 fi
10494
10495 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10496
10497 # This implies no fast_install, which is unacceptable.
10498 # Some rework will be needed to allow for fast_install
10499 # before this can be enabled.
10500 hardcode_into_libs=yes
10501
10502 # Add ABI-specific directories to the system library path.
10503 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10504
10505 # Append ld.so.conf contents to the search path
10506 if test -f /etc/ld.so.conf; then
10507 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' ' '`
10508 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10509
10510 fi
10511
10512 # We used to test for /lib/ld.so.1 and disable shared libraries on
10513 # powerpc, because MkLinux only supported shared libraries with the
10514 # GNU dynamic linker. Since this was broken with cross compilers,
10515 # most powerpc-linux boxes support dynamic linking these days and
10516 # people can always --disable-shared, the test was removed, and we
10517 # assume the GNU/Linux dynamic linker is in use.
10518 dynamic_linker='GNU/Linux ld.so'
10519 ;;
10520
10521 netbsd*)
10522 version_type=sunos
10523 need_lib_prefix=no
10524 need_version=no
10525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10528 dynamic_linker='NetBSD (a.out) ld.so'
10529 else
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 dynamic_linker='NetBSD ld.elf_so'
10533 fi
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=yes
10536 hardcode_into_libs=yes
10537 ;;
10538
10539 newsos6)
10540 version_type=linux # correct to gnu/linux during the next big refactor
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 ;;
10545
10546 *nto* | *qnx*)
10547 version_type=qnx
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=no
10554 hardcode_into_libs=yes
10555 dynamic_linker='ldqnx.so'
10556 ;;
10557
10558 openbsd*)
10559 version_type=sunos
10560 sys_lib_dlsearch_path_spec="/usr/lib"
10561 need_lib_prefix=no
10562 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10563 case $host_os in
10564 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10565 *) need_version=no ;;
10566 esac
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571 case $host_os in
10572 openbsd2.[89] | openbsd2.[89].*)
10573 shlibpath_overrides_runpath=no
10574 ;;
10575 *)
10576 shlibpath_overrides_runpath=yes
10577 ;;
10578 esac
10579 else
10580 shlibpath_overrides_runpath=yes
10581 fi
10582 ;;
10583
10584 os2*)
10585 libname_spec='$name'
10586 shrext_cmds=".dll"
10587 need_lib_prefix=no
10588 library_names_spec='$libname${shared_ext} $libname.a'
10589 dynamic_linker='OS/2 ld.exe'
10590 shlibpath_var=LIBPATH
10591 ;;
10592
10593 osf3* | osf4* | osf5*)
10594 version_type=osf
10595 need_lib_prefix=no
10596 need_version=no
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10601 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10602 ;;
10603
10604 rdos*)
10605 dynamic_linker=no
10606 ;;
10607
10608 solaris*)
10609 version_type=linux # correct to gnu/linux during the next big refactor
10610 need_lib_prefix=no
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes
10616 hardcode_into_libs=yes
10617 # ldd complains unless libraries are executable
10618 postinstall_cmds='chmod +x $lib'
10619 ;;
10620
10621 sunos4*)
10622 version_type=sunos
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=yes
10627 if test "$with_gnu_ld" = yes; then
10628 need_lib_prefix=no
10629 fi
10630 need_version=yes
10631 ;;
10632
10633 sysv4 | sysv4.3*)
10634 version_type=linux # correct to gnu/linux during the next big refactor
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 case $host_vendor in
10639 sni)
10640 shlibpath_overrides_runpath=no
10641 need_lib_prefix=no
10642 runpath_var=LD_RUN_PATH
10643 ;;
10644 siemens)
10645 need_lib_prefix=no
10646 ;;
10647 motorola)
10648 need_lib_prefix=no
10649 need_version=no
10650 shlibpath_overrides_runpath=no
10651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10652 ;;
10653 esac
10654 ;;
10655
10656 sysv4*MP*)
10657 if test -d /usr/nec ;then
10658 version_type=linux # correct to gnu/linux during the next big refactor
10659 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10660 soname_spec='$libname${shared_ext}.$major'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 fi
10663 ;;
10664
10665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10666 version_type=freebsd-elf
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10674 if test "$with_gnu_ld" = yes; then
10675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10676 else
10677 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10678 case $host_os in
10679 sco3.2v5*)
10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10681 ;;
10682 esac
10683 fi
10684 sys_lib_dlsearch_path_spec='/usr/lib'
10685 ;;
10686
10687 tpf*)
10688 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10689 version_type=linux # correct to gnu/linux during the next big refactor
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=no
10695 hardcode_into_libs=yes
10696 ;;
10697
10698 uts4*)
10699 version_type=linux # correct to gnu/linux during the next big refactor
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 ;;
10704
10705 *)
10706 dynamic_linker=no
10707 ;;
10708 esac
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10710 $as_echo "$dynamic_linker" >&6; }
10711 test "$dynamic_linker" = no && can_build_shared=no
10712
10713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10714 if test "$GCC" = yes; then
10715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10716 fi
10717
10718 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10719 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10720 fi
10721 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10722 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10723 fi
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10817 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10818 hardcode_action=
10819 if test -n "$hardcode_libdir_flag_spec" ||
10820 test -n "$runpath_var" ||
10821 test "X$hardcode_automatic" = "Xyes" ; then
10822
10823 # We can hardcode non-existent directories.
10824 if test "$hardcode_direct" != no &&
10825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10826 # have to relink, otherwise we might link with an installed library
10827 # when we should be linking with a yet-to-be-installed one
10828 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10829 test "$hardcode_minus_L" != no; then
10830 # Linking always hardcodes the temporary library directory.
10831 hardcode_action=relink
10832 else
10833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10834 hardcode_action=immediate
10835 fi
10836 else
10837 # We cannot hardcode anything, or else we can only hardcode existing
10838 # directories.
10839 hardcode_action=unsupported
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10842 $as_echo "$hardcode_action" >&6; }
10843
10844 if test "$hardcode_action" = relink ||
10845 test "$inherit_rpath" = yes; then
10846 # Fast installation is not supported
10847 enable_fast_install=no
10848 elif test "$shlibpath_overrides_runpath" = yes ||
10849 test "$enable_shared" = no; then
10850 # Fast installation is not necessary
10851 enable_fast_install=needless
10852 fi
10853
10854
10855
10856
10857
10858
10859 if test "x$enable_dlopen" != xyes; then
10860 enable_dlopen=unknown
10861 enable_dlopen_self=unknown
10862 enable_dlopen_self_static=unknown
10863 else
10864 lt_cv_dlopen=no
10865 lt_cv_dlopen_libs=
10866
10867 case $host_os in
10868 beos*)
10869 lt_cv_dlopen="load_add_on"
10870 lt_cv_dlopen_libs=
10871 lt_cv_dlopen_self=yes
10872 ;;
10873
10874 mingw* | pw32* | cegcc*)
10875 lt_cv_dlopen="LoadLibrary"
10876 lt_cv_dlopen_libs=
10877 ;;
10878
10879 cygwin*)
10880 lt_cv_dlopen="dlopen"
10881 lt_cv_dlopen_libs=
10882 ;;
10883
10884 darwin*)
10885 # if libdl is installed we need to link against it
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10887 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10888 if ${ac_cv_lib_dl_dlopen+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-ldl $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char dlopen ();
10903 int
10904 main ()
10905 {
10906 return dlopen ();
10907 ;
10908 return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_lib_dl_dlopen=yes
10913 else
10914 ac_cv_lib_dl_dlopen=no
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10921 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10922 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10924 else
10925
10926 lt_cv_dlopen="dyld"
10927 lt_cv_dlopen_libs=
10928 lt_cv_dlopen_self=yes
10929
10930 fi
10931
10932 ;;
10933
10934 *)
10935 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10936 if test "x$ac_cv_func_shl_load" = xyes; then :
10937 lt_cv_dlopen="shl_load"
10938 else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10940 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10941 if ${ac_cv_lib_dld_shl_load+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-ldld $LIBS"
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char shl_load ();
10956 int
10957 main ()
10958 {
10959 return shl_load ();
10960 ;
10961 return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 ac_cv_lib_dld_shl_load=yes
10966 else
10967 ac_cv_lib_dld_shl_load=no
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10974 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10975 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10976 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10977 else
10978 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10979 if test "x$ac_cv_func_dlopen" = xyes; then :
10980 lt_cv_dlopen="dlopen"
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10983 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10984 if ${ac_cv_lib_dl_dlopen+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-ldl $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char dlopen ();
10999 int
11000 main ()
11001 {
11002 return dlopen ();
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_dl_dlopen=yes
11009 else
11010 ac_cv_lib_dl_dlopen=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11017 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11018 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11022 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11023 if ${ac_cv_lib_svld_dlopen+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-lsvld $LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char dlopen ();
11038 int
11039 main ()
11040 {
11041 return dlopen ();
11042 ;
11043 return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_svld_dlopen=yes
11048 else
11049 ac_cv_lib_svld_dlopen=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11056 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11057 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11059 else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11061 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11062 if ${ac_cv_lib_dld_dld_link+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 ac_check_lib_save_LIBS=$LIBS
11066 LIBS="-ldld $LIBS"
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char dld_link ();
11077 int
11078 main ()
11079 {
11080 return dld_link ();
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 ac_cv_lib_dld_dld_link=yes
11087 else
11088 ac_cv_lib_dld_dld_link=no
11089 fi
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11093 fi
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11095 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11096 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11097 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11098 fi
11099
11100
11101 fi
11102
11103
11104 fi
11105
11106
11107 fi
11108
11109
11110 fi
11111
11112
11113 fi
11114
11115 ;;
11116 esac
11117
11118 if test "x$lt_cv_dlopen" != xno; then
11119 enable_dlopen=yes
11120 else
11121 enable_dlopen=no
11122 fi
11123
11124 case $lt_cv_dlopen in
11125 dlopen)
11126 save_CPPFLAGS="$CPPFLAGS"
11127 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11128
11129 save_LDFLAGS="$LDFLAGS"
11130 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11131
11132 save_LIBS="$LIBS"
11133 LIBS="$lt_cv_dlopen_libs $LIBS"
11134
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11136 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11137 if ${lt_cv_dlopen_self+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 if test "$cross_compiling" = yes; then :
11141 lt_cv_dlopen_self=cross
11142 else
11143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11144 lt_status=$lt_dlunknown
11145 cat > conftest.$ac_ext <<_LT_EOF
11146 #line $LINENO "configure"
11147 #include "confdefs.h"
11148
11149 #if HAVE_DLFCN_H
11150 #include <dlfcn.h>
11151 #endif
11152
11153 #include <stdio.h>
11154
11155 #ifdef RTLD_GLOBAL
11156 # define LT_DLGLOBAL RTLD_GLOBAL
11157 #else
11158 # ifdef DL_GLOBAL
11159 # define LT_DLGLOBAL DL_GLOBAL
11160 # else
11161 # define LT_DLGLOBAL 0
11162 # endif
11163 #endif
11164
11165 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11166 find out it does not work in some platform. */
11167 #ifndef LT_DLLAZY_OR_NOW
11168 # ifdef RTLD_LAZY
11169 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11170 # else
11171 # ifdef DL_LAZY
11172 # define LT_DLLAZY_OR_NOW DL_LAZY
11173 # else
11174 # ifdef RTLD_NOW
11175 # define LT_DLLAZY_OR_NOW RTLD_NOW
11176 # else
11177 # ifdef DL_NOW
11178 # define LT_DLLAZY_OR_NOW DL_NOW
11179 # else
11180 # define LT_DLLAZY_OR_NOW 0
11181 # endif
11182 # endif
11183 # endif
11184 # endif
11185 #endif
11186
11187 /* When -fvisbility=hidden is used, assume the code has been annotated
11188 correspondingly for the symbols needed. */
11189 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11190 int fnord () __attribute__((visibility("default")));
11191 #endif
11192
11193 int fnord () { return 42; }
11194 int main ()
11195 {
11196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11197 int status = $lt_dlunknown;
11198
11199 if (self)
11200 {
11201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11202 else
11203 {
11204 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11205 else puts (dlerror ());
11206 }
11207 /* dlclose (self); */
11208 }
11209 else
11210 puts (dlerror ());
11211
11212 return status;
11213 }
11214 _LT_EOF
11215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11216 (eval $ac_link) 2>&5
11217 ac_status=$?
11218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11219 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11220 (./conftest; exit; ) >&5 2>/dev/null
11221 lt_status=$?
11222 case x$lt_status in
11223 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11224 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11225 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11226 esac
11227 else :
11228 # compilation failed
11229 lt_cv_dlopen_self=no
11230 fi
11231 fi
11232 rm -fr conftest*
11233
11234
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11237 $as_echo "$lt_cv_dlopen_self" >&6; }
11238
11239 if test "x$lt_cv_dlopen_self" = xyes; then
11240 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11242 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11243 if ${lt_cv_dlopen_self_static+:} false; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 if test "$cross_compiling" = yes; then :
11247 lt_cv_dlopen_self_static=cross
11248 else
11249 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11250 lt_status=$lt_dlunknown
11251 cat > conftest.$ac_ext <<_LT_EOF
11252 #line $LINENO "configure"
11253 #include "confdefs.h"
11254
11255 #if HAVE_DLFCN_H
11256 #include <dlfcn.h>
11257 #endif
11258
11259 #include <stdio.h>
11260
11261 #ifdef RTLD_GLOBAL
11262 # define LT_DLGLOBAL RTLD_GLOBAL
11263 #else
11264 # ifdef DL_GLOBAL
11265 # define LT_DLGLOBAL DL_GLOBAL
11266 # else
11267 # define LT_DLGLOBAL 0
11268 # endif
11269 #endif
11270
11271 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11272 find out it does not work in some platform. */
11273 #ifndef LT_DLLAZY_OR_NOW
11274 # ifdef RTLD_LAZY
11275 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11276 # else
11277 # ifdef DL_LAZY
11278 # define LT_DLLAZY_OR_NOW DL_LAZY
11279 # else
11280 # ifdef RTLD_NOW
11281 # define LT_DLLAZY_OR_NOW RTLD_NOW
11282 # else
11283 # ifdef DL_NOW
11284 # define LT_DLLAZY_OR_NOW DL_NOW
11285 # else
11286 # define LT_DLLAZY_OR_NOW 0
11287 # endif
11288 # endif
11289 # endif
11290 # endif
11291 #endif
11292
11293 /* When -fvisbility=hidden is used, assume the code has been annotated
11294 correspondingly for the symbols needed. */
11295 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11296 int fnord () __attribute__((visibility("default")));
11297 #endif
11298
11299 int fnord () { return 42; }
11300 int main ()
11301 {
11302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11303 int status = $lt_dlunknown;
11304
11305 if (self)
11306 {
11307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11308 else
11309 {
11310 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11311 else puts (dlerror ());
11312 }
11313 /* dlclose (self); */
11314 }
11315 else
11316 puts (dlerror ());
11317
11318 return status;
11319 }
11320 _LT_EOF
11321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11322 (eval $ac_link) 2>&5
11323 ac_status=$?
11324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11325 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11326 (./conftest; exit; ) >&5 2>/dev/null
11327 lt_status=$?
11328 case x$lt_status in
11329 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11330 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11331 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11332 esac
11333 else :
11334 # compilation failed
11335 lt_cv_dlopen_self_static=no
11336 fi
11337 fi
11338 rm -fr conftest*
11339
11340
11341 fi
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11343 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11344 fi
11345
11346 CPPFLAGS="$save_CPPFLAGS"
11347 LDFLAGS="$save_LDFLAGS"
11348 LIBS="$save_LIBS"
11349 ;;
11350 esac
11351
11352 case $lt_cv_dlopen_self in
11353 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11354 *) enable_dlopen_self=unknown ;;
11355 esac
11356
11357 case $lt_cv_dlopen_self_static in
11358 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11359 *) enable_dlopen_self_static=unknown ;;
11360 esac
11361 fi
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379 striplib=
11380 old_striplib=
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11382 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11383 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11385 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11387 $as_echo "yes" >&6; }
11388 else
11389 # FIXME - insert some real tests, host_os isn't really good enough
11390 case $host_os in
11391 darwin*)
11392 if test -n "$STRIP" ; then
11393 striplib="$STRIP -x"
11394 old_striplib="$STRIP -S"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11396 $as_echo "yes" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11400 fi
11401 ;;
11402 *)
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 ;;
11406 esac
11407 fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420 # Report which library types will actually be built
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11422 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11424 $as_echo "$can_build_shared" >&6; }
11425
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11427 $as_echo_n "checking whether to build shared libraries... " >&6; }
11428 test "$can_build_shared" = "no" && enable_shared=no
11429
11430 # On AIX, shared libraries and static libraries use the same namespace, and
11431 # are all built from PIC.
11432 case $host_os in
11433 aix3*)
11434 test "$enable_shared" = yes && enable_static=no
11435 if test -n "$RANLIB"; then
11436 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11437 postinstall_cmds='$RANLIB $lib'
11438 fi
11439 ;;
11440
11441 aix[4-9]*)
11442 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11443 test "$enable_shared" = yes && enable_static=no
11444 fi
11445 ;;
11446 esac
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11448 $as_echo "$enable_shared" >&6; }
11449
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11451 $as_echo_n "checking whether to build static libraries... " >&6; }
11452 # Make sure either enable_shared or enable_static is yes.
11453 test "$enable_shared" = yes || enable_static=yes
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11455 $as_echo "$enable_static" >&6; }
11456
11457
11458
11459
11460 fi
11461 ac_ext=c
11462 ac_cpp='$CPP $CPPFLAGS'
11463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11466
11467 CC="$lt_save_CC"
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483 ac_config_commands="$ac_config_commands libtool"
11484
11485
11486
11487
11488 # Only expand once:
11489
11490
11491
11492
11493 # dlopen library
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
11495 $as_echo_n "checking for dlsym in -ldl... " >&6; }
11496 if ${ac_cv_lib_dl_dlsym+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 ac_check_lib_save_LIBS=$LIBS
11500 LIBS="-ldl $LIBS"
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char dlsym ();
11511 int
11512 main ()
11513 {
11514 return dlsym ();
11515 ;
11516 return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_lib_dl_dlsym=yes
11521 else
11522 ac_cv_lib_dl_dlsym=no
11523 fi
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
11529 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
11530 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
11531
11532 DL_LIBS=-ldl
11533
11534
11535 else
11536
11537 as_fn_error $? "cannot find libdl" "$LINENO" 5
11538
11539 fi
11540
11541
11542 # Set lcmaps variables
11543
11544
11545 # Check whether --with-lcmaps-prefix was given.
11546 if test "${with_lcmaps_prefix+set}" = set; then :
11547 withval=$with_lcmaps_prefix; ac_lcmaps_prefix=$withval
11548 else
11549 ac_lcmaps_prefix=/usr
11550 fi
11551
11552
11553
11554 # Check whether --with-lcmaps-includes was given.
11555 if test "${with_lcmaps_includes+set}" = set; then :
11556 withval=$with_lcmaps_includes; ac_lcmaps_includes=$withval
11557 else
11558 ac_lcmaps_includes=$ac_lcmaps_prefix/include
11559 fi
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11571 if test -n "$ac_tool_prefix"; then
11572 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11573 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 case $PKG_CONFIG in
11580 [\\/]* | ?:[\\/]*)
11581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11582 ;;
11583 *)
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11594 fi
11595 done
11596 done
11597 IFS=$as_save_IFS
11598
11599 ;;
11600 esac
11601 fi
11602 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11603 if test -n "$PKG_CONFIG"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11605 $as_echo "$PKG_CONFIG" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 fi
11610
11611
11612 fi
11613 if test -z "$ac_cv_path_PKG_CONFIG"; then
11614 ac_pt_PKG_CONFIG=$PKG_CONFIG
11615 # Extract the first word of "pkg-config", so it can be a program name with args.
11616 set dummy pkg-config; ac_word=$2
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618 $as_echo_n "checking for $ac_word... " >&6; }
11619 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 case $ac_pt_PKG_CONFIG in
11623 [\\/]* | ?:[\\/]*)
11624 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11625 ;;
11626 *)
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636 break 2
11637 fi
11638 done
11639 done
11640 IFS=$as_save_IFS
11641
11642 ;;
11643 esac
11644 fi
11645 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11646 if test -n "$ac_pt_PKG_CONFIG"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11648 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11652 fi
11653
11654 if test "x$ac_pt_PKG_CONFIG" = x; then
11655 PKG_CONFIG=""
11656 else
11657 case $cross_compiling:$ac_tool_warned in
11658 yes:)
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11661 ac_tool_warned=yes ;;
11662 esac
11663 PKG_CONFIG=$ac_pt_PKG_CONFIG
11664 fi
11665 else
11666 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11667 fi
11668
11669 fi
11670 if test -n "$PKG_CONFIG"; then
11671 _pkg_min_version=0.9.0
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11673 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11674 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676 $as_echo "yes" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11680 PKG_CONFIG=""
11681 fi
11682 fi
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699 if test "x$with_lcmaps_prefix" = "x" -a "x$with_lcmaps_includes" = "x" ; then
11700
11701 pkg_failed=no
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE" >&5
11703 $as_echo_n "checking for LCMAPS_BASIC_INTERFACE... " >&6; }
11704
11705 if test -n "$LCMAPS_BASIC_INTERFACE_CFLAGS"; then
11706 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS="$LCMAPS_BASIC_INTERFACE_CFLAGS"
11707 elif test -n "$PKG_CONFIG"; then
11708 if test -n "$PKG_CONFIG" && \
11709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
11710 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
11711 ac_status=$?
11712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11713 test $ac_status = 0; }; then
11714 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-basic-interface " 2>/dev/null`
11715 test "x$?" != "x0" && pkg_failed=yes
11716 else
11717 pkg_failed=yes
11718 fi
11719 else
11720 pkg_failed=untried
11721 fi
11722 if test -n "$LCMAPS_BASIC_INTERFACE_LIBS"; then
11723 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS="$LCMAPS_BASIC_INTERFACE_LIBS"
11724 elif test -n "$PKG_CONFIG"; then
11725 if test -n "$PKG_CONFIG" && \
11726 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
11727 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
11728 ac_status=$?
11729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11730 test $ac_status = 0; }; then
11731 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-basic-interface " 2>/dev/null`
11732 test "x$?" != "x0" && pkg_failed=yes
11733 else
11734 pkg_failed=yes
11735 fi
11736 else
11737 pkg_failed=untried
11738 fi
11739
11740
11741
11742 if test $pkg_failed = yes; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11745
11746 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11747 _pkg_short_errors_supported=yes
11748 else
11749 _pkg_short_errors_supported=no
11750 fi
11751 if test $_pkg_short_errors_supported = yes; then
11752 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
11753 else
11754 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
11755 fi
11756 # Put the nasty error message in config.log where it belongs
11757 echo "$LCMAPS_BASIC_INTERFACE_PKG_ERRORS" >&5
11758
11759 have_lcmaps_basic_interface=no
11760 elif test $pkg_failed = untried; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763 have_lcmaps_basic_interface=no
11764 else
11765 LCMAPS_BASIC_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS
11766 LCMAPS_BASIC_INTERFACE_LIBS=$pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769 have_lcmaps_basic_interface=yes
11770 fi
11771 if test "x$have_lcmaps_basic_interface" = "xno" ; then
11772
11773 ac_save_CFLAGS=$CFLAGS
11774
11775 if test "x$ac_lcmaps_includes" != "x" ; then
11776 ac_try_CFLAGS="-I$ac_lcmaps_includes"
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes" >&5
11778 $as_echo_n "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes... " >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default" >&5
11781 $as_echo_n "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default... " >&6; }
11782 fi
11783
11784 CFLAGS="$ac_try_CFLAGS $CFLAGS"
11785
11786
11787
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790 #include <lcmaps/lcmaps_basic.h>
11791 #ifndef LCMAPS_API_MAJOR_VERSION
11792 #error LCMAPS API version is undefined, this should not happen for new-style interface
11793 #endif
11794 #if (LCMAPS_API_MAJOR_VERSION) < (0) || \
11795 ( (LCMAPS_API_MAJOR_VERSION) == (0) && \
11796 ( (LCMAPS_API_MINOR_VERSION) < (0) || \
11797 ( (LCMAPS_API_MINOR_VERSION) == (0) && \
11798 (LCMAPS_API_PATCH_VERSION) < (0) ) ) )
11799 #error LCMAPS API version older than 0.0.0
11800 #endif
11801 int main(void) {return 0;}
11802 _ACEOF
11803 if ac_fn_c_try_compile "$LINENO"; then :
11804 have_mod=yes
11805 else
11806 have_mod=no
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
11810 $as_echo "$have_mod" >&6; }
11811
11812
11813 if test "x$have_mod" = "xyes" ; then
11814 have_lcmaps_basic_interface=yes
11815 LCMAPS_BASIC_INTERFACE_CFLAGS=$ac_try_CFLAGS
11816 else
11817 have_lcmaps_basic_interface=no
11818 LCMAPS_BASIC_INTERFACE_CFLAGS=""
11819 fi
11820
11821 CFLAGS=$ac_save_CFLAGS
11822
11823
11824
11825 if test "x$have_lcmaps_basic_interface" = "xno" ; then
11826
11827 pkg_failed=no
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE" >&5
11829 $as_echo_n "checking for LCMAPS_INTERFACE... " >&6; }
11830
11831 if test -n "$LCMAPS_INTERFACE_CFLAGS"; then
11832 pkg_cv_LCMAPS_INTERFACE_CFLAGS="$LCMAPS_INTERFACE_CFLAGS"
11833 elif test -n "$PKG_CONFIG"; then
11834 if test -n "$PKG_CONFIG" && \
11835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
11836 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
11837 ac_status=$?
11838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11839 test $ac_status = 0; }; then
11840 pkg_cv_LCMAPS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-interface < 1.4.31" 2>/dev/null`
11841 test "x$?" != "x0" && pkg_failed=yes
11842 else
11843 pkg_failed=yes
11844 fi
11845 else
11846 pkg_failed=untried
11847 fi
11848 if test -n "$LCMAPS_INTERFACE_LIBS"; then
11849 pkg_cv_LCMAPS_INTERFACE_LIBS="$LCMAPS_INTERFACE_LIBS"
11850 elif test -n "$PKG_CONFIG"; then
11851 if test -n "$PKG_CONFIG" && \
11852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
11853 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
11854 ac_status=$?
11855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11856 test $ac_status = 0; }; then
11857 pkg_cv_LCMAPS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-interface < 1.4.31" 2>/dev/null`
11858 test "x$?" != "x0" && pkg_failed=yes
11859 else
11860 pkg_failed=yes
11861 fi
11862 else
11863 pkg_failed=untried
11864 fi
11865
11866
11867
11868 if test $pkg_failed = yes; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11871
11872 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11873 _pkg_short_errors_supported=yes
11874 else
11875 _pkg_short_errors_supported=no
11876 fi
11877 if test $_pkg_short_errors_supported = yes; then
11878 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
11879 else
11880 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
11881 fi
11882 # Put the nasty error message in config.log where it belongs
11883 echo "$LCMAPS_INTERFACE_PKG_ERRORS" >&5
11884
11885 have_lcmaps_basic_interface=no
11886 elif test $pkg_failed = untried; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889 have_lcmaps_basic_interface=no
11890 else
11891 LCMAPS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_INTERFACE_CFLAGS
11892 LCMAPS_INTERFACE_LIBS=$pkg_cv_LCMAPS_INTERFACE_LIBS
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11895 have_lcmaps_basic_interface=yes
11896 fi
11897 if test "x$have_lcmaps_basic_interface" = "xno" ; then
11898
11899 ac_save_CFLAGS=$CFLAGS
11900
11901 if test "x$ac_lcmaps_includes" != "x" ; then
11902 ac_try_CFLAGS="-I$ac_lcmaps_includes"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes" >&5
11904 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes... " >&6; }
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default" >&5
11907 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default... " >&6; }
11908 fi
11909
11910 CFLAGS="$ac_try_CFLAGS $CFLAGS"
11911
11912
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <lcmaps/lcmaps_version.h>
11916 int main(void) {return 0;}
11917 _ACEOF
11918 if ac_fn_c_try_compile "$LINENO"; then :
11919 have_mod=no
11920
11921 else
11922
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 #include <lcmaps/lcmaps_types.h>
11926 int main(void) {return 0;}
11927 _ACEOF
11928 if ac_fn_c_try_compile "$LINENO"; then :
11929 have_mod=yes
11930 else
11931 have_mod=no
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934
11935 fi
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
11938 $as_echo "$have_mod" >&6; }
11939
11940
11941 if test "x$have_mod" = "xyes" ; then
11942 have_lcmaps_basic_interface=yes
11943 LCMAPS_INTERFACE_CFLAGS=$ac_try_CFLAGS
11944 else
11945 have_lcmaps_basic_interface=no
11946 LCMAPS_INTERFACE_CFLAGS=""
11947 fi
11948
11949 CFLAGS=$ac_save_CFLAGS
11950
11951
11952 fi
11953 LCMAPS_BASIC_INTERFACE_CFLAGS=$LCMAPS_INTERFACE_CFLAGS
11954 fi
11955
11956 fi
11957 else
11958
11959 ac_save_CFLAGS=$CFLAGS
11960
11961 if test "x$ac_lcmaps_includes" != "x" ; then
11962 ac_try_CFLAGS="-I$ac_lcmaps_includes"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes" >&5
11964 $as_echo_n "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes... " >&6; }
11965 else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default" >&5
11967 $as_echo_n "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default... " >&6; }
11968 fi
11969
11970 CFLAGS="$ac_try_CFLAGS $CFLAGS"
11971
11972
11973
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #include <lcmaps/lcmaps_basic.h>
11977 #ifndef LCMAPS_API_MAJOR_VERSION
11978 #error LCMAPS API version is undefined, this should not happen for new-style interface
11979 #endif
11980 #if (LCMAPS_API_MAJOR_VERSION) < (0) || \
11981 ( (LCMAPS_API_MAJOR_VERSION) == (0) && \
11982 ( (LCMAPS_API_MINOR_VERSION) < (0) || \
11983 ( (LCMAPS_API_MINOR_VERSION) == (0) && \
11984 (LCMAPS_API_PATCH_VERSION) < (0) ) ) )
11985 #error LCMAPS API version older than 0.0.0
11986 #endif
11987 int main(void) {return 0;}
11988 _ACEOF
11989 if ac_fn_c_try_compile "$LINENO"; then :
11990 have_mod=yes
11991 else
11992 have_mod=no
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
11996 $as_echo "$have_mod" >&6; }
11997
11998
11999 if test "x$have_mod" = "xyes" ; then
12000 have_lcmaps_basic_interface=yes
12001 LCMAPS_BASIC_INTERFACE_CFLAGS=$ac_try_CFLAGS
12002 else
12003 have_lcmaps_basic_interface=no
12004 LCMAPS_BASIC_INTERFACE_CFLAGS=""
12005 fi
12006
12007 CFLAGS=$ac_save_CFLAGS
12008
12009
12010 if test "x$have_lcmaps_basic_interface" = "xno" ; then
12011
12012 pkg_failed=no
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE" >&5
12014 $as_echo_n "checking for LCMAPS_BASIC_INTERFACE... " >&6; }
12015
12016 if test -n "$LCMAPS_BASIC_INTERFACE_CFLAGS"; then
12017 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS="$LCMAPS_BASIC_INTERFACE_CFLAGS"
12018 elif test -n "$PKG_CONFIG"; then
12019 if test -n "$PKG_CONFIG" && \
12020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
12021 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
12022 ac_status=$?
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; }; then
12025 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-basic-interface " 2>/dev/null`
12026 test "x$?" != "x0" && pkg_failed=yes
12027 else
12028 pkg_failed=yes
12029 fi
12030 else
12031 pkg_failed=untried
12032 fi
12033 if test -n "$LCMAPS_BASIC_INTERFACE_LIBS"; then
12034 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS="$LCMAPS_BASIC_INTERFACE_LIBS"
12035 elif test -n "$PKG_CONFIG"; then
12036 if test -n "$PKG_CONFIG" && \
12037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
12038 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
12039 ac_status=$?
12040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12041 test $ac_status = 0; }; then
12042 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-basic-interface " 2>/dev/null`
12043 test "x$?" != "x0" && pkg_failed=yes
12044 else
12045 pkg_failed=yes
12046 fi
12047 else
12048 pkg_failed=untried
12049 fi
12050
12051
12052
12053 if test $pkg_failed = yes; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056
12057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12058 _pkg_short_errors_supported=yes
12059 else
12060 _pkg_short_errors_supported=no
12061 fi
12062 if test $_pkg_short_errors_supported = yes; then
12063 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
12064 else
12065 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
12066 fi
12067 # Put the nasty error message in config.log where it belongs
12068 echo "$LCMAPS_BASIC_INTERFACE_PKG_ERRORS" >&5
12069
12070 have_lcmaps_basic_interface=no
12071 elif test $pkg_failed = untried; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 have_lcmaps_basic_interface=no
12075 else
12076 LCMAPS_BASIC_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS
12077 LCMAPS_BASIC_INTERFACE_LIBS=$pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12079 $as_echo "yes" >&6; }
12080 have_lcmaps_basic_interface=yes
12081 fi
12082
12083 if test "x$have_lcmaps_basic_interface" = "xno" ; then
12084
12085 ac_save_CFLAGS=$CFLAGS
12086
12087 if test "x$ac_lcmaps_includes" != "x" ; then
12088 ac_try_CFLAGS="-I$ac_lcmaps_includes"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes" >&5
12090 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes... " >&6; }
12091 else
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default" >&5
12093 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default... " >&6; }
12094 fi
12095
12096 CFLAGS="$ac_try_CFLAGS $CFLAGS"
12097
12098
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #include <lcmaps/lcmaps_version.h>
12102 int main(void) {return 0;}
12103 _ACEOF
12104 if ac_fn_c_try_compile "$LINENO"; then :
12105 have_mod=no
12106
12107 else
12108
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 #include <lcmaps/lcmaps_types.h>
12112 int main(void) {return 0;}
12113 _ACEOF
12114 if ac_fn_c_try_compile "$LINENO"; then :
12115 have_mod=yes
12116 else
12117 have_mod=no
12118 fi
12119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120
12121 fi
12122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
12124 $as_echo "$have_mod" >&6; }
12125
12126
12127 if test "x$have_mod" = "xyes" ; then
12128 have_lcmaps_basic_interface=yes
12129 LCMAPS_INTERFACE_CFLAGS=$ac_try_CFLAGS
12130 else
12131 have_lcmaps_basic_interface=no
12132 LCMAPS_INTERFACE_CFLAGS=""
12133 fi
12134
12135 CFLAGS=$ac_save_CFLAGS
12136
12137
12138 if test "x$have_lcmaps_basic_interface" = "xno" ; then
12139
12140 pkg_failed=no
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE" >&5
12142 $as_echo_n "checking for LCMAPS_INTERFACE... " >&6; }
12143
12144 if test -n "$LCMAPS_INTERFACE_CFLAGS"; then
12145 pkg_cv_LCMAPS_INTERFACE_CFLAGS="$LCMAPS_INTERFACE_CFLAGS"
12146 elif test -n "$PKG_CONFIG"; then
12147 if test -n "$PKG_CONFIG" && \
12148 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
12149 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
12150 ac_status=$?
12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152 test $ac_status = 0; }; then
12153 pkg_cv_LCMAPS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-interface < 1.4.31" 2>/dev/null`
12154 test "x$?" != "x0" && pkg_failed=yes
12155 else
12156 pkg_failed=yes
12157 fi
12158 else
12159 pkg_failed=untried
12160 fi
12161 if test -n "$LCMAPS_INTERFACE_LIBS"; then
12162 pkg_cv_LCMAPS_INTERFACE_LIBS="$LCMAPS_INTERFACE_LIBS"
12163 elif test -n "$PKG_CONFIG"; then
12164 if test -n "$PKG_CONFIG" && \
12165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
12166 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
12167 ac_status=$?
12168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12169 test $ac_status = 0; }; then
12170 pkg_cv_LCMAPS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-interface < 1.4.31" 2>/dev/null`
12171 test "x$?" != "x0" && pkg_failed=yes
12172 else
12173 pkg_failed=yes
12174 fi
12175 else
12176 pkg_failed=untried
12177 fi
12178
12179
12180
12181 if test $pkg_failed = yes; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184
12185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12186 _pkg_short_errors_supported=yes
12187 else
12188 _pkg_short_errors_supported=no
12189 fi
12190 if test $_pkg_short_errors_supported = yes; then
12191 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
12192 else
12193 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
12194 fi
12195 # Put the nasty error message in config.log where it belongs
12196 echo "$LCMAPS_INTERFACE_PKG_ERRORS" >&5
12197
12198 have_lcmaps_basic_interface=no
12199 elif test $pkg_failed = untried; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 have_lcmaps_basic_interface=no
12203 else
12204 LCMAPS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_INTERFACE_CFLAGS
12205 LCMAPS_INTERFACE_LIBS=$pkg_cv_LCMAPS_INTERFACE_LIBS
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12207 $as_echo "yes" >&6; }
12208 have_lcmaps_basic_interface=yes
12209 fi
12210 fi
12211 LCMAPS_BASIC_INTERFACE_CFLAGS=$LCMAPS_INTERFACE_CFLAGS
12212 fi
12213
12214 fi
12215 fi
12216 LCMAPS_CFLAGS=$LCMAPS_BASIC_INTERFACE_CFLAGS
12217
12218
12219
12220
12221
12222 if test "x$have_lcmaps_basic_interface" = "xno" ; then
12223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12225 as_fn_error $? "\"no LCMAPS basic interface found\"
12226 See \`config.log' for more details" "$LINENO" 5; }
12227 fi
12228
12229 # Checks for LCMAPS plugin prototype using LCMAPS CFLAGS
12230 SAVED_CPPFLAGS=$CPPFLAGS
12231 CPPFLAGS=$LCMAPS_CFLAGS
12232 for ac_header in lcmaps/lcmaps_plugin_prototypes.h
12233 do :
12234 ac_fn_c_check_header_mongrel "$LINENO" "lcmaps/lcmaps_plugin_prototypes.h" "ac_cv_header_lcmaps_lcmaps_plugin_prototypes_h" "$ac_includes_default"
12235 if test "x$ac_cv_header_lcmaps_lcmaps_plugin_prototypes_h" = xyes; then :
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_LCMAPS_LCMAPS_PLUGIN_PROTOTYPES_H 1
12238 _ACEOF
12239
12240 fi
12241
12242 done
12243
12244 CPPFLAGS=$SAVED_CPPFLAGS
12245 if test x$ac_cv_header_lcmaps_lcmaps_plugin_prototypes_h != xyes; then
12246 NEED_PROTOTYPE_TRUE=
12247 NEED_PROTOTYPE_FALSE='#'
12248 else
12249 NEED_PROTOTYPE_TRUE='#'
12250 NEED_PROTOTYPE_FALSE=
12251 fi
12252
12253
12254 # Checks for header files.
12255 for ac_header in dirent.h dlfcn.h stdlib.h string.h unistd.h utime.h
12256 do :
12257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12260 cat >>confdefs.h <<_ACEOF
12261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12262 _ACEOF
12263
12264 fi
12265
12266 done
12267
12268
12269 # Checks for typedefs, structures, and compiler characteristics.
12270 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12271 if test "x$ac_cv_type_size_t" = xyes; then :
12272
12273 else
12274
12275 cat >>confdefs.h <<_ACEOF
12276 #define size_t unsigned int
12277 _ACEOF
12278
12279 fi
12280
12281
12282 # Checks for library functions.
12283 for ac_func in malloc realloc setenv strchr strcspn strdup strerror strstr utime
12284 do :
12285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12287 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12288 cat >>confdefs.h <<_ACEOF
12289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12290 _ACEOF
12291
12292 fi
12293 done
12294
12295
12296
12297 # Check whether --with-moduledir was given.
12298 if test "${with_moduledir+set}" = set; then :
12299 withval=$with_moduledir;
12300 MODULEDIR=$withval
12301
12302
12303 else
12304
12305 MODULEDIR='${libdir}/lcmaps'
12306
12307
12308 fi
12309
12310
12311 # Find proper shared library extension
12312 eval SHREXT=$shrext_cmds
12313
12314
12315 # Configuration items
12316 ac_config_headers="$ac_config_headers src/lcmaps_voms_config.h"
12317
12318 ac_config_files="$ac_config_files Makefile"
12319
12320 ac_config_files="$ac_config_files doc/Makefile"
12321
12322 ac_config_files="$ac_config_files src/Makefile"
12323
12324
12325 cat >confcache <<\_ACEOF
12326 # This file is a shell script that caches the results of configure
12327 # tests run on this system so they can be shared between configure
12328 # scripts and configure runs, see configure's option --config-cache.
12329 # It is not useful on other systems. If it contains results you don't
12330 # want to keep, you may remove or edit it.
12331 #
12332 # config.status only pays attention to the cache file if you give it
12333 # the --recheck option to rerun configure.
12334 #
12335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12337 # following values.
12338
12339 _ACEOF
12340
12341 # The following way of writing the cache mishandles newlines in values,
12342 # but we know of no workaround that is simple, portable, and efficient.
12343 # So, we kill variables containing newlines.
12344 # Ultrix sh set writes to stderr and can't be redirected directly,
12345 # and sets the high bit in the cache file unless we assign to the vars.
12346 (
12347 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12348 eval ac_val=\$$ac_var
12349 case $ac_val in #(
12350 *${as_nl}*)
12351 case $ac_var in #(
12352 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12353 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12354 esac
12355 case $ac_var in #(
12356 _ | IFS | as_nl) ;; #(
12357 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12358 *) { eval $ac_var=; unset $ac_var;} ;;
12359 esac ;;
12360 esac
12361 done
12362
12363 (set) 2>&1 |
12364 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12365 *${as_nl}ac_space=\ *)
12366 # `set' does not quote correctly, so add quotes: double-quote
12367 # substitution turns \\\\ into \\, and sed turns \\ into \.
12368 sed -n \
12369 "s/'/'\\\\''/g;
12370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12371 ;; #(
12372 *)
12373 # `set' quotes correctly as required by POSIX, so do not add quotes.
12374 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12375 ;;
12376 esac |
12377 sort
12378 ) |
12379 sed '
12380 /^ac_cv_env_/b end
12381 t clear
12382 :clear
12383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12384 t end
12385 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12386 :end' >>confcache
12387 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12388 if test -w "$cache_file"; then
12389 if test "x$cache_file" != "x/dev/null"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12391 $as_echo "$as_me: updating cache $cache_file" >&6;}
12392 if test ! -f "$cache_file" || test -h "$cache_file"; then
12393 cat confcache >"$cache_file"
12394 else
12395 case $cache_file in #(
12396 */* | ?:*)
12397 mv -f confcache "$cache_file"$$ &&
12398 mv -f "$cache_file"$$ "$cache_file" ;; #(
12399 *)
12400 mv -f confcache "$cache_file" ;;
12401 esac
12402 fi
12403 fi
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12406 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12407 fi
12408 fi
12409 rm -f confcache
12410
12411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12412 # Let make expand exec_prefix.
12413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12414
12415 DEFS=-DHAVE_CONFIG_H
12416
12417 ac_libobjs=
12418 ac_ltlibobjs=
12419 U=
12420 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12421 # 1. Remove the extension, and $U if already installed.
12422 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12423 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12424 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12425 # will be set to the directory where LIBOBJS objects are built.
12426 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12427 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12428 done
12429 LIBOBJS=$ac_libobjs
12430
12431 LTLIBOBJS=$ac_ltlibobjs
12432
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12435 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12436 if test -n "$am_sleep_pid"; then
12437 # Hide warnings about reused PIDs.
12438 wait $am_sleep_pid 2>/dev/null
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12441 $as_echo "done" >&6; }
12442 if test -n "$EXEEXT"; then
12443 am__EXEEXT_TRUE=
12444 am__EXEEXT_FALSE='#'
12445 else
12446 am__EXEEXT_TRUE='#'
12447 am__EXEEXT_FALSE=
12448 fi
12449
12450 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12451 as_fn_error $? "conditional \"AMDEP\" was never defined.
12452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12453 fi
12454 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12455 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12457 fi
12458 if test -z "${NEED_PROTOTYPE_TRUE}" && test -z "${NEED_PROTOTYPE_FALSE}"; then
12459 as_fn_error $? "conditional \"NEED_PROTOTYPE\" was never defined.
12460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12461 fi
12462
12463 : "${CONFIG_STATUS=./config.status}"
12464 ac_write_fail=0
12465 ac_clean_files_save=$ac_clean_files
12466 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12468 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12469 as_write_fail=0
12470 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12471 #! $SHELL
12472 # Generated by $as_me.
12473 # Run this file to recreate the current configuration.
12474 # Compiler output produced by configure, useful for debugging
12475 # configure, is in config.log if it exists.
12476
12477 debug=false
12478 ac_cs_recheck=false
12479 ac_cs_silent=false
12480
12481 SHELL=\${CONFIG_SHELL-$SHELL}
12482 export SHELL
12483 _ASEOF
12484 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12485 ## -------------------- ##
12486 ## M4sh Initialization. ##
12487 ## -------------------- ##
12488
12489 # Be more Bourne compatible
12490 DUALCASE=1; export DUALCASE # for MKS sh
12491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12492 emulate sh
12493 NULLCMD=:
12494 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12495 # is contrary to our usage. Disable this feature.
12496 alias -g '${1+"$@"}'='"$@"'
12497 setopt NO_GLOB_SUBST
12498 else
12499 case `(set -o) 2>/dev/null` in #(
12500 *posix*) :
12501 set -o posix ;; #(
12502 *) :
12503 ;;
12504 esac
12505 fi
12506
12507
12508 as_nl='
12509 '
12510 export as_nl
12511 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12512 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12513 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12514 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12515 # Prefer a ksh shell builtin over an external printf program on Solaris,
12516 # but without wasting forks for bash or zsh.
12517 if test -z "$BASH_VERSION$ZSH_VERSION" \
12518 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12519 as_echo='print -r --'
12520 as_echo_n='print -rn --'
12521 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12522 as_echo='printf %s\n'
12523 as_echo_n='printf %s'
12524 else
12525 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12526 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12527 as_echo_n='/usr/ucb/echo -n'
12528 else
12529 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12530 as_echo_n_body='eval
12531 arg=$1;
12532 case $arg in #(
12533 *"$as_nl"*)
12534 expr "X$arg" : "X\\(.*\\)$as_nl";
12535 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12536 esac;
12537 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12538 '
12539 export as_echo_n_body
12540 as_echo_n='sh -c $as_echo_n_body as_echo'
12541 fi
12542 export as_echo_body
12543 as_echo='sh -c $as_echo_body as_echo'
12544 fi
12545
12546 # The user is always right.
12547 if test "${PATH_SEPARATOR+set}" != set; then
12548 PATH_SEPARATOR=:
12549 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12550 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12551 PATH_SEPARATOR=';'
12552 }
12553 fi
12554
12555
12556 # IFS
12557 # We need space, tab and new line, in precisely that order. Quoting is
12558 # there to prevent editors from complaining about space-tab.
12559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12560 # splitting by setting IFS to empty value.)
12561 IFS=" "" $as_nl"
12562
12563 # Find who we are. Look in the path if we contain no directory separator.
12564 as_myself=
12565 case $0 in #((
12566 *[\\/]* ) as_myself=$0 ;;
12567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12573 done
12574 IFS=$as_save_IFS
12575
12576 ;;
12577 esac
12578 # We did not find ourselves, most probably we were run as `sh COMMAND'
12579 # in which case we are not to be found in the path.
12580 if test "x$as_myself" = x; then
12581 as_myself=$0
12582 fi
12583 if test ! -f "$as_myself"; then
12584 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12585 exit 1
12586 fi
12587
12588 # Unset variables that we do not need and which cause bugs (e.g. in
12589 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12590 # suppresses any "Segmentation fault" message there. '((' could
12591 # trigger a bug in pdksh 5.2.14.
12592 for as_var in BASH_ENV ENV MAIL MAILPATH
12593 do eval test x\${$as_var+set} = xset \
12594 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12595 done
12596 PS1='$ '
12597 PS2='> '
12598 PS4='+ '
12599
12600 # NLS nuisances.
12601 LC_ALL=C
12602 export LC_ALL
12603 LANGUAGE=C
12604 export LANGUAGE
12605
12606 # CDPATH.
12607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12608
12609
12610 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12611 # ----------------------------------------
12612 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12613 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12614 # script with STATUS, using 1 if that was 0.
12615 as_fn_error ()
12616 {
12617 as_status=$1; test $as_status -eq 0 && as_status=1
12618 if test "$4"; then
12619 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12620 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12621 fi
12622 $as_echo "$as_me: error: $2" >&2
12623 as_fn_exit $as_status
12624 } # as_fn_error
12625
12626
12627 # as_fn_set_status STATUS
12628 # -----------------------
12629 # Set $? to STATUS, without forking.
12630 as_fn_set_status ()
12631 {
12632 return $1
12633 } # as_fn_set_status
12634
12635 # as_fn_exit STATUS
12636 # -----------------
12637 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12638 as_fn_exit ()
12639 {
12640 set +e
12641 as_fn_set_status $1
12642 exit $1
12643 } # as_fn_exit
12644
12645 # as_fn_unset VAR
12646 # ---------------
12647 # Portably unset VAR.
12648 as_fn_unset ()
12649 {
12650 { eval $1=; unset $1;}
12651 }
12652 as_unset=as_fn_unset
12653 # as_fn_append VAR VALUE
12654 # ----------------------
12655 # Append the text in VALUE to the end of the definition contained in VAR. Take
12656 # advantage of any shell optimizations that allow amortized linear growth over
12657 # repeated appends, instead of the typical quadratic growth present in naive
12658 # implementations.
12659 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12660 eval 'as_fn_append ()
12661 {
12662 eval $1+=\$2
12663 }'
12664 else
12665 as_fn_append ()
12666 {
12667 eval $1=\$$1\$2
12668 }
12669 fi # as_fn_append
12670
12671 # as_fn_arith ARG...
12672 # ------------------
12673 # Perform arithmetic evaluation on the ARGs, and store the result in the
12674 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12675 # must be portable across $(()) and expr.
12676 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12677 eval 'as_fn_arith ()
12678 {
12679 as_val=$(( $* ))
12680 }'
12681 else
12682 as_fn_arith ()
12683 {
12684 as_val=`expr "$@" || test $? -eq 1`
12685 }
12686 fi # as_fn_arith
12687
12688
12689 if expr a : '\(a\)' >/dev/null 2>&1 &&
12690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12691 as_expr=expr
12692 else
12693 as_expr=false
12694 fi
12695
12696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12697 as_basename=basename
12698 else
12699 as_basename=false
12700 fi
12701
12702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12703 as_dirname=dirname
12704 else
12705 as_dirname=false
12706 fi
12707
12708 as_me=`$as_basename -- "$0" ||
12709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12710 X"$0" : 'X\(//\)$' \| \
12711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12712 $as_echo X/"$0" |
12713 sed '/^.*\/\([^/][^/]*\)\/*$/{
12714 s//\1/
12715 q
12716 }
12717 /^X\/\(\/\/\)$/{
12718 s//\1/
12719 q
12720 }
12721 /^X\/\(\/\).*/{
12722 s//\1/
12723 q
12724 }
12725 s/.*/./; q'`
12726
12727 # Avoid depending upon Character Ranges.
12728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12731 as_cr_digits='0123456789'
12732 as_cr_alnum=$as_cr_Letters$as_cr_digits
12733
12734 ECHO_C= ECHO_N= ECHO_T=
12735 case `echo -n x` in #(((((
12736 -n*)
12737 case `echo 'xy\c'` in
12738 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12739 xy) ECHO_C='\c';;
12740 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12741 ECHO_T=' ';;
12742 esac;;
12743 *)
12744 ECHO_N='-n';;
12745 esac
12746
12747 rm -f conf$$ conf$$.exe conf$$.file
12748 if test -d conf$$.dir; then
12749 rm -f conf$$.dir/conf$$.file
12750 else
12751 rm -f conf$$.dir
12752 mkdir conf$$.dir 2>/dev/null
12753 fi
12754 if (echo >conf$$.file) 2>/dev/null; then
12755 if ln -s conf$$.file conf$$ 2>/dev/null; then
12756 as_ln_s='ln -s'
12757 # ... but there are two gotchas:
12758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12760 # In both cases, we have to default to `cp -pR'.
12761 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12762 as_ln_s='cp -pR'
12763 elif ln conf$$.file conf$$ 2>/dev/null; then
12764 as_ln_s=ln
12765 else
12766 as_ln_s='cp -pR'
12767 fi
12768 else
12769 as_ln_s='cp -pR'
12770 fi
12771 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12772 rmdir conf$$.dir 2>/dev/null
12773
12774
12775 # as_fn_mkdir_p
12776 # -------------
12777 # Create "$as_dir" as a directory, including parents if necessary.
12778 as_fn_mkdir_p ()
12779 {
12780
12781 case $as_dir in #(
12782 -*) as_dir=./$as_dir;;
12783 esac
12784 test -d "$as_dir" || eval $as_mkdir_p || {
12785 as_dirs=
12786 while :; do
12787 case $as_dir in #(
12788 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12789 *) as_qdir=$as_dir;;
12790 esac
12791 as_dirs="'$as_qdir' $as_dirs"
12792 as_dir=`$as_dirname -- "$as_dir" ||
12793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12794 X"$as_dir" : 'X\(//\)[^/]' \| \
12795 X"$as_dir" : 'X\(//\)$' \| \
12796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12797 $as_echo X"$as_dir" |
12798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12799 s//\1/
12800 q
12801 }
12802 /^X\(\/\/\)[^/].*/{
12803 s//\1/
12804 q
12805 }
12806 /^X\(\/\/\)$/{
12807 s//\1/
12808 q
12809 }
12810 /^X\(\/\).*/{
12811 s//\1/
12812 q
12813 }
12814 s/.*/./; q'`
12815 test -d "$as_dir" && break
12816 done
12817 test -z "$as_dirs" || eval "mkdir $as_dirs"
12818 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12819
12820
12821 } # as_fn_mkdir_p
12822 if mkdir -p . 2>/dev/null; then
12823 as_mkdir_p='mkdir -p "$as_dir"'
12824 else
12825 test -d ./-p && rmdir ./-p
12826 as_mkdir_p=false
12827 fi
12828
12829
12830 # as_fn_executable_p FILE
12831 # -----------------------
12832 # Test if FILE is an executable regular file.
12833 as_fn_executable_p ()
12834 {
12835 test -f "$1" && test -x "$1"
12836 } # as_fn_executable_p
12837 as_test_x='test -x'
12838 as_executable_p=as_fn_executable_p
12839
12840 # Sed expression to map a string onto a valid CPP name.
12841 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12842
12843 # Sed expression to map a string onto a valid variable name.
12844 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12845
12846
12847 exec 6>&1
12848 ## ----------------------------------- ##
12849 ## Main body of $CONFIG_STATUS script. ##
12850 ## ----------------------------------- ##
12851 _ASEOF
12852 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12853
12854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12855 # Save the log message, to keep $0 and so on meaningful, and to
12856 # report actual input values of CONFIG_FILES etc. instead of their
12857 # values after options handling.
12858 ac_log="
12859 This file was extended by LCMAPS plugins voms $as_me 1.7.1, which was
12860 generated by GNU Autoconf 2.69. Invocation command line was
12861
12862 CONFIG_FILES = $CONFIG_FILES
12863 CONFIG_HEADERS = $CONFIG_HEADERS
12864 CONFIG_LINKS = $CONFIG_LINKS
12865 CONFIG_COMMANDS = $CONFIG_COMMANDS
12866 $ $0 $@
12867
12868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12869 "
12870
12871 _ACEOF
12872
12873 case $ac_config_files in *"
12874 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12875 esac
12876
12877 case $ac_config_headers in *"
12878 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12879 esac
12880
12881
12882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12883 # Files that config.status was made for.
12884 config_files="$ac_config_files"
12885 config_headers="$ac_config_headers"
12886 config_commands="$ac_config_commands"
12887
12888 _ACEOF
12889
12890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12891 ac_cs_usage="\
12892 \`$as_me' instantiates files and other configuration actions
12893 from templates according to the current configuration. Unless the files
12894 and actions are specified as TAGs, all are instantiated by default.
12895
12896 Usage: $0 [OPTION]... [TAG]...
12897
12898 -h, --help print this help, then exit
12899 -V, --version print version number and configuration settings, then exit
12900 --config print configuration, then exit
12901 -q, --quiet, --silent
12902 do not print progress messages
12903 -d, --debug don't remove temporary files
12904 --recheck update $as_me by reconfiguring in the same conditions
12905 --file=FILE[:TEMPLATE]
12906 instantiate the configuration file FILE
12907 --header=FILE[:TEMPLATE]
12908 instantiate the configuration header FILE
12909
12910 Configuration files:
12911 $config_files
12912
12913 Configuration headers:
12914 $config_headers
12915
12916 Configuration commands:
12917 $config_commands
12918
12919 Report bugs to the package provider."
12920
12921 _ACEOF
12922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12923 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12924 ac_cs_version="\\
12925 LCMAPS plugins voms config.status 1.7.1
12926 configured by $0, generated by GNU Autoconf 2.69,
12927 with options \\"\$ac_cs_config\\"
12928
12929 Copyright (C) 2012 Free Software Foundation, Inc.
12930 This config.status script is free software; the Free Software Foundation
12931 gives unlimited permission to copy, distribute and modify it."
12932
12933 ac_pwd='$ac_pwd'
12934 srcdir='$srcdir'
12935 INSTALL='$INSTALL'
12936 MKDIR_P='$MKDIR_P'
12937 AWK='$AWK'
12938 test -n "\$AWK" || AWK=awk
12939 _ACEOF
12940
12941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12942 # The default lists apply if the user does not specify any file.
12943 ac_need_defaults=:
12944 while test $# != 0
12945 do
12946 case $1 in
12947 --*=?*)
12948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12949 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12950 ac_shift=:
12951 ;;
12952 --*=)
12953 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12954 ac_optarg=
12955 ac_shift=:
12956 ;;
12957 *)
12958 ac_option=$1
12959 ac_optarg=$2
12960 ac_shift=shift
12961 ;;
12962 esac
12963
12964 case $ac_option in
12965 # Handling of the options.
12966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12967 ac_cs_recheck=: ;;
12968 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12969 $as_echo "$ac_cs_version"; exit ;;
12970 --config | --confi | --conf | --con | --co | --c )
12971 $as_echo "$ac_cs_config"; exit ;;
12972 --debug | --debu | --deb | --de | --d | -d )
12973 debug=: ;;
12974 --file | --fil | --fi | --f )
12975 $ac_shift
12976 case $ac_optarg in
12977 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12978 '') as_fn_error $? "missing file argument" ;;
12979 esac
12980 as_fn_append CONFIG_FILES " '$ac_optarg'"
12981 ac_need_defaults=false;;
12982 --header | --heade | --head | --hea )
12983 $ac_shift
12984 case $ac_optarg in
12985 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12986 esac
12987 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12988 ac_need_defaults=false;;
12989 --he | --h)
12990 # Conflict between --help and --header
12991 as_fn_error $? "ambiguous option: \`$1'
12992 Try \`$0 --help' for more information.";;
12993 --help | --hel | -h )
12994 $as_echo "$ac_cs_usage"; exit ;;
12995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12996 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12997 ac_cs_silent=: ;;
12998
12999 # This is an error.
13000 -*) as_fn_error $? "unrecognized option: \`$1'
13001 Try \`$0 --help' for more information." ;;
13002
13003 *) as_fn_append ac_config_targets " $1"
13004 ac_need_defaults=false ;;
13005
13006 esac
13007 shift
13008 done
13009
13010 ac_configure_extra_args=
13011
13012 if $ac_cs_silent; then
13013 exec 6>/dev/null
13014 ac_configure_extra_args="$ac_configure_extra_args --silent"
13015 fi
13016
13017 _ACEOF
13018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13019 if \$ac_cs_recheck; then
13020 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13021 shift
13022 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13023 CONFIG_SHELL='$SHELL'
13024 export CONFIG_SHELL
13025 exec "\$@"
13026 fi
13027
13028 _ACEOF
13029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13030 exec 5>>config.log
13031 {
13032 echo
13033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13034 ## Running $as_me. ##
13035 _ASBOX
13036 $as_echo "$ac_log"
13037 } >&5
13038
13039 _ACEOF
13040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13041 #
13042 # INIT-COMMANDS
13043 #
13044 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13045
13046
13047 # The HP-UX ksh and POSIX shell print the target directory to stdout
13048 # if CDPATH is set.
13049 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13050
13051 sed_quote_subst='$sed_quote_subst'
13052 double_quote_subst='$double_quote_subst'
13053 delay_variable_subst='$delay_variable_subst'
13054 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13055 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13056 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13057 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13058 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13059 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13060 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13061 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13062 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13063 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13064 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13065 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13066 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13067 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13068 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13069 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13070 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13071 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13072 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13073 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13074 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13075 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13076 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13077 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13078 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13079 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13080 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13081 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13082 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13083 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13084 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13085 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13086 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13087 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13088 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13089 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13090 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13091 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13092 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13093 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13094 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13095 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13096 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13097 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13098 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13099 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13100 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13101 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13102 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13103 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13104 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13105 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13106 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13107 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13108 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13109 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13110 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"`'
13111 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13112 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13113 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13114 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13115 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13116 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13117 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13118 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13119 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13120 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13121 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13122 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13123 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13124 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13125 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13126 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13127 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13128 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13129 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13130 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13131 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13132 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13133 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13134 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13135 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13136 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13137 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13138 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13139 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13140 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13141 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13142 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13143 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13144 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13145 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13146 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13147 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13148 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13149 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13150 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13151 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13152 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13153 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13154 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13155 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13156 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13157 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13158 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13159 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13160 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13161 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13162 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13163 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13164 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13165 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13166 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13167 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13168 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13169 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13170 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13171 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13172 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13173 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13174 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13175 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13176 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13177 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13178 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13179 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13180 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13181 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13182 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13183 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13184
13185 LTCC='$LTCC'
13186 LTCFLAGS='$LTCFLAGS'
13187 compiler='$compiler_DEFAULT'
13188
13189 # A function that is used when there is no print builtin or printf.
13190 func_fallback_echo ()
13191 {
13192 eval 'cat <<_LTECHO_EOF
13193 \$1
13194 _LTECHO_EOF'
13195 }
13196
13197 # Quote evaled strings.
13198 for var in SHELL \
13199 ECHO \
13200 PATH_SEPARATOR \
13201 SED \
13202 GREP \
13203 EGREP \
13204 FGREP \
13205 LD \
13206 NM \
13207 LN_S \
13208 lt_SP2NL \
13209 lt_NL2SP \
13210 reload_flag \
13211 OBJDUMP \
13212 deplibs_check_method \
13213 file_magic_cmd \
13214 file_magic_glob \
13215 want_nocaseglob \
13216 DLLTOOL \
13217 sharedlib_from_linklib_cmd \
13218 AR \
13219 AR_FLAGS \
13220 archiver_list_spec \
13221 STRIP \
13222 RANLIB \
13223 CC \
13224 CFLAGS \
13225 compiler \
13226 lt_cv_sys_global_symbol_pipe \
13227 lt_cv_sys_global_symbol_to_cdecl \
13228 lt_cv_sys_global_symbol_to_c_name_address \
13229 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13230 nm_file_list_spec \
13231 lt_prog_compiler_no_builtin_flag \
13232 lt_prog_compiler_pic \
13233 lt_prog_compiler_wl \
13234 lt_prog_compiler_static \
13235 lt_cv_prog_compiler_c_o \
13236 need_locks \
13237 MANIFEST_TOOL \
13238 DSYMUTIL \
13239 NMEDIT \
13240 LIPO \
13241 OTOOL \
13242 OTOOL64 \
13243 shrext_cmds \
13244 export_dynamic_flag_spec \
13245 whole_archive_flag_spec \
13246 compiler_needs_object \
13247 with_gnu_ld \
13248 allow_undefined_flag \
13249 no_undefined_flag \
13250 hardcode_libdir_flag_spec \
13251 hardcode_libdir_separator \
13252 exclude_expsyms \
13253 include_expsyms \
13254 file_list_spec \
13255 variables_saved_for_relink \
13256 libname_spec \
13257 library_names_spec \
13258 soname_spec \
13259 install_override_mode \
13260 finish_eval \
13261 old_striplib \
13262 striplib; do
13263 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13264 *[\\\\\\\`\\"\\\$]*)
13265 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13266 ;;
13267 *)
13268 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13269 ;;
13270 esac
13271 done
13272
13273 # Double-quote double-evaled strings.
13274 for var in reload_cmds \
13275 old_postinstall_cmds \
13276 old_postuninstall_cmds \
13277 old_archive_cmds \
13278 extract_expsyms_cmds \
13279 old_archive_from_new_cmds \
13280 old_archive_from_expsyms_cmds \
13281 archive_cmds \
13282 archive_expsym_cmds \
13283 module_cmds \
13284 module_expsym_cmds \
13285 export_symbols_cmds \
13286 prelink_cmds \
13287 postlink_cmds \
13288 postinstall_cmds \
13289 postuninstall_cmds \
13290 finish_cmds \
13291 sys_lib_search_path_spec \
13292 sys_lib_dlsearch_path_spec; do
13293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13294 *[\\\\\\\`\\"\\\$]*)
13295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13296 ;;
13297 *)
13298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13299 ;;
13300 esac
13301 done
13302
13303 ac_aux_dir='$ac_aux_dir'
13304 xsi_shell='$xsi_shell'
13305 lt_shell_append='$lt_shell_append'
13306
13307 # See if we are running on zsh, and set the options which allow our
13308 # commands through without removal of \ escapes INIT.
13309 if test -n "\${ZSH_VERSION+set}" ; then
13310 setopt NO_GLOB_SUBST
13311 fi
13312
13313
13314 PACKAGE='$PACKAGE'
13315 VERSION='$VERSION'
13316 TIMESTAMP='$TIMESTAMP'
13317 RM='$RM'
13318 ofile='$ofile'
13319
13320
13321
13322
13323 _ACEOF
13324
13325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13326
13327 # Handling of arguments.
13328 for ac_config_target in $ac_config_targets
13329 do
13330 case $ac_config_target in
13331 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13332 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13333 "src/lcmaps_voms_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lcmaps_voms_config.h" ;;
13334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13335 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13336 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13337
13338 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13339 esac
13340 done
13341
13342
13343 # If the user did not use the arguments to specify the items to instantiate,
13344 # then the envvar interface is used. Set only those that are not.
13345 # We use the long form for the default assignment because of an extremely
13346 # bizarre bug on SunOS 4.1.3.
13347 if $ac_need_defaults; then
13348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13351 fi
13352
13353 # Have a temporary directory for convenience. Make it in the build tree
13354 # simply because there is no reason against having it here, and in addition,
13355 # creating and moving files from /tmp can sometimes cause problems.
13356 # Hook for its removal unless debugging.
13357 # Note that there is a small window in which the directory will not be cleaned:
13358 # after its creation but before its name has been assigned to `$tmp'.
13359 $debug ||
13360 {
13361 tmp= ac_tmp=
13362 trap 'exit_status=$?
13363 : "${ac_tmp:=$tmp}"
13364 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13365 ' 0
13366 trap 'as_fn_exit 1' 1 2 13 15
13367 }
13368 # Create a (secure) tmp directory for tmp files.
13369
13370 {
13371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13372 test -d "$tmp"
13373 } ||
13374 {
13375 tmp=./conf$$-$RANDOM
13376 (umask 077 && mkdir "$tmp")
13377 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13378 ac_tmp=$tmp
13379
13380 # Set up the scripts for CONFIG_FILES section.
13381 # No need to generate them if there are no CONFIG_FILES.
13382 # This happens for instance with `./config.status config.h'.
13383 if test -n "$CONFIG_FILES"; then
13384
13385
13386 ac_cr=`echo X | tr X '\015'`
13387 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13388 # But we know of no other shell where ac_cr would be empty at this
13389 # point, so we can use a bashism as a fallback.
13390 if test "x$ac_cr" = x; then
13391 eval ac_cr=\$\'\\r\'
13392 fi
13393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13395 ac_cs_awk_cr='\\r'
13396 else
13397 ac_cs_awk_cr=$ac_cr
13398 fi
13399
13400 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13401 _ACEOF
13402
13403
13404 {
13405 echo "cat >conf$$subs.awk <<_ACEOF" &&
13406 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13407 echo "_ACEOF"
13408 } >conf$$subs.sh ||
13409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13410 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13411 ac_delim='%!_!# '
13412 for ac_last_try in false false false false false :; do
13413 . ./conf$$subs.sh ||
13414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13415
13416 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13417 if test $ac_delim_n = $ac_delim_num; then
13418 break
13419 elif $ac_last_try; then
13420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13421 else
13422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13423 fi
13424 done
13425 rm -f conf$$subs.sh
13426
13427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13429 _ACEOF
13430 sed -n '
13431 h
13432 s/^/S["/; s/!.*/"]=/
13433 p
13434 g
13435 s/^[^!]*!//
13436 :repl
13437 t repl
13438 s/'"$ac_delim"'$//
13439 t delim
13440 :nl
13441 h
13442 s/\(.\{148\}\)..*/\1/
13443 t more1
13444 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13445 p
13446 n
13447 b repl
13448 :more1
13449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13450 p
13451 g
13452 s/.\{148\}//
13453 t nl
13454 :delim
13455 h
13456 s/\(.\{148\}\)..*/\1/
13457 t more2
13458 s/["\\]/\\&/g; s/^/"/; s/$/"/
13459 p
13460 b
13461 :more2
13462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13463 p
13464 g
13465 s/.\{148\}//
13466 t delim
13467 ' <conf$$subs.awk | sed '
13468 /^[^""]/{
13469 N
13470 s/\n//
13471 }
13472 ' >>$CONFIG_STATUS || ac_write_fail=1
13473 rm -f conf$$subs.awk
13474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13475 _ACAWK
13476 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13477 for (key in S) S_is_set[key] = 1
13478 FS = ""
13479
13480 }
13481 {
13482 line = $ 0
13483 nfields = split(line, field, "@")
13484 substed = 0
13485 len = length(field[1])
13486 for (i = 2; i < nfields; i++) {
13487 key = field[i]
13488 keylen = length(key)
13489 if (S_is_set[key]) {
13490 value = S[key]
13491 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13492 len += length(value) + length(field[++i])
13493 substed = 1
13494 } else
13495 len += 1 + keylen
13496 }
13497
13498 print line
13499 }
13500
13501 _ACAWK
13502 _ACEOF
13503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13504 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13505 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13506 else
13507 cat
13508 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13509 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13510 _ACEOF
13511
13512 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13513 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13514 # trailing colons and then remove the whole line if VPATH becomes empty
13515 # (actually we leave an empty line to preserve line numbers).
13516 if test "x$srcdir" = x.; then
13517 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13518 h
13519 s///
13520 s/^/:/
13521 s/[ ]*$/:/
13522 s/:\$(srcdir):/:/g
13523 s/:\${srcdir}:/:/g
13524 s/:@srcdir@:/:/g
13525 s/^:*//
13526 s/:*$//
13527 x
13528 s/\(=[ ]*\).*/\1/
13529 G
13530 s/\n//
13531 s/^[^=]*=[ ]*$//
13532 }'
13533 fi
13534
13535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13536 fi # test -n "$CONFIG_FILES"
13537
13538 # Set up the scripts for CONFIG_HEADERS section.
13539 # No need to generate them if there are no CONFIG_HEADERS.
13540 # This happens for instance with `./config.status Makefile'.
13541 if test -n "$CONFIG_HEADERS"; then
13542 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13543 BEGIN {
13544 _ACEOF
13545
13546 # Transform confdefs.h into an awk script `defines.awk', embedded as
13547 # here-document in config.status, that substitutes the proper values into
13548 # config.h.in to produce config.h.
13549
13550 # Create a delimiter string that does not exist in confdefs.h, to ease
13551 # handling of long lines.
13552 ac_delim='%!_!# '
13553 for ac_last_try in false false :; do
13554 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13555 if test -z "$ac_tt"; then
13556 break
13557 elif $ac_last_try; then
13558 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13559 else
13560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13561 fi
13562 done
13563
13564 # For the awk script, D is an array of macro values keyed by name,
13565 # likewise P contains macro parameters if any. Preserve backslash
13566 # newline sequences.
13567
13568 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13569 sed -n '
13570 s/.\{148\}/&'"$ac_delim"'/g
13571 t rset
13572 :rset
13573 s/^[ ]*#[ ]*define[ ][ ]*/ /
13574 t def
13575 d
13576 :def
13577 s/\\$//
13578 t bsnl
13579 s/["\\]/\\&/g
13580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13581 D["\1"]=" \3"/p
13582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13583 d
13584 :bsnl
13585 s/["\\]/\\&/g
13586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13587 D["\1"]=" \3\\\\\\n"\\/p
13588 t cont
13589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13590 t cont
13591 d
13592 :cont
13593 n
13594 s/.\{148\}/&'"$ac_delim"'/g
13595 t clear
13596 :clear
13597 s/\\$//
13598 t bsnlc
13599 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13600 d
13601 :bsnlc
13602 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13603 b cont
13604 ' <confdefs.h | sed '
13605 s/'"$ac_delim"'/"\\\
13606 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13607
13608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13609 for (key in D) D_is_set[key] = 1
13610 FS = ""
13611 }
13612 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13613 line = \$ 0
13614 split(line, arg, " ")
13615 if (arg[1] == "#") {
13616 defundef = arg[2]
13617 mac1 = arg[3]
13618 } else {
13619 defundef = substr(arg[1], 2)
13620 mac1 = arg[2]
13621 }
13622 split(mac1, mac2, "(") #)
13623 macro = mac2[1]
13624 prefix = substr(line, 1, index(line, defundef) - 1)
13625 if (D_is_set[macro]) {
13626 # Preserve the white space surrounding the "#".
13627 print prefix "define", macro P[macro] D[macro]
13628 next
13629 } else {
13630 # Replace #undef with comments. This is necessary, for example,
13631 # in the case of _POSIX_SOURCE, which is predefined and required
13632 # on some systems where configure will not decide to define it.
13633 if (defundef == "undef") {
13634 print "/*", prefix defundef, macro, "*/"
13635 next
13636 }
13637 }
13638 }
13639 { print }
13640 _ACAWK
13641 _ACEOF
13642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13643 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13644 fi # test -n "$CONFIG_HEADERS"
13645
13646
13647 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13648 shift
13649 for ac_tag
13650 do
13651 case $ac_tag in
13652 :[FHLC]) ac_mode=$ac_tag; continue;;
13653 esac
13654 case $ac_mode$ac_tag in
13655 :[FHL]*:*);;
13656 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13657 :[FH]-) ac_tag=-:-;;
13658 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13659 esac
13660 ac_save_IFS=$IFS
13661 IFS=:
13662 set x $ac_tag
13663 IFS=$ac_save_IFS
13664 shift
13665 ac_file=$1
13666 shift
13667
13668 case $ac_mode in
13669 :L) ac_source=$1;;
13670 :[FH])
13671 ac_file_inputs=
13672 for ac_f
13673 do
13674 case $ac_f in
13675 -) ac_f="$ac_tmp/stdin";;
13676 *) # Look for the file first in the build tree, then in the source tree
13677 # (if the path is not absolute). The absolute path cannot be DOS-style,
13678 # because $ac_f cannot contain `:'.
13679 test -f "$ac_f" ||
13680 case $ac_f in
13681 [\\/$]*) false;;
13682 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13683 esac ||
13684 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13685 esac
13686 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13687 as_fn_append ac_file_inputs " '$ac_f'"
13688 done
13689
13690 # Let's still pretend it is `configure' which instantiates (i.e., don't
13691 # use $as_me), people would be surprised to read:
13692 # /* config.h. Generated by config.status. */
13693 configure_input='Generated from '`
13694 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13695 `' by configure.'
13696 if test x"$ac_file" != x-; then
13697 configure_input="$ac_file. $configure_input"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13699 $as_echo "$as_me: creating $ac_file" >&6;}
13700 fi
13701 # Neutralize special characters interpreted by sed in replacement strings.
13702 case $configure_input in #(
13703 *\&* | *\|* | *\\* )
13704 ac_sed_conf_input=`$as_echo "$configure_input" |
13705 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13706 *) ac_sed_conf_input=$configure_input;;
13707 esac
13708
13709 case $ac_tag in
13710 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13712 esac
13713 ;;
13714 esac
13715
13716 ac_dir=`$as_dirname -- "$ac_file" ||
13717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13718 X"$ac_file" : 'X\(//\)[^/]' \| \
13719 X"$ac_file" : 'X\(//\)$' \| \
13720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13721 $as_echo X"$ac_file" |
13722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13723 s//\1/
13724 q
13725 }
13726 /^X\(\/\/\)[^/].*/{
13727 s//\1/
13728 q
13729 }
13730 /^X\(\/\/\)$/{
13731 s//\1/
13732 q
13733 }
13734 /^X\(\/\).*/{
13735 s//\1/
13736 q
13737 }
13738 s/.*/./; q'`
13739 as_dir="$ac_dir"; as_fn_mkdir_p
13740 ac_builddir=.
13741
13742 case "$ac_dir" in
13743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13744 *)
13745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13746 # A ".." for each directory in $ac_dir_suffix.
13747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13748 case $ac_top_builddir_sub in
13749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13751 esac ;;
13752 esac
13753 ac_abs_top_builddir=$ac_pwd
13754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13755 # for backward compatibility:
13756 ac_top_builddir=$ac_top_build_prefix
13757
13758 case $srcdir in
13759 .) # We are building in place.
13760 ac_srcdir=.
13761 ac_top_srcdir=$ac_top_builddir_sub
13762 ac_abs_top_srcdir=$ac_pwd ;;
13763 [\\/]* | ?:[\\/]* ) # Absolute name.
13764 ac_srcdir=$srcdir$ac_dir_suffix;
13765 ac_top_srcdir=$srcdir
13766 ac_abs_top_srcdir=$srcdir ;;
13767 *) # Relative name.
13768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13769 ac_top_srcdir=$ac_top_build_prefix$srcdir
13770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13771 esac
13772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13773
13774
13775 case $ac_mode in
13776 :F)
13777 #
13778 # CONFIG_FILE
13779 #
13780
13781 case $INSTALL in
13782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13784 esac
13785 ac_MKDIR_P=$MKDIR_P
13786 case $MKDIR_P in
13787 [\\/$]* | ?:[\\/]* ) ;;
13788 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13789 esac
13790 _ACEOF
13791
13792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13793 # If the template does not know about datarootdir, expand it.
13794 # FIXME: This hack should be removed a few years after 2.60.
13795 ac_datarootdir_hack=; ac_datarootdir_seen=
13796 ac_sed_dataroot='
13797 /datarootdir/ {
13798 p
13799 q
13800 }
13801 /@datadir@/p
13802 /@docdir@/p
13803 /@infodir@/p
13804 /@localedir@/p
13805 /@mandir@/p'
13806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13807 *datarootdir*) ac_datarootdir_seen=yes;;
13808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13811 _ACEOF
13812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13813 ac_datarootdir_hack='
13814 s&@datadir@&$datadir&g
13815 s&@docdir@&$docdir&g
13816 s&@infodir@&$infodir&g
13817 s&@localedir@&$localedir&g
13818 s&@mandir@&$mandir&g
13819 s&\\\${datarootdir}&$datarootdir&g' ;;
13820 esac
13821 _ACEOF
13822
13823 # Neutralize VPATH when `$srcdir' = `.'.
13824 # Shell code in configure.ac might set extrasub.
13825 # FIXME: do we really want to maintain this feature?
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 ac_sed_extra="$ac_vpsub
13828 $extrasub
13829 _ACEOF
13830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13831 :t
13832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13833 s|@configure_input@|$ac_sed_conf_input|;t t
13834 s&@top_builddir@&$ac_top_builddir_sub&;t t
13835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13836 s&@srcdir@&$ac_srcdir&;t t
13837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13838 s&@top_srcdir@&$ac_top_srcdir&;t t
13839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13840 s&@builddir@&$ac_builddir&;t t
13841 s&@abs_builddir@&$ac_abs_builddir&;t t
13842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13843 s&@INSTALL@&$ac_INSTALL&;t t
13844 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13845 $ac_datarootdir_hack
13846 "
13847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13848 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13849
13850 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13851 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13852 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13853 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13855 which seems to be undefined. Please make sure it is defined" >&5
13856 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13857 which seems to be undefined. Please make sure it is defined" >&2;}
13858
13859 rm -f "$ac_tmp/stdin"
13860 case $ac_file in
13861 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13862 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13863 esac \
13864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13865 ;;
13866 :H)
13867 #
13868 # CONFIG_HEADER
13869 #
13870 if test x"$ac_file" != x-; then
13871 {
13872 $as_echo "/* $configure_input */" \
13873 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13874 } >"$ac_tmp/config.h" \
13875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13876 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13878 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13879 else
13880 rm -f "$ac_file"
13881 mv "$ac_tmp/config.h" "$ac_file" \
13882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13883 fi
13884 else
13885 $as_echo "/* $configure_input */" \
13886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13887 || as_fn_error $? "could not create -" "$LINENO" 5
13888 fi
13889 # Compute "$ac_file"'s index in $config_headers.
13890 _am_arg="$ac_file"
13891 _am_stamp_count=1
13892 for _am_header in $config_headers :; do
13893 case $_am_header in
13894 $_am_arg | $_am_arg:* )
13895 break ;;
13896 * )
13897 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13898 esac
13899 done
13900 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13901 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13902 X"$_am_arg" : 'X\(//\)[^/]' \| \
13903 X"$_am_arg" : 'X\(//\)$' \| \
13904 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13905 $as_echo X"$_am_arg" |
13906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13907 s//\1/
13908 q
13909 }
13910 /^X\(\/\/\)[^/].*/{
13911 s//\1/
13912 q
13913 }
13914 /^X\(\/\/\)$/{
13915 s//\1/
13916 q
13917 }
13918 /^X\(\/\).*/{
13919 s//\1/
13920 q
13921 }
13922 s/.*/./; q'`/stamp-h$_am_stamp_count
13923 ;;
13924
13925 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13926 $as_echo "$as_me: executing $ac_file commands" >&6;}
13927 ;;
13928 esac
13929
13930
13931 case $ac_file$ac_mode in
13932 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13933 # Older Autoconf quotes --file arguments for eval, but not when files
13934 # are listed without --file. Let's play safe and only enable the eval
13935 # if we detect the quoting.
13936 case $CONFIG_FILES in
13937 *\'*) eval set x "$CONFIG_FILES" ;;
13938 *) set x $CONFIG_FILES ;;
13939 esac
13940 shift
13941 for mf
13942 do
13943 # Strip MF so we end up with the name of the file.
13944 mf=`echo "$mf" | sed -e 's/:.*$//'`
13945 # Check whether this is an Automake generated Makefile or not.
13946 # We used to match only the files named 'Makefile.in', but
13947 # some people rename them; so instead we look at the file content.
13948 # Grep'ing the first line is not enough: some people post-process
13949 # each Makefile.in and add a new line on top of each file to say so.
13950 # Grep'ing the whole file is not good either: AIX grep has a line
13951 # limit of 2048, but all sed's we know have understand at least 4000.
13952 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13953 dirpart=`$as_dirname -- "$mf" ||
13954 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13955 X"$mf" : 'X\(//\)[^/]' \| \
13956 X"$mf" : 'X\(//\)$' \| \
13957 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13958 $as_echo X"$mf" |
13959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\/\)[^/].*/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\/\)$/{
13968 s//\1/
13969 q
13970 }
13971 /^X\(\/\).*/{
13972 s//\1/
13973 q
13974 }
13975 s/.*/./; q'`
13976 else
13977 continue
13978 fi
13979 # Extract the definition of DEPDIR, am__include, and am__quote
13980 # from the Makefile without running 'make'.
13981 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13982 test -z "$DEPDIR" && continue
13983 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13984 test -z "$am__include" && continue
13985 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13986 # Find all dependency output files, they are included files with
13987 # $(DEPDIR) in their names. We invoke sed twice because it is the
13988 # simplest approach to changing $(DEPDIR) to its actual value in the
13989 # expansion.
13990 for file in `sed -n "
13991 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13993 # Make sure the directory exists.
13994 test -f "$dirpart/$file" && continue
13995 fdir=`$as_dirname -- "$file" ||
13996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13997 X"$file" : 'X\(//\)[^/]' \| \
13998 X"$file" : 'X\(//\)$' \| \
13999 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14000 $as_echo X"$file" |
14001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14002 s//\1/
14003 q
14004 }
14005 /^X\(\/\/\)[^/].*/{
14006 s//\1/
14007 q
14008 }
14009 /^X\(\/\/\)$/{
14010 s//\1/
14011 q
14012 }
14013 /^X\(\/\).*/{
14014 s//\1/
14015 q
14016 }
14017 s/.*/./; q'`
14018 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14019 # echo "creating $dirpart/$file"
14020 echo '# dummy' > "$dirpart/$file"
14021 done
14022 done
14023 }
14024 ;;
14025 "libtool":C)
14026
14027 # See if we are running on zsh, and set the options which allow our
14028 # commands through without removal of \ escapes.
14029 if test -n "${ZSH_VERSION+set}" ; then
14030 setopt NO_GLOB_SUBST
14031 fi
14032
14033 cfgfile="${ofile}T"
14034 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14035 $RM "$cfgfile"
14036
14037 cat <<_LT_EOF >> "$cfgfile"
14038 #! $SHELL
14039
14040 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14041 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14043 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14044 #
14045 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14046 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14047 # Foundation, Inc.
14048 # Written by Gordon Matzigkeit, 1996
14049 #
14050 # This file is part of GNU Libtool.
14051 #
14052 # GNU Libtool is free software; you can redistribute it and/or
14053 # modify it under the terms of the GNU General Public License as
14054 # published by the Free Software Foundation; either version 2 of
14055 # the License, or (at your option) any later version.
14056 #
14057 # As a special exception to the GNU General Public License,
14058 # if you distribute this file as part of a program or library that
14059 # is built using GNU Libtool, you may include this file under the
14060 # same distribution terms that you use for the rest of that program.
14061 #
14062 # GNU Libtool is distributed in the hope that it will be useful,
14063 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14064 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14065 # GNU General Public License for more details.
14066 #
14067 # You should have received a copy of the GNU General Public License
14068 # along with GNU Libtool; see the file COPYING. If not, a copy
14069 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14070 # obtained by writing to the Free Software Foundation, Inc.,
14071 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14072
14073
14074 # The names of the tagged configurations supported by this script.
14075 available_tags=""
14076
14077 # ### BEGIN LIBTOOL CONFIG
14078
14079 # Which release of libtool.m4 was used?
14080 macro_version=$macro_version
14081 macro_revision=$macro_revision
14082
14083 # Whether or not to build shared libraries.
14084 build_libtool_libs=$enable_shared
14085
14086 # Whether or not to build static libraries.
14087 build_old_libs=$enable_static
14088
14089 # What type of objects to build.
14090 pic_mode=$pic_mode
14091
14092 # Whether or not to optimize for fast installation.
14093 fast_install=$enable_fast_install
14094
14095 # Shell to use when invoking shell scripts.
14096 SHELL=$lt_SHELL
14097
14098 # An echo program that protects backslashes.
14099 ECHO=$lt_ECHO
14100
14101 # The PATH separator for the build system.
14102 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14103
14104 # The host system.
14105 host_alias=$host_alias
14106 host=$host
14107 host_os=$host_os
14108
14109 # The build system.
14110 build_alias=$build_alias
14111 build=$build
14112 build_os=$build_os
14113
14114 # A sed program that does not truncate output.
14115 SED=$lt_SED
14116
14117 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14118 Xsed="\$SED -e 1s/^X//"
14119
14120 # A grep program that handles long lines.
14121 GREP=$lt_GREP
14122
14123 # An ERE matcher.
14124 EGREP=$lt_EGREP
14125
14126 # A literal string matcher.
14127 FGREP=$lt_FGREP
14128
14129 # A BSD- or MS-compatible name lister.
14130 NM=$lt_NM
14131
14132 # Whether we need soft or hard links.
14133 LN_S=$lt_LN_S
14134
14135 # What is the maximum length of a command?
14136 max_cmd_len=$max_cmd_len
14137
14138 # Object file suffix (normally "o").
14139 objext=$ac_objext
14140
14141 # Executable file suffix (normally "").
14142 exeext=$exeext
14143
14144 # whether the shell understands "unset".
14145 lt_unset=$lt_unset
14146
14147 # turn spaces into newlines.
14148 SP2NL=$lt_lt_SP2NL
14149
14150 # turn newlines into spaces.
14151 NL2SP=$lt_lt_NL2SP
14152
14153 # convert \$build file names to \$host format.
14154 to_host_file_cmd=$lt_cv_to_host_file_cmd
14155
14156 # convert \$build files to toolchain format.
14157 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14158
14159 # An object symbol dumper.
14160 OBJDUMP=$lt_OBJDUMP
14161
14162 # Method to check whether dependent libraries are shared objects.
14163 deplibs_check_method=$lt_deplibs_check_method
14164
14165 # Command to use when deplibs_check_method = "file_magic".
14166 file_magic_cmd=$lt_file_magic_cmd
14167
14168 # How to find potential files when deplibs_check_method = "file_magic".
14169 file_magic_glob=$lt_file_magic_glob
14170
14171 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14172 want_nocaseglob=$lt_want_nocaseglob
14173
14174 # DLL creation program.
14175 DLLTOOL=$lt_DLLTOOL
14176
14177 # Command to associate shared and link libraries.
14178 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14179
14180 # The archiver.
14181 AR=$lt_AR
14182
14183 # Flags to create an archive.
14184 AR_FLAGS=$lt_AR_FLAGS
14185
14186 # How to feed a file listing to the archiver.
14187 archiver_list_spec=$lt_archiver_list_spec
14188
14189 # A symbol stripping program.
14190 STRIP=$lt_STRIP
14191
14192 # Commands used to install an old-style archive.
14193 RANLIB=$lt_RANLIB
14194 old_postinstall_cmds=$lt_old_postinstall_cmds
14195 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14196
14197 # Whether to use a lock for old archive extraction.
14198 lock_old_archive_extraction=$lock_old_archive_extraction
14199
14200 # A C compiler.
14201 LTCC=$lt_CC
14202
14203 # LTCC compiler flags.
14204 LTCFLAGS=$lt_CFLAGS
14205
14206 # Take the output of nm and produce a listing of raw symbols and C names.
14207 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14208
14209 # Transform the output of nm in a proper C declaration.
14210 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14211
14212 # Transform the output of nm in a C name address pair.
14213 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14214
14215 # Transform the output of nm in a C name address pair when lib prefix is needed.
14216 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14217
14218 # Specify filename containing input files for \$NM.
14219 nm_file_list_spec=$lt_nm_file_list_spec
14220
14221 # The root where to search for dependent libraries,and in which our libraries should be installed.
14222 lt_sysroot=$lt_sysroot
14223
14224 # The name of the directory that contains temporary libtool files.
14225 objdir=$objdir
14226
14227 # Used to examine libraries when file_magic_cmd begins with "file".
14228 MAGIC_CMD=$MAGIC_CMD
14229
14230 # Must we lock files when doing compilation?
14231 need_locks=$lt_need_locks
14232
14233 # Manifest tool.
14234 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14235
14236 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14237 DSYMUTIL=$lt_DSYMUTIL
14238
14239 # Tool to change global to local symbols on Mac OS X.
14240 NMEDIT=$lt_NMEDIT
14241
14242 # Tool to manipulate fat objects and archives on Mac OS X.
14243 LIPO=$lt_LIPO
14244
14245 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14246 OTOOL=$lt_OTOOL
14247
14248 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14249 OTOOL64=$lt_OTOOL64
14250
14251 # Old archive suffix (normally "a").
14252 libext=$libext
14253
14254 # Shared library suffix (normally ".so").
14255 shrext_cmds=$lt_shrext_cmds
14256
14257 # The commands to extract the exported symbol list from a shared archive.
14258 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14259
14260 # Variables whose values should be saved in libtool wrapper scripts and
14261 # restored at link time.
14262 variables_saved_for_relink=$lt_variables_saved_for_relink
14263
14264 # Do we need the "lib" prefix for modules?
14265 need_lib_prefix=$need_lib_prefix
14266
14267 # Do we need a version for libraries?
14268 need_version=$need_version
14269
14270 # Library versioning type.
14271 version_type=$version_type
14272
14273 # Shared library runtime path variable.
14274 runpath_var=$runpath_var
14275
14276 # Shared library path variable.
14277 shlibpath_var=$shlibpath_var
14278
14279 # Is shlibpath searched before the hard-coded library search path?
14280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14281
14282 # Format of library name prefix.
14283 libname_spec=$lt_libname_spec
14284
14285 # List of archive names. First name is the real one, the rest are links.
14286 # The last name is the one that the linker finds with -lNAME
14287 library_names_spec=$lt_library_names_spec
14288
14289 # The coded name of the library, if different from the real name.
14290 soname_spec=$lt_soname_spec
14291
14292 # Permission mode override for installation of shared libraries.
14293 install_override_mode=$lt_install_override_mode
14294
14295 # Command to use after installation of a shared archive.
14296 postinstall_cmds=$lt_postinstall_cmds
14297
14298 # Command to use after uninstallation of a shared archive.
14299 postuninstall_cmds=$lt_postuninstall_cmds
14300
14301 # Commands used to finish a libtool library installation in a directory.
14302 finish_cmds=$lt_finish_cmds
14303
14304 # As "finish_cmds", except a single script fragment to be evaled but
14305 # not shown.
14306 finish_eval=$lt_finish_eval
14307
14308 # Whether we should hardcode library paths into libraries.
14309 hardcode_into_libs=$hardcode_into_libs
14310
14311 # Compile-time system search path for libraries.
14312 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14313
14314 # Run-time system search path for libraries.
14315 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14316
14317 # Whether dlopen is supported.
14318 dlopen_support=$enable_dlopen
14319
14320 # Whether dlopen of programs is supported.
14321 dlopen_self=$enable_dlopen_self
14322
14323 # Whether dlopen of statically linked programs is supported.
14324 dlopen_self_static=$enable_dlopen_self_static
14325
14326 # Commands to strip libraries.
14327 old_striplib=$lt_old_striplib
14328 striplib=$lt_striplib
14329
14330
14331 # The linker used to build libraries.
14332 LD=$lt_LD
14333
14334 # How to create reloadable object files.
14335 reload_flag=$lt_reload_flag
14336 reload_cmds=$lt_reload_cmds
14337
14338 # Commands used to build an old-style archive.
14339 old_archive_cmds=$lt_old_archive_cmds
14340
14341 # A language specific compiler.
14342 CC=$lt_compiler
14343
14344 # Is the compiler the GNU compiler?
14345 with_gcc=$GCC
14346
14347 # Compiler flag to turn off builtin functions.
14348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14349
14350 # Additional compiler flags for building library objects.
14351 pic_flag=$lt_lt_prog_compiler_pic
14352
14353 # How to pass a linker flag through the compiler.
14354 wl=$lt_lt_prog_compiler_wl
14355
14356 # Compiler flag to prevent dynamic linking.
14357 link_static_flag=$lt_lt_prog_compiler_static
14358
14359 # Does compiler simultaneously support -c and -o options?
14360 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14361
14362 # Whether or not to add -lc for building shared libraries.
14363 build_libtool_need_lc=$archive_cmds_need_lc
14364
14365 # Whether or not to disallow shared libs when runtime libs are static.
14366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14367
14368 # Compiler flag to allow reflexive dlopens.
14369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14370
14371 # Compiler flag to generate shared objects directly from archives.
14372 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14373
14374 # Whether the compiler copes with passing no objects directly.
14375 compiler_needs_object=$lt_compiler_needs_object
14376
14377 # Create an old-style archive from a shared archive.
14378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14379
14380 # Create a temporary old-style archive to link instead of a shared archive.
14381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14382
14383 # Commands used to build a shared archive.
14384 archive_cmds=$lt_archive_cmds
14385 archive_expsym_cmds=$lt_archive_expsym_cmds
14386
14387 # Commands used to build a loadable module if different from building
14388 # a shared archive.
14389 module_cmds=$lt_module_cmds
14390 module_expsym_cmds=$lt_module_expsym_cmds
14391
14392 # Whether we are building with GNU ld or not.
14393 with_gnu_ld=$lt_with_gnu_ld
14394
14395 # Flag that allows shared libraries with undefined symbols to be built.
14396 allow_undefined_flag=$lt_allow_undefined_flag
14397
14398 # Flag that enforces no undefined symbols.
14399 no_undefined_flag=$lt_no_undefined_flag
14400
14401 # Flag to hardcode \$libdir into a binary during linking.
14402 # This must work even if \$libdir does not exist
14403 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14404
14405 # Whether we need a single "-rpath" flag with a separated argument.
14406 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14407
14408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14409 # DIR into the resulting binary.
14410 hardcode_direct=$hardcode_direct
14411
14412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14413 # DIR into the resulting binary and the resulting library dependency is
14414 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14415 # library is relocated.
14416 hardcode_direct_absolute=$hardcode_direct_absolute
14417
14418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14419 # into the resulting binary.
14420 hardcode_minus_L=$hardcode_minus_L
14421
14422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14423 # into the resulting binary.
14424 hardcode_shlibpath_var=$hardcode_shlibpath_var
14425
14426 # Set to "yes" if building a shared library automatically hardcodes DIR
14427 # into the library and all subsequent libraries and executables linked
14428 # against it.
14429 hardcode_automatic=$hardcode_automatic
14430
14431 # Set to yes if linker adds runtime paths of dependent libraries
14432 # to runtime path list.
14433 inherit_rpath=$inherit_rpath
14434
14435 # Whether libtool must link a program against all its dependency libraries.
14436 link_all_deplibs=$link_all_deplibs
14437
14438 # Set to "yes" if exported symbols are required.
14439 always_export_symbols=$always_export_symbols
14440
14441 # The commands to list exported symbols.
14442 export_symbols_cmds=$lt_export_symbols_cmds
14443
14444 # Symbols that should not be listed in the preloaded symbols.
14445 exclude_expsyms=$lt_exclude_expsyms
14446
14447 # Symbols that must always be exported.
14448 include_expsyms=$lt_include_expsyms
14449
14450 # Commands necessary for linking programs (against libraries) with templates.
14451 prelink_cmds=$lt_prelink_cmds
14452
14453 # Commands necessary for finishing linking programs.
14454 postlink_cmds=$lt_postlink_cmds
14455
14456 # Specify filename containing input files.
14457 file_list_spec=$lt_file_list_spec
14458
14459 # How to hardcode a shared library path into an executable.
14460 hardcode_action=$hardcode_action
14461
14462 # ### END LIBTOOL CONFIG
14463
14464 _LT_EOF
14465
14466 case $host_os in
14467 aix3*)
14468 cat <<\_LT_EOF >> "$cfgfile"
14469 # AIX sometimes has problems with the GCC collect2 program. For some
14470 # reason, if we set the COLLECT_NAMES environment variable, the problems
14471 # vanish in a puff of smoke.
14472 if test "X${COLLECT_NAMES+set}" != Xset; then
14473 COLLECT_NAMES=
14474 export COLLECT_NAMES
14475 fi
14476 _LT_EOF
14477 ;;
14478 esac
14479
14480
14481 ltmain="$ac_aux_dir/ltmain.sh"
14482
14483
14484 # We use sed instead of cat because bash on DJGPP gets confused if
14485 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14486 # text mode, it properly converts lines to CR/LF. This bash problem
14487 # is reportedly fixed, but why not run on old versions too?
14488 sed '$q' "$ltmain" >> "$cfgfile" \
14489 || (rm -f "$cfgfile"; exit 1)
14490
14491 if test x"$xsi_shell" = xyes; then
14492 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14493 func_dirname ()\
14494 {\
14495 \ case ${1} in\
14496 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14497 \ * ) func_dirname_result="${3}" ;;\
14498 \ esac\
14499 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14500 && mv -f "$cfgfile.tmp" "$cfgfile" \
14501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14502 test 0 -eq $? || _lt_function_replace_fail=:
14503
14504
14505 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14506 func_basename ()\
14507 {\
14508 \ func_basename_result="${1##*/}"\
14509 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14510 && mv -f "$cfgfile.tmp" "$cfgfile" \
14511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14512 test 0 -eq $? || _lt_function_replace_fail=:
14513
14514
14515 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14516 func_dirname_and_basename ()\
14517 {\
14518 \ case ${1} in\
14519 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14520 \ * ) func_dirname_result="${3}" ;;\
14521 \ esac\
14522 \ func_basename_result="${1##*/}"\
14523 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14524 && mv -f "$cfgfile.tmp" "$cfgfile" \
14525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14526 test 0 -eq $? || _lt_function_replace_fail=:
14527
14528
14529 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14530 func_stripname ()\
14531 {\
14532 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14533 \ # positional parameters, so assign one to ordinary parameter first.\
14534 \ func_stripname_result=${3}\
14535 \ func_stripname_result=${func_stripname_result#"${1}"}\
14536 \ func_stripname_result=${func_stripname_result%"${2}"}\
14537 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14538 && mv -f "$cfgfile.tmp" "$cfgfile" \
14539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14540 test 0 -eq $? || _lt_function_replace_fail=:
14541
14542
14543 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14544 func_split_long_opt ()\
14545 {\
14546 \ func_split_long_opt_name=${1%%=*}\
14547 \ func_split_long_opt_arg=${1#*=}\
14548 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14549 && mv -f "$cfgfile.tmp" "$cfgfile" \
14550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14551 test 0 -eq $? || _lt_function_replace_fail=:
14552
14553
14554 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14555 func_split_short_opt ()\
14556 {\
14557 \ func_split_short_opt_arg=${1#??}\
14558 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14559 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14560 && mv -f "$cfgfile.tmp" "$cfgfile" \
14561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14562 test 0 -eq $? || _lt_function_replace_fail=:
14563
14564
14565 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14566 func_lo2o ()\
14567 {\
14568 \ case ${1} in\
14569 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14570 \ *) func_lo2o_result=${1} ;;\
14571 \ esac\
14572 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14573 && mv -f "$cfgfile.tmp" "$cfgfile" \
14574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14575 test 0 -eq $? || _lt_function_replace_fail=:
14576
14577
14578 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14579 func_xform ()\
14580 {\
14581 func_xform_result=${1%.*}.lo\
14582 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14583 && mv -f "$cfgfile.tmp" "$cfgfile" \
14584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14585 test 0 -eq $? || _lt_function_replace_fail=:
14586
14587
14588 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14589 func_arith ()\
14590 {\
14591 func_arith_result=$(( $* ))\
14592 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14593 && mv -f "$cfgfile.tmp" "$cfgfile" \
14594 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14595 test 0 -eq $? || _lt_function_replace_fail=:
14596
14597
14598 sed -e '/^func_len ()$/,/^} # func_len /c\
14599 func_len ()\
14600 {\
14601 func_len_result=${#1}\
14602 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14603 && mv -f "$cfgfile.tmp" "$cfgfile" \
14604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14605 test 0 -eq $? || _lt_function_replace_fail=:
14606
14607 fi
14608
14609 if test x"$lt_shell_append" = xyes; then
14610 sed -e '/^func_append ()$/,/^} # func_append /c\
14611 func_append ()\
14612 {\
14613 eval "${1}+=\\${2}"\
14614 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14615 && mv -f "$cfgfile.tmp" "$cfgfile" \
14616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14617 test 0 -eq $? || _lt_function_replace_fail=:
14618
14619
14620 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14621 func_append_quoted ()\
14622 {\
14623 \ func_quote_for_eval "${2}"\
14624 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14625 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14626 && mv -f "$cfgfile.tmp" "$cfgfile" \
14627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14628 test 0 -eq $? || _lt_function_replace_fail=:
14629
14630
14631 # Save a `func_append' function call where possible by direct use of '+='
14632 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14633 && mv -f "$cfgfile.tmp" "$cfgfile" \
14634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14635 test 0 -eq $? || _lt_function_replace_fail=:
14636 else
14637 # Save a `func_append' function call even when '+=' is not available
14638 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14639 && mv -f "$cfgfile.tmp" "$cfgfile" \
14640 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14641 test 0 -eq $? || _lt_function_replace_fail=:
14642 fi
14643
14644 if test x"$_lt_function_replace_fail" = x":"; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14646 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14647 fi
14648
14649
14650 mv -f "$cfgfile" "$ofile" ||
14651 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14652 chmod +x "$ofile"
14653
14654 ;;
14655
14656 esac
14657 done # for ac_tag
14658
14659
14660 as_fn_exit 0
14661 _ACEOF
14662 ac_clean_files=$ac_clean_files_save
14663
14664 test $ac_write_fail = 0 ||
14665 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14666
14667
14668 # configure is writing to config.log, and then calls config.status.
14669 # config.status does its own redirection, appending to config.log.
14670 # Unfortunately, on DOS this fails, as config.log is still kept open
14671 # by configure, so config.status won't be able to write to it; its
14672 # output is simply discarded. So we exec the FD to /dev/null,
14673 # effectively closing config.log, so it can be properly (re)opened and
14674 # appended to by config.status. When coming back to configure, we
14675 # need to make the FD available again.
14676 if test "$no_create" != yes; then
14677 ac_cs_success=:
14678 ac_config_status_args=
14679 test "$silent" = yes &&
14680 ac_config_status_args="$ac_config_status_args --quiet"
14681 exec 5>/dev/null
14682 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14683 exec 5>>config.log
14684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14685 # would make configure fail if this is the last instruction.
14686 $ac_cs_success || as_fn_exit 1
14687 fi
14688 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14690 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14691 fi
14692