ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/configure
Revision: 6059
Committed: Sat Jun 6 17:00:18 2015 UTC (8 years, 9 months ago) by michael
File size: 446306 byte(s)
Log Message:
- Revved version to hopm-1.0.7

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 5991 2015-05-27 18:18:16Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for hopm 1.0.7.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='hopm'
593 PACKAGE_TARNAME='hopm'
594 PACKAGE_VERSION='1.0.7'
595 PACKAGE_STRING='hopm 1.0.7'
596 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 PACKAGE_URL=''
598
599 ac_unique_file="src/opercmd.h"
600 ac_default_prefix=\${HOME}/hopm
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 LEXLIB
642 LEX_OUTPUT_ROOT
643 LEX
644 YFLAGS
645 YACC
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
706 AWK
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_maintainer_mode
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_aix_soname
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 LT_SYS_LIBRARY_PATH
786 CPP
787 YACC
788 YFLAGS'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1195
1196 esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures hopm 1.0.7 to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of hopm 1.0.7:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-maintainer-mode
1410 enable make rules and dependencies not useful (and
1411 sometimes confusing) to the casual installer
1412 --enable-dependency-tracking
1413 do not reject slow dependency extractors
1414 --disable-dependency-tracking
1415 speeds up one-time build
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-aix-soname=aix|svr4|both
1428 shared library versioning (aka "SONAME") variant to
1429 provide on AIX, [default=aix].
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1432 compiler's sysroot if not specified).
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 LT_SYS_LIBRARY_PATH
1443 User-defined run-time library search path.
1444 CPP C preprocessor
1445 YACC The `Yet Another Compiler Compiler' implementation to use.
1446 Defaults to the first program found out of: `bison -y', `byacc',
1447 `yacc'.
1448 YFLAGS The list of arguments that will be passed by default to $YACC.
1449 This script will default YFLAGS to the empty string to avoid a
1450 default value of `-d' given by some make applications.
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <bugs@ircd-hybrid.org>.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1483
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1513 fi
1514
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 hopm configure 1.0.7
1519 generated by GNU Autoconf 2.69
1520
1521 Copyright (C) 2012 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1526 fi
1527
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1531
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1536 {
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564 fi
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1567
1568 } # ac_fn_c_try_compile
1569
1570 # ac_fn_c_try_link LINENO
1571 # -----------------------
1572 # Try to link conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_link ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest$ac_exeext
1577 if { { ac_try="$ac_link"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest$ac_exeext && {
1596 test "$cross_compiling" = yes ||
1597 test -x conftest$ac_exeext
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608 # interfere with the next link command; also delete a directory that is
1609 # left behind by Apple's compiler. We do this before executing the actions.
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_link
1615
1616 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists and can be compiled using the include files in
1619 # INCLUDES, setting the cache variable VAR accordingly.
1620 ac_fn_c_check_header_compile ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1627 else
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1630 $4
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 eval "$3=yes"
1635 else
1636 eval "$3=no"
1637 fi
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 fi
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645 } # ac_fn_c_check_header_compile
1646
1647 # ac_fn_c_try_cpp LINENO
1648 # ----------------------
1649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_cpp ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } > conftest.i && {
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_cpp
1683
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1688 ac_fn_c_try_run ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=$ac_status
1719 fi
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_run
1725
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1741 #define $2 innocuous_$2
1742
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $2 (); below.
1745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746 <limits.h> exists even on freestanding compilers. */
1747
1748 #ifdef __STDC__
1749 # include <limits.h>
1750 #else
1751 # include <assert.h>
1752 #endif
1753
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 ();
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main ()
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext \
1784 conftest$ac_exeext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_func
1792 cat >config.log <<_ACEOF
1793 This file contains any messages produced by compilers while
1794 running configure, to aid debugging if configure makes a mistake.
1795
1796 It was created by hopm $as_me 1.0.7, which was
1797 generated by GNU Autoconf 2.69. Invocation command line was
1798
1799 $ $0 $@
1800
1801 _ACEOF
1802 exec 5>>config.log
1803 {
1804 cat <<_ASUNAME
1805 ## --------- ##
1806 ## Platform. ##
1807 ## --------- ##
1808
1809 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1810 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1811 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1812 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1813 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814
1815 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1816 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817
1818 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1819 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1820 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1821 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1822 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1823 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1824 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1825
1826 _ASUNAME
1827
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1830 do
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 $as_echo "PATH: $as_dir"
1834 done
1835 IFS=$as_save_IFS
1836
1837 } >&5
1838
1839 cat >&5 <<_ACEOF
1840
1841
1842 ## ----------- ##
1843 ## Core tests. ##
1844 ## ----------- ##
1845
1846 _ACEOF
1847
1848
1849 # Keep a trace of the command line.
1850 # Strip out --no-create and --no-recursion so they do not pile up.
1851 # Strip out --silent because we don't want to record it for future runs.
1852 # Also quote any args containing shell meta-characters.
1853 # Make two passes to allow for proper duplicate-argument suppression.
1854 ac_configure_args=
1855 ac_configure_args0=
1856 ac_configure_args1=
1857 ac_must_keep_next=false
1858 for ac_pass in 1 2
1859 do
1860 for ac_arg
1861 do
1862 case $ac_arg in
1863 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1865 | -silent | --silent | --silen | --sile | --sil)
1866 continue ;;
1867 *\'*)
1868 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 esac
1870 case $ac_pass in
1871 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 2)
1873 as_fn_append ac_configure_args1 " '$ac_arg'"
1874 if test $ac_must_keep_next = true; then
1875 ac_must_keep_next=false # Got value, back to normal.
1876 else
1877 case $ac_arg in
1878 *=* | --config-cache | -C | -disable-* | --disable-* \
1879 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1880 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1881 | -with-* | --with-* | -without-* | --without-* | --x)
1882 case "$ac_configure_args0 " in
1883 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1884 esac
1885 ;;
1886 -* ) ac_must_keep_next=true ;;
1887 esac
1888 fi
1889 as_fn_append ac_configure_args " '$ac_arg'"
1890 ;;
1891 esac
1892 done
1893 done
1894 { ac_configure_args0=; unset ac_configure_args0;}
1895 { ac_configure_args1=; unset ac_configure_args1;}
1896
1897 # When interrupted or exit'd, cleanup temporary files, and complete
1898 # config.log. We remove comments because anyway the quotes in there
1899 # would cause problems or look ugly.
1900 # WARNING: Use '\'' to represent an apostrophe within the trap.
1901 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1902 trap 'exit_status=$?
1903 # Save into config.log some information that might help in debugging.
1904 {
1905 echo
1906
1907 $as_echo "## ---------------- ##
1908 ## Cache variables. ##
1909 ## ---------------- ##"
1910 echo
1911 # The following way of writing the cache mishandles newlines in values,
1912 (
1913 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in #(
1916 *${as_nl}*)
1917 case $ac_var in #(
1918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920 esac
1921 case $ac_var in #(
1922 _ | IFS | as_nl) ;; #(
1923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924 *) { eval $ac_var=; unset $ac_var;} ;;
1925 esac ;;
1926 esac
1927 done
1928 (set) 2>&1 |
1929 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930 *${as_nl}ac_space=\ *)
1931 sed -n \
1932 "s/'\''/'\''\\\\'\'''\''/g;
1933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934 ;; #(
1935 *)
1936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937 ;;
1938 esac |
1939 sort
1940 )
1941 echo
1942
1943 $as_echo "## ----------------- ##
1944 ## Output variables. ##
1945 ## ----------------- ##"
1946 echo
1947 for ac_var in $ac_subst_vars
1948 do
1949 eval ac_val=\$$ac_var
1950 case $ac_val in
1951 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 esac
1953 $as_echo "$ac_var='\''$ac_val'\''"
1954 done | sort
1955 echo
1956
1957 if test -n "$ac_subst_files"; then
1958 $as_echo "## ------------------- ##
1959 ## File substitutions. ##
1960 ## ------------------- ##"
1961 echo
1962 for ac_var in $ac_subst_files
1963 do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in
1966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 esac
1968 $as_echo "$ac_var='\''$ac_val'\''"
1969 done | sort
1970 echo
1971 fi
1972
1973 if test -s confdefs.h; then
1974 $as_echo "## ----------- ##
1975 ## confdefs.h. ##
1976 ## ----------- ##"
1977 echo
1978 cat confdefs.h
1979 echo
1980 fi
1981 test "$ac_signal" != 0 &&
1982 $as_echo "$as_me: caught signal $ac_signal"
1983 $as_echo "$as_me: exit $exit_status"
1984 } >&5
1985 rm -f core *.core core.conftest.* &&
1986 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1987 exit $exit_status
1988 ' 0
1989 for ac_signal in 1 2 13 15; do
1990 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1991 done
1992 ac_signal=0
1993
1994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1995 rm -f -r conftest* confdefs.h
1996
1997 $as_echo "/* confdefs.h */" > confdefs.h
1998
1999 # Predefined preprocessor variables.
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_NAME "$PACKAGE_NAME"
2003 _ACEOF
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007 _ACEOF
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_STRING "$PACKAGE_STRING"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_URL "$PACKAGE_URL"
2023 _ACEOF
2024
2025
2026 # Let the site file select an alternate cache file if it wants to.
2027 # Prefer an explicitly selected file to automatically selected ones.
2028 ac_site_file1=NONE
2029 ac_site_file2=NONE
2030 if test -n "$CONFIG_SITE"; then
2031 # We do not want a PATH search for config.site.
2032 case $CONFIG_SITE in #((
2033 -*) ac_site_file1=./$CONFIG_SITE;;
2034 */*) ac_site_file1=$CONFIG_SITE;;
2035 *) ac_site_file1=./$CONFIG_SITE;;
2036 esac
2037 elif test "x$prefix" != xNONE; then
2038 ac_site_file1=$prefix/share/config.site
2039 ac_site_file2=$prefix/etc/config.site
2040 else
2041 ac_site_file1=$ac_default_prefix/share/config.site
2042 ac_site_file2=$ac_default_prefix/etc/config.site
2043 fi
2044 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 do
2046 test "x$ac_site_file" = xNONE && continue
2047 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2049 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2050 sed 's/^/| /' "$ac_site_file" >&5
2051 . "$ac_site_file" \
2052 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054 as_fn_error $? "failed to load site script $ac_site_file
2055 See \`config.log' for more details" "$LINENO" 5; }
2056 fi
2057 done
2058
2059 if test -r "$cache_file"; then
2060 # Some versions of bash will fail to source /dev/null (special files
2061 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2062 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2064 $as_echo "$as_me: loading cache $cache_file" >&6;}
2065 case $cache_file in
2066 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2067 *) . "./$cache_file";;
2068 esac
2069 fi
2070 else
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2072 $as_echo "$as_me: creating cache $cache_file" >&6;}
2073 >$cache_file
2074 fi
2075
2076 # Check that the precious variables saved in the cache have kept the same
2077 # value.
2078 ac_cache_corrupted=false
2079 for ac_var in $ac_precious_vars; do
2080 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2081 eval ac_new_set=\$ac_env_${ac_var}_set
2082 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2083 eval ac_new_val=\$ac_env_${ac_var}_value
2084 case $ac_old_set,$ac_new_set in
2085 set,)
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2087 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2088 ac_cache_corrupted=: ;;
2089 ,set)
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2091 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2092 ac_cache_corrupted=: ;;
2093 ,);;
2094 *)
2095 if test "x$ac_old_val" != "x$ac_new_val"; then
2096 # differences in whitespace do not lead to failure.
2097 ac_old_val_w=`echo x $ac_old_val`
2098 ac_new_val_w=`echo x $ac_new_val`
2099 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2101 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2102 ac_cache_corrupted=:
2103 else
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2105 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2106 eval $ac_var=\$ac_old_val
2107 fi
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2109 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2111 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2112 fi;;
2113 esac
2114 # Pass precious variables to config.status.
2115 if test "$ac_new_set" = set; then
2116 case $ac_new_val in
2117 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 *) ac_arg=$ac_var=$ac_new_val ;;
2119 esac
2120 case " $ac_configure_args " in
2121 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2122 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2123 esac
2124 fi
2125 done
2126 if $ac_cache_corrupted; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2130 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2131 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2132 fi
2133 ## -------------------- ##
2134 ## Main body of script. ##
2135 ## -------------------- ##
2136
2137 ac_ext=c
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142
2143
2144 am__api_version='1.15'
2145
2146 ac_aux_dir=
2147 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2148 if test -f "$ac_dir/install-sh"; then
2149 ac_aux_dir=$ac_dir
2150 ac_install_sh="$ac_aux_dir/install-sh -c"
2151 break
2152 elif test -f "$ac_dir/install.sh"; then
2153 ac_aux_dir=$ac_dir
2154 ac_install_sh="$ac_aux_dir/install.sh -c"
2155 break
2156 elif test -f "$ac_dir/shtool"; then
2157 ac_aux_dir=$ac_dir
2158 ac_install_sh="$ac_aux_dir/shtool install -c"
2159 break
2160 fi
2161 done
2162 if test -z "$ac_aux_dir"; then
2163 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2164 fi
2165
2166 # These three variables are undocumented and unsupported,
2167 # and are intended to be withdrawn in a future Autoconf release.
2168 # They can cause serious problems if a builder's source tree is in a directory
2169 # whose full name contains unusual characters.
2170 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2171 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2172 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2173
2174
2175 # Find a good install program. We prefer a C program (faster),
2176 # so one script is as good as another. But avoid the broken or
2177 # incompatible versions:
2178 # SysV /etc/install, /usr/sbin/install
2179 # SunOS /usr/etc/install
2180 # IRIX /sbin/install
2181 # AIX /bin/install
2182 # AmigaOS /C/install, which installs bootblocks on floppy discs
2183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2186 # OS/2's system install, which has a completely different semantic
2187 # ./install, which can be erroneously created by make from ./install.sh.
2188 # Reject install programs that cannot install multiple files.
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2190 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2191 if test -z "$INSTALL"; then
2192 if ${ac_cv_path_install+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 # Account for people who put trailing slashes in PATH elements.
2201 case $as_dir/ in #((
2202 ./ | .// | /[cC]/* | \
2203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2204 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2205 /usr/ucb/* ) ;;
2206 *)
2207 # OSF1 and SCO ODT 3.0 have their own names for install.
2208 # Don't use installbsd from OSF since it installs stuff as root
2209 # by default.
2210 for ac_prog in ginstall scoinst install; do
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2213 if test $ac_prog = install &&
2214 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215 # AIX install. It has an incompatible calling convention.
2216 :
2217 elif test $ac_prog = install &&
2218 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219 # program-specific install script used by HP pwplus--don't use.
2220 :
2221 else
2222 rm -rf conftest.one conftest.two conftest.dir
2223 echo one > conftest.one
2224 echo two > conftest.two
2225 mkdir conftest.dir
2226 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2227 test -s conftest.one && test -s conftest.two &&
2228 test -s conftest.dir/conftest.one &&
2229 test -s conftest.dir/conftest.two
2230 then
2231 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2232 break 3
2233 fi
2234 fi
2235 fi
2236 done
2237 done
2238 ;;
2239 esac
2240
2241 done
2242 IFS=$as_save_IFS
2243
2244 rm -rf conftest.one conftest.two conftest.dir
2245
2246 fi
2247 if test "${ac_cv_path_install+set}" = set; then
2248 INSTALL=$ac_cv_path_install
2249 else
2250 # As a last resort, use the slow shell script. Don't cache a
2251 # value for INSTALL within a source directory, because that will
2252 # break other packages using the cache if that directory is
2253 # removed, or if the value is a relative name.
2254 INSTALL=$ac_install_sh
2255 fi
2256 fi
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2258 $as_echo "$INSTALL" >&6; }
2259
2260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2261 # It thinks the first close brace ends the variable substitution.
2262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2263
2264 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2265
2266 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2267
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2269 $as_echo_n "checking whether build environment is sane... " >&6; }
2270 # Reject unsafe characters in $srcdir or the absolute working directory
2271 # name. Accept space and tab only in the latter.
2272 am_lf='
2273 '
2274 case `pwd` in
2275 *[\\\"\#\$\&\'\`$am_lf]*)
2276 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2277 esac
2278 case $srcdir in
2279 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2280 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2281 esac
2282
2283 # Do 'set' in a subshell so we don't clobber the current shell's
2284 # arguments. Must try -L first in case configure is actually a
2285 # symlink; some systems play weird games with the mod time of symlinks
2286 # (eg FreeBSD returns the mod time of the symlink's containing
2287 # directory).
2288 if (
2289 am_has_slept=no
2290 for am_try in 1 2; do
2291 echo "timestamp, slept: $am_has_slept" > conftest.file
2292 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2293 if test "$*" = "X"; then
2294 # -L didn't work.
2295 set X `ls -t "$srcdir/configure" conftest.file`
2296 fi
2297 if test "$*" != "X $srcdir/configure conftest.file" \
2298 && test "$*" != "X conftest.file $srcdir/configure"; then
2299
2300 # If neither matched, then we have a broken ls. This can happen
2301 # if, for instance, CONFIG_SHELL is bash and it inherits a
2302 # broken ls alias from the environment. This has actually
2303 # happened. Such a system could not be considered "sane".
2304 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2305 alias in your environment" "$LINENO" 5
2306 fi
2307 if test "$2" = conftest.file || test $am_try -eq 2; then
2308 break
2309 fi
2310 # Just in case.
2311 sleep 1
2312 am_has_slept=yes
2313 done
2314 test "$2" = conftest.file
2315 )
2316 then
2317 # Ok.
2318 :
2319 else
2320 as_fn_error $? "newly created file is older than distributed files!
2321 Check your system clock" "$LINENO" 5
2322 fi
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2324 $as_echo "yes" >&6; }
2325 # If we didn't sleep, we still need to ensure time stamps of config.status and
2326 # generated files are strictly newer.
2327 am_sleep_pid=
2328 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2329 ( sleep 1 ) &
2330 am_sleep_pid=$!
2331 fi
2332
2333 rm -f conftest.file
2334
2335 test "$program_prefix" != NONE &&
2336 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2337 # Use a double $ so make ignores it.
2338 test "$program_suffix" != NONE &&
2339 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2340 # Double any \ or $.
2341 # By default was `s,x,x', remove it if useless.
2342 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2343 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2344
2345 # Expand $ac_aux_dir to an absolute path.
2346 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2347
2348 if test x"${MISSING+set}" != xset; then
2349 case $am_aux_dir in
2350 *\ * | *\ *)
2351 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2352 *)
2353 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2354 esac
2355 fi
2356 # Use eval to expand $SHELL
2357 if eval "$MISSING --is-lightweight"; then
2358 am_missing_run="$MISSING "
2359 else
2360 am_missing_run=
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2362 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2363 fi
2364
2365 if test x"${install_sh+set}" != xset; then
2366 case $am_aux_dir in
2367 *\ * | *\ *)
2368 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2369 *)
2370 install_sh="\${SHELL} $am_aux_dir/install-sh"
2371 esac
2372 fi
2373
2374 # Installed binaries are usually stripped using 'strip' when the user
2375 # run "make install-strip". However 'strip' might not be the right
2376 # tool to use in cross-compilation environments, therefore Automake
2377 # will honor the 'STRIP' environment variable to overrule this program.
2378 if test "$cross_compiling" != no; then
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}strip; ac_word=$2
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if ${ac_cv_prog_STRIP+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test -n "$STRIP"; then
2388 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2400 fi
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406 fi
2407 STRIP=$ac_cv_prog_STRIP
2408 if test -n "$STRIP"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2410 $as_echo "$STRIP" >&6; }
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413 $as_echo "no" >&6; }
2414 fi
2415
2416
2417 fi
2418 if test -z "$ac_cv_prog_STRIP"; then
2419 ac_ct_STRIP=$STRIP
2420 # Extract the first word of "strip", so it can be a program name with args.
2421 set dummy strip; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test -n "$ac_ct_STRIP"; then
2428 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437 ac_cv_prog_ac_ct_STRIP="strip"
2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2448 if test -n "$ac_ct_STRIP"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2450 $as_echo "$ac_ct_STRIP" >&6; }
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456 if test "x$ac_ct_STRIP" = x; then
2457 STRIP=":"
2458 else
2459 case $cross_compiling:$ac_tool_warned in
2460 yes:)
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2463 ac_tool_warned=yes ;;
2464 esac
2465 STRIP=$ac_ct_STRIP
2466 fi
2467 else
2468 STRIP="$ac_cv_prog_STRIP"
2469 fi
2470
2471 fi
2472 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2473
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2475 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2476 if test -z "$MKDIR_P"; then
2477 if ${ac_cv_path_mkdir+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_prog in mkdir gmkdir; do
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2488 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2489 'mkdir (GNU coreutils) '* | \
2490 'mkdir (coreutils) '* | \
2491 'mkdir (fileutils) '4.1*)
2492 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2493 break 3;;
2494 esac
2495 done
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501
2502 test -d ./--version && rmdir ./--version
2503 if test "${ac_cv_path_mkdir+set}" = set; then
2504 MKDIR_P="$ac_cv_path_mkdir -p"
2505 else
2506 # As a last resort, use the slow shell script. Don't cache a
2507 # value for MKDIR_P within a source directory, because that will
2508 # break other packages using the cache if that directory is
2509 # removed, or if the value is a relative name.
2510 MKDIR_P="$ac_install_sh -d"
2511 fi
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2514 $as_echo "$MKDIR_P" >&6; }
2515
2516 for ac_prog in gawk mawk nawk awk
2517 do
2518 # Extract the first word of "$ac_prog", so it can be a program name with args.
2519 set dummy $ac_prog; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_AWK+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test -n "$AWK"; then
2526 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535 ac_cv_prog_AWK="$ac_prog"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 AWK=$ac_cv_prog_AWK
2546 if test -n "$AWK"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2548 $as_echo "$AWK" >&6; }
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2552 fi
2553
2554
2555 test -n "$AWK" && break
2556 done
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2559 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2560 set x ${MAKE-make}
2561 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2562 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 cat >conftest.make <<\_ACEOF
2566 SHELL = /bin/sh
2567 all:
2568 @echo '@@@%%%=$(MAKE)=@@@%%%'
2569 _ACEOF
2570 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2571 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2572 *@@@%%%=?*=@@@%%%*)
2573 eval ac_cv_prog_make_${ac_make}_set=yes;;
2574 *)
2575 eval ac_cv_prog_make_${ac_make}_set=no;;
2576 esac
2577 rm -f conftest.make
2578 fi
2579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2581 $as_echo "yes" >&6; }
2582 SET_MAKE=
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 SET_MAKE="MAKE=${MAKE-make}"
2587 fi
2588
2589 rm -rf .tst 2>/dev/null
2590 mkdir .tst 2>/dev/null
2591 if test -d .tst; then
2592 am__leading_dot=.
2593 else
2594 am__leading_dot=_
2595 fi
2596 rmdir .tst 2>/dev/null
2597
2598 # Check whether --enable-silent-rules was given.
2599 if test "${enable_silent_rules+set}" = set; then :
2600 enableval=$enable_silent_rules;
2601 fi
2602
2603 case $enable_silent_rules in # (((
2604 yes) AM_DEFAULT_VERBOSITY=0;;
2605 no) AM_DEFAULT_VERBOSITY=1;;
2606 *) AM_DEFAULT_VERBOSITY=1;;
2607 esac
2608 am_make=${MAKE-make}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2610 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2611 if ${am_cv_make_support_nested_variables+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if $as_echo 'TRUE=$(BAR$(V))
2615 BAR0=false
2616 BAR1=true
2617 V=1
2618 am__doit:
2619 @$(TRUE)
2620 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2621 am_cv_make_support_nested_variables=yes
2622 else
2623 am_cv_make_support_nested_variables=no
2624 fi
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2627 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2628 if test $am_cv_make_support_nested_variables = yes; then
2629 AM_V='$(V)'
2630 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2631 else
2632 AM_V=$AM_DEFAULT_VERBOSITY
2633 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2634 fi
2635 AM_BACKSLASH='\'
2636
2637 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2638 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2639 # is not polluted with repeated "-I."
2640 am__isrc=' -I$(srcdir)'
2641 # test to see if srcdir already configured
2642 if test -f $srcdir/config.status; then
2643 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2644 fi
2645 fi
2646
2647 # test whether we have cygpath
2648 if test -z "$CYGPATH_W"; then
2649 if (cygpath --version) >/dev/null 2>/dev/null; then
2650 CYGPATH_W='cygpath -w'
2651 else
2652 CYGPATH_W=echo
2653 fi
2654 fi
2655
2656
2657 # Define the identity of the package.
2658 PACKAGE='hopm'
2659 VERSION='1.0.7'
2660
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE "$PACKAGE"
2664 _ACEOF
2665
2666
2667 cat >>confdefs.h <<_ACEOF
2668 #define VERSION "$VERSION"
2669 _ACEOF
2670
2671 # Some tools Automake needs.
2672
2673 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2674
2675
2676 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2677
2678
2679 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2680
2681
2682 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2683
2684
2685 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2686
2687 # For better backward compatibility. To be removed once Automake 1.9.x
2688 # dies out for good. For more background, see:
2689 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2690 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2691 mkdir_p='$(MKDIR_P)'
2692
2693 # We need awk for the "check" target (and possibly the TAP driver). The
2694 # system "awk" is bad on some platforms.
2695 # Always define AMTAR for backward compatibility. Yes, it's still used
2696 # in the wild :-( We should find a proper way to deprecate it ...
2697 AMTAR='$${TAR-tar}'
2698
2699
2700 # We'll loop over all known methods to create a tar archive until one works.
2701 _am_tools='gnutar pax cpio none'
2702
2703 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2704
2705
2706
2707
2708
2709
2710 # POSIX will say in a future version that running "rm -f" with no argument
2711 # is OK; and we want to be able to make that assumption in our Makefile
2712 # recipes. So use an aggressive probe to check that the usage we want is
2713 # actually supported "in the wild" to an acceptable degree.
2714 # See automake bug#10828.
2715 # To make any issue more visible, cause the running configure to be aborted
2716 # by default if the 'rm' program in use doesn't match our expectations; the
2717 # user can still override this though.
2718 if rm -f && rm -fr && rm -rf; then : OK; else
2719 cat >&2 <<'END'
2720 Oops!
2721
2722 Your 'rm' program seems unable to run without file operands specified
2723 on the command line, even when the '-f' option is present. This is contrary
2724 to the behaviour of most rm programs out there, and not conforming with
2725 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2726
2727 Please tell bug-automake@gnu.org about your system, including the value
2728 of your $PATH and any error possibly output before this message. This
2729 can help us improve future automake versions.
2730
2731 END
2732 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2733 echo 'Configuration will proceed anyway, since you have set the' >&2
2734 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2735 echo >&2
2736 else
2737 cat >&2 <<'END'
2738 Aborting the configuration process, to ensure you take notice of the issue.
2739
2740 You can download and install GNU coreutils to get an 'rm' implementation
2741 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2742
2743 If you want to complete the configuration process using your problematic
2744 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2745 to "yes", and re-run configure.
2746
2747 END
2748 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2749 fi
2750 fi
2751
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2754 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2755 # Check whether --enable-maintainer-mode was given.
2756 if test "${enable_maintainer_mode+set}" = set; then :
2757 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2758 else
2759 USE_MAINTAINER_MODE=no
2760 fi
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2763 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2764 if test $USE_MAINTAINER_MODE = yes; then
2765 MAINTAINER_MODE_TRUE=
2766 MAINTAINER_MODE_FALSE='#'
2767 else
2768 MAINTAINER_MODE_TRUE='#'
2769 MAINTAINER_MODE_FALSE=
2770 fi
2771
2772 MAINT=$MAINTAINER_MODE_TRUE
2773
2774
2775
2776 ac_config_headers="$ac_config_headers src/setup.h"
2777
2778
2779
2780 DEPDIR="${am__leading_dot}deps"
2781
2782 ac_config_commands="$ac_config_commands depfiles"
2783
2784
2785 am_make=${MAKE-make}
2786 cat > confinc << 'END'
2787 am__doit:
2788 @echo this is the am__doit target
2789 .PHONY: am__doit
2790 END
2791 # If we don't find an include directive, just comment out the code.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2793 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2794 am__include="#"
2795 am__quote=
2796 _am_result=none
2797 # First try GNU make style include.
2798 echo "include confinc" > confmf
2799 # Ignore all kinds of additional output from 'make'.
2800 case `$am_make -s -f confmf 2> /dev/null` in #(
2801 *the\ am__doit\ target*)
2802 am__include=include
2803 am__quote=
2804 _am_result=GNU
2805 ;;
2806 esac
2807 # Now try BSD make style include.
2808 if test "$am__include" = "#"; then
2809 echo '.include "confinc"' > confmf
2810 case `$am_make -s -f confmf 2> /dev/null` in #(
2811 *the\ am__doit\ target*)
2812 am__include=.include
2813 am__quote="\""
2814 _am_result=BSD
2815 ;;
2816 esac
2817 fi
2818
2819
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2821 $as_echo "$_am_result" >&6; }
2822 rm -f confinc confmf
2823
2824 # Check whether --enable-dependency-tracking was given.
2825 if test "${enable_dependency_tracking+set}" = set; then :
2826 enableval=$enable_dependency_tracking;
2827 fi
2828
2829 if test "x$enable_dependency_tracking" != xno; then
2830 am_depcomp="$ac_aux_dir/depcomp"
2831 AMDEPBACKSLASH='\'
2832 am__nodep='_no'
2833 fi
2834 if test "x$enable_dependency_tracking" != xno; then
2835 AMDEP_TRUE=
2836 AMDEP_FALSE='#'
2837 else
2838 AMDEP_TRUE='#'
2839 AMDEP_FALSE=
2840 fi
2841
2842
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_CC"; then
2888 ac_ct_CC=$CC
2889 # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CC="gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 CC=$ac_ct_CC
2935 fi
2936 else
2937 CC="$ac_cv_prog_CC"
2938 fi
2939
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 fi
2980 fi
2981 if test -z "$CC"; then
2982 # Extract the first word of "cc", so it can be a program name with args.
2983 set dummy cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 ac_prog_rejected=no
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001 ac_prog_rejected=yes
3002 continue
3003 fi
3004 ac_cv_prog_CC="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 if test $ac_prog_rejected = yes; then
3013 # We found a bogon in the path, so make sure we never use it.
3014 set dummy $ac_cv_prog_CC
3015 shift
3016 if test $# != 0; then
3017 # We chose a different compiler from the bogus one.
3018 # However, it has the same basename, so the bogon will be chosen
3019 # first if we set CC to just the basename; use the full file name.
3020 shift
3021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3022 fi
3023 fi
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035
3036 fi
3037 if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 for ac_prog in cl.exe
3040 do
3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 test -n "$CC" && break
3079 done
3080 fi
3081 if test -z "$CC"; then
3082 ac_ct_CC=$CC
3083 for ac_prog in cl.exe
3084 do
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_ac_ct_CC="$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 test -n "$ac_ct_CC" && break
3123 done
3124
3125 if test "x$ac_ct_CC" = x; then
3126 CC=""
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134 CC=$ac_ct_CC
3135 fi
3136 fi
3137
3138 fi
3139
3140
3141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "no acceptable C compiler found in \$PATH
3144 See \`config.log' for more details" "$LINENO" 5; }
3145
3146 # Provide some information about the compiler.
3147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3148 set X $ac_compile
3149 ac_compiler=$2
3150 for ac_option in --version -v -V -qversion; do
3151 { { ac_try="$ac_compiler $ac_option >&5"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159 ac_status=$?
3160 if test -s conftest.err; then
3161 sed '10a\
3162 ... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3165 fi
3166 rm -f conftest.er1 conftest.err
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3169 done
3170
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3186 # of exeext.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188 $as_echo_n "checking whether the C compiler works... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194 ac_rmfiles=
3195 for ac_file in $ac_files
3196 do
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 esac
3201 done
3202 rm -f $ac_rmfiles
3203
3204 if { { ac_try="$ac_link_default"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link_default") 2>&5
3212 ac_status=$?
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3219 # Autoconf.
3220 for ac_file in $ac_files ''
3221 do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3225 ;;
3226 [ab].out )
3227 # We found the default executable, but exeext='' is most
3228 # certainly right.
3229 break;;
3230 *.* )
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 then :; else
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 fi
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3239 # actually working.
3240 break;;
3241 * )
3242 break;;
3243 esac
3244 done
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247 else
3248 ac_file=''
3249 fi
3250 if test -z "$ac_file"; then :
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error 77 "C compiler cannot create executables
3259 See \`config.log' for more details" "$LINENO" 5; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265 $as_echo_n "checking for C compiler default output file name... " >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267 $as_echo "$ac_file" >&6; }
3268 ac_exeext=$ac_cv_exeext
3269
3270 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273 $as_echo_n "checking for suffix of executables... " >&6; }
3274 if { { ac_try="$ac_link"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287 # work properly (i.e., refer to `conftest.exe'), while it won't with
3288 # `rm'.
3289 for ac_file in conftest.exe conftest conftest.*; do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 break;;
3295 * ) break;;
3296 esac
3297 done
3298 else
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details" "$LINENO" 5; }
3303 fi
3304 rm -f conftest conftest$ac_cv_exeext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3307
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3310 ac_exeext=$EXEEXT
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313 #include <stdio.h>
3314 int
3315 main ()
3316 {
3317 FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
3319
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 ac_clean_files="$ac_clean_files conftest.out"
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details" "$LINENO" 5; }
3362 fi
3363 fi
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366 $as_echo "$cross_compiling" >&6; }
3367
3368 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371 $as_echo_n "checking for suffix of object files... " >&6; }
3372 if ${ac_cv_objext+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377
3378 int
3379 main ()
3380 {
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.o conftest.obj
3387 if { { ac_try="$ac_compile"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compile") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403 break;;
3404 esac
3405 done
3406 else
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details" "$LINENO" 5; }
3414 fi
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418 $as_echo "$ac_cv_objext" >&6; }
3419 OBJEXT=$ac_cv_objext
3420 ac_objext=$OBJEXT
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423 if ${ac_cv_c_compiler_gnu+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432 #ifndef __GNUC__
3433 choke me
3434 #endif
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441 ac_compiler_gnu=yes
3442 else
3443 ac_compiler_gnu=no
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451 if test $ac_compiler_gnu = yes; then
3452 GCC=yes
3453 else
3454 GCC=
3455 fi
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3460 if ${ac_cv_prog_cc_g+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no
3466 CFLAGS="-g"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469
3470 int
3471 main ()
3472 {
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_g=yes
3480 else
3481 CFLAGS=""
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494
3495 else
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 CFLAGS="-g"
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_g=yes
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520 $as_echo "$ac_cv_prog_cc_g" >&6; }
3521 if test "$ac_test_CFLAGS" = set; then
3522 CFLAGS=$ac_save_CFLAGS
3523 elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then
3525 CFLAGS="-g -O2"
3526 else
3527 CFLAGS="-g"
3528 fi
3529 else
3530 if test "$GCC" = yes; then
3531 CFLAGS="-O2"
3532 else
3533 CFLAGS=
3534 fi
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538 if ${ac_cv_prog_cc_c89+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 ac_cv_prog_cc_c89=no
3542 ac_save_CC=$CC
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 struct stat;
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3552 char **p;
3553 int i;
3554 {
3555 return p[i];
3556 }
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3558 {
3559 char *s;
3560 va_list v;
3561 va_start (v,p);
3562 s = g (p, va_arg (v,int));
3563 va_end (v);
3564 return s;
3565 }
3566
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3578 #define FOO(x) 'x'
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585 int argc;
3586 char **argv;
3587 int
3588 main ()
3589 {
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 do
3598 CC="$ac_save_CC $ac_arg"
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_c89=$ac_arg
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break
3604 done
3605 rm -f conftest.$ac_ext
3606 CC=$ac_save_CC
3607
3608 fi
3609 # AC_CACHE_VAL
3610 case "x$ac_cv_prog_cc_c89" in
3611 x)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613 $as_echo "none needed" >&6; } ;;
3614 xno)
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3616 $as_echo "unsupported" >&6; } ;;
3617 *)
3618 CC="$CC $ac_cv_prog_cc_c89"
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3621 esac
3622 if test "x$ac_cv_prog_cc_c89" != xno; then :
3623
3624 fi
3625
3626 ac_ext=c
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3638 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3639 if ${am_cv_prog_cc_c_o+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 # Make sure it works both with $CC and with simple cc.
3654 # Following AC_PROG_CC_C_O, we do the test twice because some
3655 # compilers refuse to overwrite an existing .o file with -o,
3656 # though they will create one.
3657 am_cv_prog_cc_c_o=yes
3658 for am_i in 1 2; do
3659 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3660 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } \
3664 && test -f conftest2.$ac_objext; then
3665 : OK
3666 else
3667 am_cv_prog_cc_c_o=no
3668 break
3669 fi
3670 done
3671 rm -f core conftest*
3672 unset am_i
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3675 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3676 if test "$am_cv_prog_cc_c_o" != yes; then
3677 # Losing compiler, so override with the script.
3678 # FIXME: It is wrong to rewrite CC.
3679 # But if we don't then we get into trouble of one sort or another.
3680 # A longer-term fix would be to have automake use am__CC in this case,
3681 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3682 CC="$am_aux_dir/compile $CC"
3683 fi
3684 ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690
3691 depcc="$CC" am_compiler_list=
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694 $as_echo_n "checking dependency style of $depcc... " >&6; }
3695 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named 'D' -- because '-MD' means "put the output
3703 # in D".
3704 rm -rf conftest.dir
3705 mkdir conftest.dir
3706 # Copy depcomp to subdir because otherwise we won't find it if we're
3707 # using a relative directory.
3708 cp "$am_depcomp" conftest.dir
3709 cd conftest.dir
3710 # We will build objects and dependencies in a subdirectory because
3711 # it helps to detect inapplicable dependency modes. For instance
3712 # both Tru64's cc and ICC support -MD to output dependencies as a
3713 # side effect of compilation, but ICC will put the dependencies in
3714 # the current directory while Tru64 will put them in the object
3715 # directory.
3716 mkdir sub
3717
3718 am_cv_CC_dependencies_compiler_type=none
3719 if test "$am_compiler_list" = ""; then
3720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721 fi
3722 am__universal=false
3723 case " $depcc " in #(
3724 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3725 esac
3726
3727 for depmode in $am_compiler_list; do
3728 # Setup a source with many dependencies, because some compilers
3729 # like to wrap large dependency lists on column 80 (with \), and
3730 # we should not choose a depcomp mode which is confused by this.
3731 #
3732 # We need to recreate these files for each test, as the compiler may
3733 # overwrite some of them when testing with obscure command lines.
3734 # This happens at least with the AIX C compiler.
3735 : > sub/conftest.c
3736 for i in 1 2 3 4 5 6; do
3737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3738 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3739 # Solaris 10 /bin/sh.
3740 echo '/* dummy */' > sub/conftst$i.h
3741 done
3742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3743
3744 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3745 # mode. It turns out that the SunPro C++ compiler does not properly
3746 # handle '-M -o', and we need to detect this. Also, some Intel
3747 # versions had trouble with output in subdirs.
3748 am__obj=sub/conftest.${OBJEXT-o}
3749 am__minus_obj="-o $am__obj"
3750 case $depmode in
3751 gcc)
3752 # This depmode causes a compiler race in universal mode.
3753 test "$am__universal" = false || continue
3754 ;;
3755 nosideeffect)
3756 # After this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested.
3758 if test "x$enable_dependency_tracking" = xyes; then
3759 continue
3760 else
3761 break
3762 fi
3763 ;;
3764 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3765 # This compiler won't grok '-c -o', but also, the minuso test has
3766 # not run yet. These depmodes are late enough in the game, and
3767 # so weak that their functioning should not be impacted.
3768 am__obj=conftest.${OBJEXT-o}
3769 am__minus_obj=
3770 ;;
3771 none) break ;;
3772 esac
3773 if depmode=$depmode \
3774 source=sub/conftest.c object=$am__obj \
3775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3776 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3777 >/dev/null 2>conftest.err &&
3778 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3780 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3781 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3782 # icc doesn't choke on unknown options, it will just issue warnings
3783 # or remarks (even with -Werror). So we grep stderr for any message
3784 # that says an option was ignored or not supported.
3785 # When given -MP, icc 7.0 and 7.1 complain thusly:
3786 # icc: Command line warning: ignoring option '-M'; no argument required
3787 # The diagnosis changed in icc 8.0:
3788 # icc: Command line remark: option '-MP' not supported
3789 if (grep 'ignoring option' conftest.err ||
3790 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3791 am_cv_CC_dependencies_compiler_type=$depmode
3792 break
3793 fi
3794 fi
3795 done
3796
3797 cd ..
3798 rm -rf conftest.dir
3799 else
3800 am_cv_CC_dependencies_compiler_type=none
3801 fi
3802
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3805 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3806 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807
3808 if
3809 test "x$enable_dependency_tracking" != xno \
3810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3811 am__fastdepCC_TRUE=
3812 am__fastdepCC_FALSE='#'
3813 else
3814 am__fastdepCC_TRUE='#'
3815 am__fastdepCC_FALSE=
3816 fi
3817
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3820 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3821 if ${ac_cv_prog_cc_c99+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 ac_cv_prog_cc_c99=no
3825 ac_save_CC=$CC
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #include <stdarg.h>
3829 #include <stdbool.h>
3830 #include <stdlib.h>
3831 #include <wchar.h>
3832 #include <stdio.h>
3833
3834 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3835 #define debug(...) fprintf (stderr, __VA_ARGS__)
3836 #define showlist(...) puts (#__VA_ARGS__)
3837 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3838 static void
3839 test_varargs_macros (void)
3840 {
3841 int x = 1234;
3842 int y = 5678;
3843 debug ("Flag");
3844 debug ("X = %d\n", x);
3845 showlist (The first, second, and third items.);
3846 report (x>y, "x is %d but y is %d", x, y);
3847 }
3848
3849 // Check long long types.
3850 #define BIG64 18446744073709551615ull
3851 #define BIG32 4294967295ul
3852 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3853 #if !BIG_OK
3854 your preprocessor is broken;
3855 #endif
3856 #if BIG_OK
3857 #else
3858 your preprocessor is broken;
3859 #endif
3860 static long long int bignum = -9223372036854775807LL;
3861 static unsigned long long int ubignum = BIG64;
3862
3863 struct incomplete_array
3864 {
3865 int datasize;
3866 double data[];
3867 };
3868
3869 struct named_init {
3870 int number;
3871 const wchar_t *name;
3872 double average;
3873 };
3874
3875 typedef const char *ccp;
3876
3877 static inline int
3878 test_restrict (ccp restrict text)
3879 {
3880 // See if C++-style comments work.
3881 // Iterate through items via the restricted pointer.
3882 // Also check for declarations in for loops.
3883 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3884 continue;
3885 return 0;
3886 }
3887
3888 // Check varargs and va_copy.
3889 static void
3890 test_varargs (const char *format, ...)
3891 {
3892 va_list args;
3893 va_start (args, format);
3894 va_list args_copy;
3895 va_copy (args_copy, args);
3896
3897 const char *str;
3898 int number;
3899 float fnumber;
3900
3901 while (*format)
3902 {
3903 switch (*format++)
3904 {
3905 case 's': // string
3906 str = va_arg (args_copy, const char *);
3907 break;
3908 case 'd': // int
3909 number = va_arg (args_copy, int);
3910 break;
3911 case 'f': // float
3912 fnumber = va_arg (args_copy, double);
3913 break;
3914 default:
3915 break;
3916 }
3917 }
3918 va_end (args_copy);
3919 va_end (args);
3920 }
3921
3922 int
3923 main ()
3924 {
3925
3926 // Check bool.
3927 _Bool success = false;
3928
3929 // Check restrict.
3930 if (test_restrict ("String literal") == 0)
3931 success = true;
3932 char *restrict newvar = "Another string";
3933
3934 // Check varargs.
3935 test_varargs ("s, d' f .", "string", 65, 34.234);
3936 test_varargs_macros ();
3937
3938 // Check flexible array members.
3939 struct incomplete_array *ia =
3940 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3941 ia->datasize = 10;
3942 for (int i = 0; i < ia->datasize; ++i)
3943 ia->data[i] = i * 1.234;
3944
3945 // Check named initializers.
3946 struct named_init ni = {
3947 .number = 34,
3948 .name = L"Test wide string",
3949 .average = 543.34343,
3950 };
3951
3952 ni.number = 58;
3953
3954 int dynamic_array[ni.number];
3955 dynamic_array[ni.number - 1] = 543;
3956
3957 // work around unused variable warnings
3958 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3959 || dynamic_array[ni.number - 1] != 543);
3960
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3966 do
3967 CC="$ac_save_CC $ac_arg"
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969 ac_cv_prog_cc_c99=$ac_arg
3970 fi
3971 rm -f core conftest.err conftest.$ac_objext
3972 test "x$ac_cv_prog_cc_c99" != "xno" && break
3973 done
3974 rm -f conftest.$ac_ext
3975 CC=$ac_save_CC
3976
3977 fi
3978 # AC_CACHE_VAL
3979 case "x$ac_cv_prog_cc_c99" in
3980 x)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3982 $as_echo "none needed" >&6; } ;;
3983 xno)
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3985 $as_echo "unsupported" >&6; } ;;
3986 *)
3987 CC="$CC $ac_cv_prog_cc_c99"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3989 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3990 esac
3991 if test "x$ac_cv_prog_cc_c99" != xno; then :
3992
3993 fi
3994
3995
3996 if test "$ac_cv_prog_cc_c99" = "no"; then :
3997 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
3998 fi
3999 case `pwd` in
4000 *\ * | *\ *)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4002 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4003 esac
4004
4005
4006
4007 macro_version='2.4.6'
4008 macro_revision='2.4.6'
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022 ltmain=$ac_aux_dir/ltmain.sh
4023
4024 # Make sure we can run config.sub.
4025 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4026 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4029 $as_echo_n "checking build system type... " >&6; }
4030 if ${ac_cv_build+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 ac_build_alias=$build_alias
4034 test "x$ac_build_alias" = x &&
4035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4036 test "x$ac_build_alias" = x &&
4037 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4039 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4040
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4043 $as_echo "$ac_cv_build" >&6; }
4044 case $ac_cv_build in
4045 *-*-*) ;;
4046 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4047 esac
4048 build=$ac_cv_build
4049 ac_save_IFS=$IFS; IFS='-'
4050 set x $ac_cv_build
4051 shift
4052 build_cpu=$1
4053 build_vendor=$2
4054 shift; shift
4055 # Remember, the first character of IFS is used to create $*,
4056 # except with old shells:
4057 build_os=$*
4058 IFS=$ac_save_IFS
4059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4060
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4063 $as_echo_n "checking host system type... " >&6; }
4064 if ${ac_cv_host+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test "x$host_alias" = x; then
4068 ac_cv_host=$ac_cv_build
4069 else
4070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4071 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4072 fi
4073
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4076 $as_echo "$ac_cv_host" >&6; }
4077 case $ac_cv_host in
4078 *-*-*) ;;
4079 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4080 esac
4081 host=$ac_cv_host
4082 ac_save_IFS=$IFS; IFS='-'
4083 set x $ac_cv_host
4084 shift
4085 host_cpu=$1
4086 host_vendor=$2
4087 shift; shift
4088 # Remember, the first character of IFS is used to create $*,
4089 # except with old shells:
4090 host_os=$*
4091 IFS=$ac_save_IFS
4092 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4093
4094
4095 # Backslashify metacharacters that are still active within
4096 # double-quoted strings.
4097 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4098
4099 # Same as above, but do not quote variable references.
4100 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4101
4102 # Sed substitution to delay expansion of an escaped shell variable in a
4103 # double_quote_subst'ed string.
4104 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4105
4106 # Sed substitution to delay expansion of an escaped single quote.
4107 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4108
4109 # Sed substitution to avoid accidental globbing in evaled expressions
4110 no_glob_subst='s/\*/\\\*/g'
4111
4112 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4113 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4114 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4117 $as_echo_n "checking how to print strings... " >&6; }
4118 # Test print first, because it will be a builtin if present.
4119 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4120 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4121 ECHO='print -r --'
4122 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4123 ECHO='printf %s\n'
4124 else
4125 # Use this function as a fallback that always works.
4126 func_fallback_echo ()
4127 {
4128 eval 'cat <<_LTECHO_EOF
4129 $1
4130 _LTECHO_EOF'
4131 }
4132 ECHO='func_fallback_echo'
4133 fi
4134
4135 # func_echo_all arg...
4136 # Invoke $ECHO with all args, space-separated.
4137 func_echo_all ()
4138 {
4139 $ECHO ""
4140 }
4141
4142 case $ECHO in
4143 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4144 $as_echo "printf" >&6; } ;;
4145 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4146 $as_echo "print -r" >&6; } ;;
4147 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4148 $as_echo "cat" >&6; } ;;
4149 esac
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4165 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4166 if ${ac_cv_path_SED+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4170 for ac_i in 1 2 3 4 5 6 7; do
4171 ac_script="$ac_script$as_nl$ac_script"
4172 done
4173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4174 { ac_script=; unset ac_script;}
4175 if test -z "$SED"; then
4176 ac_path_SED_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in sed gsed; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4186 as_fn_executable_p "$ac_path_SED" || continue
4187 # Check for GNU ac_path_SED and select it if it is found.
4188 # Check for GNU $ac_path_SED
4189 case `"$ac_path_SED" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo '' >> "conftest.nl"
4201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_SED_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_SED="$ac_path_SED"
4207 ac_path_SED_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_SED_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_SED"; then
4221 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_SED=$SED
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4229 $as_echo "$ac_cv_path_SED" >&6; }
4230 SED="$ac_cv_path_SED"
4231 rm -f conftest.sed
4232
4233 test -z "$SED" && SED=sed
4234 Xsed="$SED -e 1s/^X//"
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4247 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4248 if ${ac_cv_path_GREP+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -z "$GREP"; then
4252 ac_path_GREP_found=false
4253 # Loop through the user's path and test for each of PROGNAME-LIST
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_prog in grep ggrep; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4262 as_fn_executable_p "$ac_path_GREP" || continue
4263 # Check for GNU ac_path_GREP and select it if it is found.
4264 # Check for GNU $ac_path_GREP
4265 case `"$ac_path_GREP" --version 2>&1` in
4266 *GNU*)
4267 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4268 *)
4269 ac_count=0
4270 $as_echo_n 0123456789 >"conftest.in"
4271 while :
4272 do
4273 cat "conftest.in" "conftest.in" >"conftest.tmp"
4274 mv "conftest.tmp" "conftest.in"
4275 cp "conftest.in" "conftest.nl"
4276 $as_echo 'GREP' >> "conftest.nl"
4277 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279 as_fn_arith $ac_count + 1 && ac_count=$as_val
4280 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4281 # Best one so far, save it but keep looking for a better one
4282 ac_cv_path_GREP="$ac_path_GREP"
4283 ac_path_GREP_max=$ac_count
4284 fi
4285 # 10*(2^10) chars as input seems more than enough
4286 test $ac_count -gt 10 && break
4287 done
4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 esac
4290
4291 $ac_path_GREP_found && break 3
4292 done
4293 done
4294 done
4295 IFS=$as_save_IFS
4296 if test -z "$ac_cv_path_GREP"; then
4297 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298 fi
4299 else
4300 ac_cv_path_GREP=$GREP
4301 fi
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4305 $as_echo "$ac_cv_path_GREP" >&6; }
4306 GREP="$ac_cv_path_GREP"
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4310 $as_echo_n "checking for egrep... " >&6; }
4311 if ${ac_cv_path_EGREP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315 then ac_cv_path_EGREP="$GREP -E"
4316 else
4317 if test -z "$EGREP"; then
4318 ac_path_EGREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in egrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4328 as_fn_executable_p "$ac_path_EGREP" || continue
4329 # Check for GNU ac_path_EGREP and select it if it is found.
4330 # Check for GNU $ac_path_EGREP
4331 case `"$ac_path_EGREP" --version 2>&1` in
4332 *GNU*)
4333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4334 *)
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4338 do
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'EGREP' >> "conftest.nl"
4343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_EGREP="$ac_path_EGREP"
4349 ac_path_EGREP_max=$ac_count
4350 fi
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357 $ac_path_EGREP_found && break 3
4358 done
4359 done
4360 done
4361 IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_EGREP"; then
4363 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 fi
4365 else
4366 ac_cv_path_EGREP=$EGREP
4367 fi
4368
4369 fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4372 $as_echo "$ac_cv_path_EGREP" >&6; }
4373 EGREP="$ac_cv_path_EGREP"
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4377 $as_echo_n "checking for fgrep... " >&6; }
4378 if ${ac_cv_path_FGREP+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4382 then ac_cv_path_FGREP="$GREP -F"
4383 else
4384 if test -z "$FGREP"; then
4385 ac_path_FGREP_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in fgrep; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4395 as_fn_executable_p "$ac_path_FGREP" || continue
4396 # Check for GNU ac_path_FGREP and select it if it is found.
4397 # Check for GNU $ac_path_FGREP
4398 case `"$ac_path_FGREP" --version 2>&1` in
4399 *GNU*)
4400 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4401 *)
4402 ac_count=0
4403 $as_echo_n 0123456789 >"conftest.in"
4404 while :
4405 do
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'FGREP' >> "conftest.nl"
4410 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_FGREP="$ac_path_FGREP"
4416 ac_path_FGREP_max=$ac_count
4417 fi
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4420 done
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 esac
4423
4424 $ac_path_FGREP_found && break 3
4425 done
4426 done
4427 done
4428 IFS=$as_save_IFS
4429 if test -z "$ac_cv_path_FGREP"; then
4430 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 fi
4432 else
4433 ac_cv_path_FGREP=$FGREP
4434 fi
4435
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4439 $as_echo "$ac_cv_path_FGREP" >&6; }
4440 FGREP="$ac_cv_path_FGREP"
4441
4442
4443 test -z "$GREP" && GREP=grep
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463 # Check whether --with-gnu-ld was given.
4464 if test "${with_gnu_ld+set}" = set; then :
4465 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4466 else
4467 with_gnu_ld=no
4468 fi
4469
4470 ac_prog=ld
4471 if test yes = "$GCC"; then
4472 # Check if gcc -print-prog-name=ld gives a path.
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4474 $as_echo_n "checking for ld used by $CC... " >&6; }
4475 case $host in
4476 *-*-mingw*)
4477 # gcc leaves a trailing carriage return, which upsets mingw
4478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479 *)
4480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4481 esac
4482 case $ac_prog in
4483 # Accept absolute paths.
4484 [\\/]* | ?:[\\/]*)
4485 re_direlt='/[^/][^/]*/\.\./'
4486 # Canonicalize the pathname of ld
4487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4490 done
4491 test -z "$LD" && LD=$ac_prog
4492 ;;
4493 "")
4494 # If it fails, then pretend we aren't using GCC.
4495 ac_prog=ld
4496 ;;
4497 *)
4498 # If it is relative, then search for the first ld in PATH.
4499 with_gnu_ld=unknown
4500 ;;
4501 esac
4502 elif test yes = "$with_gnu_ld"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4504 $as_echo_n "checking for GNU ld... " >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4507 $as_echo_n "checking for non-GNU ld... " >&6; }
4508 fi
4509 if ${lt_cv_path_LD+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -z "$LD"; then
4513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4514 for ac_dir in $PATH; do
4515 IFS=$lt_save_ifs
4516 test -z "$ac_dir" && ac_dir=.
4517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4518 lt_cv_path_LD=$ac_dir/$ac_prog
4519 # Check to see if the program is GNU ld. I'd rather use --version,
4520 # but apparently some variants of GNU ld only accept -v.
4521 # Break only if it was the GNU/non-GNU ld that we prefer.
4522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4523 *GNU* | *'with BFD'*)
4524 test no != "$with_gnu_ld" && break
4525 ;;
4526 *)
4527 test yes != "$with_gnu_ld" && break
4528 ;;
4529 esac
4530 fi
4531 done
4532 IFS=$lt_save_ifs
4533 else
4534 lt_cv_path_LD=$LD # Let the user override the test with a path.
4535 fi
4536 fi
4537
4538 LD=$lt_cv_path_LD
4539 if test -n "$LD"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4541 $as_echo "$LD" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4549 if ${lt_cv_prog_gnu_ld+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4553 case `$LD -v 2>&1 </dev/null` in
4554 *GNU* | *'with BFD'*)
4555 lt_cv_prog_gnu_ld=yes
4556 ;;
4557 *)
4558 lt_cv_prog_gnu_ld=no
4559 ;;
4560 esac
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4564 with_gnu_ld=$lt_cv_prog_gnu_ld
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4575 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4576 if ${lt_cv_path_NM+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$NM"; then
4580 # Let the user override the test.
4581 lt_cv_path_NM=$NM
4582 else
4583 lt_nm_to_check=${ac_tool_prefix}nm
4584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4585 lt_nm_to_check="$lt_nm_to_check nm"
4586 fi
4587 for lt_tmp_nm in $lt_nm_to_check; do
4588 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4590 IFS=$lt_save_ifs
4591 test -z "$ac_dir" && ac_dir=.
4592 tmp_nm=$ac_dir/$lt_tmp_nm
4593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4594 # Check to see if the nm accepts a BSD-compat flag.
4595 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4596 # nm: unknown option "B" ignored
4597 # Tru64's nm complains that /dev/null is an invalid object file
4598 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4599 case $build_os in
4600 mingw*) lt_bad_file=conftest.nm/nofile ;;
4601 *) lt_bad_file=/dev/null ;;
4602 esac
4603 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4604 *$lt_bad_file* | *'Invalid file or object type'*)
4605 lt_cv_path_NM="$tmp_nm -B"
4606 break 2
4607 ;;
4608 *)
4609 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4610 */dev/null*)
4611 lt_cv_path_NM="$tmp_nm -p"
4612 break 2
4613 ;;
4614 *)
4615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4616 continue # so that we can try to find one that supports BSD flags
4617 ;;
4618 esac
4619 ;;
4620 esac
4621 fi
4622 done
4623 IFS=$lt_save_ifs
4624 done
4625 : ${lt_cv_path_NM=no}
4626 fi
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4629 $as_echo "$lt_cv_path_NM" >&6; }
4630 if test no != "$lt_cv_path_NM"; then
4631 NM=$lt_cv_path_NM
4632 else
4633 # Didn't find any BSD compatible name lister, look for dumpbin.
4634 if test -n "$DUMPBIN"; then :
4635 # Let the user override the test.
4636 else
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in dumpbin "link -dump"
4639 do
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_DUMPBIN+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$DUMPBIN"; then
4648 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 DUMPBIN=$ac_cv_prog_DUMPBIN
4668 if test -n "$DUMPBIN"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4670 $as_echo "$DUMPBIN" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677 test -n "$DUMPBIN" && break
4678 done
4679 fi
4680 if test -z "$DUMPBIN"; then
4681 ac_ct_DUMPBIN=$DUMPBIN
4682 for ac_prog in dumpbin "link -dump"
4683 do
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_DUMPBIN"; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4712 if test -n "$ac_ct_DUMPBIN"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4714 $as_echo "$ac_ct_DUMPBIN" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 test -n "$ac_ct_DUMPBIN" && break
4722 done
4723
4724 if test "x$ac_ct_DUMPBIN" = x; then
4725 DUMPBIN=":"
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 DUMPBIN=$ac_ct_DUMPBIN
4734 fi
4735 fi
4736
4737 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4738 *COFF*)
4739 DUMPBIN="$DUMPBIN -symbols -headers"
4740 ;;
4741 *)
4742 DUMPBIN=:
4743 ;;
4744 esac
4745 fi
4746
4747 if test : != "$DUMPBIN"; then
4748 NM=$DUMPBIN
4749 fi
4750 fi
4751 test -z "$NM" && NM=nm
4752
4753
4754
4755
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4759 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4760 if ${lt_cv_nm_interface+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 lt_cv_nm_interface="BSD nm"
4764 echo "int some_variable = 0;" > conftest.$ac_ext
4765 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4766 (eval "$ac_compile" 2>conftest.err)
4767 cat conftest.err >&5
4768 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4769 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4770 cat conftest.err >&5
4771 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4772 cat conftest.out >&5
4773 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4774 lt_cv_nm_interface="MS dumpbin"
4775 fi
4776 rm -f conftest*
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4779 $as_echo "$lt_cv_nm_interface" >&6; }
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4782 $as_echo_n "checking whether ln -s works... " >&6; }
4783 LN_S=$as_ln_s
4784 if test "$LN_S" = "ln -s"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786 $as_echo "yes" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4789 $as_echo "no, using $LN_S" >&6; }
4790 fi
4791
4792 # find the maximum length of command line arguments
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4794 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4795 if ${lt_cv_sys_max_cmd_len+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 i=0
4799 teststring=ABCD
4800
4801 case $build_os in
4802 msdosdjgpp*)
4803 # On DJGPP, this test can blow up pretty badly due to problems in libc
4804 # (any single argument exceeding 2000 bytes causes a buffer overrun
4805 # during glob expansion). Even if it were fixed, the result of this
4806 # check would be larger than it should be.
4807 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4808 ;;
4809
4810 gnu*)
4811 # Under GNU Hurd, this test is not required because there is
4812 # no limit to the length of command line arguments.
4813 # Libtool will interpret -1 as no limit whatsoever
4814 lt_cv_sys_max_cmd_len=-1;
4815 ;;
4816
4817 cygwin* | mingw* | cegcc*)
4818 # On Win9x/ME, this test blows up -- it succeeds, but takes
4819 # about 5 minutes as the teststring grows exponentially.
4820 # Worse, since 9x/ME are not pre-emptively multitasking,
4821 # you end up with a "frozen" computer, even though with patience
4822 # the test eventually succeeds (with a max line length of 256k).
4823 # Instead, let's just punt: use the minimum linelength reported by
4824 # all of the supported platforms: 8192 (on NT/2K/XP).
4825 lt_cv_sys_max_cmd_len=8192;
4826 ;;
4827
4828 mint*)
4829 # On MiNT this can take a long time and run out of memory.
4830 lt_cv_sys_max_cmd_len=8192;
4831 ;;
4832
4833 amigaos*)
4834 # On AmigaOS with pdksh, this test takes hours, literally.
4835 # So we just punt and use a minimum line length of 8192.
4836 lt_cv_sys_max_cmd_len=8192;
4837 ;;
4838
4839 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4840 # This has been around since 386BSD, at least. Likely further.
4841 if test -x /sbin/sysctl; then
4842 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4843 elif test -x /usr/sbin/sysctl; then
4844 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4845 else
4846 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4847 fi
4848 # And add a safety zone
4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851 ;;
4852
4853 interix*)
4854 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4855 lt_cv_sys_max_cmd_len=196608
4856 ;;
4857
4858 os2*)
4859 # The test takes a long time on OS/2.
4860 lt_cv_sys_max_cmd_len=8192
4861 ;;
4862
4863 osf*)
4864 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4865 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4866 # nice to cause kernel panics so lets avoid the loop below.
4867 # First set a reasonable default.
4868 lt_cv_sys_max_cmd_len=16384
4869 #
4870 if test -x /sbin/sysconfig; then
4871 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4872 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4873 esac
4874 fi
4875 ;;
4876 sco3.2v5*)
4877 lt_cv_sys_max_cmd_len=102400
4878 ;;
4879 sysv5* | sco5v6* | sysv4.2uw2*)
4880 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4881 if test -n "$kargmax"; then
4882 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4883 else
4884 lt_cv_sys_max_cmd_len=32768
4885 fi
4886 ;;
4887 *)
4888 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4889 if test -n "$lt_cv_sys_max_cmd_len" && \
4890 test undefined != "$lt_cv_sys_max_cmd_len"; then
4891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4893 else
4894 # Make teststring a little bigger before we do anything with it.
4895 # a 1K string should be a reasonable start.
4896 for i in 1 2 3 4 5 6 7 8; do
4897 teststring=$teststring$teststring
4898 done
4899 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4900 # If test is not a shell built-in, we'll probably end up computing a
4901 # maximum length that is only half of the actual maximum length, but
4902 # we can't tell.
4903 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4904 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4905 test 17 != "$i" # 1/2 MB should be enough
4906 do
4907 i=`expr $i + 1`
4908 teststring=$teststring$teststring
4909 done
4910 # Only check the string length outside the loop.
4911 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4912 teststring=
4913 # Add a significant safety factor because C++ compilers can tack on
4914 # massive amounts of additional arguments before passing them to the
4915 # linker. It appears as though 1/2 is a usable value.
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4917 fi
4918 ;;
4919 esac
4920
4921 fi
4922
4923 if test -n "$lt_cv_sys_max_cmd_len"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4925 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4928 $as_echo "none" >&6; }
4929 fi
4930 max_cmd_len=$lt_cv_sys_max_cmd_len
4931
4932
4933
4934
4935
4936
4937 : ${CP="cp -f"}
4938 : ${MV="mv -f"}
4939 : ${RM="rm -f"}
4940
4941 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4942 lt_unset=unset
4943 else
4944 lt_unset=false
4945 fi
4946
4947
4948
4949
4950
4951 # test EBCDIC or ASCII
4952 case `echo X|tr X '\101'` in
4953 A) # ASCII based system
4954 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4955 lt_SP2NL='tr \040 \012'
4956 lt_NL2SP='tr \015\012 \040\040'
4957 ;;
4958 *) # EBCDIC based system
4959 lt_SP2NL='tr \100 \n'
4960 lt_NL2SP='tr \r\n \100\100'
4961 ;;
4962 esac
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4973 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4974 if ${lt_cv_to_host_file_cmd+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 case $host in
4978 *-*-mingw* )
4979 case $build in
4980 *-*-mingw* ) # actually msys
4981 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4982 ;;
4983 *-*-cygwin* )
4984 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4985 ;;
4986 * ) # otherwise, assume *nix
4987 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4988 ;;
4989 esac
4990 ;;
4991 *-*-cygwin* )
4992 case $build in
4993 *-*-mingw* ) # actually msys
4994 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4995 ;;
4996 *-*-cygwin* )
4997 lt_cv_to_host_file_cmd=func_convert_file_noop
4998 ;;
4999 * ) # otherwise, assume *nix
5000 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5001 ;;
5002 esac
5003 ;;
5004 * ) # unhandled hosts (and "normal" native builds)
5005 lt_cv_to_host_file_cmd=func_convert_file_noop
5006 ;;
5007 esac
5008
5009 fi
5010
5011 to_host_file_cmd=$lt_cv_to_host_file_cmd
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5013 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5014
5015
5016
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5020 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5021 if ${lt_cv_to_tool_file_cmd+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 #assume ordinary cross tools, or native build.
5025 lt_cv_to_tool_file_cmd=func_convert_file_noop
5026 case $host in
5027 *-*-mingw* )
5028 case $build in
5029 *-*-mingw* ) # actually msys
5030 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5031 ;;
5032 esac
5033 ;;
5034 esac
5035
5036 fi
5037
5038 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5040 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5047 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5048 if ${lt_cv_ld_reload_flag+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 lt_cv_ld_reload_flag='-r'
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5054 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5055 reload_flag=$lt_cv_ld_reload_flag
5056 case $reload_flag in
5057 "" | " "*) ;;
5058 *) reload_flag=" $reload_flag" ;;
5059 esac
5060 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5061 case $host_os in
5062 cygwin* | mingw* | pw32* | cegcc*)
5063 if test yes != "$GCC"; then
5064 reload_cmds=false
5065 fi
5066 ;;
5067 darwin*)
5068 if test yes = "$GCC"; then
5069 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5070 else
5071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5072 fi
5073 ;;
5074 esac
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084 if test -n "$ac_tool_prefix"; then
5085 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5086 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_OBJDUMP+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$OBJDUMP"; then
5093 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 OBJDUMP=$ac_cv_prog_OBJDUMP
5113 if test -n "$OBJDUMP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5115 $as_echo "$OBJDUMP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 fi
5123 if test -z "$ac_cv_prog_OBJDUMP"; then
5124 ac_ct_OBJDUMP=$OBJDUMP
5125 # Extract the first word of "objdump", so it can be a program name with args.
5126 set dummy objdump; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$ac_ct_OBJDUMP"; then
5133 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5145 fi
5146 done
5147 done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5153 if test -n "$ac_ct_OBJDUMP"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5155 $as_echo "$ac_ct_OBJDUMP" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161 if test "x$ac_ct_OBJDUMP" = x; then
5162 OBJDUMP="false"
5163 else
5164 case $cross_compiling:$ac_tool_warned in
5165 yes:)
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168 ac_tool_warned=yes ;;
5169 esac
5170 OBJDUMP=$ac_ct_OBJDUMP
5171 fi
5172 else
5173 OBJDUMP="$ac_cv_prog_OBJDUMP"
5174 fi
5175
5176 test -z "$OBJDUMP" && OBJDUMP=objdump
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5187 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5188 if ${lt_cv_deplibs_check_method+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 lt_cv_file_magic_cmd='$MAGIC_CMD'
5192 lt_cv_file_magic_test_file=
5193 lt_cv_deplibs_check_method='unknown'
5194 # Need to set the preceding variable on all platforms that support
5195 # interlibrary dependencies.
5196 # 'none' -- dependencies not supported.
5197 # 'unknown' -- same as none, but documents that we really don't know.
5198 # 'pass_all' -- all dependencies passed with no checks.
5199 # 'test_compile' -- check by making test program.
5200 # 'file_magic [[regex]]' -- check by looking for files in library path
5201 # that responds to the $file_magic_cmd with a given extended regex.
5202 # If you have 'file' or equivalent on your system and you're not sure
5203 # whether 'pass_all' will *always* work, you probably want this one.
5204
5205 case $host_os in
5206 aix[4-9]*)
5207 lt_cv_deplibs_check_method=pass_all
5208 ;;
5209
5210 beos*)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213
5214 bsdi[45]*)
5215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5216 lt_cv_file_magic_cmd='/usr/bin/file -L'
5217 lt_cv_file_magic_test_file=/shlib/libc.so
5218 ;;
5219
5220 cygwin*)
5221 # func_win32_libid is a shell function defined in ltmain.sh
5222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5223 lt_cv_file_magic_cmd='func_win32_libid'
5224 ;;
5225
5226 mingw* | pw32*)
5227 # Base MSYS/MinGW do not provide the 'file' command needed by
5228 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5229 # unless we find 'file', for example because we are cross-compiling.
5230 if ( file / ) >/dev/null 2>&1; then
5231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5232 lt_cv_file_magic_cmd='func_win32_libid'
5233 else
5234 # Keep this pattern in sync with the one in func_win32_libid.
5235 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5236 lt_cv_file_magic_cmd='$OBJDUMP -f'
5237 fi
5238 ;;
5239
5240 cegcc*)
5241 # use the weaker test based on 'objdump'. See mingw*.
5242 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5243 lt_cv_file_magic_cmd='$OBJDUMP -f'
5244 ;;
5245
5246 darwin* | rhapsody*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 freebsd* | dragonfly*)
5251 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5252 case $host_cpu in
5253 i*86 )
5254 # Not sure whether the presence of OpenBSD here was a mistake.
5255 # Let's accept both of them until this is cleared up.
5256 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5257 lt_cv_file_magic_cmd=/usr/bin/file
5258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5259 ;;
5260 esac
5261 else
5262 lt_cv_deplibs_check_method=pass_all
5263 fi
5264 ;;
5265
5266 haiku*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270 hpux10.20* | hpux11*)
5271 lt_cv_file_magic_cmd=/usr/bin/file
5272 case $host_cpu in
5273 ia64*)
5274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5275 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5276 ;;
5277 hppa*64*)
5278 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]'
5279 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5280 ;;
5281 *)
5282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5283 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5284 ;;
5285 esac
5286 ;;
5287
5288 interix[3-9]*)
5289 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5291 ;;
5292
5293 irix5* | irix6* | nonstopux*)
5294 case $LD in
5295 *-32|*"-32 ") libmagic=32-bit;;
5296 *-n32|*"-n32 ") libmagic=N32;;
5297 *-64|*"-64 ") libmagic=64-bit;;
5298 *) libmagic=never-match;;
5299 esac
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302
5303 # This must be glibc/ELF.
5304 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307
5308 netbsd*)
5309 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5311 else
5312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5313 fi
5314 ;;
5315
5316 newos6*)
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5318 lt_cv_file_magic_cmd=/usr/bin/file
5319 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5320 ;;
5321
5322 *nto* | *qnx*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 openbsd* | bitrig*)
5327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5329 else
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5331 fi
5332 ;;
5333
5334 osf3* | osf4* | osf5*)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
5338 rdos*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341
5342 solaris*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
5350 sysv4 | sysv4.3*)
5351 case $host_vendor in
5352 motorola)
5353 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]'
5354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5355 ;;
5356 ncr)
5357 lt_cv_deplibs_check_method=pass_all
5358 ;;
5359 sequent)
5360 lt_cv_file_magic_cmd='/bin/file'
5361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5362 ;;
5363 sni)
5364 lt_cv_file_magic_cmd='/bin/file'
5365 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5366 lt_cv_file_magic_test_file=/lib/libc.so
5367 ;;
5368 siemens)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371 pc)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374 esac
5375 ;;
5376
5377 tpf*)
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380 os2*)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383 esac
5384
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5387 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5388
5389 file_magic_glob=
5390 want_nocaseglob=no
5391 if test "$build" = "$host"; then
5392 case $host_os in
5393 mingw* | pw32*)
5394 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5395 want_nocaseglob=yes
5396 else
5397 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5398 fi
5399 ;;
5400 esac
5401 fi
5402
5403 file_magic_cmd=$lt_cv_file_magic_cmd
5404 deplibs_check_method=$lt_cv_deplibs_check_method
5405 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 if test -n "$ac_tool_prefix"; then
5429 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5430 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_prog_DLLTOOL+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$DLLTOOL"; then
5437 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 DLLTOOL=$ac_cv_prog_DLLTOOL
5457 if test -n "$DLLTOOL"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5459 $as_echo "$DLLTOOL" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465
5466 fi
5467 if test -z "$ac_cv_prog_DLLTOOL"; then
5468 ac_ct_DLLTOOL=$DLLTOOL
5469 # Extract the first word of "dlltool", so it can be a program name with args.
5470 set dummy dlltool; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$ac_ct_DLLTOOL"; then
5477 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5497 if test -n "$ac_ct_DLLTOOL"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5499 $as_echo "$ac_ct_DLLTOOL" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505 if test "x$ac_ct_DLLTOOL" = x; then
5506 DLLTOOL="false"
5507 else
5508 case $cross_compiling:$ac_tool_warned in
5509 yes:)
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512 ac_tool_warned=yes ;;
5513 esac
5514 DLLTOOL=$ac_ct_DLLTOOL
5515 fi
5516 else
5517 DLLTOOL="$ac_cv_prog_DLLTOOL"
5518 fi
5519
5520 test -z "$DLLTOOL" && DLLTOOL=dlltool
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5532 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5533 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 lt_cv_sharedlib_from_linklib_cmd='unknown'
5537
5538 case $host_os in
5539 cygwin* | mingw* | pw32* | cegcc*)
5540 # two different shell functions defined in ltmain.sh;
5541 # decide which one to use based on capabilities of $DLLTOOL
5542 case `$DLLTOOL --help 2>&1` in
5543 *--identify-strict*)
5544 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5545 ;;
5546 *)
5547 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5548 ;;
5549 esac
5550 ;;
5551 *)
5552 # fallback: assume linklib IS sharedlib
5553 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5554 ;;
5555 esac
5556
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5559 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5560 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5561 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5562
5563
5564
5565
5566
5567
5568
5569
5570 if test -n "$ac_tool_prefix"; then
5571 for ac_prog in ar
5572 do
5573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_AR+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$AR"; then
5581 ac_cv_prog_AR="$AR" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5596 IFS=$as_save_IFS
5597
5598 fi
5599 fi
5600 AR=$ac_cv_prog_AR
5601 if test -n "$AR"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5603 $as_echo "$AR" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5607 fi
5608
5609
5610 test -n "$AR" && break
5611 done
5612 fi
5613 if test -z "$AR"; then
5614 ac_ct_AR=$AR
5615 for ac_prog in ar
5616 do
5617 # Extract the first word of "$ac_prog", so it can be a program name with args.
5618 set dummy $ac_prog; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 if test -n "$ac_ct_AR"; then
5625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_AR="$ac_prog"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5645 if test -n "$ac_ct_AR"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5647 $as_echo "$ac_ct_AR" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654 test -n "$ac_ct_AR" && break
5655 done
5656
5657 if test "x$ac_ct_AR" = x; then
5658 AR="false"
5659 else
5660 case $cross_compiling:$ac_tool_warned in
5661 yes:)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5665 esac
5666 AR=$ac_ct_AR
5667 fi
5668 fi
5669
5670 : ${AR=ar}
5671 : ${AR_FLAGS=cru}
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5684 $as_echo_n "checking for archiver @FILE support... " >&6; }
5685 if ${lt_cv_ar_at_file+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 lt_cv_ar_at_file=no
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691
5692 int
5693 main ()
5694 {
5695
5696 ;
5697 return 0;
5698 }
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701 echo conftest.$ac_objext > conftest.lst
5702 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5704 (eval $lt_ar_try) 2>&5
5705 ac_status=$?
5706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707 test $ac_status = 0; }
5708 if test 0 -eq "$ac_status"; then
5709 # Ensure the archiver fails upon bogus file names.
5710 rm -f conftest.$ac_objext libconftest.a
5711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5712 (eval $lt_ar_try) 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; }
5716 if test 0 -ne "$ac_status"; then
5717 lt_cv_ar_at_file=@
5718 fi
5719 fi
5720 rm -f conftest.* libconftest.a
5721
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724
5725 fi
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5727 $as_echo "$lt_cv_ar_at_file" >&6; }
5728
5729 if test no = "$lt_cv_ar_at_file"; then
5730 archiver_list_spec=
5731 else
5732 archiver_list_spec=$lt_cv_ar_at_file
5733 fi
5734
5735
5736
5737
5738
5739
5740
5741 if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5743 set dummy ${ac_tool_prefix}strip; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_STRIP+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 if test -n "$STRIP"; then
5750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 STRIP=$ac_cv_prog_STRIP
5770 if test -n "$STRIP"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5772 $as_echo "$STRIP" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777
5778
5779 fi
5780 if test -z "$ac_cv_prog_STRIP"; then
5781 ac_ct_STRIP=$STRIP
5782 # Extract the first word of "strip", so it can be a program name with args.
5783 set dummy strip; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 if test -n "$ac_ct_STRIP"; then
5790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799 ac_cv_prog_ac_ct_STRIP="strip"
5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 break 2
5802 fi
5803 done
5804 done
5805 IFS=$as_save_IFS
5806
5807 fi
5808 fi
5809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5810 if test -n "$ac_ct_STRIP"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5812 $as_echo "$ac_ct_STRIP" >&6; }
5813 else
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818 if test "x$ac_ct_STRIP" = x; then
5819 STRIP=":"
5820 else
5821 case $cross_compiling:$ac_tool_warned in
5822 yes:)
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5825 ac_tool_warned=yes ;;
5826 esac
5827 STRIP=$ac_ct_STRIP
5828 fi
5829 else
5830 STRIP="$ac_cv_prog_STRIP"
5831 fi
5832
5833 test -z "$STRIP" && STRIP=:
5834
5835
5836
5837
5838
5839
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_RANLIB+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$RANLIB"; then
5849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 RANLIB=$ac_cv_prog_RANLIB
5869 if test -n "$RANLIB"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5871 $as_echo "$RANLIB" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877
5878 fi
5879 if test -z "$ac_cv_prog_RANLIB"; then
5880 ac_ct_RANLIB=$RANLIB
5881 # Extract the first word of "ranlib", so it can be a program name with args.
5882 set dummy ranlib; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if test -n "$ac_ct_RANLIB"; then
5889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_ac_ct_RANLIB="ranlib"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5901 fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5909 if test -n "$ac_ct_RANLIB"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5911 $as_echo "$ac_ct_RANLIB" >&6; }
5912 else
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917 if test "x$ac_ct_RANLIB" = x; then
5918 RANLIB=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926 RANLIB=$ac_ct_RANLIB
5927 fi
5928 else
5929 RANLIB="$ac_cv_prog_RANLIB"
5930 fi
5931
5932 test -z "$RANLIB" && RANLIB=:
5933
5934
5935
5936
5937
5938
5939 # Determine commands to create old-style static archives.
5940 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5941 old_postinstall_cmds='chmod 644 $oldlib'
5942 old_postuninstall_cmds=
5943
5944 if test -n "$RANLIB"; then
5945 case $host_os in
5946 bitrig* | openbsd*)
5947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5948 ;;
5949 *)
5950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5951 ;;
5952 esac
5953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5954 fi
5955
5956 case $host_os in
5957 darwin*)
5958 lock_old_archive_extraction=yes ;;
5959 *)
5960 lock_old_archive_extraction=no ;;
5961 esac
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 # If no C compiler was specified, use CC.
6002 LTCC=${LTCC-"$CC"}
6003
6004 # If no C compiler flags were specified, use CFLAGS.
6005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6006
6007 # Allow CC to be a program name with arguments.
6008 compiler=$CC
6009
6010
6011 # Check for command to grab the raw symbol name followed by C symbol from nm.
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6013 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6014 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017
6018 # These are sane defaults that work on at least a few old systems.
6019 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6020
6021 # Character class describing NM global symbol codes.
6022 symcode='[BCDEGRST]'
6023
6024 # Regexp to match symbols that can be accessed directly from C.
6025 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6026
6027 # Define system-specific variables.
6028 case $host_os in
6029 aix*)
6030 symcode='[BCDT]'
6031 ;;
6032 cygwin* | mingw* | pw32* | cegcc*)
6033 symcode='[ABCDGISTW]'
6034 ;;
6035 hpux*)
6036 if test ia64 = "$host_cpu"; then
6037 symcode='[ABCDEGRST]'
6038 fi
6039 ;;
6040 irix* | nonstopux*)
6041 symcode='[BCDEGRST]'
6042 ;;
6043 osf*)
6044 symcode='[BCDEGQRST]'
6045 ;;
6046 solaris*)
6047 symcode='[BDRT]'
6048 ;;
6049 sco3.2v5*)
6050 symcode='[DT]'
6051 ;;
6052 sysv4.2uw2*)
6053 symcode='[DT]'
6054 ;;
6055 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6056 symcode='[ABDT]'
6057 ;;
6058 sysv4)
6059 symcode='[DFNSTU]'
6060 ;;
6061 esac
6062
6063 # If we're using GNU nm, then use its standard symbol codes.
6064 case `$NM -V 2>&1` in
6065 *GNU* | *'with BFD'*)
6066 symcode='[ABCDGIRSTW]' ;;
6067 esac
6068
6069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6070 # Gets list of data symbols to import.
6071 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6072 # Adjust the below global symbol transforms to fixup imported variables.
6073 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6074 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6075 lt_c_name_lib_hook="\
6076 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6077 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6078 else
6079 # Disable hooks by default.
6080 lt_cv_sys_global_symbol_to_import=
6081 lt_cdecl_hook=
6082 lt_c_name_hook=
6083 lt_c_name_lib_hook=
6084 fi
6085
6086 # Transform an extracted symbol line into a proper C declaration.
6087 # Some systems (esp. on ia64) link data and code symbols differently,
6088 # so use this general approach.
6089 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6090 $lt_cdecl_hook\
6091 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6092 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6093
6094 # Transform an extracted symbol line into symbol name and symbol address
6095 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6096 $lt_c_name_hook\
6097 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6098 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6099
6100 # Transform an extracted symbol line into symbol name with lib prefix and
6101 # symbol address.
6102 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6103 $lt_c_name_lib_hook\
6104 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6105 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6106 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6107
6108 # Handle CRLF in mingw tool chain
6109 opt_cr=
6110 case $build_os in
6111 mingw*)
6112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6113 ;;
6114 esac
6115
6116 # Try without a prefix underscore, then with it.
6117 for ac_symprfx in "" "_"; do
6118
6119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6120 symxfrm="\\1 $ac_symprfx\\2 \\2"
6121
6122 # Write the raw and C identifiers.
6123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6124 # Fake it for dumpbin and say T for any non-static function,
6125 # D for any global variable and I for any imported variable.
6126 # Also find C++ and __fastcall symbols from MSVC++,
6127 # which start with @ or ?.
6128 lt_cv_sys_global_symbol_pipe="$AWK '"\
6129 " {last_section=section; section=\$ 3};"\
6130 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6131 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6132 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6133 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6134 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6135 " \$ 0!~/External *\|/{next};"\
6136 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6137 " {if(hide[section]) next};"\
6138 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6139 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6140 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6141 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6142 " ' prfx=^$ac_symprfx"
6143 else
6144 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6145 fi
6146 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6147
6148 # Check to see that the pipe works correctly.
6149 pipe_works=no
6150
6151 rm -f conftest*
6152 cat > conftest.$ac_ext <<_LT_EOF
6153 #ifdef __cplusplus
6154 extern "C" {
6155 #endif
6156 char nm_test_var;
6157 void nm_test_func(void);
6158 void nm_test_func(void){}
6159 #ifdef __cplusplus
6160 }
6161 #endif
6162 int main(){nm_test_var='a';nm_test_func();return(0);}
6163 _LT_EOF
6164
6165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169 test $ac_status = 0; }; then
6170 # Now try to grab the symbols.
6171 nlist=conftest.nm
6172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6173 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6174 ac_status=$?
6175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176 test $ac_status = 0; } && test -s "$nlist"; then
6177 # Try sorting and uniquifying the output.
6178 if sort "$nlist" | uniq > "$nlist"T; then
6179 mv -f "$nlist"T "$nlist"
6180 else
6181 rm -f "$nlist"T
6182 fi
6183
6184 # Make sure that we snagged all the symbols we need.
6185 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6186 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6187 cat <<_LT_EOF > conftest.$ac_ext
6188 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6189 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6190 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6191 relocations are performed -- see ld's documentation on pseudo-relocs. */
6192 # define LT_DLSYM_CONST
6193 #elif defined __osf__
6194 /* This system does not cope well with relocations in const data. */
6195 # define LT_DLSYM_CONST
6196 #else
6197 # define LT_DLSYM_CONST const
6198 #endif
6199
6200 #ifdef __cplusplus
6201 extern "C" {
6202 #endif
6203
6204 _LT_EOF
6205 # Now generate the symbol file.
6206 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6207
6208 cat <<_LT_EOF >> conftest.$ac_ext
6209
6210 /* The mapping between symbol names and symbols. */
6211 LT_DLSYM_CONST struct {
6212 const char *name;
6213 void *address;
6214 }
6215 lt__PROGRAM__LTX_preloaded_symbols[] =
6216 {
6217 { "@PROGRAM@", (void *) 0 },
6218 _LT_EOF
6219 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6220 cat <<\_LT_EOF >> conftest.$ac_ext
6221 {0, (void *) 0}
6222 };
6223
6224 /* This works around a problem in FreeBSD linker */
6225 #ifdef FREEBSD_WORKAROUND
6226 static const void *lt_preloaded_setup() {
6227 return lt__PROGRAM__LTX_preloaded_symbols;
6228 }
6229 #endif
6230
6231 #ifdef __cplusplus
6232 }
6233 #endif
6234 _LT_EOF
6235 # Now try linking the two files.
6236 mv conftest.$ac_objext conftstm.$ac_objext
6237 lt_globsym_save_LIBS=$LIBS
6238 lt_globsym_save_CFLAGS=$CFLAGS
6239 LIBS=conftstm.$ac_objext
6240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6242 (eval $ac_link) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6246 pipe_works=yes
6247 fi
6248 LIBS=$lt_globsym_save_LIBS
6249 CFLAGS=$lt_globsym_save_CFLAGS
6250 else
6251 echo "cannot find nm_test_func in $nlist" >&5
6252 fi
6253 else
6254 echo "cannot find nm_test_var in $nlist" >&5
6255 fi
6256 else
6257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6258 fi
6259 else
6260 echo "$progname: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 fi
6263 rm -rf conftest* conftst*
6264
6265 # Do not use the global_symbol_pipe unless it works.
6266 if test yes = "$pipe_works"; then
6267 break
6268 else
6269 lt_cv_sys_global_symbol_pipe=
6270 fi
6271 done
6272
6273 fi
6274
6275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6276 lt_cv_sys_global_symbol_to_cdecl=
6277 fi
6278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6280 $as_echo "failed" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6283 $as_echo "ok" >&6; }
6284 fi
6285
6286 # Response file support.
6287 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6288 nm_file_list_spec='@'
6289 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6290 nm_file_list_spec='@'
6291 fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6330 $as_echo_n "checking for sysroot... " >&6; }
6331
6332 # Check whether --with-sysroot was given.
6333 if test "${with_sysroot+set}" = set; then :
6334 withval=$with_sysroot;
6335 else
6336 with_sysroot=no
6337 fi
6338
6339
6340 lt_sysroot=
6341 case $with_sysroot in #(
6342 yes)
6343 if test yes = "$GCC"; then
6344 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6345 fi
6346 ;; #(
6347 /*)
6348 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6349 ;; #(
6350 no|'')
6351 ;; #(
6352 *)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6354 $as_echo "$with_sysroot" >&6; }
6355 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6356 ;;
6357 esac
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6360 $as_echo "${lt_sysroot:-no}" >&6; }
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6367 $as_echo_n "checking for a working dd... " >&6; }
6368 if ${ac_cv_path_lt_DD+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 printf 0123456789abcdef0123456789abcdef >conftest.i
6372 cat conftest.i conftest.i >conftest2.i
6373 : ${lt_DD:=$DD}
6374 if test -z "$lt_DD"; then
6375 ac_path_lt_DD_found=false
6376 # Loop through the user's path and test for each of PROGNAME-LIST
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_prog in dd; do
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6385 as_fn_executable_p "$ac_path_lt_DD" || continue
6386 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6387 cmp -s conftest.i conftest.out \
6388 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6389 fi
6390 $ac_path_lt_DD_found && break 3
6391 done
6392 done
6393 done
6394 IFS=$as_save_IFS
6395 if test -z "$ac_cv_path_lt_DD"; then
6396 :
6397 fi
6398 else
6399 ac_cv_path_lt_DD=$lt_DD
6400 fi
6401
6402 rm -f conftest.i conftest2.i conftest.out
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6405 $as_echo "$ac_cv_path_lt_DD" >&6; }
6406
6407
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6409 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6410 if ${lt_cv_truncate_bin+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 printf 0123456789abcdef0123456789abcdef >conftest.i
6414 cat conftest.i conftest.i >conftest2.i
6415 lt_cv_truncate_bin=
6416 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6417 cmp -s conftest.i conftest.out \
6418 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6419 fi
6420 rm -f conftest.i conftest2.i conftest.out
6421 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6424 $as_echo "$lt_cv_truncate_bin" >&6; }
6425
6426
6427
6428
6429
6430
6431
6432 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6433 func_cc_basename ()
6434 {
6435 for cc_temp in $*""; do
6436 case $cc_temp in
6437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6439 \-*) ;;
6440 *) break;;
6441 esac
6442 done
6443 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6444 }
6445
6446 # Check whether --enable-libtool-lock was given.
6447 if test "${enable_libtool_lock+set}" = set; then :
6448 enableval=$enable_libtool_lock;
6449 fi
6450
6451 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6452
6453 # Some flags need to be propagated to the compiler or linker for good
6454 # libtool support.
6455 case $host in
6456 ia64-*-hpux*)
6457 # Find out what ABI is being produced by ac_compile, and set mode
6458 # options accordingly.
6459 echo 'int i;' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 case `/usr/bin/file conftest.$ac_objext` in
6466 *ELF-32*)
6467 HPUX_IA64_MODE=32
6468 ;;
6469 *ELF-64*)
6470 HPUX_IA64_MODE=64
6471 ;;
6472 esac
6473 fi
6474 rm -rf conftest*
6475 ;;
6476 *-*-irix6*)
6477 # Find out what ABI is being produced by ac_compile, and set linker
6478 # options accordingly.
6479 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; }; then
6485 if test yes = "$lt_cv_prog_gnu_ld"; then
6486 case `/usr/bin/file conftest.$ac_objext` in
6487 *32-bit*)
6488 LD="${LD-ld} -melf32bsmip"
6489 ;;
6490 *N32*)
6491 LD="${LD-ld} -melf32bmipn32"
6492 ;;
6493 *64-bit*)
6494 LD="${LD-ld} -melf64bmip"
6495 ;;
6496 esac
6497 else
6498 case `/usr/bin/file conftest.$ac_objext` in
6499 *32-bit*)
6500 LD="${LD-ld} -32"
6501 ;;
6502 *N32*)
6503 LD="${LD-ld} -n32"
6504 ;;
6505 *64-bit*)
6506 LD="${LD-ld} -64"
6507 ;;
6508 esac
6509 fi
6510 fi
6511 rm -rf conftest*
6512 ;;
6513
6514 mips64*-*linux*)
6515 # Find out what ABI is being produced by ac_compile, and set linker
6516 # options accordingly.
6517 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519 (eval $ac_compile) 2>&5
6520 ac_status=$?
6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522 test $ac_status = 0; }; then
6523 emul=elf
6524 case `/usr/bin/file conftest.$ac_objext` in
6525 *32-bit*)
6526 emul="${emul}32"
6527 ;;
6528 *64-bit*)
6529 emul="${emul}64"
6530 ;;
6531 esac
6532 case `/usr/bin/file conftest.$ac_objext` in
6533 *MSB*)
6534 emul="${emul}btsmip"
6535 ;;
6536 *LSB*)
6537 emul="${emul}ltsmip"
6538 ;;
6539 esac
6540 case `/usr/bin/file conftest.$ac_objext` in
6541 *N32*)
6542 emul="${emul}n32"
6543 ;;
6544 esac
6545 LD="${LD-ld} -m $emul"
6546 fi
6547 rm -rf conftest*
6548 ;;
6549
6550 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6551 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6552 # Find out what ABI is being produced by ac_compile, and set linker
6553 # options accordingly. Note that the listed cases only cover the
6554 # situations where additional linker options are needed (such as when
6555 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6556 # vice versa); the common cases where no linker options are needed do
6557 # not appear in the list.
6558 echo 'int i;' > conftest.$ac_ext
6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560 (eval $ac_compile) 2>&5
6561 ac_status=$?
6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563 test $ac_status = 0; }; then
6564 case `/usr/bin/file conftest.o` in
6565 *32-bit*)
6566 case $host in
6567 x86_64-*kfreebsd*-gnu)
6568 LD="${LD-ld} -m elf_i386_fbsd"
6569 ;;
6570 x86_64-*linux*)
6571 case `/usr/bin/file conftest.o` in
6572 *x86-64*)
6573 LD="${LD-ld} -m elf32_x86_64"
6574 ;;
6575 *)
6576 LD="${LD-ld} -m elf_i386"
6577 ;;
6578 esac
6579 ;;
6580 powerpc64le-*linux*)
6581 LD="${LD-ld} -m elf32lppclinux"
6582 ;;
6583 powerpc64-*linux*)
6584 LD="${LD-ld} -m elf32ppclinux"
6585 ;;
6586 s390x-*linux*)
6587 LD="${LD-ld} -m elf_s390"
6588 ;;
6589 sparc64-*linux*)
6590 LD="${LD-ld} -m elf32_sparc"
6591 ;;
6592 esac
6593 ;;
6594 *64-bit*)
6595 case $host in
6596 x86_64-*kfreebsd*-gnu)
6597 LD="${LD-ld} -m elf_x86_64_fbsd"
6598 ;;
6599 x86_64-*linux*)
6600 LD="${LD-ld} -m elf_x86_64"
6601 ;;
6602 powerpcle-*linux*)
6603 LD="${LD-ld} -m elf64lppc"
6604 ;;
6605 powerpc-*linux*)
6606 LD="${LD-ld} -m elf64ppc"
6607 ;;
6608 s390*-*linux*|s390*-*tpf*)
6609 LD="${LD-ld} -m elf64_s390"
6610 ;;
6611 sparc*-*linux*)
6612 LD="${LD-ld} -m elf64_sparc"
6613 ;;
6614 esac
6615 ;;
6616 esac
6617 fi
6618 rm -rf conftest*
6619 ;;
6620
6621 *-*-sco3.2v5*)
6622 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6623 SAVE_CFLAGS=$CFLAGS
6624 CFLAGS="$CFLAGS -belf"
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6626 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6627 if ${lt_cv_cc_needs_belf+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 ac_ext=c
6631 ac_cpp='$CPP $CPPFLAGS'
6632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6635
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638
6639 int
6640 main ()
6641 {
6642
6643 ;
6644 return 0;
6645 }
6646 _ACEOF
6647 if ac_fn_c_try_link "$LINENO"; then :
6648 lt_cv_cc_needs_belf=yes
6649 else
6650 lt_cv_cc_needs_belf=no
6651 fi
6652 rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
6654 ac_ext=c
6655 ac_cpp='$CPP $CPPFLAGS'
6656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6662 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6663 if test yes != "$lt_cv_cc_needs_belf"; then
6664 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6665 CFLAGS=$SAVE_CFLAGS
6666 fi
6667 ;;
6668 *-*solaris*)
6669 # Find out what ABI is being produced by ac_compile, and set linker
6670 # options accordingly.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 case `/usr/bin/file conftest.o` in
6678 *64-bit*)
6679 case $lt_cv_prog_gnu_ld in
6680 yes*)
6681 case $host in
6682 i?86-*-solaris*|x86_64-*-solaris*)
6683 LD="${LD-ld} -m elf_x86_64"
6684 ;;
6685 sparc*-*-solaris*)
6686 LD="${LD-ld} -m elf64_sparc"
6687 ;;
6688 esac
6689 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6690 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6691 LD=${LD-ld}_sol2
6692 fi
6693 ;;
6694 *)
6695 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6696 LD="${LD-ld} -64"
6697 fi
6698 ;;
6699 esac
6700 ;;
6701 esac
6702 fi
6703 rm -rf conftest*
6704 ;;
6705 esac
6706
6707 need_locks=$enable_libtool_lock
6708
6709 if test -n "$ac_tool_prefix"; then
6710 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6711 set dummy ${ac_tool_prefix}mt; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$MANIFEST_TOOL"; then
6718 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6738 if test -n "$MANIFEST_TOOL"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6740 $as_echo "$MANIFEST_TOOL" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746
6747 fi
6748 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6749 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6750 # Extract the first word of "mt", so it can be a program name with args.
6751 set dummy mt; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 if test -n "$ac_ct_MANIFEST_TOOL"; then
6758 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6778 if test -n "$ac_ct_MANIFEST_TOOL"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6780 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6781 else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6787 MANIFEST_TOOL=":"
6788 else
6789 case $cross_compiling:$ac_tool_warned in
6790 yes:)
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793 ac_tool_warned=yes ;;
6794 esac
6795 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6796 fi
6797 else
6798 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6799 fi
6800
6801 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6803 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6804 if ${lt_cv_path_mainfest_tool+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 lt_cv_path_mainfest_tool=no
6808 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6809 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6810 cat conftest.err >&5
6811 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6812 lt_cv_path_mainfest_tool=yes
6813 fi
6814 rm -f conftest*
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6817 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6818 if test yes != "$lt_cv_path_mainfest_tool"; then
6819 MANIFEST_TOOL=:
6820 fi
6821
6822
6823
6824
6825
6826
6827 case $host_os in
6828 rhapsody* | darwin*)
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$DSYMUTIL"; then
6838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6858 if test -n "$DSYMUTIL"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6860 $as_echo "$DSYMUTIL" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_DSYMUTIL"; then
6869 ac_ct_DSYMUTIL=$DSYMUTIL
6870 # Extract the first word of "dsymutil", so it can be a program name with args.
6871 set dummy dsymutil; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$ac_ct_DSYMUTIL"; then
6878 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6898 if test -n "$ac_ct_DSYMUTIL"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6900 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906 if test "x$ac_ct_DSYMUTIL" = x; then
6907 DSYMUTIL=":"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 DSYMUTIL=$ac_ct_DSYMUTIL
6916 fi
6917 else
6918 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6919 fi
6920
6921 if test -n "$ac_tool_prefix"; then
6922 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6923 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_prog_NMEDIT+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$NMEDIT"; then
6930 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 fi
6948 fi
6949 NMEDIT=$ac_cv_prog_NMEDIT
6950 if test -n "$NMEDIT"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6952 $as_echo "$NMEDIT" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956 fi
6957
6958
6959 fi
6960 if test -z "$ac_cv_prog_NMEDIT"; then
6961 ac_ct_NMEDIT=$NMEDIT
6962 # Extract the first word of "nmedit", so it can be a program name with args.
6963 set dummy nmedit; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 if test -n "$ac_ct_NMEDIT"; then
6970 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987 fi
6988 fi
6989 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6990 if test -n "$ac_ct_NMEDIT"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6992 $as_echo "$ac_ct_NMEDIT" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998 if test "x$ac_ct_NMEDIT" = x; then
6999 NMEDIT=":"
7000 else
7001 case $cross_compiling:$ac_tool_warned in
7002 yes:)
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005 ac_tool_warned=yes ;;
7006 esac
7007 NMEDIT=$ac_ct_NMEDIT
7008 fi
7009 else
7010 NMEDIT="$ac_cv_prog_NMEDIT"
7011 fi
7012
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_LIPO+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$LIPO"; then
7022 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 LIPO=$ac_cv_prog_LIPO
7042 if test -n "$LIPO"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7044 $as_echo "$LIPO" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050
7051 fi
7052 if test -z "$ac_cv_prog_LIPO"; then
7053 ac_ct_LIPO=$LIPO
7054 # Extract the first word of "lipo", so it can be a program name with args.
7055 set dummy lipo; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$ac_ct_LIPO"; then
7062 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_ac_ct_LIPO="lipo"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7082 if test -n "$ac_ct_LIPO"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7084 $as_echo "$ac_ct_LIPO" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089
7090 if test "x$ac_ct_LIPO" = x; then
7091 LIPO=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094 yes:)
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097 ac_tool_warned=yes ;;
7098 esac
7099 LIPO=$ac_ct_LIPO
7100 fi
7101 else
7102 LIPO="$ac_cv_prog_LIPO"
7103 fi
7104
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}otool; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_OTOOL+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$OTOOL"; then
7114 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127 done
7128 done
7129 IFS=$as_save_IFS
7130
7131 fi
7132 fi
7133 OTOOL=$ac_cv_prog_OTOOL
7134 if test -n "$OTOOL"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7136 $as_echo "$OTOOL" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142
7143 fi
7144 if test -z "$ac_cv_prog_OTOOL"; then
7145 ac_ct_OTOOL=$OTOOL
7146 # Extract the first word of "otool", so it can be a program name with args.
7147 set dummy otool; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$ac_ct_OTOOL"; then
7154 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_ac_ct_OTOOL="otool"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7174 if test -n "$ac_ct_OTOOL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7176 $as_echo "$ac_ct_OTOOL" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182 if test "x$ac_ct_OTOOL" = x; then
7183 OTOOL=":"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186 yes:)
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189 ac_tool_warned=yes ;;
7190 esac
7191 OTOOL=$ac_ct_OTOOL
7192 fi
7193 else
7194 OTOOL="$ac_cv_prog_OTOOL"
7195 fi
7196
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_OTOOL64+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 if test -n "$OTOOL64"; then
7206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219 done
7220 done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 OTOOL64=$ac_cv_prog_OTOOL64
7226 if test -n "$OTOOL64"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7228 $as_echo "$OTOOL64" >&6; }
7229 else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234
7235 fi
7236 if test -z "$ac_cv_prog_OTOOL64"; then
7237 ac_ct_OTOOL64=$OTOOL64
7238 # Extract the first word of "otool64", so it can be a program name with args.
7239 set dummy otool64; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$ac_ct_OTOOL64"; then
7246 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_ac_ct_OTOOL64="otool64"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7266 if test -n "$ac_ct_OTOOL64"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7268 $as_echo "$ac_ct_OTOOL64" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274 if test "x$ac_ct_OTOOL64" = x; then
7275 OTOOL64=":"
7276 else
7277 case $cross_compiling:$ac_tool_warned in
7278 yes:)
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281 ac_tool_warned=yes ;;
7282 esac
7283 OTOOL64=$ac_ct_OTOOL64
7284 fi
7285 else
7286 OTOOL64="$ac_cv_prog_OTOOL64"
7287 fi
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7316 $as_echo_n "checking for -single_module linker flag... " >&6; }
7317 if ${lt_cv_apple_cc_single_mod+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 lt_cv_apple_cc_single_mod=no
7321 if test -z "$LT_MULTI_MODULE"; then
7322 # By default we will add the -single_module flag. You can override
7323 # by either setting the environment variable LT_MULTI_MODULE
7324 # non-empty at configure time, or by adding -multi_module to the
7325 # link flags.
7326 rm -rf libconftest.dylib*
7327 echo "int foo(void){return 1;}" > conftest.c
7328 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7329 -dynamiclib -Wl,-single_module conftest.c" >&5
7330 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7331 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7332 _lt_result=$?
7333 # If there is a non-empty error log, and "single_module"
7334 # appears in it, assume the flag caused a linker warning
7335 if test -s conftest.err && $GREP single_module conftest.err; then
7336 cat conftest.err >&5
7337 # Otherwise, if the output was created with a 0 exit code from
7338 # the compiler, it worked.
7339 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7340 lt_cv_apple_cc_single_mod=yes
7341 else
7342 cat conftest.err >&5
7343 fi
7344 rm -rf libconftest.dylib*
7345 rm -f conftest.*
7346 fi
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7353 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 lt_cv_ld_exported_symbols_list=no
7357 save_LDFLAGS=$LDFLAGS
7358 echo "_main" > conftest.sym
7359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362
7363 int
7364 main ()
7365 {
7366
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 if ac_fn_c_try_link "$LINENO"; then :
7372 lt_cv_ld_exported_symbols_list=yes
7373 else
7374 lt_cv_ld_exported_symbols_list=no
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 LDFLAGS=$save_LDFLAGS
7379
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7382 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7385 $as_echo_n "checking for -force_load linker flag... " >&6; }
7386 if ${lt_cv_ld_force_load+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 lt_cv_ld_force_load=no
7390 cat > conftest.c << _LT_EOF
7391 int forced_loaded() { return 2;}
7392 _LT_EOF
7393 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7394 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7395 echo "$AR cru libconftest.a conftest.o" >&5
7396 $AR cru libconftest.a conftest.o 2>&5
7397 echo "$RANLIB libconftest.a" >&5
7398 $RANLIB libconftest.a 2>&5
7399 cat > conftest.c << _LT_EOF
7400 int main() { return 0;}
7401 _LT_EOF
7402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7404 _lt_result=$?
7405 if test -s conftest.err && $GREP force_load conftest.err; then
7406 cat conftest.err >&5
7407 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7408 lt_cv_ld_force_load=yes
7409 else
7410 cat conftest.err >&5
7411 fi
7412 rm -f conftest.err libconftest.a conftest conftest.c
7413 rm -rf conftest.dSYM
7414
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7417 $as_echo "$lt_cv_ld_force_load" >&6; }
7418 case $host_os in
7419 rhapsody* | darwin1.[012])
7420 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7421 darwin1.*)
7422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7423 darwin*) # darwin 5.x on
7424 # if running on 10.5 or later, the deployment target defaults
7425 # to the OS version, if on x86, and 10.4, the deployment
7426 # target defaults to 10.4. Don't you love it?
7427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7430 10.[012][,.]*)
7431 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7432 10.*)
7433 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7434 esac
7435 ;;
7436 esac
7437 if test yes = "$lt_cv_apple_cc_single_mod"; then
7438 _lt_dar_single_mod='$single_module'
7439 fi
7440 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7441 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7442 else
7443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7444 fi
7445 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7446 _lt_dsymutil='~$DSYMUTIL $lib || :'
7447 else
7448 _lt_dsymutil=
7449 fi
7450 ;;
7451 esac
7452
7453 # func_munge_path_list VARIABLE PATH
7454 # -----------------------------------
7455 # VARIABLE is name of variable containing _space_ separated list of
7456 # directories to be munged by the contents of PATH, which is string
7457 # having a format:
7458 # "DIR[:DIR]:"
7459 # string "DIR[ DIR]" will be prepended to VARIABLE
7460 # ":DIR[:DIR]"
7461 # string "DIR[ DIR]" will be appended to VARIABLE
7462 # "DIRP[:DIRP]::[DIRA:]DIRA"
7463 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7464 # "DIRA[ DIRA]" will be appended to VARIABLE
7465 # "DIR[:DIR]"
7466 # VARIABLE will be replaced by "DIR[ DIR]"
7467 func_munge_path_list ()
7468 {
7469 case x$2 in
7470 x)
7471 ;;
7472 *:)
7473 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7474 ;;
7475 x:*)
7476 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7477 ;;
7478 *::*)
7479 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7480 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7481 ;;
7482 *)
7483 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7484 ;;
7485 esac
7486 }
7487
7488 ac_ext=c
7489 ac_cpp='$CPP $CPPFLAGS'
7490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7494 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7495 # On Suns, sometimes $CPP names a directory.
7496 if test -n "$CPP" && test -d "$CPP"; then
7497 CPP=
7498 fi
7499 if test -z "$CPP"; then
7500 if ${ac_cv_prog_CPP+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 # Double quotes because CPP needs to be expanded
7504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7505 do
7506 ac_preproc_ok=false
7507 for ac_c_preproc_warn_flag in '' yes
7508 do
7509 # Use a header file that comes with gcc, so configuring glibc
7510 # with a fresh cross-compiler works.
7511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7512 # <limits.h> exists even on freestanding compilers.
7513 # On the NeXT, cc -E runs the code through the compiler's parser,
7514 # not just through cpp. "Syntax error" is here to catch this case.
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #ifdef __STDC__
7518 # include <limits.h>
7519 #else
7520 # include <assert.h>
7521 #endif
7522 Syntax error
7523 _ACEOF
7524 if ac_fn_c_try_cpp "$LINENO"; then :
7525
7526 else
7527 # Broken: fails on valid input.
7528 continue
7529 fi
7530 rm -f conftest.err conftest.i conftest.$ac_ext
7531
7532 # OK, works on sane cases. Now check whether nonexistent headers
7533 # can be detected and how.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #include <ac_nonexistent.h>
7537 _ACEOF
7538 if ac_fn_c_try_cpp "$LINENO"; then :
7539 # Broken: success on invalid input.
7540 continue
7541 else
7542 # Passes both tests.
7543 ac_preproc_ok=:
7544 break
7545 fi
7546 rm -f conftest.err conftest.i conftest.$ac_ext
7547
7548 done
7549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7550 rm -f conftest.i conftest.err conftest.$ac_ext
7551 if $ac_preproc_ok; then :
7552 break
7553 fi
7554
7555 done
7556 ac_cv_prog_CPP=$CPP
7557
7558 fi
7559 CPP=$ac_cv_prog_CPP
7560 else
7561 ac_cv_prog_CPP=$CPP
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7564 $as_echo "$CPP" >&6; }
7565 ac_preproc_ok=false
7566 for ac_c_preproc_warn_flag in '' yes
7567 do
7568 # Use a header file that comes with gcc, so configuring glibc
7569 # with a fresh cross-compiler works.
7570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 # <limits.h> exists even on freestanding compilers.
7572 # On the NeXT, cc -E runs the code through the compiler's parser,
7573 # not just through cpp. "Syntax error" is here to catch this case.
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 #ifdef __STDC__
7577 # include <limits.h>
7578 #else
7579 # include <assert.h>
7580 #endif
7581 Syntax error
7582 _ACEOF
7583 if ac_fn_c_try_cpp "$LINENO"; then :
7584
7585 else
7586 # Broken: fails on valid input.
7587 continue
7588 fi
7589 rm -f conftest.err conftest.i conftest.$ac_ext
7590
7591 # OK, works on sane cases. Now check whether nonexistent headers
7592 # can be detected and how.
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 #include <ac_nonexistent.h>
7596 _ACEOF
7597 if ac_fn_c_try_cpp "$LINENO"; then :
7598 # Broken: success on invalid input.
7599 continue
7600 else
7601 # Passes both tests.
7602 ac_preproc_ok=:
7603 break
7604 fi
7605 rm -f conftest.err conftest.i conftest.$ac_ext
7606
7607 done
7608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7609 rm -f conftest.i conftest.err conftest.$ac_ext
7610 if $ac_preproc_ok; then :
7611
7612 else
7613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7615 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7616 See \`config.log' for more details" "$LINENO" 5; }
7617 fi
7618
7619 ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7627 $as_echo_n "checking for ANSI C header files... " >&6; }
7628 if ${ac_cv_header_stdc+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 #include <stdlib.h>
7634 #include <stdarg.h>
7635 #include <string.h>
7636 #include <float.h>
7637
7638 int
7639 main ()
7640 {
7641
7642 ;
7643 return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 ac_cv_header_stdc=yes
7648 else
7649 ac_cv_header_stdc=no
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652
7653 if test $ac_cv_header_stdc = yes; then
7654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <string.h>
7658
7659 _ACEOF
7660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661 $EGREP "memchr" >/dev/null 2>&1; then :
7662
7663 else
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f conftest*
7667
7668 fi
7669
7670 if test $ac_cv_header_stdc = yes; then
7671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #include <stdlib.h>
7675
7676 _ACEOF
7677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7678 $EGREP "free" >/dev/null 2>&1; then :
7679
7680 else
7681 ac_cv_header_stdc=no
7682 fi
7683 rm -f conftest*
7684
7685 fi
7686
7687 if test $ac_cv_header_stdc = yes; then
7688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7689 if test "$cross_compiling" = yes; then :
7690 :
7691 else
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <ctype.h>
7695 #include <stdlib.h>
7696 #if ((' ' & 0x0FF) == 0x020)
7697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7699 #else
7700 # define ISLOWER(c) \
7701 (('a' <= (c) && (c) <= 'i') \
7702 || ('j' <= (c) && (c) <= 'r') \
7703 || ('s' <= (c) && (c) <= 'z'))
7704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7705 #endif
7706
7707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7708 int
7709 main ()
7710 {
7711 int i;
7712 for (i = 0; i < 256; i++)
7713 if (XOR (islower (i), ISLOWER (i))
7714 || toupper (i) != TOUPPER (i))
7715 return 2;
7716 return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_run "$LINENO"; then :
7720
7721 else
7722 ac_cv_header_stdc=no
7723 fi
7724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7725 conftest.$ac_objext conftest.beam conftest.$ac_ext
7726 fi
7727
7728 fi
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7731 $as_echo "$ac_cv_header_stdc" >&6; }
7732 if test $ac_cv_header_stdc = yes; then
7733
7734 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7735
7736 fi
7737
7738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7739 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7740 inttypes.h stdint.h unistd.h
7741 do :
7742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7744 "
7745 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7746 cat >>confdefs.h <<_ACEOF
7747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7748 _ACEOF
7749
7750 fi
7751
7752 done
7753
7754
7755 for ac_header in dlfcn.h
7756 do :
7757 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7758 "
7759 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7760 cat >>confdefs.h <<_ACEOF
7761 #define HAVE_DLFCN_H 1
7762 _ACEOF
7763
7764 fi
7765
7766 done
7767
7768
7769
7770
7771
7772 # Set options
7773
7774
7775
7776 enable_dlopen=no
7777
7778
7779 enable_win32_dll=no
7780
7781
7782 # Check whether --enable-shared was given.
7783 if test "${enable_shared+set}" = set; then :
7784 enableval=$enable_shared; p=${PACKAGE-default}
7785 case $enableval in
7786 yes) enable_shared=yes ;;
7787 no) enable_shared=no ;;
7788 *)
7789 enable_shared=no
7790 # Look at the argument we got. We use all the common list separators.
7791 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7792 for pkg in $enableval; do
7793 IFS=$lt_save_ifs
7794 if test "X$pkg" = "X$p"; then
7795 enable_shared=yes
7796 fi
7797 done
7798 IFS=$lt_save_ifs
7799 ;;
7800 esac
7801 else
7802 enable_shared=yes
7803 fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 # Check whether --enable-static was given.
7814 if test "${enable_static+set}" = set; then :
7815 enableval=$enable_static; p=${PACKAGE-default}
7816 case $enableval in
7817 yes) enable_static=yes ;;
7818 no) enable_static=no ;;
7819 *)
7820 enable_static=no
7821 # Look at the argument we got. We use all the common list separators.
7822 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7823 for pkg in $enableval; do
7824 IFS=$lt_save_ifs
7825 if test "X$pkg" = "X$p"; then
7826 enable_static=yes
7827 fi
7828 done
7829 IFS=$lt_save_ifs
7830 ;;
7831 esac
7832 else
7833 enable_static=yes
7834 fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 # Check whether --with-pic was given.
7846 if test "${with_pic+set}" = set; then :
7847 withval=$with_pic; lt_p=${PACKAGE-default}
7848 case $withval in
7849 yes|no) pic_mode=$withval ;;
7850 *)
7851 pic_mode=default
7852 # Look at the argument we got. We use all the common list separators.
7853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7854 for lt_pkg in $withval; do
7855 IFS=$lt_save_ifs
7856 if test "X$lt_pkg" = "X$lt_p"; then
7857 pic_mode=yes
7858 fi
7859 done
7860 IFS=$lt_save_ifs
7861 ;;
7862 esac
7863 else
7864 pic_mode=default
7865 fi
7866
7867
7868
7869
7870
7871
7872
7873
7874 # Check whether --enable-fast-install was given.
7875 if test "${enable_fast_install+set}" = set; then :
7876 enableval=$enable_fast_install; p=${PACKAGE-default}
7877 case $enableval in
7878 yes) enable_fast_install=yes ;;
7879 no) enable_fast_install=no ;;
7880 *)
7881 enable_fast_install=no
7882 # Look at the argument we got. We use all the common list separators.
7883 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7884 for pkg in $enableval; do
7885 IFS=$lt_save_ifs
7886 if test "X$pkg" = "X$p"; then
7887 enable_fast_install=yes
7888 fi
7889 done
7890 IFS=$lt_save_ifs
7891 ;;
7892 esac
7893 else
7894 enable_fast_install=yes
7895 fi
7896
7897
7898
7899
7900
7901
7902
7903
7904 shared_archive_member_spec=
7905 case $host,$enable_shared in
7906 power*-*-aix[5-9]*,yes)
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7908 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7909
7910 # Check whether --with-aix-soname was given.
7911 if test "${with_aix_soname+set}" = set; then :
7912 withval=$with_aix_soname; case $withval in
7913 aix|svr4|both)
7914 ;;
7915 *)
7916 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7917 ;;
7918 esac
7919 lt_cv_with_aix_soname=$with_aix_soname
7920 else
7921 if ${lt_cv_with_aix_soname+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 lt_cv_with_aix_soname=aix
7925 fi
7926
7927 with_aix_soname=$lt_cv_with_aix_soname
7928 fi
7929
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7931 $as_echo "$with_aix_soname" >&6; }
7932 if test aix != "$with_aix_soname"; then
7933 # For the AIX way of multilib, we name the shared archive member
7934 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7935 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7936 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7937 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7938 if test 64 = "${OBJECT_MODE-32}"; then
7939 shared_archive_member_spec=shr_64
7940 else
7941 shared_archive_member_spec=shr
7942 fi
7943 fi
7944 ;;
7945 *)
7946 with_aix_soname=aix
7947 ;;
7948 esac
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959 # This can be used to rebuild libtool when needed
7960 LIBTOOL_DEPS=$ltmain
7961
7962 # Always use our own libtool.
7963 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994 test -z "$LN_S" && LN_S="ln -s"
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 if test -n "${ZSH_VERSION+set}"; then
8010 setopt NO_GLOB_SUBST
8011 fi
8012
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8014 $as_echo_n "checking for objdir... " >&6; }
8015 if ${lt_cv_objdir+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 rm -f .libs 2>/dev/null
8019 mkdir .libs 2>/dev/null
8020 if test -d .libs; then
8021 lt_cv_objdir=.libs
8022 else
8023 # MS-DOS does not allow filenames that begin with a dot.
8024 lt_cv_objdir=_libs
8025 fi
8026 rmdir .libs 2>/dev/null
8027 fi
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8029 $as_echo "$lt_cv_objdir" >&6; }
8030 objdir=$lt_cv_objdir
8031
8032
8033
8034
8035
8036 cat >>confdefs.h <<_ACEOF
8037 #define LT_OBJDIR "$lt_cv_objdir/"
8038 _ACEOF
8039
8040
8041
8042
8043 case $host_os in
8044 aix3*)
8045 # AIX sometimes has problems with the GCC collect2 program. For some
8046 # reason, if we set the COLLECT_NAMES environment variable, the problems
8047 # vanish in a puff of smoke.
8048 if test set != "${COLLECT_NAMES+set}"; then
8049 COLLECT_NAMES=
8050 export COLLECT_NAMES
8051 fi
8052 ;;
8053 esac
8054
8055 # Global variables:
8056 ofile=libtool
8057 can_build_shared=yes
8058
8059 # All known linkers require a '.a' archive for static linking (except MSVC,
8060 # which needs '.lib').
8061 libext=a
8062
8063 with_gnu_ld=$lt_cv_prog_gnu_ld
8064
8065 old_CC=$CC
8066 old_CFLAGS=$CFLAGS
8067
8068 # Set sane defaults for various variables
8069 test -z "$CC" && CC=cc
8070 test -z "$LTCC" && LTCC=$CC
8071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8072 test -z "$LD" && LD=ld
8073 test -z "$ac_objext" && ac_objext=o
8074
8075 func_cc_basename $compiler
8076 cc_basename=$func_cc_basename_result
8077
8078
8079 # Only perform the check for file, if the check method requires it
8080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8081 case $deplibs_check_method in
8082 file_magic*)
8083 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8085 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 case $MAGIC_CMD in
8090 [\\/*] | ?:[\\/]*)
8091 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8092 ;;
8093 *)
8094 lt_save_MAGIC_CMD=$MAGIC_CMD
8095 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8097 for ac_dir in $ac_dummy; do
8098 IFS=$lt_save_ifs
8099 test -z "$ac_dir" && ac_dir=.
8100 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8101 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8102 if test -n "$file_magic_test_file"; then
8103 case $deplibs_check_method in
8104 "file_magic "*)
8105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8106 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8108 $EGREP "$file_magic_regex" > /dev/null; then
8109 :
8110 else
8111 cat <<_LT_EOF 1>&2
8112
8113 *** Warning: the command libtool uses to detect shared libraries,
8114 *** $file_magic_cmd, produces output that libtool cannot recognize.
8115 *** The result is that libtool may fail to recognize shared libraries
8116 *** as such. This will affect the creation of libtool libraries that
8117 *** depend on shared libraries, but programs linked with such libtool
8118 *** libraries will work regardless of this problem. Nevertheless, you
8119 *** may want to report the problem to your system manager and/or to
8120 *** bug-libtool@gnu.org
8121
8122 _LT_EOF
8123 fi ;;
8124 esac
8125 fi
8126 break
8127 fi
8128 done
8129 IFS=$lt_save_ifs
8130 MAGIC_CMD=$lt_save_MAGIC_CMD
8131 ;;
8132 esac
8133 fi
8134
8135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8136 if test -n "$MAGIC_CMD"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8138 $as_echo "$MAGIC_CMD" >&6; }
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 fi
8143
8144
8145
8146
8147
8148 if test -z "$lt_cv_path_MAGIC_CMD"; then
8149 if test -n "$ac_tool_prefix"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8151 $as_echo_n "checking for file... " >&6; }
8152 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 case $MAGIC_CMD in
8156 [\\/*] | ?:[\\/]*)
8157 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8158 ;;
8159 *)
8160 lt_save_MAGIC_CMD=$MAGIC_CMD
8161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8163 for ac_dir in $ac_dummy; do
8164 IFS=$lt_save_ifs
8165 test -z "$ac_dir" && ac_dir=.
8166 if test -f "$ac_dir/file"; then
8167 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8168 if test -n "$file_magic_test_file"; then
8169 case $deplibs_check_method in
8170 "file_magic "*)
8171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8172 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8174 $EGREP "$file_magic_regex" > /dev/null; then
8175 :
8176 else
8177 cat <<_LT_EOF 1>&2
8178
8179 *** Warning: the command libtool uses to detect shared libraries,
8180 *** $file_magic_cmd, produces output that libtool cannot recognize.
8181 *** The result is that libtool may fail to recognize shared libraries
8182 *** as such. This will affect the creation of libtool libraries that
8183 *** depend on shared libraries, but programs linked with such libtool
8184 *** libraries will work regardless of this problem. Nevertheless, you
8185 *** may want to report the problem to your system manager and/or to
8186 *** bug-libtool@gnu.org
8187
8188 _LT_EOF
8189 fi ;;
8190 esac
8191 fi
8192 break
8193 fi
8194 done
8195 IFS=$lt_save_ifs
8196 MAGIC_CMD=$lt_save_MAGIC_CMD
8197 ;;
8198 esac
8199 fi
8200
8201 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8202 if test -n "$MAGIC_CMD"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8204 $as_echo "$MAGIC_CMD" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8208 fi
8209
8210
8211 else
8212 MAGIC_CMD=:
8213 fi
8214 fi
8215
8216 fi
8217 ;;
8218 esac
8219
8220 # Use C for the default configuration in the libtool script
8221
8222 lt_save_CC=$CC
8223 ac_ext=c
8224 ac_cpp='$CPP $CPPFLAGS'
8225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228
8229
8230 # Source file extension for C test sources.
8231 ac_ext=c
8232
8233 # Object file extension for compiled C test sources.
8234 objext=o
8235 objext=$objext
8236
8237 # Code to be used in simple compile tests
8238 lt_simple_compile_test_code="int some_variable = 0;"
8239
8240 # Code to be used in simple link tests
8241 lt_simple_link_test_code='int main(){return(0);}'
8242
8243
8244
8245
8246
8247
8248
8249 # If no C compiler was specified, use CC.
8250 LTCC=${LTCC-"$CC"}
8251
8252 # If no C compiler flags were specified, use CFLAGS.
8253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8254
8255 # Allow CC to be a program name with arguments.
8256 compiler=$CC
8257
8258 # Save the default compiler, since it gets overwritten when the other
8259 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8260 compiler_DEFAULT=$CC
8261
8262 # save warnings/boilerplate of simple test code
8263 ac_outfile=conftest.$ac_objext
8264 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8266 _lt_compiler_boilerplate=`cat conftest.err`
8267 $RM conftest*
8268
8269 ac_outfile=conftest.$ac_objext
8270 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8272 _lt_linker_boilerplate=`cat conftest.err`
8273 $RM -r conftest*
8274
8275
8276 if test -n "$compiler"; then
8277
8278 lt_prog_compiler_no_builtin_flag=
8279
8280 if test yes = "$GCC"; then
8281 case $cc_basename in
8282 nvcc*)
8283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8284 *)
8285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8286 esac
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8289 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8290 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 lt_cv_prog_compiler_rtti_exceptions=no
8294 ac_outfile=conftest.$ac_objext
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 # The option is referenced via a variable to avoid confusing sed.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
8306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8307 (eval "$lt_compile" 2>conftest.err)
8308 ac_status=$?
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 if (exit $ac_status) && test -s "$ac_outfile"; then
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings other than the usual output.
8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_rtti_exceptions=yes
8318 fi
8319 fi
8320 $RM conftest*
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8325
8326 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8328 else
8329 :
8330 fi
8331
8332 fi
8333
8334
8335
8336
8337
8338
8339 lt_prog_compiler_wl=
8340 lt_prog_compiler_pic=
8341 lt_prog_compiler_static=
8342
8343
8344 if test yes = "$GCC"; then
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_static='-static'
8347
8348 case $host_os in
8349 aix*)
8350 # All AIX code is PIC.
8351 if test ia64 = "$host_cpu"; then
8352 # AIX 5 now supports IA64 processor
8353 lt_prog_compiler_static='-Bstatic'
8354 fi
8355 lt_prog_compiler_pic='-fPIC'
8356 ;;
8357
8358 amigaos*)
8359 case $host_cpu in
8360 powerpc)
8361 # see comment about AmigaOS4 .so support
8362 lt_prog_compiler_pic='-fPIC'
8363 ;;
8364 m68k)
8365 # FIXME: we need at least 68020 code to build shared libraries, but
8366 # adding the '-m68020' flag to GCC prevents building anything better,
8367 # like '-m68040'.
8368 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8369 ;;
8370 esac
8371 ;;
8372
8373 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8374 # PIC is the default for these OSes.
8375 ;;
8376
8377 mingw* | cygwin* | pw32* | os2* | cegcc*)
8378 # This hack is so that the source file can tell whether it is being
8379 # built for inclusion in a dll (and should export symbols for example).
8380 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8381 # (--disable-auto-import) libraries
8382 lt_prog_compiler_pic='-DDLL_EXPORT'
8383 case $host_os in
8384 os2*)
8385 lt_prog_compiler_static='$wl-static'
8386 ;;
8387 esac
8388 ;;
8389
8390 darwin* | rhapsody*)
8391 # PIC is the default on this platform
8392 # Common symbols not allowed in MH_DYLIB files
8393 lt_prog_compiler_pic='-fno-common'
8394 ;;
8395
8396 haiku*)
8397 # PIC is the default for Haiku.
8398 # The "-static" flag exists, but is broken.
8399 lt_prog_compiler_static=
8400 ;;
8401
8402 hpux*)
8403 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8404 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8405 # sets the default TLS model and affects inlining.
8406 case $host_cpu in
8407 hppa*64*)
8408 # +Z the default
8409 ;;
8410 *)
8411 lt_prog_compiler_pic='-fPIC'
8412 ;;
8413 esac
8414 ;;
8415
8416 interix[3-9]*)
8417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8418 # Instead, we relocate shared libraries at runtime.
8419 ;;
8420
8421 msdosdjgpp*)
8422 # Just because we use GCC doesn't mean we suddenly get shared libraries
8423 # on systems that don't support them.
8424 lt_prog_compiler_can_build_shared=no
8425 enable_shared=no
8426 ;;
8427
8428 *nto* | *qnx*)
8429 # QNX uses GNU C++, but need to define -shared option too, otherwise
8430 # it will coredump.
8431 lt_prog_compiler_pic='-fPIC -shared'
8432 ;;
8433
8434 sysv4*MP*)
8435 if test -d /usr/nec; then
8436 lt_prog_compiler_pic=-Kconform_pic
8437 fi
8438 ;;
8439
8440 *)
8441 lt_prog_compiler_pic='-fPIC'
8442 ;;
8443 esac
8444
8445 case $cc_basename in
8446 nvcc*) # Cuda Compiler Driver 2.2
8447 lt_prog_compiler_wl='-Xlinker '
8448 if test -n "$lt_prog_compiler_pic"; then
8449 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8450 fi
8451 ;;
8452 esac
8453 else
8454 # PORTME Check for flag to pass linker flags through the system compiler.
8455 case $host_os in
8456 aix*)
8457 lt_prog_compiler_wl='-Wl,'
8458 if test ia64 = "$host_cpu"; then
8459 # AIX 5 now supports IA64 processor
8460 lt_prog_compiler_static='-Bstatic'
8461 else
8462 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8463 fi
8464 ;;
8465
8466 darwin* | rhapsody*)
8467 # PIC is the default on this platform
8468 # Common symbols not allowed in MH_DYLIB files
8469 lt_prog_compiler_pic='-fno-common'
8470 case $cc_basename in
8471 nagfor*)
8472 # NAG Fortran compiler
8473 lt_prog_compiler_wl='-Wl,-Wl,,'
8474 lt_prog_compiler_pic='-PIC'
8475 lt_prog_compiler_static='-Bstatic'
8476 ;;
8477 esac
8478 ;;
8479
8480 mingw* | cygwin* | pw32* | os2* | cegcc*)
8481 # This hack is so that the source file can tell whether it is being
8482 # built for inclusion in a dll (and should export symbols for example).
8483 lt_prog_compiler_pic='-DDLL_EXPORT'
8484 case $host_os in
8485 os2*)
8486 lt_prog_compiler_static='$wl-static'
8487 ;;
8488 esac
8489 ;;
8490
8491 hpux9* | hpux10* | hpux11*)
8492 lt_prog_compiler_wl='-Wl,'
8493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8494 # not for PA HP-UX.
8495 case $host_cpu in
8496 hppa*64*|ia64*)
8497 # +Z the default
8498 ;;
8499 *)
8500 lt_prog_compiler_pic='+Z'
8501 ;;
8502 esac
8503 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8504 lt_prog_compiler_static='$wl-a ${wl}archive'
8505 ;;
8506
8507 irix5* | irix6* | nonstopux*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC (with -KPIC) is the default.
8510 lt_prog_compiler_static='-non_shared'
8511 ;;
8512
8513 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8514 case $cc_basename in
8515 # old Intel for x86_64, which still supported -KPIC.
8516 ecc*)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-static'
8520 ;;
8521 # icc used to be incompatible with GCC.
8522 # ICC 10 doesn't accept -KPIC any more.
8523 icc* | ifort*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-fPIC'
8526 lt_prog_compiler_static='-static'
8527 ;;
8528 # Lahey Fortran 8.1.
8529 lf95*)
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='--shared'
8532 lt_prog_compiler_static='--static'
8533 ;;
8534 nagfor*)
8535 # NAG Fortran compiler
8536 lt_prog_compiler_wl='-Wl,-Wl,,'
8537 lt_prog_compiler_pic='-PIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 ;;
8540 tcc*)
8541 # Fabrice Bellard et al's Tiny C Compiler
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-fPIC'
8544 lt_prog_compiler_static='-static'
8545 ;;
8546 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8547 # Portland Group compilers (*not* the Pentium gcc compiler,
8548 # which looks to be a dead project)
8549 lt_prog_compiler_wl='-Wl,'
8550 lt_prog_compiler_pic='-fpic'
8551 lt_prog_compiler_static='-Bstatic'
8552 ;;
8553 ccc*)
8554 lt_prog_compiler_wl='-Wl,'
8555 # All Alpha code is PIC.
8556 lt_prog_compiler_static='-non_shared'
8557 ;;
8558 xl* | bgxl* | bgf* | mpixl*)
8559 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='-qpic'
8562 lt_prog_compiler_static='-qstaticlink'
8563 ;;
8564 *)
8565 case `$CC -V 2>&1 | sed 5q` in
8566 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8567 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8568 lt_prog_compiler_pic='-KPIC'
8569 lt_prog_compiler_static='-Bstatic'
8570 lt_prog_compiler_wl=''
8571 ;;
8572 *Sun\ F* | *Sun*Fortran*)
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 lt_prog_compiler_wl='-Qoption ld '
8576 ;;
8577 *Sun\ C*)
8578 # Sun C 5.9
8579 lt_prog_compiler_pic='-KPIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 lt_prog_compiler_wl='-Wl,'
8582 ;;
8583 *Intel*\ [CF]*Compiler*)
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-fPIC'
8586 lt_prog_compiler_static='-static'
8587 ;;
8588 *Portland\ Group*)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-fpic'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593 esac
8594 ;;
8595 esac
8596 ;;
8597
8598 newsos6)
8599 lt_prog_compiler_pic='-KPIC'
8600 lt_prog_compiler_static='-Bstatic'
8601 ;;
8602
8603 *nto* | *qnx*)
8604 # QNX uses GNU C++, but need to define -shared option too, otherwise
8605 # it will coredump.
8606 lt_prog_compiler_pic='-fPIC -shared'
8607 ;;
8608
8609 osf3* | osf4* | osf5*)
8610 lt_prog_compiler_wl='-Wl,'
8611 # All OSF/1 code is PIC.
8612 lt_prog_compiler_static='-non_shared'
8613 ;;
8614
8615 rdos*)
8616 lt_prog_compiler_static='-non_shared'
8617 ;;
8618
8619 solaris*)
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 case $cc_basename in
8623 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8624 lt_prog_compiler_wl='-Qoption ld ';;
8625 *)
8626 lt_prog_compiler_wl='-Wl,';;
8627 esac
8628 ;;
8629
8630 sunos4*)
8631 lt_prog_compiler_wl='-Qoption ld '
8632 lt_prog_compiler_pic='-PIC'
8633 lt_prog_compiler_static='-Bstatic'
8634 ;;
8635
8636 sysv4 | sysv4.2uw2* | sysv4.3*)
8637 lt_prog_compiler_wl='-Wl,'
8638 lt_prog_compiler_pic='-KPIC'
8639 lt_prog_compiler_static='-Bstatic'
8640 ;;
8641
8642 sysv4*MP*)
8643 if test -d /usr/nec; then
8644 lt_prog_compiler_pic='-Kconform_pic'
8645 lt_prog_compiler_static='-Bstatic'
8646 fi
8647 ;;
8648
8649 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8650 lt_prog_compiler_wl='-Wl,'
8651 lt_prog_compiler_pic='-KPIC'
8652 lt_prog_compiler_static='-Bstatic'
8653 ;;
8654
8655 unicos*)
8656 lt_prog_compiler_wl='-Wl,'
8657 lt_prog_compiler_can_build_shared=no
8658 ;;
8659
8660 uts4*)
8661 lt_prog_compiler_pic='-pic'
8662 lt_prog_compiler_static='-Bstatic'
8663 ;;
8664
8665 *)
8666 lt_prog_compiler_can_build_shared=no
8667 ;;
8668 esac
8669 fi
8670
8671 case $host_os in
8672 # For platforms that do not support PIC, -DPIC is meaningless:
8673 *djgpp*)
8674 lt_prog_compiler_pic=
8675 ;;
8676 *)
8677 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8678 ;;
8679 esac
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8682 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8683 if ${lt_cv_prog_compiler_pic+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8689 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8690 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8691
8692 #
8693 # Check to make sure the PIC flag actually works.
8694 #
8695 if test -n "$lt_prog_compiler_pic"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8697 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8698 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 lt_cv_prog_compiler_pic_works=no
8702 ac_outfile=conftest.$ac_objext
8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8704 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8705 # Insert the option either (1) after the last *FLAGS variable, or
8706 # (2) before a word containing "conftest.", or (3) at the end.
8707 # Note that $ac_compile itself does not contain backslashes and begins
8708 # with a dollar sign (not a hyphen), so the echo should work correctly.
8709 # The option is referenced via a variable to avoid confusing sed.
8710 lt_compile=`echo "$ac_compile" | $SED \
8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8713 -e 's:$: $lt_compiler_flag:'`
8714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8715 (eval "$lt_compile" 2>conftest.err)
8716 ac_status=$?
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 if (exit $ac_status) && test -s "$ac_outfile"; then
8720 # The compiler can only warn and ignore the option if not recognized
8721 # So say no if there are warnings other than the usual output.
8722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8725 lt_cv_prog_compiler_pic_works=yes
8726 fi
8727 fi
8728 $RM conftest*
8729
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8732 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8733
8734 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8735 case $lt_prog_compiler_pic in
8736 "" | " "*) ;;
8737 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8738 esac
8739 else
8740 lt_prog_compiler_pic=
8741 lt_prog_compiler_can_build_shared=no
8742 fi
8743
8744 fi
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 #
8757 # Check to make sure the static flag actually works.
8758 #
8759 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8762 if ${lt_cv_prog_compiler_static_works+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 lt_cv_prog_compiler_static_works=no
8766 save_LDFLAGS=$LDFLAGS
8767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8770 # The linker can only warn and ignore the option if not recognized
8771 # So say no if there are warnings
8772 if test -s conftest.err; then
8773 # Append any errors to the config.log.
8774 cat conftest.err 1>&5
8775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8777 if diff conftest.exp conftest.er2 >/dev/null; then
8778 lt_cv_prog_compiler_static_works=yes
8779 fi
8780 else
8781 lt_cv_prog_compiler_static_works=yes
8782 fi
8783 fi
8784 $RM -r conftest*
8785 LDFLAGS=$save_LDFLAGS
8786
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8789 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8790
8791 if test yes = "$lt_cv_prog_compiler_static_works"; then
8792 :
8793 else
8794 lt_prog_compiler_static=
8795 fi
8796
8797
8798
8799
8800
8801
8802
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8804 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8805 if ${lt_cv_prog_compiler_c_o+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 lt_cv_prog_compiler_c_o=no
8809 $RM -r conftest 2>/dev/null
8810 mkdir conftest
8811 cd conftest
8812 mkdir out
8813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814
8815 lt_compiler_flag="-o out/conftest2.$ac_objext"
8816 # Insert the option either (1) after the last *FLAGS variable, or
8817 # (2) before a word containing "conftest.", or (3) at the end.
8818 # Note that $ac_compile itself does not contain backslashes and begins
8819 # with a dollar sign (not a hyphen), so the echo should work correctly.
8820 lt_compile=`echo "$ac_compile" | $SED \
8821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8823 -e 's:$: $lt_compiler_flag:'`
8824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8825 (eval "$lt_compile" 2>out/conftest.err)
8826 ac_status=$?
8827 cat out/conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8830 then
8831 # The compiler can only warn and ignore the option if not recognized
8832 # So say no if there are warnings
8833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8836 lt_cv_prog_compiler_c_o=yes
8837 fi
8838 fi
8839 chmod u+w . 2>&5
8840 $RM conftest*
8841 # SGI C++ compiler will create directory out/ii_files/ for
8842 # template instantiation
8843 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8844 $RM out/* && rmdir out
8845 cd ..
8846 $RM -r conftest
8847 $RM conftest*
8848
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8851 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8852
8853
8854
8855
8856
8857
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8859 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8860 if ${lt_cv_prog_compiler_c_o+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 lt_cv_prog_compiler_c_o=no
8864 $RM -r conftest 2>/dev/null
8865 mkdir conftest
8866 cd conftest
8867 mkdir out
8868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8869
8870 lt_compiler_flag="-o out/conftest2.$ac_objext"
8871 # Insert the option either (1) after the last *FLAGS variable, or
8872 # (2) before a word containing "conftest.", or (3) at the end.
8873 # Note that $ac_compile itself does not contain backslashes and begins
8874 # with a dollar sign (not a hyphen), so the echo should work correctly.
8875 lt_compile=`echo "$ac_compile" | $SED \
8876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8878 -e 's:$: $lt_compiler_flag:'`
8879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8880 (eval "$lt_compile" 2>out/conftest.err)
8881 ac_status=$?
8882 cat out/conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8885 then
8886 # The compiler can only warn and ignore the option if not recognized
8887 # So say no if there are warnings
8888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8891 lt_cv_prog_compiler_c_o=yes
8892 fi
8893 fi
8894 chmod u+w . 2>&5
8895 $RM conftest*
8896 # SGI C++ compiler will create directory out/ii_files/ for
8897 # template instantiation
8898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8899 $RM out/* && rmdir out
8900 cd ..
8901 $RM -r conftest
8902 $RM conftest*
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8906 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8907
8908
8909
8910
8911 hard_links=nottested
8912 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8913 # do not overwrite the value of need_locks provided by the user
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8915 $as_echo_n "checking if we can lock with hard links... " >&6; }
8916 hard_links=yes
8917 $RM conftest*
8918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8919 touch conftest.a
8920 ln conftest.a conftest.b 2>&5 || hard_links=no
8921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8923 $as_echo "$hard_links" >&6; }
8924 if test no = "$hard_links"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8926 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8927 need_locks=warn
8928 fi
8929 else
8930 need_locks=no
8931 fi
8932
8933
8934
8935
8936
8937
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8939 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8940
8941 runpath_var=
8942 allow_undefined_flag=
8943 always_export_symbols=no
8944 archive_cmds=
8945 archive_expsym_cmds=
8946 compiler_needs_object=no
8947 enable_shared_with_static_runtimes=no
8948 export_dynamic_flag_spec=
8949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8950 hardcode_automatic=no
8951 hardcode_direct=no
8952 hardcode_direct_absolute=no
8953 hardcode_libdir_flag_spec=
8954 hardcode_libdir_separator=
8955 hardcode_minus_L=no
8956 hardcode_shlibpath_var=unsupported
8957 inherit_rpath=no
8958 link_all_deplibs=unknown
8959 module_cmds=
8960 module_expsym_cmds=
8961 old_archive_from_new_cmds=
8962 old_archive_from_expsyms_cmds=
8963 thread_safe_flag_spec=
8964 whole_archive_flag_spec=
8965 # include_expsyms should be a list of space-separated symbols to be *always*
8966 # included in the symbol list
8967 include_expsyms=
8968 # exclude_expsyms can be an extended regexp of symbols to exclude
8969 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8970 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8971 # as well as any symbol that contains 'd'.
8972 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8973 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8974 # platforms (ab)use it in PIC code, but their linkers get confused if
8975 # the symbol is explicitly referenced. Since portable code cannot
8976 # rely on this symbol name, it's probably fine to never include it in
8977 # preloaded symbol tables.
8978 # Exclude shared library initialization/finalization symbols.
8979 extract_expsyms_cmds=
8980
8981 case $host_os in
8982 cygwin* | mingw* | pw32* | cegcc*)
8983 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8984 # When not using gcc, we currently assume that we are using
8985 # Microsoft Visual C++.
8986 if test yes != "$GCC"; then
8987 with_gnu_ld=no
8988 fi
8989 ;;
8990 interix*)
8991 # we just hope/assume this is gcc and not c89 (= MSVC++)
8992 with_gnu_ld=yes
8993 ;;
8994 openbsd* | bitrig*)
8995 with_gnu_ld=no
8996 ;;
8997 esac
8998
8999 ld_shlibs=yes
9000
9001 # On some targets, GNU ld is compatible enough with the native linker
9002 # that we're better off using the native interface for both.
9003 lt_use_gnu_ld_interface=no
9004 if test yes = "$with_gnu_ld"; then
9005 case $host_os in
9006 aix*)
9007 # The AIX port of GNU ld has always aspired to compatibility
9008 # with the native linker. However, as the warning in the GNU ld
9009 # block says, versions before 2.19.5* couldn't really create working
9010 # shared libraries, regardless of the interface used.
9011 case `$LD -v 2>&1` in
9012 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9013 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9014 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9015 *)
9016 lt_use_gnu_ld_interface=yes
9017 ;;
9018 esac
9019 ;;
9020 *)
9021 lt_use_gnu_ld_interface=yes
9022 ;;
9023 esac
9024 fi
9025
9026 if test yes = "$lt_use_gnu_ld_interface"; then
9027 # If archive_cmds runs LD, not CC, wlarc should be empty
9028 wlarc='$wl'
9029
9030 # Set some defaults for GNU ld with shared library support. These
9031 # are reset later if shared libraries are not supported. Putting them
9032 # here allows them to be overridden if necessary.
9033 runpath_var=LD_RUN_PATH
9034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9035 export_dynamic_flag_spec='$wl--export-dynamic'
9036 # ancient GNU ld didn't support --whole-archive et. al.
9037 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9038 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9039 else
9040 whole_archive_flag_spec=
9041 fi
9042 supports_anon_versioning=no
9043 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9044 *GNU\ gold*) supports_anon_versioning=yes ;;
9045 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9048 *\ 2.11.*) ;; # other 2.11 versions
9049 *) supports_anon_versioning=yes ;;
9050 esac
9051
9052 # See if GNU ld supports shared libraries.
9053 case $host_os in
9054 aix[3-9]*)
9055 # On AIX/PPC, the GNU linker is very broken
9056 if test ia64 != "$host_cpu"; then
9057 ld_shlibs=no
9058 cat <<_LT_EOF 1>&2
9059
9060 *** Warning: the GNU linker, at least up to release 2.19, is reported
9061 *** to be unable to reliably create shared libraries on AIX.
9062 *** Therefore, libtool is disabling shared libraries support. If you
9063 *** really care for shared libraries, you may want to install binutils
9064 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9065 *** You will then need to restart the configuration process.
9066
9067 _LT_EOF
9068 fi
9069 ;;
9070
9071 amigaos*)
9072 case $host_cpu in
9073 powerpc)
9074 # see comment about AmigaOS4 .so support
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9076 archive_expsym_cmds=''
9077 ;;
9078 m68k)
9079 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)'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9082 ;;
9083 esac
9084 ;;
9085
9086 beos*)
9087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9088 allow_undefined_flag=unsupported
9089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9090 # support --undefined. This deserves some investigation. FIXME
9091 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9092 else
9093 ld_shlibs=no
9094 fi
9095 ;;
9096
9097 cygwin* | mingw* | pw32* | cegcc*)
9098 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9099 # as there is no search path for DLLs.
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 export_dynamic_flag_spec='$wl--export-all-symbols'
9102 allow_undefined_flag=unsupported
9103 always_export_symbols=no
9104 enable_shared_with_static_runtimes=yes
9105 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'
9106 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9107
9108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9110 # If the export-symbols file already is a .def file, use it as
9111 # is; otherwise, prepend EXPORTS...
9112 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9113 cp $export_symbols $output_objdir/$soname.def;
9114 else
9115 echo EXPORTS > $output_objdir/$soname.def;
9116 cat $export_symbols >> $output_objdir/$soname.def;
9117 fi~
9118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119 else
9120 ld_shlibs=no
9121 fi
9122 ;;
9123
9124 haiku*)
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9126 link_all_deplibs=yes
9127 ;;
9128
9129 os2*)
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_minus_L=yes
9132 allow_undefined_flag=unsupported
9133 shrext_cmds=.dll
9134 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9135 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9136 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9137 $ECHO EXPORTS >> $output_objdir/$libname.def~
9138 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9139 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9140 emximp -o $lib $output_objdir/$libname.def'
9141 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9142 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9143 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9144 $ECHO EXPORTS >> $output_objdir/$libname.def~
9145 prefix_cmds="$SED"~
9146 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9147 prefix_cmds="$prefix_cmds -e 1d";
9148 fi~
9149 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9150 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9152 emximp -o $lib $output_objdir/$libname.def'
9153 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9154 enable_shared_with_static_runtimes=yes
9155 ;;
9156
9157 interix[3-9]*)
9158 hardcode_direct=no
9159 hardcode_shlibpath_var=no
9160 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9161 export_dynamic_flag_spec='$wl-E'
9162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9163 # Instead, shared libraries are loaded at an image base (0x10000000 by
9164 # default) and relocated if they conflict, which is a slow very memory
9165 # consuming and fragmenting process. To avoid this, we pick a random,
9166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9169 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'
9170 ;;
9171
9172 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9173 tmp_diet=no
9174 if test linux-dietlibc = "$host_os"; then
9175 case $cc_basename in
9176 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9177 esac
9178 fi
9179 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9180 && test no = "$tmp_diet"
9181 then
9182 tmp_addflag=' $pic_flag'
9183 tmp_sharedflag='-shared'
9184 case $cc_basename,$host_cpu in
9185 pgcc*) # Portland Group C compiler
9186 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'
9187 tmp_addflag=' $pic_flag'
9188 ;;
9189 pgf77* | pgf90* | pgf95* | pgfortran*)
9190 # Portland Group f77 and f90 compilers
9191 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'
9192 tmp_addflag=' $pic_flag -Mnomain' ;;
9193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9194 tmp_addflag=' -i_dynamic' ;;
9195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9196 tmp_addflag=' -i_dynamic -nofor_main' ;;
9197 ifc* | ifort*) # Intel Fortran compiler
9198 tmp_addflag=' -nofor_main' ;;
9199 lf95*) # Lahey Fortran 8.1
9200 whole_archive_flag_spec=
9201 tmp_sharedflag='--shared' ;;
9202 nagfor*) # NAGFOR 5.3
9203 tmp_sharedflag='-Wl,-shared' ;;
9204 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9205 tmp_sharedflag='-qmkshrobj'
9206 tmp_addflag= ;;
9207 nvcc*) # Cuda Compiler Driver 2.2
9208 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'
9209 compiler_needs_object=yes
9210 ;;
9211 esac
9212 case `$CC -V 2>&1 | sed 5q` in
9213 *Sun\ C*) # Sun C 5.9
9214 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'
9215 compiler_needs_object=yes
9216 tmp_sharedflag='-G' ;;
9217 *Sun\ F*) # Sun Fortran 8.3
9218 tmp_sharedflag='-G' ;;
9219 esac
9220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9221
9222 if test yes = "$supports_anon_versioning"; then
9223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9225 echo "local: *; };" >> $output_objdir/$libname.ver~
9226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9227 fi
9228
9229 case $cc_basename in
9230 tcc*)
9231 export_dynamic_flag_spec='-rdynamic'
9232 ;;
9233 xlf* | bgf* | bgxlf* | mpixlf*)
9234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9237 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9238 if test yes = "$supports_anon_versioning"; then
9239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9241 echo "local: *; };" >> $output_objdir/$libname.ver~
9242 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9243 fi
9244 ;;
9245 esac
9246 else
9247 ld_shlibs=no
9248 fi
9249 ;;
9250
9251 netbsd*)
9252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9254 wlarc=
9255 else
9256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9258 fi
9259 ;;
9260
9261 solaris*)
9262 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9263 ld_shlibs=no
9264 cat <<_LT_EOF 1>&2
9265
9266 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9267 *** create shared libraries on Solaris systems. Therefore, libtool
9268 *** is disabling shared libraries support. We urge you to upgrade GNU
9269 *** binutils to release 2.9.1 or newer. Another option is to modify
9270 *** your PATH or compiler configuration so that the native linker is
9271 *** used, and then restart.
9272
9273 _LT_EOF
9274 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9277 else
9278 ld_shlibs=no
9279 fi
9280 ;;
9281
9282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9283 case `$LD -v 2>&1` in
9284 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9285 ld_shlibs=no
9286 cat <<_LT_EOF 1>&2
9287
9288 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9289 *** reliably create shared libraries on SCO systems. Therefore, libtool
9290 *** is disabling shared libraries support. We urge you to upgrade GNU
9291 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9292 *** your PATH or compiler configuration so that the native linker is
9293 *** used, and then restart.
9294
9295 _LT_EOF
9296 ;;
9297 *)
9298 # For security reasons, it is highly recommended that you always
9299 # use absolute paths for naming shared libraries, and exclude the
9300 # DT_RUNPATH tag from executables and libraries. But doing so
9301 # requires that you compile everything twice, which is a pain.
9302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9306 else
9307 ld_shlibs=no
9308 fi
9309 ;;
9310 esac
9311 ;;
9312
9313 sunos4*)
9314 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315 wlarc=
9316 hardcode_direct=yes
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 *)
9321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9323 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9324 else
9325 ld_shlibs=no
9326 fi
9327 ;;
9328 esac
9329
9330 if test no = "$ld_shlibs"; then
9331 runpath_var=
9332 hardcode_libdir_flag_spec=
9333 export_dynamic_flag_spec=
9334 whole_archive_flag_spec=
9335 fi
9336 else
9337 # PORTME fill in a description of your system's linker (not GNU ld)
9338 case $host_os in
9339 aix3*)
9340 allow_undefined_flag=unsupported
9341 always_export_symbols=yes
9342 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'
9343 # Note: this linker hardcodes the directories in LIBPATH if there
9344 # are no directories specified by -L.
9345 hardcode_minus_L=yes
9346 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9347 # Neither direct hardcoding nor static linking is supported with a
9348 # broken collect2.
9349 hardcode_direct=unsupported
9350 fi
9351 ;;
9352
9353 aix[4-9]*)
9354 if test ia64 = "$host_cpu"; then
9355 # On IA64, the linker does run time linking by default, so we don't
9356 # have to do anything special.
9357 aix_use_runtimelinking=no
9358 exp_sym_flag='-Bexport'
9359 no_entry_flag=
9360 else
9361 # If we're using GNU nm, then we don't want the "-C" option.
9362 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9363 # Without the "-l" option, or with the "-B" option, AIX nm treats
9364 # weak defined symbols like other global defined symbols, whereas
9365 # GNU nm marks them as "W".
9366 # While the 'weak' keyword is ignored in the Export File, we need
9367 # it in the Import File for the 'aix-soname' feature, so we have
9368 # to replace the "-B" option with "-P" for AIX nm.
9369 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9370 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9371 else
9372 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9373 fi
9374 aix_use_runtimelinking=no
9375
9376 # Test if we are trying to use run time linking or normal
9377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9378 # have runtime linking enabled, and use it for executables.
9379 # For shared libraries, we enable/disable runtime linking
9380 # depending on the kind of the shared library created -
9381 # when "with_aix_soname,aix_use_runtimelinking" is:
9382 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9383 # "aix,yes" lib.so shared, rtl:yes, for executables
9384 # lib.a static archive
9385 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9386 # lib.a(lib.so.V) shared, rtl:no, for executables
9387 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9388 # lib.a(lib.so.V) shared, rtl:no
9389 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9390 # lib.a static archive
9391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9392 for ld_flag in $LDFLAGS; do
9393 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9394 aix_use_runtimelinking=yes
9395 break
9396 fi
9397 done
9398 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9399 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9400 # so we don't have lib.a shared libs to link our executables.
9401 # We have to force runtime linking in this case.
9402 aix_use_runtimelinking=yes
9403 LDFLAGS="$LDFLAGS -Wl,-brtl"
9404 fi
9405 ;;
9406 esac
9407
9408 exp_sym_flag='-bexport'
9409 no_entry_flag='-bnoentry'
9410 fi
9411
9412 # When large executables or shared objects are built, AIX ld can
9413 # have problems creating the table of contents. If linking a library
9414 # or program results in "error TOC overflow" add -mminimal-toc to
9415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9417
9418 archive_cmds=''
9419 hardcode_direct=yes
9420 hardcode_direct_absolute=yes
9421 hardcode_libdir_separator=':'
9422 link_all_deplibs=yes
9423 file_list_spec='$wl-f,'
9424 case $with_aix_soname,$aix_use_runtimelinking in
9425 aix,*) ;; # traditional, no import file
9426 svr4,* | *,yes) # use import file
9427 # The Import File defines what to hardcode.
9428 hardcode_direct=no
9429 hardcode_direct_absolute=no
9430 ;;
9431 esac
9432
9433 if test yes = "$GCC"; then
9434 case $host_os in aix4.[012]|aix4.[012].*)
9435 # We only want to do this on AIX 4.2 and lower, the check
9436 # below for broken collect2 doesn't work under 4.3+
9437 collect2name=`$CC -print-prog-name=collect2`
9438 if test -f "$collect2name" &&
9439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9440 then
9441 # We have reworked collect2
9442 :
9443 else
9444 # We have old collect2
9445 hardcode_direct=unsupported
9446 # It fails to find uninstalled libraries when the uninstalled
9447 # path is not listed in the libpath. Setting hardcode_minus_L
9448 # to unsupported forces relinking
9449 hardcode_minus_L=yes
9450 hardcode_libdir_flag_spec='-L$libdir'
9451 hardcode_libdir_separator=
9452 fi
9453 ;;
9454 esac
9455 shared_flag='-shared'
9456 if test yes = "$aix_use_runtimelinking"; then
9457 shared_flag="$shared_flag "'$wl-G'
9458 fi
9459 # Need to ensure runtime linking is disabled for the traditional
9460 # shared library, or the linker may eventually find shared libraries
9461 # /with/ Import File - we do not want to mix them.
9462 shared_flag_aix='-shared'
9463 shared_flag_svr4='-shared $wl-G'
9464 else
9465 # not using gcc
9466 if test ia64 = "$host_cpu"; then
9467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9468 # chokes on -Wl,-G. The following line is correct:
9469 shared_flag='-G'
9470 else
9471 if test yes = "$aix_use_runtimelinking"; then
9472 shared_flag='$wl-G'
9473 else
9474 shared_flag='$wl-bM:SRE'
9475 fi
9476 shared_flag_aix='$wl-bM:SRE'
9477 shared_flag_svr4='$wl-G'
9478 fi
9479 fi
9480
9481 export_dynamic_flag_spec='$wl-bexpall'
9482 # It seems that -bexpall does not export symbols beginning with
9483 # underscore (_), so it is better to generate a list of symbols to export.
9484 always_export_symbols=yes
9485 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9486 # Warning - without using the other runtime loading flags (-brtl),
9487 # -berok will link without error, but may produce a broken library.
9488 allow_undefined_flag='-berok'
9489 # Determine the default libpath from the value encoded in an
9490 # empty executable.
9491 if test set = "${lt_cv_aix_libpath+set}"; then
9492 aix_libpath=$lt_cv_aix_libpath
9493 else
9494 if ${lt_cv_aix_libpath_+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499
9500 int
9501 main ()
9502 {
9503
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509
9510 lt_aix_libpath_sed='
9511 /Import File Strings/,/^$/ {
9512 /^0/ {
9513 s/^0 *\([^ ]*\) *$/\1/
9514 p
9515 }
9516 }'
9517 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518 # Check for a 64-bit object if we didn't find anything.
9519 if test -z "$lt_cv_aix_libpath_"; then
9520 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 fi
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 if test -z "$lt_cv_aix_libpath_"; then
9526 lt_cv_aix_libpath_=/usr/lib:/lib
9527 fi
9528
9529 fi
9530
9531 aix_libpath=$lt_cv_aix_libpath_
9532 fi
9533
9534 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9535 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9536 else
9537 if test ia64 = "$host_cpu"; then
9538 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9539 allow_undefined_flag="-z nodefs"
9540 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"
9541 else
9542 # Determine the default libpath from the value encoded in an
9543 # empty executable.
9544 if test set = "${lt_cv_aix_libpath+set}"; then
9545 aix_libpath=$lt_cv_aix_libpath
9546 else
9547 if ${lt_cv_aix_libpath_+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552
9553 int
9554 main ()
9555 {
9556
9557 ;
9558 return 0;
9559 }
9560 _ACEOF
9561 if ac_fn_c_try_link "$LINENO"; then :
9562
9563 lt_aix_libpath_sed='
9564 /Import File Strings/,/^$/ {
9565 /^0/ {
9566 s/^0 *\([^ ]*\) *$/\1/
9567 p
9568 }
9569 }'
9570 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$lt_cv_aix_libpath_"; then
9573 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574 fi
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 if test -z "$lt_cv_aix_libpath_"; then
9579 lt_cv_aix_libpath_=/usr/lib:/lib
9580 fi
9581
9582 fi
9583
9584 aix_libpath=$lt_cv_aix_libpath_
9585 fi
9586
9587 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9588 # Warning - without using the other run time loading flags,
9589 # -berok will link without error, but may produce a broken library.
9590 no_undefined_flag=' $wl-bernotok'
9591 allow_undefined_flag=' $wl-berok'
9592 if test yes = "$with_gnu_ld"; then
9593 # We only use this code for GNU lds that support --whole-archive.
9594 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9595 else
9596 # Exported symbols can be pulled into shared objects from archives
9597 whole_archive_flag_spec='$convenience'
9598 fi
9599 archive_cmds_need_lc=yes
9600 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9601 # -brtl affects multiple linker settings, -berok does not and is overridden later
9602 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9603 if test svr4 != "$with_aix_soname"; then
9604 # This is similar to how AIX traditionally builds its shared libraries.
9605 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9606 fi
9607 if test aix != "$with_aix_soname"; then
9608 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9609 else
9610 # used by -dlpreopen to get the symbols
9611 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9612 fi
9613 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9614 fi
9615 fi
9616 ;;
9617
9618 amigaos*)
9619 case $host_cpu in
9620 powerpc)
9621 # see comment about AmigaOS4 .so support
9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9623 archive_expsym_cmds=''
9624 ;;
9625 m68k)
9626 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)'
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_minus_L=yes
9629 ;;
9630 esac
9631 ;;
9632
9633 bsdi[45]*)
9634 export_dynamic_flag_spec=-rdynamic
9635 ;;
9636
9637 cygwin* | mingw* | pw32* | cegcc*)
9638 # When not using gcc, we currently assume that we are using
9639 # Microsoft Visual C++.
9640 # hardcode_libdir_flag_spec is actually meaningless, as there is
9641 # no search path for DLLs.
9642 case $cc_basename in
9643 cl*)
9644 # Native MSVC
9645 hardcode_libdir_flag_spec=' '
9646 allow_undefined_flag=unsupported
9647 always_export_symbols=yes
9648 file_list_spec='@'
9649 # Tell ltmain to make .lib files, not .a files.
9650 libext=lib
9651 # Tell ltmain to make .dll files, not .so files.
9652 shrext_cmds=.dll
9653 # FIXME: Setting linknames here is a bad hack.
9654 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9655 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9656 cp "$export_symbols" "$output_objdir/$soname.def";
9657 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9658 else
9659 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9660 fi~
9661 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9662 linknames='
9663 # The linker will not automatically build a static lib if we build a DLL.
9664 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9665 enable_shared_with_static_runtimes=yes
9666 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9668 # Don't use ranlib
9669 old_postinstall_cmds='chmod 644 $oldlib'
9670 postlink_cmds='lt_outputfile="@OUTPUT@"~
9671 lt_tool_outputfile="@TOOL_OUTPUT@"~
9672 case $lt_outputfile in
9673 *.exe|*.EXE) ;;
9674 *)
9675 lt_outputfile=$lt_outputfile.exe
9676 lt_tool_outputfile=$lt_tool_outputfile.exe
9677 ;;
9678 esac~
9679 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9680 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9681 $RM "$lt_outputfile.manifest";
9682 fi'
9683 ;;
9684 *)
9685 # Assume MSVC wrapper
9686 hardcode_libdir_flag_spec=' '
9687 allow_undefined_flag=unsupported
9688 # Tell ltmain to make .lib files, not .a files.
9689 libext=lib
9690 # Tell ltmain to make .dll files, not .so files.
9691 shrext_cmds=.dll
9692 # FIXME: Setting linknames here is a bad hack.
9693 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9694 # The linker will automatically build a .lib file if we build a DLL.
9695 old_archive_from_new_cmds='true'
9696 # FIXME: Should let the user specify the lib program.
9697 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9698 enable_shared_with_static_runtimes=yes
9699 ;;
9700 esac
9701 ;;
9702
9703 darwin* | rhapsody*)
9704
9705
9706 archive_cmds_need_lc=no
9707 hardcode_direct=no
9708 hardcode_automatic=yes
9709 hardcode_shlibpath_var=unsupported
9710 if test yes = "$lt_cv_ld_force_load"; then
9711 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\"`'
9712
9713 else
9714 whole_archive_flag_spec=''
9715 fi
9716 link_all_deplibs=yes
9717 allow_undefined_flag=$_lt_dar_allow_undefined
9718 case $cc_basename in
9719 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9720 *) _lt_dar_can_shared=$GCC ;;
9721 esac
9722 if test yes = "$_lt_dar_can_shared"; then
9723 output_verbose_link_cmd=func_echo_all
9724 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9725 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9726 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"
9727 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"
9728
9729 else
9730 ld_shlibs=no
9731 fi
9732
9733 ;;
9734
9735 dgux*)
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_libdir_flag_spec='-L$libdir'
9738 hardcode_shlibpath_var=no
9739 ;;
9740
9741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9742 # support. Future versions do this automatically, but an explicit c++rt0.o
9743 # does not break anything, and helps significantly (at the cost of a little
9744 # extra space).
9745 freebsd2.2*)
9746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9747 hardcode_libdir_flag_spec='-R$libdir'
9748 hardcode_direct=yes
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9753 freebsd2.*)
9754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_direct=yes
9756 hardcode_minus_L=yes
9757 hardcode_shlibpath_var=no
9758 ;;
9759
9760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9761 freebsd* | dragonfly*)
9762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9763 hardcode_libdir_flag_spec='-R$libdir'
9764 hardcode_direct=yes
9765 hardcode_shlibpath_var=no
9766 ;;
9767
9768 hpux9*)
9769 if test yes = "$GCC"; then
9770 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9771 else
9772 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9773 fi
9774 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9775 hardcode_libdir_separator=:
9776 hardcode_direct=yes
9777
9778 # hardcode_minus_L: Not really in the search PATH,
9779 # but as the default location of the library.
9780 hardcode_minus_L=yes
9781 export_dynamic_flag_spec='$wl-E'
9782 ;;
9783
9784 hpux10*)
9785 if test yes,no = "$GCC,$with_gnu_ld"; then
9786 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9787 else
9788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9789 fi
9790 if test no = "$with_gnu_ld"; then
9791 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_direct=yes
9794 hardcode_direct_absolute=yes
9795 export_dynamic_flag_spec='$wl-E'
9796 # hardcode_minus_L: Not really in the search PATH,
9797 # but as the default location of the library.
9798 hardcode_minus_L=yes
9799 fi
9800 ;;
9801
9802 hpux11*)
9803 if test yes,no = "$GCC,$with_gnu_ld"; then
9804 case $host_cpu in
9805 hppa*64*)
9806 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 ;;
9808 ia64*)
9809 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9810 ;;
9811 *)
9812 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 esac
9815 else
9816 case $host_cpu in
9817 hppa*64*)
9818 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9819 ;;
9820 ia64*)
9821 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9822 ;;
9823 *)
9824
9825 # Older versions of the 11.00 compiler do not understand -b yet
9826 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9828 $as_echo_n "checking if $CC understands -b... " >&6; }
9829 if ${lt_cv_prog_compiler__b+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 lt_cv_prog_compiler__b=no
9833 save_LDFLAGS=$LDFLAGS
9834 LDFLAGS="$LDFLAGS -b"
9835 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9837 # The linker can only warn and ignore the option if not recognized
9838 # So say no if there are warnings
9839 if test -s conftest.err; then
9840 # Append any errors to the config.log.
9841 cat conftest.err 1>&5
9842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9844 if diff conftest.exp conftest.er2 >/dev/null; then
9845 lt_cv_prog_compiler__b=yes
9846 fi
9847 else
9848 lt_cv_prog_compiler__b=yes
9849 fi
9850 fi
9851 $RM -r conftest*
9852 LDFLAGS=$save_LDFLAGS
9853
9854 fi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9856 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9857
9858 if test yes = "$lt_cv_prog_compiler__b"; then
9859 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9860 else
9861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9862 fi
9863
9864 ;;
9865 esac
9866 fi
9867 if test no = "$with_gnu_ld"; then
9868 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9869 hardcode_libdir_separator=:
9870
9871 case $host_cpu in
9872 hppa*64*|ia64*)
9873 hardcode_direct=no
9874 hardcode_shlibpath_var=no
9875 ;;
9876 *)
9877 hardcode_direct=yes
9878 hardcode_direct_absolute=yes
9879 export_dynamic_flag_spec='$wl-E'
9880
9881 # hardcode_minus_L: Not really in the search PATH,
9882 # but as the default location of the library.
9883 hardcode_minus_L=yes
9884 ;;
9885 esac
9886 fi
9887 ;;
9888
9889 irix5* | irix6* | nonstopux*)
9890 if test yes = "$GCC"; then
9891 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'
9892 # Try to use the -exported_symbol ld option, if it does not
9893 # work, assume that -exports_file does not work either and
9894 # implicitly export all symbols.
9895 # This should be the same for all languages, so no per-tag cache variable.
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9897 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9898 if ${lt_cv_irix_exported_symbol+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 save_LDFLAGS=$LDFLAGS
9902 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 int foo (void) { return 0; }
9906 _ACEOF
9907 if ac_fn_c_try_link "$LINENO"; then :
9908 lt_cv_irix_exported_symbol=yes
9909 else
9910 lt_cv_irix_exported_symbol=no
9911 fi
9912 rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914 LDFLAGS=$save_LDFLAGS
9915 fi
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9917 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9918 if test yes = "$lt_cv_irix_exported_symbol"; then
9919 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'
9920 fi
9921 else
9922 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'
9923 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'
9924 fi
9925 archive_cmds_need_lc='no'
9926 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9927 hardcode_libdir_separator=:
9928 inherit_rpath=yes
9929 link_all_deplibs=yes
9930 ;;
9931
9932 linux*)
9933 case $cc_basename in
9934 tcc*)
9935 # Fabrice Bellard et al's Tiny C Compiler
9936 ld_shlibs=yes
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 esac
9940 ;;
9941
9942 netbsd*)
9943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9945 else
9946 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9947 fi
9948 hardcode_libdir_flag_spec='-R$libdir'
9949 hardcode_direct=yes
9950 hardcode_shlibpath_var=no
9951 ;;
9952
9953 newsos6)
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_direct=yes
9956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9957 hardcode_libdir_separator=:
9958 hardcode_shlibpath_var=no
9959 ;;
9960
9961 *nto* | *qnx*)
9962 ;;
9963
9964 openbsd* | bitrig*)
9965 if test -f /usr/libexec/ld.so; then
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 hardcode_direct_absolute=yes
9969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9972 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9973 export_dynamic_flag_spec='$wl-E'
9974 else
9975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9976 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9977 fi
9978 else
9979 ld_shlibs=no
9980 fi
9981 ;;
9982
9983 os2*)
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_minus_L=yes
9986 allow_undefined_flag=unsupported
9987 shrext_cmds=.dll
9988 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9989 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9990 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9991 $ECHO EXPORTS >> $output_objdir/$libname.def~
9992 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9993 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9994 emximp -o $lib $output_objdir/$libname.def'
9995 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9996 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9997 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9998 $ECHO EXPORTS >> $output_objdir/$libname.def~
9999 prefix_cmds="$SED"~
10000 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10001 prefix_cmds="$prefix_cmds -e 1d";
10002 fi~
10003 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10004 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10005 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10006 emximp -o $lib $output_objdir/$libname.def'
10007 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10008 enable_shared_with_static_runtimes=yes
10009 ;;
10010
10011 osf3*)
10012 if test yes = "$GCC"; then
10013 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10014 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'
10015 else
10016 allow_undefined_flag=' -expect_unresolved \*'
10017 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'
10018 fi
10019 archive_cmds_need_lc='no'
10020 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10021 hardcode_libdir_separator=:
10022 ;;
10023
10024 osf4* | osf5*) # as osf3* with the addition of -msym flag
10025 if test yes = "$GCC"; then
10026 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10027 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'
10028 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10029 else
10030 allow_undefined_flag=' -expect_unresolved \*'
10031 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'
10032 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~
10033 $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'
10034
10035 # Both c and cxx compiler support -rpath directly
10036 hardcode_libdir_flag_spec='-rpath $libdir'
10037 fi
10038 archive_cmds_need_lc='no'
10039 hardcode_libdir_separator=:
10040 ;;
10041
10042 solaris*)
10043 no_undefined_flag=' -z defs'
10044 if test yes = "$GCC"; then
10045 wlarc='$wl'
10046 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10048 $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'
10049 else
10050 case `$CC -V 2>&1` in
10051 *"Compilers 5.0"*)
10052 wlarc=''
10053 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10056 ;;
10057 *)
10058 wlarc='$wl'
10059 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10061 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10062 ;;
10063 esac
10064 fi
10065 hardcode_libdir_flag_spec='-R$libdir'
10066 hardcode_shlibpath_var=no
10067 case $host_os in
10068 solaris2.[0-5] | solaris2.[0-5].*) ;;
10069 *)
10070 # The compiler driver will combine and reorder linker options,
10071 # but understands '-z linker_flag'. GCC discards it without '$wl',
10072 # but is careful enough not to reorder.
10073 # Supported since Solaris 2.6 (maybe 2.5.1?)
10074 if test yes = "$GCC"; then
10075 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10076 else
10077 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10078 fi
10079 ;;
10080 esac
10081 link_all_deplibs=yes
10082 ;;
10083
10084 sunos4*)
10085 if test sequent = "$host_vendor"; then
10086 # Use $CC to link under sequent, because it throws in some extra .o
10087 # files that make .init and .fini sections work.
10088 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10089 else
10090 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10091 fi
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 hardcode_direct=yes
10094 hardcode_minus_L=yes
10095 hardcode_shlibpath_var=no
10096 ;;
10097
10098 sysv4)
10099 case $host_vendor in
10100 sni)
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct=yes # is this really true???
10103 ;;
10104 siemens)
10105 ## LD is ld it makes a PLAMLIB
10106 ## CC just makes a GrossModule.
10107 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10108 reload_cmds='$CC -r -o $output$reload_objs'
10109 hardcode_direct=no
10110 ;;
10111 motorola)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10114 ;;
10115 esac
10116 runpath_var='LD_RUN_PATH'
10117 hardcode_shlibpath_var=no
10118 ;;
10119
10120 sysv4.3*)
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_shlibpath_var=no
10123 export_dynamic_flag_spec='-Bexport'
10124 ;;
10125
10126 sysv4*MP*)
10127 if test -d /usr/nec; then
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_shlibpath_var=no
10130 runpath_var=LD_RUN_PATH
10131 hardcode_runpath_var=yes
10132 ld_shlibs=yes
10133 fi
10134 ;;
10135
10136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10137 no_undefined_flag='$wl-z,text'
10138 archive_cmds_need_lc=no
10139 hardcode_shlibpath_var=no
10140 runpath_var='LD_RUN_PATH'
10141
10142 if test yes = "$GCC"; then
10143 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 else
10146 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 fi
10149 ;;
10150
10151 sysv5* | sco3.2v5* | sco5v6*)
10152 # Note: We CANNOT use -z defs as we might desire, because we do not
10153 # link with -lc, and that would cause any symbols used from libc to
10154 # always be unresolved, which means just about no library would
10155 # ever link correctly. If we're not using GNU ld we use -z text
10156 # though, which does catch some bad symbols but isn't as heavy-handed
10157 # as -z defs.
10158 no_undefined_flag='$wl-z,text'
10159 allow_undefined_flag='$wl-z,nodefs'
10160 archive_cmds_need_lc=no
10161 hardcode_shlibpath_var=no
10162 hardcode_libdir_flag_spec='$wl-R,$libdir'
10163 hardcode_libdir_separator=':'
10164 link_all_deplibs=yes
10165 export_dynamic_flag_spec='$wl-Bexport'
10166 runpath_var='LD_RUN_PATH'
10167
10168 if test yes = "$GCC"; then
10169 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 else
10172 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 fi
10175 ;;
10176
10177 uts4*)
10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_shlibpath_var=no
10181 ;;
10182
10183 *)
10184 ld_shlibs=no
10185 ;;
10186 esac
10187
10188 if test sni = "$host_vendor"; then
10189 case $host in
10190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10191 export_dynamic_flag_spec='$wl-Blargedynsym'
10192 ;;
10193 esac
10194 fi
10195 fi
10196
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10198 $as_echo "$ld_shlibs" >&6; }
10199 test no = "$ld_shlibs" && can_build_shared=no
10200
10201 with_gnu_ld=$with_gnu_ld
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217 #
10218 # Do we need to explicitly link libc?
10219 #
10220 case "x$archive_cmds_need_lc" in
10221 x|xyes)
10222 # Assume -lc should be added
10223 archive_cmds_need_lc=yes
10224
10225 if test yes,yes = "$GCC,$enable_shared"; then
10226 case $archive_cmds in
10227 *'~'*)
10228 # FIXME: we may have to deal with multi-command sequences.
10229 ;;
10230 '$CC '*)
10231 # Test whether the compiler implicitly links with -lc since on some
10232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10233 # to ld, don't add -lc before -lgcc.
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10235 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10236 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 $RM conftest*
10240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10241
10242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10243 (eval $ac_compile) 2>&5
10244 ac_status=$?
10245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; } 2>conftest.err; then
10247 soname=conftest
10248 lib=conftest
10249 libobjs=conftest.$ac_objext
10250 deplibs=
10251 wl=$lt_prog_compiler_wl
10252 pic_flag=$lt_prog_compiler_pic
10253 compiler_flags=-v
10254 linker_flags=-v
10255 verstring=
10256 output_objdir=.
10257 libname=conftest
10258 lt_save_allow_undefined_flag=$allow_undefined_flag
10259 allow_undefined_flag=
10260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10261 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10262 ac_status=$?
10263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10264 test $ac_status = 0; }
10265 then
10266 lt_cv_archive_cmds_need_lc=no
10267 else
10268 lt_cv_archive_cmds_need_lc=yes
10269 fi
10270 allow_undefined_flag=$lt_save_allow_undefined_flag
10271 else
10272 cat conftest.err 1>&5
10273 fi
10274 $RM conftest*
10275
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10278 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10279 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10280 ;;
10281 esac
10282 fi
10283 ;;
10284 esac
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10438 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10439
10440 if test yes = "$GCC"; then
10441 case $host_os in
10442 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10443 *) lt_awk_arg='/^libraries:/' ;;
10444 esac
10445 case $host_os in
10446 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10447 *) lt_sed_strip_eq='s|=/|/|g' ;;
10448 esac
10449 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10450 case $lt_search_path_spec in
10451 *\;*)
10452 # if the path contains ";" then we assume it to be the separator
10453 # otherwise default to the standard path separator (i.e. ":") - it is
10454 # assumed that no part of a normal pathname contains ";" but that should
10455 # okay in the real world where ";" in dirpaths is itself problematic.
10456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10457 ;;
10458 *)
10459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10460 ;;
10461 esac
10462 # Ok, now we have the path, separated by spaces, we can step through it
10463 # and add multilib dir if necessary...
10464 lt_tmp_lt_search_path_spec=
10465 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10466 # ...but if some path component already ends with the multilib dir we assume
10467 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10468 case "$lt_multi_os_dir; $lt_search_path_spec " in
10469 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10470 lt_multi_os_dir=
10471 ;;
10472 esac
10473 for lt_sys_path in $lt_search_path_spec; do
10474 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10475 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10476 elif test -n "$lt_multi_os_dir"; then
10477 test -d "$lt_sys_path" && \
10478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10479 fi
10480 done
10481 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10482 BEGIN {RS = " "; FS = "/|\n";} {
10483 lt_foo = "";
10484 lt_count = 0;
10485 for (lt_i = NF; lt_i > 0; lt_i--) {
10486 if ($lt_i != "" && $lt_i != ".") {
10487 if ($lt_i == "..") {
10488 lt_count++;
10489 } else {
10490 if (lt_count == 0) {
10491 lt_foo = "/" $lt_i lt_foo;
10492 } else {
10493 lt_count--;
10494 }
10495 }
10496 }
10497 }
10498 if (lt_foo != "") { lt_freq[lt_foo]++; }
10499 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10500 }'`
10501 # AWK program above erroneously prepends '/' to C:/dos/paths
10502 # for these hosts.
10503 case $host_os in
10504 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10505 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10506 esac
10507 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10508 else
10509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10510 fi
10511 library_names_spec=
10512 libname_spec='lib$name'
10513 soname_spec=
10514 shrext_cmds=.so
10515 postinstall_cmds=
10516 postuninstall_cmds=
10517 finish_cmds=
10518 finish_eval=
10519 shlibpath_var=
10520 shlibpath_overrides_runpath=unknown
10521 version_type=none
10522 dynamic_linker="$host_os ld.so"
10523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10524 need_lib_prefix=unknown
10525 hardcode_into_libs=no
10526
10527 # when you set need_version to no, make sure it does not cause -set_version
10528 # flags to be left without arguments
10529 need_version=unknown
10530
10531
10532
10533 case $host_os in
10534 aix3*)
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10537 shlibpath_var=LIBPATH
10538
10539 # AIX 3 has no versioning support, so we append a major version to the name.
10540 soname_spec='$libname$release$shared_ext$major'
10541 ;;
10542
10543 aix[4-9]*)
10544 version_type=linux # correct to gnu/linux during the next big refactor
10545 need_lib_prefix=no
10546 need_version=no
10547 hardcode_into_libs=yes
10548 if test ia64 = "$host_cpu"; then
10549 # AIX 5 supports IA64
10550 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 else
10553 # With GCC up to 2.95.x, collect2 would create an import file
10554 # for dependence libraries. The import file would start with
10555 # the line '#! .'. This would cause the generated library to
10556 # depend on '.', always an invalid library. This was fixed in
10557 # development snapshots of GCC prior to 3.0.
10558 case $host_os in
10559 aix4 | aix4.[01] | aix4.[01].*)
10560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10561 echo ' yes '
10562 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10563 :
10564 else
10565 can_build_shared=no
10566 fi
10567 ;;
10568 esac
10569 # Using Import Files as archive members, it is possible to support
10570 # filename-based versioning of shared library archives on AIX. While
10571 # this would work for both with and without runtime linking, it will
10572 # prevent static linking of such archives. So we do filename-based
10573 # shared library versioning with .so extension only, which is used
10574 # when both runtime linking and shared linking is enabled.
10575 # Unfortunately, runtime linking may impact performance, so we do
10576 # not want this to be the default eventually. Also, we use the
10577 # versioned .so libs for executables only if there is the -brtl
10578 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10579 # To allow for filename-based versioning support, we need to create
10580 # libNAME.so.V as an archive file, containing:
10581 # *) an Import File, referring to the versioned filename of the
10582 # archive as well as the shared archive member, telling the
10583 # bitwidth (32 or 64) of that shared object, and providing the
10584 # list of exported symbols of that shared object, eventually
10585 # decorated with the 'weak' keyword
10586 # *) the shared object with the F_LOADONLY flag set, to really avoid
10587 # it being seen by the linker.
10588 # At run time we better use the real file rather than another symlink,
10589 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10590
10591 case $with_aix_soname,$aix_use_runtimelinking in
10592 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10593 # soname into executable. Probably we can add versioning support to
10594 # collect2, so additional links can be useful in future.
10595 aix,yes) # traditional libtool
10596 dynamic_linker='AIX unversionable lib.so'
10597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10598 # instead of lib<name>.a to let people know that these are not
10599 # typical AIX shared libraries.
10600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10601 ;;
10602 aix,no) # traditional AIX only
10603 dynamic_linker='AIX lib.a(lib.so.V)'
10604 # We preserve .a as extension for shared libraries through AIX4.2
10605 # and later when we are not doing run time linking.
10606 library_names_spec='$libname$release.a $libname.a'
10607 soname_spec='$libname$release$shared_ext$major'
10608 ;;
10609 svr4,*) # full svr4 only
10610 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10611 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10612 # We do not specify a path in Import Files, so LIBPATH fires.
10613 shlibpath_overrides_runpath=yes
10614 ;;
10615 *,yes) # both, prefer svr4
10616 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10617 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10618 # unpreferred sharedlib libNAME.a needs extra handling
10619 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10620 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10621 # We do not specify a path in Import Files, so LIBPATH fires.
10622 shlibpath_overrides_runpath=yes
10623 ;;
10624 *,no) # both, prefer aix
10625 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10626 library_names_spec='$libname$release.a $libname.a'
10627 soname_spec='$libname$release$shared_ext$major'
10628 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10629 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10630 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10631 ;;
10632 esac
10633 shlibpath_var=LIBPATH
10634 fi
10635 ;;
10636
10637 amigaos*)
10638 case $host_cpu in
10639 powerpc)
10640 # Since July 2007 AmigaOS4 officially supports .so libraries.
10641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10643 ;;
10644 m68k)
10645 library_names_spec='$libname.ixlibrary $libname.a'
10646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10647 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10648 ;;
10649 esac
10650 ;;
10651
10652 beos*)
10653 library_names_spec='$libname$shared_ext'
10654 dynamic_linker="$host_os ld.so"
10655 shlibpath_var=LIBRARY_PATH
10656 ;;
10657
10658 bsdi[45]*)
10659 version_type=linux # correct to gnu/linux during the next big refactor
10660 need_version=no
10661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10662 soname_spec='$libname$release$shared_ext$major'
10663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10667 # the default ld.so.conf also contains /usr/contrib/lib and
10668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10669 # libtool to hard-code these into programs
10670 ;;
10671
10672 cygwin* | mingw* | pw32* | cegcc*)
10673 version_type=windows
10674 shrext_cmds=.dll
10675 need_version=no
10676 need_lib_prefix=no
10677
10678 case $GCC,$cc_basename in
10679 yes,*)
10680 # gcc
10681 library_names_spec='$libname.dll.a'
10682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10683 postinstall_cmds='base_file=`basename \$file`~
10684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10685 dldir=$destdir/`dirname \$dlpath`~
10686 test -d \$dldir || mkdir -p \$dldir~
10687 $install_prog $dir/$dlname \$dldir/$dlname~
10688 chmod a+x \$dldir/$dlname~
10689 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10690 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10691 fi'
10692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10693 dlpath=$dir/\$dldll~
10694 $RM \$dlpath'
10695 shlibpath_overrides_runpath=yes
10696
10697 case $host_os in
10698 cygwin*)
10699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10700 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10701
10702 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10703 ;;
10704 mingw* | cegcc*)
10705 # MinGW DLLs use traditional 'lib' prefix
10706 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10707 ;;
10708 pw32*)
10709 # pw32 DLLs use 'pw' prefix rather than 'lib'
10710 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10711 ;;
10712 esac
10713 dynamic_linker='Win32 ld.exe'
10714 ;;
10715
10716 *,cl*)
10717 # Native MSVC
10718 libname_spec='$name'
10719 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10720 library_names_spec='$libname.dll.lib'
10721
10722 case $build_os in
10723 mingw*)
10724 sys_lib_search_path_spec=
10725 lt_save_ifs=$IFS
10726 IFS=';'
10727 for lt_path in $LIB
10728 do
10729 IFS=$lt_save_ifs
10730 # Let DOS variable expansion print the short 8.3 style file name.
10731 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10732 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10733 done
10734 IFS=$lt_save_ifs
10735 # Convert to MSYS style.
10736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10737 ;;
10738 cygwin*)
10739 # Convert to unix form, then to dos form, then back to unix form
10740 # but this time dos style (no spaces!) so that the unix form looks
10741 # like /cygdrive/c/PROGRA~1:/cygdr...
10742 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10743 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10744 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10745 ;;
10746 *)
10747 sys_lib_search_path_spec=$LIB
10748 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10749 # It is most probably a Windows format PATH.
10750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10751 else
10752 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10753 fi
10754 # FIXME: find the short name or the path components, as spaces are
10755 # common. (e.g. "Program Files" -> "PROGRA~1")
10756 ;;
10757 esac
10758
10759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10760 postinstall_cmds='base_file=`basename \$file`~
10761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10762 dldir=$destdir/`dirname \$dlpath`~
10763 test -d \$dldir || mkdir -p \$dldir~
10764 $install_prog $dir/$dlname \$dldir/$dlname'
10765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10766 dlpath=$dir/\$dldll~
10767 $RM \$dlpath'
10768 shlibpath_overrides_runpath=yes
10769 dynamic_linker='Win32 link.exe'
10770 ;;
10771
10772 *)
10773 # Assume MSVC wrapper
10774 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10775 dynamic_linker='Win32 ld.exe'
10776 ;;
10777 esac
10778 # FIXME: first we should search . and the directory the executable is in
10779 shlibpath_var=PATH
10780 ;;
10781
10782 darwin* | rhapsody*)
10783 dynamic_linker="$host_os dyld"
10784 version_type=darwin
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10788 soname_spec='$libname$release$major$shared_ext'
10789 shlibpath_overrides_runpath=yes
10790 shlibpath_var=DYLD_LIBRARY_PATH
10791 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10792
10793 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10794 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10795 ;;
10796
10797 dgux*)
10798 version_type=linux # correct to gnu/linux during the next big refactor
10799 need_lib_prefix=no
10800 need_version=no
10801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10802 soname_spec='$libname$release$shared_ext$major'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 ;;
10805
10806 freebsd* | dragonfly*)
10807 # DragonFly does not have aout. When/if they implement a new
10808 # versioning mechanism, adjust this.
10809 if test -x /usr/bin/objformat; then
10810 objformat=`/usr/bin/objformat`
10811 else
10812 case $host_os in
10813 freebsd[23].*) objformat=aout ;;
10814 *) objformat=elf ;;
10815 esac
10816 fi
10817 version_type=freebsd-$objformat
10818 case $version_type in
10819 freebsd-elf*)
10820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10821 soname_spec='$libname$release$shared_ext$major'
10822 need_version=no
10823 need_lib_prefix=no
10824 ;;
10825 freebsd-*)
10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10827 need_version=yes
10828 ;;
10829 esac
10830 shlibpath_var=LD_LIBRARY_PATH
10831 case $host_os in
10832 freebsd2.*)
10833 shlibpath_overrides_runpath=yes
10834 ;;
10835 freebsd3.[01]* | freebsdelf3.[01]*)
10836 shlibpath_overrides_runpath=yes
10837 hardcode_into_libs=yes
10838 ;;
10839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10841 shlibpath_overrides_runpath=no
10842 hardcode_into_libs=yes
10843 ;;
10844 *) # from 4.6 on, and DragonFly
10845 shlibpath_overrides_runpath=yes
10846 hardcode_into_libs=yes
10847 ;;
10848 esac
10849 ;;
10850
10851 haiku*)
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 need_lib_prefix=no
10854 need_version=no
10855 dynamic_linker="$host_os runtime_loader"
10856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10857 soname_spec='$libname$release$shared_ext$major'
10858 shlibpath_var=LIBRARY_PATH
10859 shlibpath_overrides_runpath=no
10860 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10861 hardcode_into_libs=yes
10862 ;;
10863
10864 hpux9* | hpux10* | hpux11*)
10865 # Give a soname corresponding to the major version so that dld.sl refuses to
10866 # link against other versions.
10867 version_type=sunos
10868 need_lib_prefix=no
10869 need_version=no
10870 case $host_cpu in
10871 ia64*)
10872 shrext_cmds='.so'
10873 hardcode_into_libs=yes
10874 dynamic_linker="$host_os dld.so"
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10878 soname_spec='$libname$release$shared_ext$major'
10879 if test 32 = "$HPUX_IA64_MODE"; then
10880 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10881 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10882 else
10883 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10884 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10885 fi
10886 ;;
10887 hppa*64*)
10888 shrext_cmds='.sl'
10889 hardcode_into_libs=yes
10890 dynamic_linker="$host_os dld.sl"
10891 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894 soname_spec='$libname$release$shared_ext$major'
10895 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897 ;;
10898 *)
10899 shrext_cmds='.sl'
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=SHLIB_PATH
10902 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 soname_spec='$libname$release$shared_ext$major'
10905 ;;
10906 esac
10907 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10908 postinstall_cmds='chmod 555 $lib'
10909 # or fails outright, so override atomically:
10910 install_override_mode=555
10911 ;;
10912
10913 interix[3-9]*)
10914 version_type=linux # correct to gnu/linux during the next big refactor
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918 soname_spec='$libname$release$shared_ext$major'
10919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=no
10922 hardcode_into_libs=yes
10923 ;;
10924
10925 irix5* | irix6* | nonstopux*)
10926 case $host_os in
10927 nonstopux*) version_type=nonstopux ;;
10928 *)
10929 if test yes = "$lt_cv_prog_gnu_ld"; then
10930 version_type=linux # correct to gnu/linux during the next big refactor
10931 else
10932 version_type=irix
10933 fi ;;
10934 esac
10935 need_lib_prefix=no
10936 need_version=no
10937 soname_spec='$libname$release$shared_ext$major'
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10939 case $host_os in
10940 irix5* | nonstopux*)
10941 libsuff= shlibsuff=
10942 ;;
10943 *)
10944 case $LD in # libtool.m4 will add one of these switches to LD
10945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10946 libsuff= shlibsuff= libmagic=32-bit;;
10947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10948 libsuff=32 shlibsuff=N32 libmagic=N32;;
10949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10951 *) libsuff= shlibsuff= libmagic=never-match;;
10952 esac
10953 ;;
10954 esac
10955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10956 shlibpath_overrides_runpath=no
10957 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10958 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10959 hardcode_into_libs=yes
10960 ;;
10961
10962 # No shared lib support for Linux oldld, aout, or coff.
10963 linux*oldld* | linux*aout* | linux*coff*)
10964 dynamic_linker=no
10965 ;;
10966
10967 linux*android*)
10968 version_type=none # Android doesn't support versioned libraries.
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='$libname$release$shared_ext'
10972 soname_spec='$libname$release$shared_ext'
10973 finish_cmds=
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976
10977 # This implies no fast_install, which is unacceptable.
10978 # Some rework will be needed to allow for fast_install
10979 # before this can be enabled.
10980 hardcode_into_libs=yes
10981
10982 dynamic_linker='Android linker'
10983 # Don't embed -rpath directories since the linker doesn't support them.
10984 hardcode_libdir_flag_spec='-L$libdir'
10985 ;;
10986
10987 # This must be glibc/ELF.
10988 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10989 version_type=linux # correct to gnu/linux during the next big refactor
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10993 soname_spec='$libname$release$shared_ext$major'
10994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=no
10997
10998 # Some binutils ld are patched to set DT_RUNPATH
10999 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 lt_cv_shlibpath_overrides_runpath=no
11003 save_LDFLAGS=$LDFLAGS
11004 save_libdir=$libdir
11005 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11006 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009
11010 int
11011 main ()
11012 {
11013
11014 ;
11015 return 0;
11016 }
11017 _ACEOF
11018 if ac_fn_c_try_link "$LINENO"; then :
11019 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11020 lt_cv_shlibpath_overrides_runpath=yes
11021 fi
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LDFLAGS=$save_LDFLAGS
11026 libdir=$save_libdir
11027
11028 fi
11029
11030 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11031
11032 # This implies no fast_install, which is unacceptable.
11033 # Some rework will be needed to allow for fast_install
11034 # before this can be enabled.
11035 hardcode_into_libs=yes
11036
11037 # Ideally, we could use ldconfig to report *all* directores which are
11038 # searched for libraries, however this is still not possible. Aside from not
11039 # being certain /sbin/ldconfig is available, command
11040 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11041 # even though it is searched at run-time. Try to do the best guess by
11042 # appending ld.so.conf contents (and includes) to the search path.
11043 if test -f /etc/ld.so.conf; then
11044 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' ' '`
11045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11046 fi
11047
11048 # We used to test for /lib/ld.so.1 and disable shared libraries on
11049 # powerpc, because MkLinux only supported shared libraries with the
11050 # GNU dynamic linker. Since this was broken with cross compilers,
11051 # most powerpc-linux boxes support dynamic linking these days and
11052 # people can always --disable-shared, the test was removed, and we
11053 # assume the GNU/Linux dynamic linker is in use.
11054 dynamic_linker='GNU/Linux ld.so'
11055 ;;
11056
11057 netbsd*)
11058 version_type=sunos
11059 need_lib_prefix=no
11060 need_version=no
11061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11064 dynamic_linker='NetBSD (a.out) ld.so'
11065 else
11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11067 soname_spec='$libname$release$shared_ext$major'
11068 dynamic_linker='NetBSD ld.elf_so'
11069 fi
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=yes
11072 hardcode_into_libs=yes
11073 ;;
11074
11075 newsos6)
11076 version_type=linux # correct to gnu/linux during the next big refactor
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=yes
11080 ;;
11081
11082 *nto* | *qnx*)
11083 version_type=qnx
11084 need_lib_prefix=no
11085 need_version=no
11086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11087 soname_spec='$libname$release$shared_ext$major'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=no
11090 hardcode_into_libs=yes
11091 dynamic_linker='ldqnx.so'
11092 ;;
11093
11094 openbsd* | bitrig*)
11095 version_type=sunos
11096 sys_lib_dlsearch_path_spec=/usr/lib
11097 need_lib_prefix=no
11098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11099 need_version=no
11100 else
11101 need_version=yes
11102 fi
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=yes
11107 ;;
11108
11109 os2*)
11110 libname_spec='$name'
11111 version_type=windows
11112 shrext_cmds=.dll
11113 need_version=no
11114 need_lib_prefix=no
11115 # OS/2 can only load a DLL with a base name of 8 characters or less.
11116 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11117 v=$($ECHO $release$versuffix | tr -d .-);
11118 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11119 $ECHO $n$v`$shared_ext'
11120 library_names_spec='${libname}_dll.$libext'
11121 dynamic_linker='OS/2 ld.exe'
11122 shlibpath_var=BEGINLIBPATH
11123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11125 postinstall_cmds='base_file=`basename \$file`~
11126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11127 dldir=$destdir/`dirname \$dlpath`~
11128 test -d \$dldir || mkdir -p \$dldir~
11129 $install_prog $dir/$dlname \$dldir/$dlname~
11130 chmod a+x \$dldir/$dlname~
11131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11133 fi'
11134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11135 dlpath=$dir/\$dldll~
11136 $RM \$dlpath'
11137 ;;
11138
11139 osf3* | osf4* | osf5*)
11140 version_type=osf
11141 need_lib_prefix=no
11142 need_version=no
11143 soname_spec='$libname$release$shared_ext$major'
11144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11148 ;;
11149
11150 rdos*)
11151 dynamic_linker=no
11152 ;;
11153
11154 solaris*)
11155 version_type=linux # correct to gnu/linux during the next big refactor
11156 need_lib_prefix=no
11157 need_version=no
11158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159 soname_spec='$libname$release$shared_ext$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes
11162 hardcode_into_libs=yes
11163 # ldd complains unless libraries are executable
11164 postinstall_cmds='chmod +x $lib'
11165 ;;
11166
11167 sunos4*)
11168 version_type=sunos
11169 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11170 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 shlibpath_overrides_runpath=yes
11173 if test yes = "$with_gnu_ld"; then
11174 need_lib_prefix=no
11175 fi
11176 need_version=yes
11177 ;;
11178
11179 sysv4 | sysv4.3*)
11180 version_type=linux # correct to gnu/linux during the next big refactor
11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11182 soname_spec='$libname$release$shared_ext$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 case $host_vendor in
11185 sni)
11186 shlibpath_overrides_runpath=no
11187 need_lib_prefix=no
11188 runpath_var=LD_RUN_PATH
11189 ;;
11190 siemens)
11191 need_lib_prefix=no
11192 ;;
11193 motorola)
11194 need_lib_prefix=no
11195 need_version=no
11196 shlibpath_overrides_runpath=no
11197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11198 ;;
11199 esac
11200 ;;
11201
11202 sysv4*MP*)
11203 if test -d /usr/nec; then
11204 version_type=linux # correct to gnu/linux during the next big refactor
11205 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11206 soname_spec='$libname$shared_ext.$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 fi
11209 ;;
11210
11211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11212 version_type=sco
11213 need_lib_prefix=no
11214 need_version=no
11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11216 soname_spec='$libname$release$shared_ext$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=yes
11219 hardcode_into_libs=yes
11220 if test yes = "$with_gnu_ld"; then
11221 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11222 else
11223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11224 case $host_os in
11225 sco3.2v5*)
11226 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11227 ;;
11228 esac
11229 fi
11230 sys_lib_dlsearch_path_spec='/usr/lib'
11231 ;;
11232
11233 tpf*)
11234 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11235 version_type=linux # correct to gnu/linux during the next big refactor
11236 need_lib_prefix=no
11237 need_version=no
11238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=no
11241 hardcode_into_libs=yes
11242 ;;
11243
11244 uts4*)
11245 version_type=linux # correct to gnu/linux during the next big refactor
11246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247 soname_spec='$libname$release$shared_ext$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 ;;
11250
11251 *)
11252 dynamic_linker=no
11253 ;;
11254 esac
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11256 $as_echo "$dynamic_linker" >&6; }
11257 test no = "$dynamic_linker" && can_build_shared=no
11258
11259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11260 if test yes = "$GCC"; then
11261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11262 fi
11263
11264 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11265 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11266 fi
11267
11268 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11269 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11270 fi
11271
11272 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11273 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11274
11275 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11276 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11277
11278 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11279 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11378 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11379 hardcode_action=
11380 if test -n "$hardcode_libdir_flag_spec" ||
11381 test -n "$runpath_var" ||
11382 test yes = "$hardcode_automatic"; then
11383
11384 # We can hardcode non-existent directories.
11385 if test no != "$hardcode_direct" &&
11386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11387 # have to relink, otherwise we might link with an installed library
11388 # when we should be linking with a yet-to-be-installed one
11389 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11390 test no != "$hardcode_minus_L"; then
11391 # Linking always hardcodes the temporary library directory.
11392 hardcode_action=relink
11393 else
11394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11395 hardcode_action=immediate
11396 fi
11397 else
11398 # We cannot hardcode anything, or else we can only hardcode existing
11399 # directories.
11400 hardcode_action=unsupported
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11403 $as_echo "$hardcode_action" >&6; }
11404
11405 if test relink = "$hardcode_action" ||
11406 test yes = "$inherit_rpath"; then
11407 # Fast installation is not supported
11408 enable_fast_install=no
11409 elif test yes = "$shlibpath_overrides_runpath" ||
11410 test no = "$enable_shared"; then
11411 # Fast installation is not necessary
11412 enable_fast_install=needless
11413 fi
11414
11415
11416
11417
11418
11419
11420 if test yes != "$enable_dlopen"; then
11421 enable_dlopen=unknown
11422 enable_dlopen_self=unknown
11423 enable_dlopen_self_static=unknown
11424 else
11425 lt_cv_dlopen=no
11426 lt_cv_dlopen_libs=
11427
11428 case $host_os in
11429 beos*)
11430 lt_cv_dlopen=load_add_on
11431 lt_cv_dlopen_libs=
11432 lt_cv_dlopen_self=yes
11433 ;;
11434
11435 mingw* | pw32* | cegcc*)
11436 lt_cv_dlopen=LoadLibrary
11437 lt_cv_dlopen_libs=
11438 ;;
11439
11440 cygwin*)
11441 lt_cv_dlopen=dlopen
11442 lt_cv_dlopen_libs=
11443 ;;
11444
11445 darwin*)
11446 # if libdl is installed we need to link against it
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11448 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11449 if ${ac_cv_lib_dl_dlopen+:} false; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 ac_check_lib_save_LIBS=$LIBS
11453 LIBS="-ldl $LIBS"
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456
11457 /* Override any GCC internal prototype to avoid an error.
11458 Use char because int might match the return type of a GCC
11459 builtin and then its argument prototype would still apply. */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 char dlopen ();
11464 int
11465 main ()
11466 {
11467 return dlopen ();
11468 ;
11469 return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_c_try_link "$LINENO"; then :
11473 ac_cv_lib_dl_dlopen=yes
11474 else
11475 ac_cv_lib_dl_dlopen=no
11476 fi
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11480 fi
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11482 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11483 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11484 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11485 else
11486
11487 lt_cv_dlopen=dyld
11488 lt_cv_dlopen_libs=
11489 lt_cv_dlopen_self=yes
11490
11491 fi
11492
11493 ;;
11494
11495 tpf*)
11496 # Don't try to run any link tests for TPF. We know it's impossible
11497 # because TPF is a cross-compiler, and we know how we open DSOs.
11498 lt_cv_dlopen=dlopen
11499 lt_cv_dlopen_libs=
11500 lt_cv_dlopen_self=no
11501 ;;
11502
11503 *)
11504 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11505 if test "x$ac_cv_func_shl_load" = xyes; then :
11506 lt_cv_dlopen=shl_load
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11509 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11510 if ${ac_cv_lib_dld_shl_load+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ldld $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char shl_load ();
11525 int
11526 main ()
11527 {
11528 return shl_load ();
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_dld_shl_load=yes
11535 else
11536 ac_cv_lib_dld_shl_load=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11543 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11544 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11545 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11546 else
11547 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11548 if test "x$ac_cv_func_dlopen" = xyes; then :
11549 lt_cv_dlopen=dlopen
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11553 if ${ac_cv_lib_dl_dlopen+:} false; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-ldl $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dlopen ();
11568 int
11569 main ()
11570 {
11571 return dlopen ();
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_dl_dlopen=yes
11578 else
11579 ac_cv_lib_dl_dlopen=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11588 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11591 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11592 if ${ac_cv_lib_svld_dlopen+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lsvld $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char dlopen ();
11607 int
11608 main ()
11609 {
11610 return dlopen ();
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_lib_svld_dlopen=yes
11617 else
11618 ac_cv_lib_svld_dlopen=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11625 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11626 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11627 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11630 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11631 if ${ac_cv_lib_dld_dld_link+:} false; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_check_lib_save_LIBS=$LIBS
11635 LIBS="-ldld $LIBS"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 char dld_link ();
11646 int
11647 main ()
11648 {
11649 return dld_link ();
11650 ;
11651 return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 ac_cv_lib_dld_dld_link=yes
11656 else
11657 ac_cv_lib_dld_dld_link=no
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext \
11660 conftest$ac_exeext conftest.$ac_ext
11661 LIBS=$ac_check_lib_save_LIBS
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11664 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11665 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11666 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11667 fi
11668
11669
11670 fi
11671
11672
11673 fi
11674
11675
11676 fi
11677
11678
11679 fi
11680
11681
11682 fi
11683
11684 ;;
11685 esac
11686
11687 if test no = "$lt_cv_dlopen"; then
11688 enable_dlopen=no
11689 else
11690 enable_dlopen=yes
11691 fi
11692
11693 case $lt_cv_dlopen in
11694 dlopen)
11695 save_CPPFLAGS=$CPPFLAGS
11696 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11697
11698 save_LDFLAGS=$LDFLAGS
11699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11700
11701 save_LIBS=$LIBS
11702 LIBS="$lt_cv_dlopen_libs $LIBS"
11703
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11705 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11706 if ${lt_cv_dlopen_self+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 if test yes = "$cross_compiling"; then :
11710 lt_cv_dlopen_self=cross
11711 else
11712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11713 lt_status=$lt_dlunknown
11714 cat > conftest.$ac_ext <<_LT_EOF
11715 #line $LINENO "configure"
11716 #include "confdefs.h"
11717
11718 #if HAVE_DLFCN_H
11719 #include <dlfcn.h>
11720 #endif
11721
11722 #include <stdio.h>
11723
11724 #ifdef RTLD_GLOBAL
11725 # define LT_DLGLOBAL RTLD_GLOBAL
11726 #else
11727 # ifdef DL_GLOBAL
11728 # define LT_DLGLOBAL DL_GLOBAL
11729 # else
11730 # define LT_DLGLOBAL 0
11731 # endif
11732 #endif
11733
11734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11735 find out it does not work in some platform. */
11736 #ifndef LT_DLLAZY_OR_NOW
11737 # ifdef RTLD_LAZY
11738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11739 # else
11740 # ifdef DL_LAZY
11741 # define LT_DLLAZY_OR_NOW DL_LAZY
11742 # else
11743 # ifdef RTLD_NOW
11744 # define LT_DLLAZY_OR_NOW RTLD_NOW
11745 # else
11746 # ifdef DL_NOW
11747 # define LT_DLLAZY_OR_NOW DL_NOW
11748 # else
11749 # define LT_DLLAZY_OR_NOW 0
11750 # endif
11751 # endif
11752 # endif
11753 # endif
11754 #endif
11755
11756 /* When -fvisibility=hidden is used, assume the code has been annotated
11757 correspondingly for the symbols needed. */
11758 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11759 int fnord () __attribute__((visibility("default")));
11760 #endif
11761
11762 int fnord () { return 42; }
11763 int main ()
11764 {
11765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11766 int status = $lt_dlunknown;
11767
11768 if (self)
11769 {
11770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11771 else
11772 {
11773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11774 else puts (dlerror ());
11775 }
11776 /* dlclose (self); */
11777 }
11778 else
11779 puts (dlerror ());
11780
11781 return status;
11782 }
11783 _LT_EOF
11784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11785 (eval $ac_link) 2>&5
11786 ac_status=$?
11787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11789 (./conftest; exit; ) >&5 2>/dev/null
11790 lt_status=$?
11791 case x$lt_status in
11792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11794 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11795 esac
11796 else :
11797 # compilation failed
11798 lt_cv_dlopen_self=no
11799 fi
11800 fi
11801 rm -fr conftest*
11802
11803
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11806 $as_echo "$lt_cv_dlopen_self" >&6; }
11807
11808 if test yes = "$lt_cv_dlopen_self"; then
11809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11811 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11812 if ${lt_cv_dlopen_self_static+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 if test yes = "$cross_compiling"; then :
11816 lt_cv_dlopen_self_static=cross
11817 else
11818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11819 lt_status=$lt_dlunknown
11820 cat > conftest.$ac_ext <<_LT_EOF
11821 #line $LINENO "configure"
11822 #include "confdefs.h"
11823
11824 #if HAVE_DLFCN_H
11825 #include <dlfcn.h>
11826 #endif
11827
11828 #include <stdio.h>
11829
11830 #ifdef RTLD_GLOBAL
11831 # define LT_DLGLOBAL RTLD_GLOBAL
11832 #else
11833 # ifdef DL_GLOBAL
11834 # define LT_DLGLOBAL DL_GLOBAL
11835 # else
11836 # define LT_DLGLOBAL 0
11837 # endif
11838 #endif
11839
11840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11841 find out it does not work in some platform. */
11842 #ifndef LT_DLLAZY_OR_NOW
11843 # ifdef RTLD_LAZY
11844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11845 # else
11846 # ifdef DL_LAZY
11847 # define LT_DLLAZY_OR_NOW DL_LAZY
11848 # else
11849 # ifdef RTLD_NOW
11850 # define LT_DLLAZY_OR_NOW RTLD_NOW
11851 # else
11852 # ifdef DL_NOW
11853 # define LT_DLLAZY_OR_NOW DL_NOW
11854 # else
11855 # define LT_DLLAZY_OR_NOW 0
11856 # endif
11857 # endif
11858 # endif
11859 # endif
11860 #endif
11861
11862 /* When -fvisibility=hidden is used, assume the code has been annotated
11863 correspondingly for the symbols needed. */
11864 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11865 int fnord () __attribute__((visibility("default")));
11866 #endif
11867
11868 int fnord () { return 42; }
11869 int main ()
11870 {
11871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11872 int status = $lt_dlunknown;
11873
11874 if (self)
11875 {
11876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11877 else
11878 {
11879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 else puts (dlerror ());
11881 }
11882 /* dlclose (self); */
11883 }
11884 else
11885 puts (dlerror ());
11886
11887 return status;
11888 }
11889 _LT_EOF
11890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891 (eval $ac_link) 2>&5
11892 ac_status=$?
11893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11895 (./conftest; exit; ) >&5 2>/dev/null
11896 lt_status=$?
11897 case x$lt_status in
11898 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11899 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11900 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11901 esac
11902 else :
11903 # compilation failed
11904 lt_cv_dlopen_self_static=no
11905 fi
11906 fi
11907 rm -fr conftest*
11908
11909
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11912 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11913 fi
11914
11915 CPPFLAGS=$save_CPPFLAGS
11916 LDFLAGS=$save_LDFLAGS
11917 LIBS=$save_LIBS
11918 ;;
11919 esac
11920
11921 case $lt_cv_dlopen_self in
11922 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11923 *) enable_dlopen_self=unknown ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self_static in
11927 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11928 *) enable_dlopen_self_static=unknown ;;
11929 esac
11930 fi
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948 striplib=
11949 old_striplib=
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11951 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11952 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11956 $as_echo "yes" >&6; }
11957 else
11958 # FIXME - insert some real tests, host_os isn't really good enough
11959 case $host_os in
11960 darwin*)
11961 if test -n "$STRIP"; then
11962 striplib="$STRIP -x"
11963 old_striplib="$STRIP -S"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969 fi
11970 ;;
11971 *)
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 ;;
11975 esac
11976 fi
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989 # Report what library types will actually be built
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11991 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11993 $as_echo "$can_build_shared" >&6; }
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11996 $as_echo_n "checking whether to build shared libraries... " >&6; }
11997 test no = "$can_build_shared" && enable_shared=no
11998
11999 # On AIX, shared libraries and static libraries use the same namespace, and
12000 # are all built from PIC.
12001 case $host_os in
12002 aix3*)
12003 test yes = "$enable_shared" && enable_static=no
12004 if test -n "$RANLIB"; then
12005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12006 postinstall_cmds='$RANLIB $lib'
12007 fi
12008 ;;
12009
12010 aix[4-9]*)
12011 if test ia64 != "$host_cpu"; then
12012 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12013 yes,aix,yes) ;; # shared object as lib.so file only
12014 yes,svr4,*) ;; # shared object as lib.so archive member only
12015 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12016 esac
12017 fi
12018 ;;
12019 esac
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12021 $as_echo "$enable_shared" >&6; }
12022
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12024 $as_echo_n "checking whether to build static libraries... " >&6; }
12025 # Make sure either enable_shared or enable_static is yes.
12026 test yes = "$enable_shared" || enable_static=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12028 $as_echo "$enable_static" >&6; }
12029
12030
12031
12032
12033 fi
12034 ac_ext=c
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039
12040 CC=$lt_save_CC
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 ac_config_commands="$ac_config_commands libtool"
12057
12058
12059
12060
12061 # Only expand once:
12062
12063
12064
12065
12066 for ac_prog in 'bison -y' byacc
12067 do
12068 # Extract the first word of "$ac_prog", so it can be a program name with args.
12069 set dummy $ac_prog; ac_word=$2
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12071 $as_echo_n "checking for $ac_word... " >&6; }
12072 if ${ac_cv_prog_YACC+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 if test -n "$YACC"; then
12076 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12077 else
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12080 do
12081 IFS=$as_save_IFS
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085 ac_cv_prog_YACC="$ac_prog"
12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12087 break 2
12088 fi
12089 done
12090 done
12091 IFS=$as_save_IFS
12092
12093 fi
12094 fi
12095 YACC=$ac_cv_prog_YACC
12096 if test -n "$YACC"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12098 $as_echo "$YACC" >&6; }
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12102 fi
12103
12104
12105 test -n "$YACC" && break
12106 done
12107 test -n "$YACC" || YACC="yacc"
12108
12109
12110 for ac_prog in flex lex
12111 do
12112 # Extract the first word of "$ac_prog", so it can be a program name with args.
12113 set dummy $ac_prog; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if ${ac_cv_prog_LEX+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 if test -n "$LEX"; then
12120 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12121 else
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12124 do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 ac_cv_prog_LEX="$ac_prog"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12132 fi
12133 done
12134 done
12135 IFS=$as_save_IFS
12136
12137 fi
12138 fi
12139 LEX=$ac_cv_prog_LEX
12140 if test -n "$LEX"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12142 $as_echo "$LEX" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147
12148
12149 test -n "$LEX" && break
12150 done
12151 test -n "$LEX" || LEX=":"
12152
12153 if test "x$LEX" != "x:"; then
12154 cat >conftest.l <<_ACEOF
12155 %%
12156 a { ECHO; }
12157 b { REJECT; }
12158 c { yymore (); }
12159 d { yyless (1); }
12160 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12161 yyless ((input () != 0)); }
12162 f { unput (yytext[0]); }
12163 . { BEGIN INITIAL; }
12164 %%
12165 #ifdef YYTEXT_POINTER
12166 extern char *yytext;
12167 #endif
12168 int
12169 main (void)
12170 {
12171 return ! yylex () + ! yywrap ();
12172 }
12173 _ACEOF
12174 { { ac_try="$LEX conftest.l"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12180 $as_echo "$ac_try_echo"; } >&5
12181 (eval "$LEX conftest.l") 2>&5
12182 ac_status=$?
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12186 $as_echo_n "checking lex output file root... " >&6; }
12187 if ${ac_cv_prog_lex_root+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190
12191 if test -f lex.yy.c; then
12192 ac_cv_prog_lex_root=lex.yy
12193 elif test -f lexyy.c; then
12194 ac_cv_prog_lex_root=lexyy
12195 else
12196 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12197 fi
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12200 $as_echo "$ac_cv_prog_lex_root" >&6; }
12201 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12202
12203 if test -z "${LEXLIB+set}"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12205 $as_echo_n "checking lex library... " >&6; }
12206 if ${ac_cv_lib_lex+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209
12210 ac_save_LIBS=$LIBS
12211 ac_cv_lib_lex='none needed'
12212 for ac_lib in '' -lfl -ll; do
12213 LIBS="$ac_lib $ac_save_LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 `cat $LEX_OUTPUT_ROOT.c`
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_lex=$ac_lib
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 test "$ac_cv_lib_lex" != 'none needed' && break
12224 done
12225 LIBS=$ac_save_LIBS
12226
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12229 $as_echo "$ac_cv_lib_lex" >&6; }
12230 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12231 fi
12232
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12235 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12236 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 # POSIX says lex can declare yytext either as a pointer or an array; the
12240 # default is implementation-dependent. Figure out which it is, since
12241 # not all implementations provide the %pointer and %array declarations.
12242 ac_cv_prog_lex_yytext_pointer=no
12243 ac_save_LIBS=$LIBS
12244 LIBS="$LEXLIB $ac_save_LIBS"
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247
12248 #define YYTEXT_POINTER 1
12249 `cat $LEX_OUTPUT_ROOT.c`
12250 _ACEOF
12251 if ac_fn_c_try_link "$LINENO"; then :
12252 ac_cv_prog_lex_yytext_pointer=yes
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LIBS=$ac_save_LIBS
12257
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12260 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12261 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12262
12263 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12264
12265 fi
12266 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12267
12268 fi
12269 if test "$LEX" = :; then
12270 LEX=${am_missing_run}flex
12271 fi
12272
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12274 $as_echo_n "checking for library containing socket... " >&6; }
12275 if ${ac_cv_search_socket+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 ac_func_search_save_LIBS=$LIBS
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 char socket ();
12289 int
12290 main ()
12291 {
12292 return socket ();
12293 ;
12294 return 0;
12295 }
12296 _ACEOF
12297 for ac_lib in '' socket; do
12298 if test -z "$ac_lib"; then
12299 ac_res="none required"
12300 else
12301 ac_res=-l$ac_lib
12302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12303 fi
12304 if ac_fn_c_try_link "$LINENO"; then :
12305 ac_cv_search_socket=$ac_res
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext
12309 if ${ac_cv_search_socket+:} false; then :
12310 break
12311 fi
12312 done
12313 if ${ac_cv_search_socket+:} false; then :
12314
12315 else
12316 ac_cv_search_socket=no
12317 fi
12318 rm conftest.$ac_ext
12319 LIBS=$ac_func_search_save_LIBS
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12322 $as_echo "$ac_cv_search_socket" >&6; }
12323 ac_res=$ac_cv_search_socket
12324 if test "$ac_res" != no; then :
12325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12326
12327 else
12328 as_fn_error $? "socket library not found" "$LINENO" 5
12329 fi
12330
12331 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12332 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12333
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12336 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12337 if ${ac_cv_search_getaddrinfo+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 ac_func_search_save_LIBS=$LIBS
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char getaddrinfo ();
12351 int
12352 main ()
12353 {
12354 return getaddrinfo ();
12355 ;
12356 return 0;
12357 }
12358 _ACEOF
12359 for ac_lib in '' nsl; do
12360 if test -z "$ac_lib"; then
12361 ac_res="none required"
12362 else
12363 ac_res=-l$ac_lib
12364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12365 fi
12366 if ac_fn_c_try_link "$LINENO"; then :
12367 ac_cv_search_getaddrinfo=$ac_res
12368 fi
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext
12371 if ${ac_cv_search_getaddrinfo+:} false; then :
12372 break
12373 fi
12374 done
12375 if ${ac_cv_search_getaddrinfo+:} false; then :
12376
12377 else
12378 ac_cv_search_getaddrinfo=no
12379 fi
12380 rm conftest.$ac_ext
12381 LIBS=$ac_func_search_save_LIBS
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12384 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12385 ac_res=$ac_cv_search_getaddrinfo
12386 if test "$ac_res" != no; then :
12387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12388
12389 fi
12390
12391 fi
12392
12393 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12394 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12395
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12398 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12399 if ${ac_cv_search_getnameinfo+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 ac_func_search_save_LIBS=$LIBS
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char getnameinfo ();
12413 int
12414 main ()
12415 {
12416 return getnameinfo ();
12417 ;
12418 return 0;
12419 }
12420 _ACEOF
12421 for ac_lib in '' nsl; do
12422 if test -z "$ac_lib"; then
12423 ac_res="none required"
12424 else
12425 ac_res=-l$ac_lib
12426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12427 fi
12428 if ac_fn_c_try_link "$LINENO"; then :
12429 ac_cv_search_getnameinfo=$ac_res
12430 fi
12431 rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext
12433 if ${ac_cv_search_getnameinfo+:} false; then :
12434 break
12435 fi
12436 done
12437 if ${ac_cv_search_getnameinfo+:} false; then :
12438
12439 else
12440 ac_cv_search_getnameinfo=no
12441 fi
12442 rm conftest.$ac_ext
12443 LIBS=$ac_func_search_save_LIBS
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12446 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12447 ac_res=$ac_cv_search_getnameinfo
12448 if test "$ac_res" != no; then :
12449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12450
12451 fi
12452
12453 fi
12454
12455
12456 for ac_func in strlcpy strlcat
12457 do :
12458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12461 cat >>confdefs.h <<_ACEOF
12462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12463 _ACEOF
12464
12465 fi
12466 done
12467
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12470 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12471 if ${ac_cv_c_bigendian+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 ac_cv_c_bigendian=unknown
12475 # See if we're dealing with a universal compiler.
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 #ifndef __APPLE_CC__
12479 not a universal capable compiler
12480 #endif
12481 typedef int dummy;
12482
12483 _ACEOF
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485
12486 # Check for potential -arch flags. It is not universal unless
12487 # there are at least two -arch flags with different values.
12488 ac_arch=
12489 ac_prev=
12490 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12491 if test -n "$ac_prev"; then
12492 case $ac_word in
12493 i?86 | x86_64 | ppc | ppc64)
12494 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12495 ac_arch=$ac_word
12496 else
12497 ac_cv_c_bigendian=universal
12498 break
12499 fi
12500 ;;
12501 esac
12502 ac_prev=
12503 elif test "x$ac_word" = "x-arch"; then
12504 ac_prev=arch
12505 fi
12506 done
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509 if test $ac_cv_c_bigendian = unknown; then
12510 # See if sys/param.h defines the BYTE_ORDER macro.
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 #include <sys/types.h>
12514 #include <sys/param.h>
12515
12516 int
12517 main ()
12518 {
12519 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12520 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12521 && LITTLE_ENDIAN)
12522 bogus endian macros
12523 #endif
12524
12525 ;
12526 return 0;
12527 }
12528 _ACEOF
12529 if ac_fn_c_try_compile "$LINENO"; then :
12530 # It does; now see whether it defined to BIG_ENDIAN or not.
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533 #include <sys/types.h>
12534 #include <sys/param.h>
12535
12536 int
12537 main ()
12538 {
12539 #if BYTE_ORDER != BIG_ENDIAN
12540 not big endian
12541 #endif
12542
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_c_try_compile "$LINENO"; then :
12548 ac_cv_c_bigendian=yes
12549 else
12550 ac_cv_c_bigendian=no
12551 fi
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 fi
12556 if test $ac_cv_c_bigendian = unknown; then
12557 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 #include <limits.h>
12561
12562 int
12563 main ()
12564 {
12565 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12566 bogus endian macros
12567 #endif
12568
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"; then :
12574 # It does; now see whether it defined to _BIG_ENDIAN or not.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #include <limits.h>
12578
12579 int
12580 main ()
12581 {
12582 #ifndef _BIG_ENDIAN
12583 not big endian
12584 #endif
12585
12586 ;
12587 return 0;
12588 }
12589 _ACEOF
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 ac_cv_c_bigendian=yes
12592 else
12593 ac_cv_c_bigendian=no
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598 fi
12599 if test $ac_cv_c_bigendian = unknown; then
12600 # Compile a test program.
12601 if test "$cross_compiling" = yes; then :
12602 # Try to guess by grepping values from an object file.
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605 short int ascii_mm[] =
12606 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12607 short int ascii_ii[] =
12608 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12609 int use_ascii (int i) {
12610 return ascii_mm[i] + ascii_ii[i];
12611 }
12612 short int ebcdic_ii[] =
12613 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12614 short int ebcdic_mm[] =
12615 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12616 int use_ebcdic (int i) {
12617 return ebcdic_mm[i] + ebcdic_ii[i];
12618 }
12619 extern int foo;
12620
12621 int
12622 main ()
12623 {
12624 return use_ascii (foo) == use_ebcdic (foo);
12625 ;
12626 return 0;
12627 }
12628 _ACEOF
12629 if ac_fn_c_try_compile "$LINENO"; then :
12630 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12631 ac_cv_c_bigendian=yes
12632 fi
12633 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12634 if test "$ac_cv_c_bigendian" = unknown; then
12635 ac_cv_c_bigendian=no
12636 else
12637 # finding both strings is unlikely to happen, but who knows?
12638 ac_cv_c_bigendian=unknown
12639 fi
12640 fi
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 else
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12646 $ac_includes_default
12647 int
12648 main ()
12649 {
12650
12651 /* Are we little or big endian? From Harbison&Steele. */
12652 union
12653 {
12654 long int l;
12655 char c[sizeof (long int)];
12656 } u;
12657 u.l = 1;
12658 return u.c[sizeof (long int) - 1] == 1;
12659
12660 ;
12661 return 0;
12662 }
12663 _ACEOF
12664 if ac_fn_c_try_run "$LINENO"; then :
12665 ac_cv_c_bigendian=no
12666 else
12667 ac_cv_c_bigendian=yes
12668 fi
12669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12670 conftest.$ac_objext conftest.beam conftest.$ac_ext
12671 fi
12672
12673 fi
12674 fi
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12676 $as_echo "$ac_cv_c_bigendian" >&6; }
12677 case $ac_cv_c_bigendian in #(
12678 yes)
12679 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12680 ;; #(
12681 no)
12682 ;; #(
12683 universal)
12684
12685 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12686
12687 ;; #(
12688 *)
12689 as_fn_error $? "unknown endianness
12690 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12691 esac
12692
12693
12694 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
12695
12696 cat >confcache <<\_ACEOF
12697 # This file is a shell script that caches the results of configure
12698 # tests run on this system so they can be shared between configure
12699 # scripts and configure runs, see configure's option --config-cache.
12700 # It is not useful on other systems. If it contains results you don't
12701 # want to keep, you may remove or edit it.
12702 #
12703 # config.status only pays attention to the cache file if you give it
12704 # the --recheck option to rerun configure.
12705 #
12706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12708 # following values.
12709
12710 _ACEOF
12711
12712 # The following way of writing the cache mishandles newlines in values,
12713 # but we know of no workaround that is simple, portable, and efficient.
12714 # So, we kill variables containing newlines.
12715 # Ultrix sh set writes to stderr and can't be redirected directly,
12716 # and sets the high bit in the cache file unless we assign to the vars.
12717 (
12718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12719 eval ac_val=\$$ac_var
12720 case $ac_val in #(
12721 *${as_nl}*)
12722 case $ac_var in #(
12723 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12724 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12725 esac
12726 case $ac_var in #(
12727 _ | IFS | as_nl) ;; #(
12728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12729 *) { eval $ac_var=; unset $ac_var;} ;;
12730 esac ;;
12731 esac
12732 done
12733
12734 (set) 2>&1 |
12735 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12736 *${as_nl}ac_space=\ *)
12737 # `set' does not quote correctly, so add quotes: double-quote
12738 # substitution turns \\\\ into \\, and sed turns \\ into \.
12739 sed -n \
12740 "s/'/'\\\\''/g;
12741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12742 ;; #(
12743 *)
12744 # `set' quotes correctly as required by POSIX, so do not add quotes.
12745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12746 ;;
12747 esac |
12748 sort
12749 ) |
12750 sed '
12751 /^ac_cv_env_/b end
12752 t clear
12753 :clear
12754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12755 t end
12756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12757 :end' >>confcache
12758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12759 if test -w "$cache_file"; then
12760 if test "x$cache_file" != "x/dev/null"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12762 $as_echo "$as_me: updating cache $cache_file" >&6;}
12763 if test ! -f "$cache_file" || test -h "$cache_file"; then
12764 cat confcache >"$cache_file"
12765 else
12766 case $cache_file in #(
12767 */* | ?:*)
12768 mv -f confcache "$cache_file"$$ &&
12769 mv -f "$cache_file"$$ "$cache_file" ;; #(
12770 *)
12771 mv -f confcache "$cache_file" ;;
12772 esac
12773 fi
12774 fi
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12777 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12778 fi
12779 fi
12780 rm -f confcache
12781
12782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12783 # Let make expand exec_prefix.
12784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12785
12786 DEFS=-DHAVE_CONFIG_H
12787
12788 ac_libobjs=
12789 ac_ltlibobjs=
12790 U=
12791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12792 # 1. Remove the extension, and $U if already installed.
12793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12794 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12796 # will be set to the directory where LIBOBJS objects are built.
12797 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12798 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12799 done
12800 LIBOBJS=$ac_libobjs
12801
12802 LTLIBOBJS=$ac_ltlibobjs
12803
12804
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12806 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12807 if test -n "$am_sleep_pid"; then
12808 # Hide warnings about reused PIDs.
12809 wait $am_sleep_pid 2>/dev/null
12810 fi
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12812 $as_echo "done" >&6; }
12813 if test -n "$EXEEXT"; then
12814 am__EXEEXT_TRUE=
12815 am__EXEEXT_FALSE='#'
12816 else
12817 am__EXEEXT_TRUE='#'
12818 am__EXEEXT_FALSE=
12819 fi
12820
12821 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12822 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12824 fi
12825 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12826 as_fn_error $? "conditional \"AMDEP\" was never defined.
12827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12828 fi
12829 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12830 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12832 fi
12833
12834
12835 : "${CONFIG_STATUS=./config.status}"
12836 ac_write_fail=0
12837 ac_clean_files_save=$ac_clean_files
12838 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12840 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12841 as_write_fail=0
12842 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12843 #! $SHELL
12844 # Generated by $as_me.
12845 # Run this file to recreate the current configuration.
12846 # Compiler output produced by configure, useful for debugging
12847 # configure, is in config.log if it exists.
12848
12849 debug=false
12850 ac_cs_recheck=false
12851 ac_cs_silent=false
12852
12853 SHELL=\${CONFIG_SHELL-$SHELL}
12854 export SHELL
12855 _ASEOF
12856 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12857 ## -------------------- ##
12858 ## M4sh Initialization. ##
12859 ## -------------------- ##
12860
12861 # Be more Bourne compatible
12862 DUALCASE=1; export DUALCASE # for MKS sh
12863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12864 emulate sh
12865 NULLCMD=:
12866 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12867 # is contrary to our usage. Disable this feature.
12868 alias -g '${1+"$@"}'='"$@"'
12869 setopt NO_GLOB_SUBST
12870 else
12871 case `(set -o) 2>/dev/null` in #(
12872 *posix*) :
12873 set -o posix ;; #(
12874 *) :
12875 ;;
12876 esac
12877 fi
12878
12879
12880 as_nl='
12881 '
12882 export as_nl
12883 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12884 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12885 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12886 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12887 # Prefer a ksh shell builtin over an external printf program on Solaris,
12888 # but without wasting forks for bash or zsh.
12889 if test -z "$BASH_VERSION$ZSH_VERSION" \
12890 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12891 as_echo='print -r --'
12892 as_echo_n='print -rn --'
12893 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12894 as_echo='printf %s\n'
12895 as_echo_n='printf %s'
12896 else
12897 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12898 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12899 as_echo_n='/usr/ucb/echo -n'
12900 else
12901 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12902 as_echo_n_body='eval
12903 arg=$1;
12904 case $arg in #(
12905 *"$as_nl"*)
12906 expr "X$arg" : "X\\(.*\\)$as_nl";
12907 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12908 esac;
12909 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12910 '
12911 export as_echo_n_body
12912 as_echo_n='sh -c $as_echo_n_body as_echo'
12913 fi
12914 export as_echo_body
12915 as_echo='sh -c $as_echo_body as_echo'
12916 fi
12917
12918 # The user is always right.
12919 if test "${PATH_SEPARATOR+set}" != set; then
12920 PATH_SEPARATOR=:
12921 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12922 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12923 PATH_SEPARATOR=';'
12924 }
12925 fi
12926
12927
12928 # IFS
12929 # We need space, tab and new line, in precisely that order. Quoting is
12930 # there to prevent editors from complaining about space-tab.
12931 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12932 # splitting by setting IFS to empty value.)
12933 IFS=" "" $as_nl"
12934
12935 # Find who we are. Look in the path if we contain no directory separator.
12936 as_myself=
12937 case $0 in #((
12938 *[\\/]* ) as_myself=$0 ;;
12939 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12941 do
12942 IFS=$as_save_IFS
12943 test -z "$as_dir" && as_dir=.
12944 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12945 done
12946 IFS=$as_save_IFS
12947
12948 ;;
12949 esac
12950 # We did not find ourselves, most probably we were run as `sh COMMAND'
12951 # in which case we are not to be found in the path.
12952 if test "x$as_myself" = x; then
12953 as_myself=$0
12954 fi
12955 if test ! -f "$as_myself"; then
12956 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12957 exit 1
12958 fi
12959
12960 # Unset variables that we do not need and which cause bugs (e.g. in
12961 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12962 # suppresses any "Segmentation fault" message there. '((' could
12963 # trigger a bug in pdksh 5.2.14.
12964 for as_var in BASH_ENV ENV MAIL MAILPATH
12965 do eval test x\${$as_var+set} = xset \
12966 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12967 done
12968 PS1='$ '
12969 PS2='> '
12970 PS4='+ '
12971
12972 # NLS nuisances.
12973 LC_ALL=C
12974 export LC_ALL
12975 LANGUAGE=C
12976 export LANGUAGE
12977
12978 # CDPATH.
12979 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12980
12981
12982 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12983 # ----------------------------------------
12984 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12985 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12986 # script with STATUS, using 1 if that was 0.
12987 as_fn_error ()
12988 {
12989 as_status=$1; test $as_status -eq 0 && as_status=1
12990 if test "$4"; then
12991 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12992 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12993 fi
12994 $as_echo "$as_me: error: $2" >&2
12995 as_fn_exit $as_status
12996 } # as_fn_error
12997
12998
12999 # as_fn_set_status STATUS
13000 # -----------------------
13001 # Set $? to STATUS, without forking.
13002 as_fn_set_status ()
13003 {
13004 return $1
13005 } # as_fn_set_status
13006
13007 # as_fn_exit STATUS
13008 # -----------------
13009 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13010 as_fn_exit ()
13011 {
13012 set +e
13013 as_fn_set_status $1
13014 exit $1
13015 } # as_fn_exit
13016
13017 # as_fn_unset VAR
13018 # ---------------
13019 # Portably unset VAR.
13020 as_fn_unset ()
13021 {
13022 { eval $1=; unset $1;}
13023 }
13024 as_unset=as_fn_unset
13025 # as_fn_append VAR VALUE
13026 # ----------------------
13027 # Append the text in VALUE to the end of the definition contained in VAR. Take
13028 # advantage of any shell optimizations that allow amortized linear growth over
13029 # repeated appends, instead of the typical quadratic growth present in naive
13030 # implementations.
13031 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13032 eval 'as_fn_append ()
13033 {
13034 eval $1+=\$2
13035 }'
13036 else
13037 as_fn_append ()
13038 {
13039 eval $1=\$$1\$2
13040 }
13041 fi # as_fn_append
13042
13043 # as_fn_arith ARG...
13044 # ------------------
13045 # Perform arithmetic evaluation on the ARGs, and store the result in the
13046 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13047 # must be portable across $(()) and expr.
13048 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13049 eval 'as_fn_arith ()
13050 {
13051 as_val=$(( $* ))
13052 }'
13053 else
13054 as_fn_arith ()
13055 {
13056 as_val=`expr "$@" || test $? -eq 1`
13057 }
13058 fi # as_fn_arith
13059
13060
13061 if expr a : '\(a\)' >/dev/null 2>&1 &&
13062 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13063 as_expr=expr
13064 else
13065 as_expr=false
13066 fi
13067
13068 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13069 as_basename=basename
13070 else
13071 as_basename=false
13072 fi
13073
13074 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13075 as_dirname=dirname
13076 else
13077 as_dirname=false
13078 fi
13079
13080 as_me=`$as_basename -- "$0" ||
13081 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13082 X"$0" : 'X\(//\)$' \| \
13083 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13084 $as_echo X/"$0" |
13085 sed '/^.*\/\([^/][^/]*\)\/*$/{
13086 s//\1/
13087 q
13088 }
13089 /^X\/\(\/\/\)$/{
13090 s//\1/
13091 q
13092 }
13093 /^X\/\(\/\).*/{
13094 s//\1/
13095 q
13096 }
13097 s/.*/./; q'`
13098
13099 # Avoid depending upon Character Ranges.
13100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13103 as_cr_digits='0123456789'
13104 as_cr_alnum=$as_cr_Letters$as_cr_digits
13105
13106 ECHO_C= ECHO_N= ECHO_T=
13107 case `echo -n x` in #(((((
13108 -n*)
13109 case `echo 'xy\c'` in
13110 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13111 xy) ECHO_C='\c';;
13112 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13113 ECHO_T=' ';;
13114 esac;;
13115 *)
13116 ECHO_N='-n';;
13117 esac
13118
13119 rm -f conf$$ conf$$.exe conf$$.file
13120 if test -d conf$$.dir; then
13121 rm -f conf$$.dir/conf$$.file
13122 else
13123 rm -f conf$$.dir
13124 mkdir conf$$.dir 2>/dev/null
13125 fi
13126 if (echo >conf$$.file) 2>/dev/null; then
13127 if ln -s conf$$.file conf$$ 2>/dev/null; then
13128 as_ln_s='ln -s'
13129 # ... but there are two gotchas:
13130 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13131 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13132 # In both cases, we have to default to `cp -pR'.
13133 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13134 as_ln_s='cp -pR'
13135 elif ln conf$$.file conf$$ 2>/dev/null; then
13136 as_ln_s=ln
13137 else
13138 as_ln_s='cp -pR'
13139 fi
13140 else
13141 as_ln_s='cp -pR'
13142 fi
13143 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13144 rmdir conf$$.dir 2>/dev/null
13145
13146
13147 # as_fn_mkdir_p
13148 # -------------
13149 # Create "$as_dir" as a directory, including parents if necessary.
13150 as_fn_mkdir_p ()
13151 {
13152
13153 case $as_dir in #(
13154 -*) as_dir=./$as_dir;;
13155 esac
13156 test -d "$as_dir" || eval $as_mkdir_p || {
13157 as_dirs=
13158 while :; do
13159 case $as_dir in #(
13160 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13161 *) as_qdir=$as_dir;;
13162 esac
13163 as_dirs="'$as_qdir' $as_dirs"
13164 as_dir=`$as_dirname -- "$as_dir" ||
13165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13166 X"$as_dir" : 'X\(//\)[^/]' \| \
13167 X"$as_dir" : 'X\(//\)$' \| \
13168 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13169 $as_echo X"$as_dir" |
13170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13171 s//\1/
13172 q
13173 }
13174 /^X\(\/\/\)[^/].*/{
13175 s//\1/
13176 q
13177 }
13178 /^X\(\/\/\)$/{
13179 s//\1/
13180 q
13181 }
13182 /^X\(\/\).*/{
13183 s//\1/
13184 q
13185 }
13186 s/.*/./; q'`
13187 test -d "$as_dir" && break
13188 done
13189 test -z "$as_dirs" || eval "mkdir $as_dirs"
13190 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13191
13192
13193 } # as_fn_mkdir_p
13194 if mkdir -p . 2>/dev/null; then
13195 as_mkdir_p='mkdir -p "$as_dir"'
13196 else
13197 test -d ./-p && rmdir ./-p
13198 as_mkdir_p=false
13199 fi
13200
13201
13202 # as_fn_executable_p FILE
13203 # -----------------------
13204 # Test if FILE is an executable regular file.
13205 as_fn_executable_p ()
13206 {
13207 test -f "$1" && test -x "$1"
13208 } # as_fn_executable_p
13209 as_test_x='test -x'
13210 as_executable_p=as_fn_executable_p
13211
13212 # Sed expression to map a string onto a valid CPP name.
13213 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13214
13215 # Sed expression to map a string onto a valid variable name.
13216 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13217
13218
13219 exec 6>&1
13220 ## ----------------------------------- ##
13221 ## Main body of $CONFIG_STATUS script. ##
13222 ## ----------------------------------- ##
13223 _ASEOF
13224 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13225
13226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13227 # Save the log message, to keep $0 and so on meaningful, and to
13228 # report actual input values of CONFIG_FILES etc. instead of their
13229 # values after options handling.
13230 ac_log="
13231 This file was extended by hopm $as_me 1.0.7, which was
13232 generated by GNU Autoconf 2.69. Invocation command line was
13233
13234 CONFIG_FILES = $CONFIG_FILES
13235 CONFIG_HEADERS = $CONFIG_HEADERS
13236 CONFIG_LINKS = $CONFIG_LINKS
13237 CONFIG_COMMANDS = $CONFIG_COMMANDS
13238 $ $0 $@
13239
13240 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13241 "
13242
13243 _ACEOF
13244
13245 case $ac_config_files in *"
13246 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13247 esac
13248
13249 case $ac_config_headers in *"
13250 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13251 esac
13252
13253
13254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13255 # Files that config.status was made for.
13256 config_files="$ac_config_files"
13257 config_headers="$ac_config_headers"
13258 config_commands="$ac_config_commands"
13259
13260 _ACEOF
13261
13262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13263 ac_cs_usage="\
13264 \`$as_me' instantiates files and other configuration actions
13265 from templates according to the current configuration. Unless the files
13266 and actions are specified as TAGs, all are instantiated by default.
13267
13268 Usage: $0 [OPTION]... [TAG]...
13269
13270 -h, --help print this help, then exit
13271 -V, --version print version number and configuration settings, then exit
13272 --config print configuration, then exit
13273 -q, --quiet, --silent
13274 do not print progress messages
13275 -d, --debug don't remove temporary files
13276 --recheck update $as_me by reconfiguring in the same conditions
13277 --file=FILE[:TEMPLATE]
13278 instantiate the configuration file FILE
13279 --header=FILE[:TEMPLATE]
13280 instantiate the configuration header FILE
13281
13282 Configuration files:
13283 $config_files
13284
13285 Configuration headers:
13286 $config_headers
13287
13288 Configuration commands:
13289 $config_commands
13290
13291 Report bugs to <bugs@ircd-hybrid.org>."
13292
13293 _ACEOF
13294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13295 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13296 ac_cs_version="\\
13297 hopm config.status 1.0.7
13298 configured by $0, generated by GNU Autoconf 2.69,
13299 with options \\"\$ac_cs_config\\"
13300
13301 Copyright (C) 2012 Free Software Foundation, Inc.
13302 This config.status script is free software; the Free Software Foundation
13303 gives unlimited permission to copy, distribute and modify it."
13304
13305 ac_pwd='$ac_pwd'
13306 srcdir='$srcdir'
13307 INSTALL='$INSTALL'
13308 MKDIR_P='$MKDIR_P'
13309 AWK='$AWK'
13310 test -n "\$AWK" || AWK=awk
13311 _ACEOF
13312
13313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13314 # The default lists apply if the user does not specify any file.
13315 ac_need_defaults=:
13316 while test $# != 0
13317 do
13318 case $1 in
13319 --*=?*)
13320 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13321 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13322 ac_shift=:
13323 ;;
13324 --*=)
13325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13326 ac_optarg=
13327 ac_shift=:
13328 ;;
13329 *)
13330 ac_option=$1
13331 ac_optarg=$2
13332 ac_shift=shift
13333 ;;
13334 esac
13335
13336 case $ac_option in
13337 # Handling of the options.
13338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13339 ac_cs_recheck=: ;;
13340 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13341 $as_echo "$ac_cs_version"; exit ;;
13342 --config | --confi | --conf | --con | --co | --c )
13343 $as_echo "$ac_cs_config"; exit ;;
13344 --debug | --debu | --deb | --de | --d | -d )
13345 debug=: ;;
13346 --file | --fil | --fi | --f )
13347 $ac_shift
13348 case $ac_optarg in
13349 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13350 '') as_fn_error $? "missing file argument" ;;
13351 esac
13352 as_fn_append CONFIG_FILES " '$ac_optarg'"
13353 ac_need_defaults=false;;
13354 --header | --heade | --head | --hea )
13355 $ac_shift
13356 case $ac_optarg in
13357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13358 esac
13359 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13360 ac_need_defaults=false;;
13361 --he | --h)
13362 # Conflict between --help and --header
13363 as_fn_error $? "ambiguous option: \`$1'
13364 Try \`$0 --help' for more information.";;
13365 --help | --hel | -h )
13366 $as_echo "$ac_cs_usage"; exit ;;
13367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13369 ac_cs_silent=: ;;
13370
13371 # This is an error.
13372 -*) as_fn_error $? "unrecognized option: \`$1'
13373 Try \`$0 --help' for more information." ;;
13374
13375 *) as_fn_append ac_config_targets " $1"
13376 ac_need_defaults=false ;;
13377
13378 esac
13379 shift
13380 done
13381
13382 ac_configure_extra_args=
13383
13384 if $ac_cs_silent; then
13385 exec 6>/dev/null
13386 ac_configure_extra_args="$ac_configure_extra_args --silent"
13387 fi
13388
13389 _ACEOF
13390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13391 if \$ac_cs_recheck; then
13392 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13393 shift
13394 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13395 CONFIG_SHELL='$SHELL'
13396 export CONFIG_SHELL
13397 exec "\$@"
13398 fi
13399
13400 _ACEOF
13401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13402 exec 5>>config.log
13403 {
13404 echo
13405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13406 ## Running $as_me. ##
13407 _ASBOX
13408 $as_echo "$ac_log"
13409 } >&5
13410
13411 _ACEOF
13412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13413 #
13414 # INIT-COMMANDS
13415 #
13416 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13417
13418
13419 # The HP-UX ksh and POSIX shell print the target directory to stdout
13420 # if CDPATH is set.
13421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13422
13423 sed_quote_subst='$sed_quote_subst'
13424 double_quote_subst='$double_quote_subst'
13425 delay_variable_subst='$delay_variable_subst'
13426 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13427 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13428 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13429 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13430 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13431 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13432 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13433 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13434 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13435 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13436 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13437 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13438 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13439 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13440 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13441 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13442 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13443 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13444 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13445 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13446 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13447 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13448 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13449 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13450 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13451 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13452 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13453 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13454 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13455 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13456 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13457 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13458 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13459 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13460 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13461 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13462 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13463 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13464 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13465 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13466 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13467 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13468 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13469 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13470 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13471 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13472 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13473 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13474 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13475 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13476 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13477 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13478 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13479 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13480 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13481 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13482 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13483 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13484 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"`'
13485 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13486 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13487 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13488 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13489 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13490 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13491 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13492 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13493 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13494 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13495 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13496 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13497 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13498 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13499 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13500 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13501 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13502 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13503 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13504 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13505 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13506 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13507 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13508 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13509 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13510 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13511 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13512 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13513 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13514 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13515 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13516 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13517 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13518 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13519 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13520 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13521 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13522 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13523 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13524 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13525 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13526 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13527 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13528 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13529 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13530 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13531 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13532 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13533 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13534 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13535 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13536 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13537 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13538 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13539 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13540 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13541 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13542 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13543 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13544 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13545 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13546 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13547 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13548 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13549 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13550 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13551 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13552 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13553 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13554 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13555 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13556 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13557 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13558 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13559 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13560 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13561
13562 LTCC='$LTCC'
13563 LTCFLAGS='$LTCFLAGS'
13564 compiler='$compiler_DEFAULT'
13565
13566 # A function that is used when there is no print builtin or printf.
13567 func_fallback_echo ()
13568 {
13569 eval 'cat <<_LTECHO_EOF
13570 \$1
13571 _LTECHO_EOF'
13572 }
13573
13574 # Quote evaled strings.
13575 for var in SHELL \
13576 ECHO \
13577 PATH_SEPARATOR \
13578 SED \
13579 GREP \
13580 EGREP \
13581 FGREP \
13582 LD \
13583 NM \
13584 LN_S \
13585 lt_SP2NL \
13586 lt_NL2SP \
13587 reload_flag \
13588 OBJDUMP \
13589 deplibs_check_method \
13590 file_magic_cmd \
13591 file_magic_glob \
13592 want_nocaseglob \
13593 DLLTOOL \
13594 sharedlib_from_linklib_cmd \
13595 AR \
13596 AR_FLAGS \
13597 archiver_list_spec \
13598 STRIP \
13599 RANLIB \
13600 CC \
13601 CFLAGS \
13602 compiler \
13603 lt_cv_sys_global_symbol_pipe \
13604 lt_cv_sys_global_symbol_to_cdecl \
13605 lt_cv_sys_global_symbol_to_import \
13606 lt_cv_sys_global_symbol_to_c_name_address \
13607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13608 lt_cv_nm_interface \
13609 nm_file_list_spec \
13610 lt_cv_truncate_bin \
13611 lt_prog_compiler_no_builtin_flag \
13612 lt_prog_compiler_pic \
13613 lt_prog_compiler_wl \
13614 lt_prog_compiler_static \
13615 lt_cv_prog_compiler_c_o \
13616 need_locks \
13617 MANIFEST_TOOL \
13618 DSYMUTIL \
13619 NMEDIT \
13620 LIPO \
13621 OTOOL \
13622 OTOOL64 \
13623 shrext_cmds \
13624 export_dynamic_flag_spec \
13625 whole_archive_flag_spec \
13626 compiler_needs_object \
13627 with_gnu_ld \
13628 allow_undefined_flag \
13629 no_undefined_flag \
13630 hardcode_libdir_flag_spec \
13631 hardcode_libdir_separator \
13632 exclude_expsyms \
13633 include_expsyms \
13634 file_list_spec \
13635 variables_saved_for_relink \
13636 libname_spec \
13637 library_names_spec \
13638 soname_spec \
13639 install_override_mode \
13640 finish_eval \
13641 old_striplib \
13642 striplib; do
13643 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13644 *[\\\\\\\`\\"\\\$]*)
13645 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13646 ;;
13647 *)
13648 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13649 ;;
13650 esac
13651 done
13652
13653 # Double-quote double-evaled strings.
13654 for var in reload_cmds \
13655 old_postinstall_cmds \
13656 old_postuninstall_cmds \
13657 old_archive_cmds \
13658 extract_expsyms_cmds \
13659 old_archive_from_new_cmds \
13660 old_archive_from_expsyms_cmds \
13661 archive_cmds \
13662 archive_expsym_cmds \
13663 module_cmds \
13664 module_expsym_cmds \
13665 export_symbols_cmds \
13666 prelink_cmds \
13667 postlink_cmds \
13668 postinstall_cmds \
13669 postuninstall_cmds \
13670 finish_cmds \
13671 sys_lib_search_path_spec \
13672 configure_time_dlsearch_path \
13673 configure_time_lt_sys_library_path; do
13674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13675 *[\\\\\\\`\\"\\\$]*)
13676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13677 ;;
13678 *)
13679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13680 ;;
13681 esac
13682 done
13683
13684 ac_aux_dir='$ac_aux_dir'
13685
13686 # See if we are running on zsh, and set the options that allow our
13687 # commands through without removal of \ escapes INIT.
13688 if test -n "\${ZSH_VERSION+set}"; then
13689 setopt NO_GLOB_SUBST
13690 fi
13691
13692
13693 PACKAGE='$PACKAGE'
13694 VERSION='$VERSION'
13695 RM='$RM'
13696 ofile='$ofile'
13697
13698
13699
13700
13701 _ACEOF
13702
13703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13704
13705 # Handling of arguments.
13706 for ac_config_target in $ac_config_targets
13707 do
13708 case $ac_config_target in
13709 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13710 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13711 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13713 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13714 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13715 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
13716 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
13717
13718 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13719 esac
13720 done
13721
13722
13723 # If the user did not use the arguments to specify the items to instantiate,
13724 # then the envvar interface is used. Set only those that are not.
13725 # We use the long form for the default assignment because of an extremely
13726 # bizarre bug on SunOS 4.1.3.
13727 if $ac_need_defaults; then
13728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13731 fi
13732
13733 # Have a temporary directory for convenience. Make it in the build tree
13734 # simply because there is no reason against having it here, and in addition,
13735 # creating and moving files from /tmp can sometimes cause problems.
13736 # Hook for its removal unless debugging.
13737 # Note that there is a small window in which the directory will not be cleaned:
13738 # after its creation but before its name has been assigned to `$tmp'.
13739 $debug ||
13740 {
13741 tmp= ac_tmp=
13742 trap 'exit_status=$?
13743 : "${ac_tmp:=$tmp}"
13744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13745 ' 0
13746 trap 'as_fn_exit 1' 1 2 13 15
13747 }
13748 # Create a (secure) tmp directory for tmp files.
13749
13750 {
13751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13752 test -d "$tmp"
13753 } ||
13754 {
13755 tmp=./conf$$-$RANDOM
13756 (umask 077 && mkdir "$tmp")
13757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13758 ac_tmp=$tmp
13759
13760 # Set up the scripts for CONFIG_FILES section.
13761 # No need to generate them if there are no CONFIG_FILES.
13762 # This happens for instance with `./config.status config.h'.
13763 if test -n "$CONFIG_FILES"; then
13764
13765
13766 ac_cr=`echo X | tr X '\015'`
13767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13768 # But we know of no other shell where ac_cr would be empty at this
13769 # point, so we can use a bashism as a fallback.
13770 if test "x$ac_cr" = x; then
13771 eval ac_cr=\$\'\\r\'
13772 fi
13773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13775 ac_cs_awk_cr='\\r'
13776 else
13777 ac_cs_awk_cr=$ac_cr
13778 fi
13779
13780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13781 _ACEOF
13782
13783
13784 {
13785 echo "cat >conf$$subs.awk <<_ACEOF" &&
13786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13787 echo "_ACEOF"
13788 } >conf$$subs.sh ||
13789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13791 ac_delim='%!_!# '
13792 for ac_last_try in false false false false false :; do
13793 . ./conf$$subs.sh ||
13794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13795
13796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13797 if test $ac_delim_n = $ac_delim_num; then
13798 break
13799 elif $ac_last_try; then
13800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13801 else
13802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13803 fi
13804 done
13805 rm -f conf$$subs.sh
13806
13807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13809 _ACEOF
13810 sed -n '
13811 h
13812 s/^/S["/; s/!.*/"]=/
13813 p
13814 g
13815 s/^[^!]*!//
13816 :repl
13817 t repl
13818 s/'"$ac_delim"'$//
13819 t delim
13820 :nl
13821 h
13822 s/\(.\{148\}\)..*/\1/
13823 t more1
13824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13825 p
13826 n
13827 b repl
13828 :more1
13829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13830 p
13831 g
13832 s/.\{148\}//
13833 t nl
13834 :delim
13835 h
13836 s/\(.\{148\}\)..*/\1/
13837 t more2
13838 s/["\\]/\\&/g; s/^/"/; s/$/"/
13839 p
13840 b
13841 :more2
13842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13843 p
13844 g
13845 s/.\{148\}//
13846 t delim
13847 ' <conf$$subs.awk | sed '
13848 /^[^""]/{
13849 N
13850 s/\n//
13851 }
13852 ' >>$CONFIG_STATUS || ac_write_fail=1
13853 rm -f conf$$subs.awk
13854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13855 _ACAWK
13856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13857 for (key in S) S_is_set[key] = 1
13858 FS = ""
13859
13860 }
13861 {
13862 line = $ 0
13863 nfields = split(line, field, "@")
13864 substed = 0
13865 len = length(field[1])
13866 for (i = 2; i < nfields; i++) {
13867 key = field[i]
13868 keylen = length(key)
13869 if (S_is_set[key]) {
13870 value = S[key]
13871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13872 len += length(value) + length(field[++i])
13873 substed = 1
13874 } else
13875 len += 1 + keylen
13876 }
13877
13878 print line
13879 }
13880
13881 _ACAWK
13882 _ACEOF
13883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13886 else
13887 cat
13888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13890 _ACEOF
13891
13892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13894 # trailing colons and then remove the whole line if VPATH becomes empty
13895 # (actually we leave an empty line to preserve line numbers).
13896 if test "x$srcdir" = x.; then
13897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13898 h
13899 s///
13900 s/^/:/
13901 s/[ ]*$/:/
13902 s/:\$(srcdir):/:/g
13903 s/:\${srcdir}:/:/g
13904 s/:@srcdir@:/:/g
13905 s/^:*//
13906 s/:*$//
13907 x
13908 s/\(=[ ]*\).*/\1/
13909 G
13910 s/\n//
13911 s/^[^=]*=[ ]*$//
13912 }'
13913 fi
13914
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13916 fi # test -n "$CONFIG_FILES"
13917
13918 # Set up the scripts for CONFIG_HEADERS section.
13919 # No need to generate them if there are no CONFIG_HEADERS.
13920 # This happens for instance with `./config.status Makefile'.
13921 if test -n "$CONFIG_HEADERS"; then
13922 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13923 BEGIN {
13924 _ACEOF
13925
13926 # Transform confdefs.h into an awk script `defines.awk', embedded as
13927 # here-document in config.status, that substitutes the proper values into
13928 # config.h.in to produce config.h.
13929
13930 # Create a delimiter string that does not exist in confdefs.h, to ease
13931 # handling of long lines.
13932 ac_delim='%!_!# '
13933 for ac_last_try in false false :; do
13934 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13935 if test -z "$ac_tt"; then
13936 break
13937 elif $ac_last_try; then
13938 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13939 else
13940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13941 fi
13942 done
13943
13944 # For the awk script, D is an array of macro values keyed by name,
13945 # likewise P contains macro parameters if any. Preserve backslash
13946 # newline sequences.
13947
13948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13949 sed -n '
13950 s/.\{148\}/&'"$ac_delim"'/g
13951 t rset
13952 :rset
13953 s/^[ ]*#[ ]*define[ ][ ]*/ /
13954 t def
13955 d
13956 :def
13957 s/\\$//
13958 t bsnl
13959 s/["\\]/\\&/g
13960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13961 D["\1"]=" \3"/p
13962 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13963 d
13964 :bsnl
13965 s/["\\]/\\&/g
13966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13967 D["\1"]=" \3\\\\\\n"\\/p
13968 t cont
13969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13970 t cont
13971 d
13972 :cont
13973 n
13974 s/.\{148\}/&'"$ac_delim"'/g
13975 t clear
13976 :clear
13977 s/\\$//
13978 t bsnlc
13979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13980 d
13981 :bsnlc
13982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13983 b cont
13984 ' <confdefs.h | sed '
13985 s/'"$ac_delim"'/"\\\
13986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13987
13988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13989 for (key in D) D_is_set[key] = 1
13990 FS = ""
13991 }
13992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13993 line = \$ 0
13994 split(line, arg, " ")
13995 if (arg[1] == "#") {
13996 defundef = arg[2]
13997 mac1 = arg[3]
13998 } else {
13999 defundef = substr(arg[1], 2)
14000 mac1 = arg[2]
14001 }
14002 split(mac1, mac2, "(") #)
14003 macro = mac2[1]
14004 prefix = substr(line, 1, index(line, defundef) - 1)
14005 if (D_is_set[macro]) {
14006 # Preserve the white space surrounding the "#".
14007 print prefix "define", macro P[macro] D[macro]
14008 next
14009 } else {
14010 # Replace #undef with comments. This is necessary, for example,
14011 # in the case of _POSIX_SOURCE, which is predefined and required
14012 # on some systems where configure will not decide to define it.
14013 if (defundef == "undef") {
14014 print "/*", prefix defundef, macro, "*/"
14015 next
14016 }
14017 }
14018 }
14019 { print }
14020 _ACAWK
14021 _ACEOF
14022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14024 fi # test -n "$CONFIG_HEADERS"
14025
14026
14027 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14028 shift
14029 for ac_tag
14030 do
14031 case $ac_tag in
14032 :[FHLC]) ac_mode=$ac_tag; continue;;
14033 esac
14034 case $ac_mode$ac_tag in
14035 :[FHL]*:*);;
14036 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14037 :[FH]-) ac_tag=-:-;;
14038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14039 esac
14040 ac_save_IFS=$IFS
14041 IFS=:
14042 set x $ac_tag
14043 IFS=$ac_save_IFS
14044 shift
14045 ac_file=$1
14046 shift
14047
14048 case $ac_mode in
14049 :L) ac_source=$1;;
14050 :[FH])
14051 ac_file_inputs=
14052 for ac_f
14053 do
14054 case $ac_f in
14055 -) ac_f="$ac_tmp/stdin";;
14056 *) # Look for the file first in the build tree, then in the source tree
14057 # (if the path is not absolute). The absolute path cannot be DOS-style,
14058 # because $ac_f cannot contain `:'.
14059 test -f "$ac_f" ||
14060 case $ac_f in
14061 [\\/$]*) false;;
14062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14063 esac ||
14064 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14065 esac
14066 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14067 as_fn_append ac_file_inputs " '$ac_f'"
14068 done
14069
14070 # Let's still pretend it is `configure' which instantiates (i.e., don't
14071 # use $as_me), people would be surprised to read:
14072 # /* config.h. Generated by config.status. */
14073 configure_input='Generated from '`
14074 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14075 `' by configure.'
14076 if test x"$ac_file" != x-; then
14077 configure_input="$ac_file. $configure_input"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14079 $as_echo "$as_me: creating $ac_file" >&6;}
14080 fi
14081 # Neutralize special characters interpreted by sed in replacement strings.
14082 case $configure_input in #(
14083 *\&* | *\|* | *\\* )
14084 ac_sed_conf_input=`$as_echo "$configure_input" |
14085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14086 *) ac_sed_conf_input=$configure_input;;
14087 esac
14088
14089 case $ac_tag in
14090 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14092 esac
14093 ;;
14094 esac
14095
14096 ac_dir=`$as_dirname -- "$ac_file" ||
14097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14098 X"$ac_file" : 'X\(//\)[^/]' \| \
14099 X"$ac_file" : 'X\(//\)$' \| \
14100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14101 $as_echo X"$ac_file" |
14102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14103 s//\1/
14104 q
14105 }
14106 /^X\(\/\/\)[^/].*/{
14107 s//\1/
14108 q
14109 }
14110 /^X\(\/\/\)$/{
14111 s//\1/
14112 q
14113 }
14114 /^X\(\/\).*/{
14115 s//\1/
14116 q
14117 }
14118 s/.*/./; q'`
14119 as_dir="$ac_dir"; as_fn_mkdir_p
14120 ac_builddir=.
14121
14122 case "$ac_dir" in
14123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14124 *)
14125 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14126 # A ".." for each directory in $ac_dir_suffix.
14127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14128 case $ac_top_builddir_sub in
14129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14131 esac ;;
14132 esac
14133 ac_abs_top_builddir=$ac_pwd
14134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14135 # for backward compatibility:
14136 ac_top_builddir=$ac_top_build_prefix
14137
14138 case $srcdir in
14139 .) # We are building in place.
14140 ac_srcdir=.
14141 ac_top_srcdir=$ac_top_builddir_sub
14142 ac_abs_top_srcdir=$ac_pwd ;;
14143 [\\/]* | ?:[\\/]* ) # Absolute name.
14144 ac_srcdir=$srcdir$ac_dir_suffix;
14145 ac_top_srcdir=$srcdir
14146 ac_abs_top_srcdir=$srcdir ;;
14147 *) # Relative name.
14148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14149 ac_top_srcdir=$ac_top_build_prefix$srcdir
14150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14151 esac
14152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14153
14154
14155 case $ac_mode in
14156 :F)
14157 #
14158 # CONFIG_FILE
14159 #
14160
14161 case $INSTALL in
14162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14164 esac
14165 ac_MKDIR_P=$MKDIR_P
14166 case $MKDIR_P in
14167 [\\/$]* | ?:[\\/]* ) ;;
14168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14169 esac
14170 _ACEOF
14171
14172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173 # If the template does not know about datarootdir, expand it.
14174 # FIXME: This hack should be removed a few years after 2.60.
14175 ac_datarootdir_hack=; ac_datarootdir_seen=
14176 ac_sed_dataroot='
14177 /datarootdir/ {
14178 p
14179 q
14180 }
14181 /@datadir@/p
14182 /@docdir@/p
14183 /@infodir@/p
14184 /@localedir@/p
14185 /@mandir@/p'
14186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14187 *datarootdir*) ac_datarootdir_seen=yes;;
14188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14191 _ACEOF
14192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14193 ac_datarootdir_hack='
14194 s&@datadir@&$datadir&g
14195 s&@docdir@&$docdir&g
14196 s&@infodir@&$infodir&g
14197 s&@localedir@&$localedir&g
14198 s&@mandir@&$mandir&g
14199 s&\\\${datarootdir}&$datarootdir&g' ;;
14200 esac
14201 _ACEOF
14202
14203 # Neutralize VPATH when `$srcdir' = `.'.
14204 # Shell code in configure.ac might set extrasub.
14205 # FIXME: do we really want to maintain this feature?
14206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14207 ac_sed_extra="$ac_vpsub
14208 $extrasub
14209 _ACEOF
14210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14211 :t
14212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14213 s|@configure_input@|$ac_sed_conf_input|;t t
14214 s&@top_builddir@&$ac_top_builddir_sub&;t t
14215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14216 s&@srcdir@&$ac_srcdir&;t t
14217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14218 s&@top_srcdir@&$ac_top_srcdir&;t t
14219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14220 s&@builddir@&$ac_builddir&;t t
14221 s&@abs_builddir@&$ac_abs_builddir&;t t
14222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14223 s&@INSTALL@&$ac_INSTALL&;t t
14224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14225 $ac_datarootdir_hack
14226 "
14227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14228 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14229
14230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14231 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14233 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14235 which seems to be undefined. Please make sure it is defined" >&5
14236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14237 which seems to be undefined. Please make sure it is defined" >&2;}
14238
14239 rm -f "$ac_tmp/stdin"
14240 case $ac_file in
14241 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14242 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14243 esac \
14244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14245 ;;
14246 :H)
14247 #
14248 # CONFIG_HEADER
14249 #
14250 if test x"$ac_file" != x-; then
14251 {
14252 $as_echo "/* $configure_input */" \
14253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14254 } >"$ac_tmp/config.h" \
14255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14256 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14259 else
14260 rm -f "$ac_file"
14261 mv "$ac_tmp/config.h" "$ac_file" \
14262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14263 fi
14264 else
14265 $as_echo "/* $configure_input */" \
14266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14267 || as_fn_error $? "could not create -" "$LINENO" 5
14268 fi
14269 # Compute "$ac_file"'s index in $config_headers.
14270 _am_arg="$ac_file"
14271 _am_stamp_count=1
14272 for _am_header in $config_headers :; do
14273 case $_am_header in
14274 $_am_arg | $_am_arg:* )
14275 break ;;
14276 * )
14277 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14278 esac
14279 done
14280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14282 X"$_am_arg" : 'X\(//\)[^/]' \| \
14283 X"$_am_arg" : 'X\(//\)$' \| \
14284 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14285 $as_echo X"$_am_arg" |
14286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14287 s//\1/
14288 q
14289 }
14290 /^X\(\/\/\)[^/].*/{
14291 s//\1/
14292 q
14293 }
14294 /^X\(\/\/\)$/{
14295 s//\1/
14296 q
14297 }
14298 /^X\(\/\).*/{
14299 s//\1/
14300 q
14301 }
14302 s/.*/./; q'`/stamp-h$_am_stamp_count
14303 ;;
14304
14305 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14306 $as_echo "$as_me: executing $ac_file commands" >&6;}
14307 ;;
14308 esac
14309
14310
14311 case $ac_file$ac_mode in
14312 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14313 # Older Autoconf quotes --file arguments for eval, but not when files
14314 # are listed without --file. Let's play safe and only enable the eval
14315 # if we detect the quoting.
14316 case $CONFIG_FILES in
14317 *\'*) eval set x "$CONFIG_FILES" ;;
14318 *) set x $CONFIG_FILES ;;
14319 esac
14320 shift
14321 for mf
14322 do
14323 # Strip MF so we end up with the name of the file.
14324 mf=`echo "$mf" | sed -e 's/:.*$//'`
14325 # Check whether this is an Automake generated Makefile or not.
14326 # We used to match only the files named 'Makefile.in', but
14327 # some people rename them; so instead we look at the file content.
14328 # Grep'ing the first line is not enough: some people post-process
14329 # each Makefile.in and add a new line on top of each file to say so.
14330 # Grep'ing the whole file is not good either: AIX grep has a line
14331 # limit of 2048, but all sed's we know have understand at least 4000.
14332 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14333 dirpart=`$as_dirname -- "$mf" ||
14334 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14335 X"$mf" : 'X\(//\)[^/]' \| \
14336 X"$mf" : 'X\(//\)$' \| \
14337 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14338 $as_echo X"$mf" |
14339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14340 s//\1/
14341 q
14342 }
14343 /^X\(\/\/\)[^/].*/{
14344 s//\1/
14345 q
14346 }
14347 /^X\(\/\/\)$/{
14348 s//\1/
14349 q
14350 }
14351 /^X\(\/\).*/{
14352 s//\1/
14353 q
14354 }
14355 s/.*/./; q'`
14356 else
14357 continue
14358 fi
14359 # Extract the definition of DEPDIR, am__include, and am__quote
14360 # from the Makefile without running 'make'.
14361 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14362 test -z "$DEPDIR" && continue
14363 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14364 test -z "$am__include" && continue
14365 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14366 # Find all dependency output files, they are included files with
14367 # $(DEPDIR) in their names. We invoke sed twice because it is the
14368 # simplest approach to changing $(DEPDIR) to its actual value in the
14369 # expansion.
14370 for file in `sed -n "
14371 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14372 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14373 # Make sure the directory exists.
14374 test -f "$dirpart/$file" && continue
14375 fdir=`$as_dirname -- "$file" ||
14376 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14377 X"$file" : 'X\(//\)[^/]' \| \
14378 X"$file" : 'X\(//\)$' \| \
14379 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14380 $as_echo X"$file" |
14381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14382 s//\1/
14383 q
14384 }
14385 /^X\(\/\/\)[^/].*/{
14386 s//\1/
14387 q
14388 }
14389 /^X\(\/\/\)$/{
14390 s//\1/
14391 q
14392 }
14393 /^X\(\/\).*/{
14394 s//\1/
14395 q
14396 }
14397 s/.*/./; q'`
14398 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14399 # echo "creating $dirpart/$file"
14400 echo '# dummy' > "$dirpart/$file"
14401 done
14402 done
14403 }
14404 ;;
14405 "libtool":C)
14406
14407 # See if we are running on zsh, and set the options that allow our
14408 # commands through without removal of \ escapes.
14409 if test -n "${ZSH_VERSION+set}"; then
14410 setopt NO_GLOB_SUBST
14411 fi
14412
14413 cfgfile=${ofile}T
14414 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14415 $RM "$cfgfile"
14416
14417 cat <<_LT_EOF >> "$cfgfile"
14418 #! $SHELL
14419 # Generated automatically by $as_me ($PACKAGE) $VERSION
14420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14421 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14422
14423 # Provide generalized library-building support services.
14424 # Written by Gordon Matzigkeit, 1996
14425
14426 # Copyright (C) 2014 Free Software Foundation, Inc.
14427 # This is free software; see the source for copying conditions. There is NO
14428 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14429
14430 # GNU Libtool is free software; you can redistribute it and/or modify
14431 # it under the terms of the GNU General Public License as published by
14432 # the Free Software Foundation; either version 2 of of the License, or
14433 # (at your option) any later version.
14434 #
14435 # As a special exception to the GNU General Public License, if you
14436 # distribute this file as part of a program or library that is built
14437 # using GNU Libtool, you may include this file under the same
14438 # distribution terms that you use for the rest of that program.
14439 #
14440 # GNU Libtool is distributed in the hope that it will be useful, but
14441 # WITHOUT ANY WARRANTY; without even the implied warranty of
14442 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14443 # GNU General Public License for more details.
14444 #
14445 # You should have received a copy of the GNU General Public License
14446 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14447
14448
14449 # The names of the tagged configurations supported by this script.
14450 available_tags=''
14451
14452 # Configured defaults for sys_lib_dlsearch_path munging.
14453 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14454
14455 # ### BEGIN LIBTOOL CONFIG
14456
14457 # Which release of libtool.m4 was used?
14458 macro_version=$macro_version
14459 macro_revision=$macro_revision
14460
14461 # Whether or not to build shared libraries.
14462 build_libtool_libs=$enable_shared
14463
14464 # Whether or not to build static libraries.
14465 build_old_libs=$enable_static
14466
14467 # What type of objects to build.
14468 pic_mode=$pic_mode
14469
14470 # Whether or not to optimize for fast installation.
14471 fast_install=$enable_fast_install
14472
14473 # Shared archive member basename,for filename based shared library versioning on AIX.
14474 shared_archive_member_spec=$shared_archive_member_spec
14475
14476 # Shell to use when invoking shell scripts.
14477 SHELL=$lt_SHELL
14478
14479 # An echo program that protects backslashes.
14480 ECHO=$lt_ECHO
14481
14482 # The PATH separator for the build system.
14483 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14484
14485 # The host system.
14486 host_alias=$host_alias
14487 host=$host
14488 host_os=$host_os
14489
14490 # The build system.
14491 build_alias=$build_alias
14492 build=$build
14493 build_os=$build_os
14494
14495 # A sed program that does not truncate output.
14496 SED=$lt_SED
14497
14498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14499 Xsed="\$SED -e 1s/^X//"
14500
14501 # A grep program that handles long lines.
14502 GREP=$lt_GREP
14503
14504 # An ERE matcher.
14505 EGREP=$lt_EGREP
14506
14507 # A literal string matcher.
14508 FGREP=$lt_FGREP
14509
14510 # A BSD- or MS-compatible name lister.
14511 NM=$lt_NM
14512
14513 # Whether we need soft or hard links.
14514 LN_S=$lt_LN_S
14515
14516 # What is the maximum length of a command?
14517 max_cmd_len=$max_cmd_len
14518
14519 # Object file suffix (normally "o").
14520 objext=$ac_objext
14521
14522 # Executable file suffix (normally "").
14523 exeext=$exeext
14524
14525 # whether the shell understands "unset".
14526 lt_unset=$lt_unset
14527
14528 # turn spaces into newlines.
14529 SP2NL=$lt_lt_SP2NL
14530
14531 # turn newlines into spaces.
14532 NL2SP=$lt_lt_NL2SP
14533
14534 # convert \$build file names to \$host format.
14535 to_host_file_cmd=$lt_cv_to_host_file_cmd
14536
14537 # convert \$build files to toolchain format.
14538 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14539
14540 # An object symbol dumper.
14541 OBJDUMP=$lt_OBJDUMP
14542
14543 # Method to check whether dependent libraries are shared objects.
14544 deplibs_check_method=$lt_deplibs_check_method
14545
14546 # Command to use when deplibs_check_method = "file_magic".
14547 file_magic_cmd=$lt_file_magic_cmd
14548
14549 # How to find potential files when deplibs_check_method = "file_magic".
14550 file_magic_glob=$lt_file_magic_glob
14551
14552 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14553 want_nocaseglob=$lt_want_nocaseglob
14554
14555 # DLL creation program.
14556 DLLTOOL=$lt_DLLTOOL
14557
14558 # Command to associate shared and link libraries.
14559 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14560
14561 # The archiver.
14562 AR=$lt_AR
14563
14564 # Flags to create an archive.
14565 AR_FLAGS=$lt_AR_FLAGS
14566
14567 # How to feed a file listing to the archiver.
14568 archiver_list_spec=$lt_archiver_list_spec
14569
14570 # A symbol stripping program.
14571 STRIP=$lt_STRIP
14572
14573 # Commands used to install an old-style archive.
14574 RANLIB=$lt_RANLIB
14575 old_postinstall_cmds=$lt_old_postinstall_cmds
14576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14577
14578 # Whether to use a lock for old archive extraction.
14579 lock_old_archive_extraction=$lock_old_archive_extraction
14580
14581 # A C compiler.
14582 LTCC=$lt_CC
14583
14584 # LTCC compiler flags.
14585 LTCFLAGS=$lt_CFLAGS
14586
14587 # Take the output of nm and produce a listing of raw symbols and C names.
14588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14589
14590 # Transform the output of nm in a proper C declaration.
14591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14592
14593 # Transform the output of nm into a list of symbols to manually relocate.
14594 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14595
14596 # Transform the output of nm in a C name address pair.
14597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14598
14599 # Transform the output of nm in a C name address pair when lib prefix is needed.
14600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14601
14602 # The name lister interface.
14603 nm_interface=$lt_lt_cv_nm_interface
14604
14605 # Specify filename containing input files for \$NM.
14606 nm_file_list_spec=$lt_nm_file_list_spec
14607
14608 # The root where to search for dependent libraries,and where our libraries should be installed.
14609 lt_sysroot=$lt_sysroot
14610
14611 # Command to truncate a binary pipe.
14612 lt_truncate_bin=$lt_lt_cv_truncate_bin
14613
14614 # The name of the directory that contains temporary libtool files.
14615 objdir=$objdir
14616
14617 # Used to examine libraries when file_magic_cmd begins with "file".
14618 MAGIC_CMD=$MAGIC_CMD
14619
14620 # Must we lock files when doing compilation?
14621 need_locks=$lt_need_locks
14622
14623 # Manifest tool.
14624 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14625
14626 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14627 DSYMUTIL=$lt_DSYMUTIL
14628
14629 # Tool to change global to local symbols on Mac OS X.
14630 NMEDIT=$lt_NMEDIT
14631
14632 # Tool to manipulate fat objects and archives on Mac OS X.
14633 LIPO=$lt_LIPO
14634
14635 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14636 OTOOL=$lt_OTOOL
14637
14638 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14639 OTOOL64=$lt_OTOOL64
14640
14641 # Old archive suffix (normally "a").
14642 libext=$libext
14643
14644 # Shared library suffix (normally ".so").
14645 shrext_cmds=$lt_shrext_cmds
14646
14647 # The commands to extract the exported symbol list from a shared archive.
14648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14649
14650 # Variables whose values should be saved in libtool wrapper scripts and
14651 # restored at link time.
14652 variables_saved_for_relink=$lt_variables_saved_for_relink
14653
14654 # Do we need the "lib" prefix for modules?
14655 need_lib_prefix=$need_lib_prefix
14656
14657 # Do we need a version for libraries?
14658 need_version=$need_version
14659
14660 # Library versioning type.
14661 version_type=$version_type
14662
14663 # Shared library runtime path variable.
14664 runpath_var=$runpath_var
14665
14666 # Shared library path variable.
14667 shlibpath_var=$shlibpath_var
14668
14669 # Is shlibpath searched before the hard-coded library search path?
14670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14671
14672 # Format of library name prefix.
14673 libname_spec=$lt_libname_spec
14674
14675 # List of archive names. First name is the real one, the rest are links.
14676 # The last name is the one that the linker finds with -lNAME
14677 library_names_spec=$lt_library_names_spec
14678
14679 # The coded name of the library, if different from the real name.
14680 soname_spec=$lt_soname_spec
14681
14682 # Permission mode override for installation of shared libraries.
14683 install_override_mode=$lt_install_override_mode
14684
14685 # Command to use after installation of a shared archive.
14686 postinstall_cmds=$lt_postinstall_cmds
14687
14688 # Command to use after uninstallation of a shared archive.
14689 postuninstall_cmds=$lt_postuninstall_cmds
14690
14691 # Commands used to finish a libtool library installation in a directory.
14692 finish_cmds=$lt_finish_cmds
14693
14694 # As "finish_cmds", except a single script fragment to be evaled but
14695 # not shown.
14696 finish_eval=$lt_finish_eval
14697
14698 # Whether we should hardcode library paths into libraries.
14699 hardcode_into_libs=$hardcode_into_libs
14700
14701 # Compile-time system search path for libraries.
14702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14703
14704 # Detected run-time system search path for libraries.
14705 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14706
14707 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14708 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14709
14710 # Whether dlopen is supported.
14711 dlopen_support=$enable_dlopen
14712
14713 # Whether dlopen of programs is supported.
14714 dlopen_self=$enable_dlopen_self
14715
14716 # Whether dlopen of statically linked programs is supported.
14717 dlopen_self_static=$enable_dlopen_self_static
14718
14719 # Commands to strip libraries.
14720 old_striplib=$lt_old_striplib
14721 striplib=$lt_striplib
14722
14723
14724 # The linker used to build libraries.
14725 LD=$lt_LD
14726
14727 # How to create reloadable object files.
14728 reload_flag=$lt_reload_flag
14729 reload_cmds=$lt_reload_cmds
14730
14731 # Commands used to build an old-style archive.
14732 old_archive_cmds=$lt_old_archive_cmds
14733
14734 # A language specific compiler.
14735 CC=$lt_compiler
14736
14737 # Is the compiler the GNU compiler?
14738 with_gcc=$GCC
14739
14740 # Compiler flag to turn off builtin functions.
14741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14742
14743 # Additional compiler flags for building library objects.
14744 pic_flag=$lt_lt_prog_compiler_pic
14745
14746 # How to pass a linker flag through the compiler.
14747 wl=$lt_lt_prog_compiler_wl
14748
14749 # Compiler flag to prevent dynamic linking.
14750 link_static_flag=$lt_lt_prog_compiler_static
14751
14752 # Does compiler simultaneously support -c and -o options?
14753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14754
14755 # Whether or not to add -lc for building shared libraries.
14756 build_libtool_need_lc=$archive_cmds_need_lc
14757
14758 # Whether or not to disallow shared libs when runtime libs are static.
14759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14760
14761 # Compiler flag to allow reflexive dlopens.
14762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14763
14764 # Compiler flag to generate shared objects directly from archives.
14765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14766
14767 # Whether the compiler copes with passing no objects directly.
14768 compiler_needs_object=$lt_compiler_needs_object
14769
14770 # Create an old-style archive from a shared archive.
14771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14772
14773 # Create a temporary old-style archive to link instead of a shared archive.
14774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14775
14776 # Commands used to build a shared archive.
14777 archive_cmds=$lt_archive_cmds
14778 archive_expsym_cmds=$lt_archive_expsym_cmds
14779
14780 # Commands used to build a loadable module if different from building
14781 # a shared archive.
14782 module_cmds=$lt_module_cmds
14783 module_expsym_cmds=$lt_module_expsym_cmds
14784
14785 # Whether we are building with GNU ld or not.
14786 with_gnu_ld=$lt_with_gnu_ld
14787
14788 # Flag that allows shared libraries with undefined symbols to be built.
14789 allow_undefined_flag=$lt_allow_undefined_flag
14790
14791 # Flag that enforces no undefined symbols.
14792 no_undefined_flag=$lt_no_undefined_flag
14793
14794 # Flag to hardcode \$libdir into a binary during linking.
14795 # This must work even if \$libdir does not exist
14796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14797
14798 # Whether we need a single "-rpath" flag with a separated argument.
14799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14800
14801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14802 # DIR into the resulting binary.
14803 hardcode_direct=$hardcode_direct
14804
14805 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14806 # DIR into the resulting binary and the resulting library dependency is
14807 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14808 # library is relocated.
14809 hardcode_direct_absolute=$hardcode_direct_absolute
14810
14811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14812 # into the resulting binary.
14813 hardcode_minus_L=$hardcode_minus_L
14814
14815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14816 # into the resulting binary.
14817 hardcode_shlibpath_var=$hardcode_shlibpath_var
14818
14819 # Set to "yes" if building a shared library automatically hardcodes DIR
14820 # into the library and all subsequent libraries and executables linked
14821 # against it.
14822 hardcode_automatic=$hardcode_automatic
14823
14824 # Set to yes if linker adds runtime paths of dependent libraries
14825 # to runtime path list.
14826 inherit_rpath=$inherit_rpath
14827
14828 # Whether libtool must link a program against all its dependency libraries.
14829 link_all_deplibs=$link_all_deplibs
14830
14831 # Set to "yes" if exported symbols are required.
14832 always_export_symbols=$always_export_symbols
14833
14834 # The commands to list exported symbols.
14835 export_symbols_cmds=$lt_export_symbols_cmds
14836
14837 # Symbols that should not be listed in the preloaded symbols.
14838 exclude_expsyms=$lt_exclude_expsyms
14839
14840 # Symbols that must always be exported.
14841 include_expsyms=$lt_include_expsyms
14842
14843 # Commands necessary for linking programs (against libraries) with templates.
14844 prelink_cmds=$lt_prelink_cmds
14845
14846 # Commands necessary for finishing linking programs.
14847 postlink_cmds=$lt_postlink_cmds
14848
14849 # Specify filename containing input files.
14850 file_list_spec=$lt_file_list_spec
14851
14852 # How to hardcode a shared library path into an executable.
14853 hardcode_action=$hardcode_action
14854
14855 # ### END LIBTOOL CONFIG
14856
14857 _LT_EOF
14858
14859 cat <<'_LT_EOF' >> "$cfgfile"
14860
14861 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14862
14863 # func_munge_path_list VARIABLE PATH
14864 # -----------------------------------
14865 # VARIABLE is name of variable containing _space_ separated list of
14866 # directories to be munged by the contents of PATH, which is string
14867 # having a format:
14868 # "DIR[:DIR]:"
14869 # string "DIR[ DIR]" will be prepended to VARIABLE
14870 # ":DIR[:DIR]"
14871 # string "DIR[ DIR]" will be appended to VARIABLE
14872 # "DIRP[:DIRP]::[DIRA:]DIRA"
14873 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14874 # "DIRA[ DIRA]" will be appended to VARIABLE
14875 # "DIR[:DIR]"
14876 # VARIABLE will be replaced by "DIR[ DIR]"
14877 func_munge_path_list ()
14878 {
14879 case x$2 in
14880 x)
14881 ;;
14882 *:)
14883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14884 ;;
14885 x:*)
14886 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14887 ;;
14888 *::*)
14889 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14890 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14891 ;;
14892 *)
14893 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14894 ;;
14895 esac
14896 }
14897
14898
14899 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14900 func_cc_basename ()
14901 {
14902 for cc_temp in $*""; do
14903 case $cc_temp in
14904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14906 \-*) ;;
14907 *) break;;
14908 esac
14909 done
14910 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14911 }
14912
14913
14914 # ### END FUNCTIONS SHARED WITH CONFIGURE
14915
14916 _LT_EOF
14917
14918 case $host_os in
14919 aix3*)
14920 cat <<\_LT_EOF >> "$cfgfile"
14921 # AIX sometimes has problems with the GCC collect2 program. For some
14922 # reason, if we set the COLLECT_NAMES environment variable, the problems
14923 # vanish in a puff of smoke.
14924 if test set != "${COLLECT_NAMES+set}"; then
14925 COLLECT_NAMES=
14926 export COLLECT_NAMES
14927 fi
14928 _LT_EOF
14929 ;;
14930 esac
14931
14932
14933 ltmain=$ac_aux_dir/ltmain.sh
14934
14935
14936 # We use sed instead of cat because bash on DJGPP gets confused if
14937 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14938 # text mode, it properly converts lines to CR/LF. This bash problem
14939 # is reportedly fixed, but why not run on old versions too?
14940 sed '$q' "$ltmain" >> "$cfgfile" \
14941 || (rm -f "$cfgfile"; exit 1)
14942
14943 mv -f "$cfgfile" "$ofile" ||
14944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14945 chmod +x "$ofile"
14946
14947 ;;
14948
14949 esac
14950 done # for ac_tag
14951
14952
14953 as_fn_exit 0
14954 _ACEOF
14955 ac_clean_files=$ac_clean_files_save
14956
14957 test $ac_write_fail = 0 ||
14958 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14959
14960
14961 # configure is writing to config.log, and then calls config.status.
14962 # config.status does its own redirection, appending to config.log.
14963 # Unfortunately, on DOS this fails, as config.log is still kept open
14964 # by configure, so config.status won't be able to write to it; its
14965 # output is simply discarded. So we exec the FD to /dev/null,
14966 # effectively closing config.log, so it can be properly (re)opened and
14967 # appended to by config.status. When coming back to configure, we
14968 # need to make the FD available again.
14969 if test "$no_create" != yes; then
14970 ac_cs_success=:
14971 ac_config_status_args=
14972 test "$silent" = yes &&
14973 ac_config_status_args="$ac_config_status_args --quiet"
14974 exec 5>/dev/null
14975 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14976 exec 5>>config.log
14977 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14978 # would make configure fail if this is the last instruction.
14979 $ac_cs_success || as_fn_exit 1
14980 fi
14981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14983 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14984 fi
14985
14986
14987
14988 echo "###############################################################################"
14989 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
14990 echo
14991 echo "HOPM will be installed in ${prefix}. To change this, run:"
14992 echo " ./configure --prefix=DIRECTORY"
14993 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id