Annotation of embedaddon/iperf/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.69 for iperf 3.1.3.
4: #
5: # Report bugs to <https://github.com/esnet/iperf>.
6: #
7: #
8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: # Use a proper internal environment variable to ensure we don't fall
138: # into an infinite loop, continuously re-executing ourselves.
139: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140: _as_can_reexec=no; export _as_can_reexec;
141: # We cannot yet assume a decent shell, so we have to provide a
142: # neutralization value for shells without unset; and this also
143: # works around shells that cannot unset nonexistent variables.
144: # Preserve -v and -x to the replacement shell.
145: BASH_ENV=/dev/null
146: ENV=/dev/null
147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148: case $- in # ((((
149: *v*x* | *x*v* ) as_opts=-vx ;;
150: *v* ) as_opts=-v ;;
151: *x* ) as_opts=-x ;;
152: * ) as_opts= ;;
153: esac
154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155: # Admittedly, this is quite paranoid, since all the known shells bail
156: # out after a failed `exec'.
157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158: as_fn_exit 255
159: fi
160: # We don't want this to propagate to other subprocesses.
161: { _as_can_reexec=; unset _as_can_reexec;}
162: if test "x$CONFIG_SHELL" = x; then
163: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164: emulate sh
165: NULLCMD=:
166: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167: # is contrary to our usage. Disable this feature.
168: alias -g '\${1+\"\$@\"}'='\"\$@\"'
169: setopt NO_GLOB_SUBST
170: else
171: case \`(set -o) 2>/dev/null\` in #(
172: *posix*) :
173: set -o posix ;; #(
174: *) :
175: ;;
176: esac
177: fi
178: "
179: as_required="as_fn_return () { (exit \$1); }
180: as_fn_success () { as_fn_return 0; }
181: as_fn_failure () { as_fn_return 1; }
182: as_fn_ret_success () { return 0; }
183: as_fn_ret_failure () { return 1; }
184:
185: exitcode=0
186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191:
192: else
193: exitcode=1; echo positional parameters were not saved.
194: fi
195: test x\$exitcode = x0 || exit 1
196: test -x / || exit 1"
197: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201:
202: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206: PATH=/empty FPATH=/empty; export PATH FPATH
207: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209: test \$(( 1 + 1 )) = 2 || exit 1"
210: if (eval "$as_required") 2>/dev/null; then :
211: as_have_required=yes
212: else
213: as_have_required=no
214: fi
215: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216:
217: else
218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219: as_found=false
220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221: do
222: IFS=$as_save_IFS
223: test -z "$as_dir" && as_dir=.
224: as_found=:
225: case $as_dir in #(
226: /*)
227: for as_base in sh bash ksh sh5; do
228: # Try only shells that exist, to save several forks.
229: as_shell=$as_dir/$as_base
230: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: CONFIG_SHELL=$as_shell as_have_required=yes
233: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234: break 2
235: fi
236: fi
237: done;;
238: esac
239: as_found=false
240: done
241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243: CONFIG_SHELL=$SHELL as_have_required=yes
244: fi; }
245: IFS=$as_save_IFS
246:
247:
248: if test "x$CONFIG_SHELL" != x; then :
249: export CONFIG_SHELL
250: # We cannot yet assume a decent shell, so we have to provide a
251: # neutralization value for shells without unset; and this also
252: # works around shells that cannot unset nonexistent variables.
253: # Preserve -v and -x to the replacement shell.
254: BASH_ENV=/dev/null
255: ENV=/dev/null
256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257: case $- in # ((((
258: *v*x* | *x*v* ) as_opts=-vx ;;
259: *v* ) as_opts=-v ;;
260: *x* ) as_opts=-x ;;
261: * ) as_opts= ;;
262: esac
263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264: # Admittedly, this is quite paranoid, since all the known shells bail
265: # out after a failed `exec'.
266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267: exit 255
268: fi
269:
270: if test x$as_have_required = xno; then :
271: $as_echo "$0: This script requires a shell more modern than all"
272: $as_echo "$0: the shells that I found on your system."
273: if test x${ZSH_VERSION+set} = xset ; then
274: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276: else
277: $as_echo "$0: Please tell bug-autoconf@gnu.org and
278: $0: https://github.com/esnet/iperf about your system,
279: $0: including any error possibly output before this
280: $0: message. Then install a modern shell, or manually run
281: $0: the script under such a shell if you do have one."
282: fi
283: exit 1
284: fi
285: fi
286: fi
287: SHELL=${CONFIG_SHELL-/bin/sh}
288: export SHELL
289: # Unset more variables known to interfere with behavior of common tools.
290: CLICOLOR_FORCE= GREP_OPTIONS=
291: unset CLICOLOR_FORCE GREP_OPTIONS
292:
293: ## --------------------- ##
294: ## M4sh Shell Functions. ##
295: ## --------------------- ##
296: # as_fn_unset VAR
297: # ---------------
298: # Portably unset VAR.
299: as_fn_unset ()
300: {
301: { eval $1=; unset $1;}
302: }
303: as_unset=as_fn_unset
304:
305: # as_fn_set_status STATUS
306: # -----------------------
307: # Set $? to STATUS, without forking.
308: as_fn_set_status ()
309: {
310: return $1
311: } # as_fn_set_status
312:
313: # as_fn_exit STATUS
314: # -----------------
315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316: as_fn_exit ()
317: {
318: set +e
319: as_fn_set_status $1
320: exit $1
321: } # as_fn_exit
322:
323: # as_fn_mkdir_p
324: # -------------
325: # Create "$as_dir" as a directory, including parents if necessary.
326: as_fn_mkdir_p ()
327: {
328:
329: case $as_dir in #(
330: -*) as_dir=./$as_dir;;
331: esac
332: test -d "$as_dir" || eval $as_mkdir_p || {
333: as_dirs=
334: while :; do
335: case $as_dir in #(
336: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337: *) as_qdir=$as_dir;;
338: esac
339: as_dirs="'$as_qdir' $as_dirs"
340: as_dir=`$as_dirname -- "$as_dir" ||
341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342: X"$as_dir" : 'X\(//\)[^/]' \| \
343: X"$as_dir" : 'X\(//\)$' \| \
344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345: $as_echo X"$as_dir" |
346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347: s//\1/
348: q
349: }
350: /^X\(\/\/\)[^/].*/{
351: s//\1/
352: q
353: }
354: /^X\(\/\/\)$/{
355: s//\1/
356: q
357: }
358: /^X\(\/\).*/{
359: s//\1/
360: q
361: }
362: s/.*/./; q'`
363: test -d "$as_dir" && break
364: done
365: test -z "$as_dirs" || eval "mkdir $as_dirs"
366: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367:
368:
369: } # as_fn_mkdir_p
370:
371: # as_fn_executable_p FILE
372: # -----------------------
373: # Test if FILE is an executable regular file.
374: as_fn_executable_p ()
375: {
376: test -f "$1" && test -x "$1"
377: } # as_fn_executable_p
378: # as_fn_append VAR VALUE
379: # ----------------------
380: # Append the text in VALUE to the end of the definition contained in VAR. Take
381: # advantage of any shell optimizations that allow amortized linear growth over
382: # repeated appends, instead of the typical quadratic growth present in naive
383: # implementations.
384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385: eval 'as_fn_append ()
386: {
387: eval $1+=\$2
388: }'
389: else
390: as_fn_append ()
391: {
392: eval $1=\$$1\$2
393: }
394: fi # as_fn_append
395:
396: # as_fn_arith ARG...
397: # ------------------
398: # Perform arithmetic evaluation on the ARGs, and store the result in the
399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
400: # must be portable across $(()) and expr.
401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402: eval 'as_fn_arith ()
403: {
404: as_val=$(( $* ))
405: }'
406: else
407: as_fn_arith ()
408: {
409: as_val=`expr "$@" || test $? -eq 1`
410: }
411: fi # as_fn_arith
412:
413:
414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
415: # ----------------------------------------
416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418: # script with STATUS, using 1 if that was 0.
419: as_fn_error ()
420: {
421: as_status=$1; test $as_status -eq 0 && as_status=1
422: if test "$4"; then
423: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425: fi
426: $as_echo "$as_me: error: $2" >&2
427: as_fn_exit $as_status
428: } # as_fn_error
429:
430: if expr a : '\(a\)' >/dev/null 2>&1 &&
431: test "X`expr 00001 : '.*\(...\)'`" = X001; then
432: as_expr=expr
433: else
434: as_expr=false
435: fi
436:
437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438: as_basename=basename
439: else
440: as_basename=false
441: fi
442:
443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444: as_dirname=dirname
445: else
446: as_dirname=false
447: fi
448:
449: as_me=`$as_basename -- "$0" ||
450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451: X"$0" : 'X\(//\)$' \| \
452: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453: $as_echo X/"$0" |
454: sed '/^.*\/\([^/][^/]*\)\/*$/{
455: s//\1/
456: q
457: }
458: /^X\/\(\/\/\)$/{
459: s//\1/
460: q
461: }
462: /^X\/\(\/\).*/{
463: s//\1/
464: q
465: }
466: s/.*/./; q'`
467:
468: # Avoid depending upon Character Ranges.
469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472: as_cr_digits='0123456789'
473: as_cr_alnum=$as_cr_Letters$as_cr_digits
474:
475:
476: as_lineno_1=$LINENO as_lineno_1a=$LINENO
477: as_lineno_2=$LINENO as_lineno_2a=$LINENO
478: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481: sed -n '
482: p
483: /[$]LINENO/=
484: ' <$as_myself |
485: sed '
486: s/[$]LINENO.*/&-/
487: t lineno
488: b
489: :lineno
490: N
491: :loop
492: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493: t loop
494: s/-\n.*//
495: ' >$as_me.lineno &&
496: chmod +x "$as_me.lineno" ||
497: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498:
499: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500: # already done that, so ensure we don't try to do so again and fall
501: # in an infinite loop. This has already happened in practice.
502: _as_can_reexec=no; export _as_can_reexec
503: # Don't try to exec as it changes $[0], causing all sort of problems
504: # (the dirname of $[0] is not the place where we might find the
505: # original and so on. Autoconf is especially sensitive to this).
506: . "./$as_me.lineno"
507: # Exit status is that of the last command.
508: exit
509: }
510:
511: ECHO_C= ECHO_N= ECHO_T=
512: case `echo -n x` in #(((((
513: -n*)
514: case `echo 'xy\c'` in
515: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516: xy) ECHO_C='\c';;
517: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518: ECHO_T=' ';;
519: esac;;
520: *)
521: ECHO_N='-n';;
522: esac
523:
524: rm -f conf$$ conf$$.exe conf$$.file
525: if test -d conf$$.dir; then
526: rm -f conf$$.dir/conf$$.file
527: else
528: rm -f conf$$.dir
529: mkdir conf$$.dir 2>/dev/null
530: fi
531: if (echo >conf$$.file) 2>/dev/null; then
532: if ln -s conf$$.file conf$$ 2>/dev/null; then
533: as_ln_s='ln -s'
534: # ... but there are two gotchas:
535: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537: # In both cases, we have to default to `cp -pR'.
538: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539: as_ln_s='cp -pR'
540: elif ln conf$$.file conf$$ 2>/dev/null; then
541: as_ln_s=ln
542: else
543: as_ln_s='cp -pR'
544: fi
545: else
546: as_ln_s='cp -pR'
547: fi
548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549: rmdir conf$$.dir 2>/dev/null
550:
551: if mkdir -p . 2>/dev/null; then
552: as_mkdir_p='mkdir -p "$as_dir"'
553: else
554: test -d ./-p && rmdir ./-p
555: as_mkdir_p=false
556: fi
557:
558: as_test_x='test -x'
559: as_executable_p=as_fn_executable_p
560:
561: # Sed expression to map a string onto a valid CPP name.
562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563:
564: # Sed expression to map a string onto a valid variable name.
565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566:
567: SHELL=${CONFIG_SHELL-/bin/sh}
568:
569:
570: test -n "$DJDIR" || exec 7<&0 </dev/null
571: exec 6>&1
572:
573: # Name of the host.
574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575: # so uname gets run too.
576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577:
578: #
579: # Initializations.
580: #
581: ac_default_prefix=/usr/local
582: ac_clean_files=
583: ac_config_libobj_dir=.
584: LIBOBJS=
585: cross_compiling=no
586: subdirs=
587: MFLAGS=
588: MAKEFLAGS=
589:
590: # Identity of this package.
591: PACKAGE_NAME='iperf'
592: PACKAGE_TARNAME='iperf'
593: PACKAGE_VERSION='3.1.3'
594: PACKAGE_STRING='iperf 3.1.3'
595: PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
596: PACKAGE_URL='http://software.es.net/iperf/'
597:
598: # Factoring default headers for most tests.
599: ac_includes_default="\
600: #include <stdio.h>
601: #ifdef HAVE_SYS_TYPES_H
602: # include <sys/types.h>
603: #endif
604: #ifdef HAVE_SYS_STAT_H
605: # include <sys/stat.h>
606: #endif
607: #ifdef STDC_HEADERS
608: # include <stdlib.h>
609: # include <stddef.h>
610: #else
611: # ifdef HAVE_STDLIB_H
612: # include <stdlib.h>
613: # endif
614: #endif
615: #ifdef HAVE_STRING_H
616: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617: # include <memory.h>
618: # endif
619: # include <string.h>
620: #endif
621: #ifdef HAVE_STRINGS_H
622: # include <strings.h>
623: #endif
624: #ifdef HAVE_INTTYPES_H
625: # include <inttypes.h>
626: #endif
627: #ifdef HAVE_STDINT_H
628: # include <stdint.h>
629: #endif
630: #ifdef HAVE_UNISTD_H
631: # include <unistd.h>
632: #endif"
633:
634: ac_subst_vars='am__EXEEXT_FALSE
635: am__EXEEXT_TRUE
636: LTLIBOBJS
637: LIBOBJS
638: CPP
639: LT_SYS_LIBRARY_PATH
640: OTOOL64
641: OTOOL
642: LIPO
643: NMEDIT
644: DSYMUTIL
645: MANIFEST_TOOL
646: ac_ct_AR
647: AR
648: DLLTOOL
649: OBJDUMP
650: NM
651: ac_ct_DUMPBIN
652: DUMPBIN
653: LD
654: FGREP
655: EGREP
656: GREP
657: SED
658: LIBTOOL
659: LN_S
660: RANLIB
661: am__fastdepCC_FALSE
662: am__fastdepCC_TRUE
663: CCDEPMODE
664: am__nodep
665: AMDEPBACKSLASH
666: AMDEP_FALSE
667: AMDEP_TRUE
668: am__quote
669: am__include
670: DEPDIR
671: OBJEXT
672: EXEEXT
673: ac_ct_CC
674: CPPFLAGS
675: LDFLAGS
676: CFLAGS
677: CC
678: host_os
679: host_vendor
680: host_cpu
681: host
682: build_os
683: build_vendor
684: build_cpu
685: build
686: MAINT
687: MAINTAINER_MODE_FALSE
688: MAINTAINER_MODE_TRUE
689: AM_BACKSLASH
690: AM_DEFAULT_VERBOSITY
691: AM_DEFAULT_V
692: AM_V
693: am__untar
694: am__tar
695: AMTAR
696: am__leading_dot
697: SET_MAKE
698: AWK
699: mkdir_p
700: MKDIR_P
701: INSTALL_STRIP_PROGRAM
702: STRIP
703: install_sh
704: MAKEINFO
705: AUTOHEADER
706: AUTOMAKE
707: AUTOCONF
708: ACLOCAL
709: VERSION
710: PACKAGE
711: CYGPATH_W
712: am__isrc
713: INSTALL_DATA
714: INSTALL_SCRIPT
715: INSTALL_PROGRAM
716: target_alias
717: host_alias
718: build_alias
719: LIBS
720: ECHO_T
721: ECHO_N
722: ECHO_C
723: DEFS
724: mandir
725: localedir
726: libdir
727: psdir
728: pdfdir
729: dvidir
730: htmldir
731: infodir
732: docdir
733: oldincludedir
734: includedir
735: localstatedir
736: sharedstatedir
737: sysconfdir
738: datadir
739: datarootdir
740: libexecdir
741: sbindir
742: bindir
743: program_transform_name
744: prefix
745: exec_prefix
746: PACKAGE_URL
747: PACKAGE_BUGREPORT
748: PACKAGE_STRING
749: PACKAGE_VERSION
750: PACKAGE_TARNAME
751: PACKAGE_NAME
752: PATH_SEPARATOR
753: SHELL'
754: ac_subst_files=''
755: ac_user_opts='
756: enable_option_checking
757: enable_silent_rules
758: enable_maintainer_mode
759: enable_dependency_tracking
760: enable_shared
761: enable_static
762: with_pic
763: enable_fast_install
764: with_aix_soname
765: with_gnu_ld
766: with_sysroot
767: enable_libtool_lock
768: '
769: ac_precious_vars='build_alias
770: host_alias
771: target_alias
772: CC
773: CFLAGS
774: LDFLAGS
775: LIBS
776: CPPFLAGS
777: LT_SYS_LIBRARY_PATH
778: CPP'
779:
780:
781: # Initialize some variables set by options.
782: ac_init_help=
783: ac_init_version=false
784: ac_unrecognized_opts=
785: ac_unrecognized_sep=
786: # The variables have the same names as the options, with
787: # dashes changed to underlines.
788: cache_file=/dev/null
789: exec_prefix=NONE
790: no_create=
791: no_recursion=
792: prefix=NONE
793: program_prefix=NONE
794: program_suffix=NONE
795: program_transform_name=s,x,x,
796: silent=
797: site=
798: srcdir=
799: verbose=
800: x_includes=NONE
801: x_libraries=NONE
802:
803: # Installation directory options.
804: # These are left unexpanded so users can "make install exec_prefix=/foo"
805: # and all the variables that are supposed to be based on exec_prefix
806: # by default will actually change.
807: # Use braces instead of parens because sh, perl, etc. also accept them.
808: # (The list follows the same order as the GNU Coding Standards.)
809: bindir='${exec_prefix}/bin'
810: sbindir='${exec_prefix}/sbin'
811: libexecdir='${exec_prefix}/libexec'
812: datarootdir='${prefix}/share'
813: datadir='${datarootdir}'
814: sysconfdir='${prefix}/etc'
815: sharedstatedir='${prefix}/com'
816: localstatedir='${prefix}/var'
817: includedir='${prefix}/include'
818: oldincludedir='/usr/include'
819: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820: infodir='${datarootdir}/info'
821: htmldir='${docdir}'
822: dvidir='${docdir}'
823: pdfdir='${docdir}'
824: psdir='${docdir}'
825: libdir='${exec_prefix}/lib'
826: localedir='${datarootdir}/locale'
827: mandir='${datarootdir}/man'
828:
829: ac_prev=
830: ac_dashdash=
831: for ac_option
832: do
833: # If the previous option needs an argument, assign it.
834: if test -n "$ac_prev"; then
835: eval $ac_prev=\$ac_option
836: ac_prev=
837: continue
838: fi
839:
840: case $ac_option in
841: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842: *=) ac_optarg= ;;
843: *) ac_optarg=yes ;;
844: esac
845:
846: # Accept the important Cygnus configure options, so we can diagnose typos.
847:
848: case $ac_dashdash$ac_option in
849: --)
850: ac_dashdash=yes ;;
851:
852: -bindir | --bindir | --bindi | --bind | --bin | --bi)
853: ac_prev=bindir ;;
854: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855: bindir=$ac_optarg ;;
856:
857: -build | --build | --buil | --bui | --bu)
858: ac_prev=build_alias ;;
859: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860: build_alias=$ac_optarg ;;
861:
862: -cache-file | --cache-file | --cache-fil | --cache-fi \
863: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864: ac_prev=cache_file ;;
865: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867: cache_file=$ac_optarg ;;
868:
869: --config-cache | -C)
870: cache_file=config.cache ;;
871:
872: -datadir | --datadir | --datadi | --datad)
873: ac_prev=datadir ;;
874: -datadir=* | --datadir=* | --datadi=* | --datad=*)
875: datadir=$ac_optarg ;;
876:
877: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878: | --dataroo | --dataro | --datar)
879: ac_prev=datarootdir ;;
880: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882: datarootdir=$ac_optarg ;;
883:
884: -disable-* | --disable-*)
885: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886: # Reject names that are not valid shell variable names.
887: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888: as_fn_error $? "invalid feature name: $ac_useropt"
889: ac_useropt_orig=$ac_useropt
890: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891: case $ac_user_opts in
892: *"
893: "enable_$ac_useropt"
894: "*) ;;
895: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896: ac_unrecognized_sep=', ';;
897: esac
898: eval enable_$ac_useropt=no ;;
899:
900: -docdir | --docdir | --docdi | --doc | --do)
901: ac_prev=docdir ;;
902: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903: docdir=$ac_optarg ;;
904:
905: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906: ac_prev=dvidir ;;
907: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908: dvidir=$ac_optarg ;;
909:
910: -enable-* | --enable-*)
911: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912: # Reject names that are not valid shell variable names.
913: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914: as_fn_error $? "invalid feature name: $ac_useropt"
915: ac_useropt_orig=$ac_useropt
916: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917: case $ac_user_opts in
918: *"
919: "enable_$ac_useropt"
920: "*) ;;
921: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922: ac_unrecognized_sep=', ';;
923: esac
924: eval enable_$ac_useropt=\$ac_optarg ;;
925:
926: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928: | --exec | --exe | --ex)
929: ac_prev=exec_prefix ;;
930: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932: | --exec=* | --exe=* | --ex=*)
933: exec_prefix=$ac_optarg ;;
934:
935: -gas | --gas | --ga | --g)
936: # Obsolete; use --with-gas.
937: with_gas=yes ;;
938:
939: -help | --help | --hel | --he | -h)
940: ac_init_help=long ;;
941: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942: ac_init_help=recursive ;;
943: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944: ac_init_help=short ;;
945:
946: -host | --host | --hos | --ho)
947: ac_prev=host_alias ;;
948: -host=* | --host=* | --hos=* | --ho=*)
949: host_alias=$ac_optarg ;;
950:
951: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952: ac_prev=htmldir ;;
953: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954: | --ht=*)
955: htmldir=$ac_optarg ;;
956:
957: -includedir | --includedir | --includedi | --included | --include \
958: | --includ | --inclu | --incl | --inc)
959: ac_prev=includedir ;;
960: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961: | --includ=* | --inclu=* | --incl=* | --inc=*)
962: includedir=$ac_optarg ;;
963:
964: -infodir | --infodir | --infodi | --infod | --info | --inf)
965: ac_prev=infodir ;;
966: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967: infodir=$ac_optarg ;;
968:
969: -libdir | --libdir | --libdi | --libd)
970: ac_prev=libdir ;;
971: -libdir=* | --libdir=* | --libdi=* | --libd=*)
972: libdir=$ac_optarg ;;
973:
974: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975: | --libexe | --libex | --libe)
976: ac_prev=libexecdir ;;
977: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978: | --libexe=* | --libex=* | --libe=*)
979: libexecdir=$ac_optarg ;;
980:
981: -localedir | --localedir | --localedi | --localed | --locale)
982: ac_prev=localedir ;;
983: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984: localedir=$ac_optarg ;;
985:
986: -localstatedir | --localstatedir | --localstatedi | --localstated \
987: | --localstate | --localstat | --localsta | --localst | --locals)
988: ac_prev=localstatedir ;;
989: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991: localstatedir=$ac_optarg ;;
992:
993: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994: ac_prev=mandir ;;
995: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996: mandir=$ac_optarg ;;
997:
998: -nfp | --nfp | --nf)
999: # Obsolete; use --without-fp.
1000: with_fp=no ;;
1001:
1002: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003: | --no-cr | --no-c | -n)
1004: no_create=yes ;;
1005:
1006: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008: no_recursion=yes ;;
1009:
1010: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012: | --oldin | --oldi | --old | --ol | --o)
1013: ac_prev=oldincludedir ;;
1014: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017: oldincludedir=$ac_optarg ;;
1018:
1019: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020: ac_prev=prefix ;;
1021: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022: prefix=$ac_optarg ;;
1023:
1024: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025: | --program-pre | --program-pr | --program-p)
1026: ac_prev=program_prefix ;;
1027: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029: program_prefix=$ac_optarg ;;
1030:
1031: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032: | --program-suf | --program-su | --program-s)
1033: ac_prev=program_suffix ;;
1034: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036: program_suffix=$ac_optarg ;;
1037:
1038: -program-transform-name | --program-transform-name \
1039: | --program-transform-nam | --program-transform-na \
1040: | --program-transform-n | --program-transform- \
1041: | --program-transform | --program-transfor \
1042: | --program-transfo | --program-transf \
1043: | --program-trans | --program-tran \
1044: | --progr-tra | --program-tr | --program-t)
1045: ac_prev=program_transform_name ;;
1046: -program-transform-name=* | --program-transform-name=* \
1047: | --program-transform-nam=* | --program-transform-na=* \
1048: | --program-transform-n=* | --program-transform-=* \
1049: | --program-transform=* | --program-transfor=* \
1050: | --program-transfo=* | --program-transf=* \
1051: | --program-trans=* | --program-tran=* \
1052: | --progr-tra=* | --program-tr=* | --program-t=*)
1053: program_transform_name=$ac_optarg ;;
1054:
1055: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056: ac_prev=pdfdir ;;
1057: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058: pdfdir=$ac_optarg ;;
1059:
1060: -psdir | --psdir | --psdi | --psd | --ps)
1061: ac_prev=psdir ;;
1062: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063: psdir=$ac_optarg ;;
1064:
1065: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066: | -silent | --silent | --silen | --sile | --sil)
1067: silent=yes ;;
1068:
1069: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070: ac_prev=sbindir ;;
1071: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072: | --sbi=* | --sb=*)
1073: sbindir=$ac_optarg ;;
1074:
1075: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077: | --sharedst | --shareds | --shared | --share | --shar \
1078: | --sha | --sh)
1079: ac_prev=sharedstatedir ;;
1080: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083: | --sha=* | --sh=*)
1084: sharedstatedir=$ac_optarg ;;
1085:
1086: -site | --site | --sit)
1087: ac_prev=site ;;
1088: -site=* | --site=* | --sit=*)
1089: site=$ac_optarg ;;
1090:
1091: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092: ac_prev=srcdir ;;
1093: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094: srcdir=$ac_optarg ;;
1095:
1096: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097: | --syscon | --sysco | --sysc | --sys | --sy)
1098: ac_prev=sysconfdir ;;
1099: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101: sysconfdir=$ac_optarg ;;
1102:
1103: -target | --target | --targe | --targ | --tar | --ta | --t)
1104: ac_prev=target_alias ;;
1105: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106: target_alias=$ac_optarg ;;
1107:
1108: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109: verbose=yes ;;
1110:
1111: -version | --version | --versio | --versi | --vers | -V)
1112: ac_init_version=: ;;
1113:
1114: -with-* | --with-*)
1115: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116: # Reject names that are not valid shell variable names.
1117: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118: as_fn_error $? "invalid package name: $ac_useropt"
1119: ac_useropt_orig=$ac_useropt
1120: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121: case $ac_user_opts in
1122: *"
1123: "with_$ac_useropt"
1124: "*) ;;
1125: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126: ac_unrecognized_sep=', ';;
1127: esac
1128: eval with_$ac_useropt=\$ac_optarg ;;
1129:
1130: -without-* | --without-*)
1131: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132: # Reject names that are not valid shell variable names.
1133: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134: as_fn_error $? "invalid package name: $ac_useropt"
1135: ac_useropt_orig=$ac_useropt
1136: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137: case $ac_user_opts in
1138: *"
1139: "with_$ac_useropt"
1140: "*) ;;
1141: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142: ac_unrecognized_sep=', ';;
1143: esac
1144: eval with_$ac_useropt=no ;;
1145:
1146: --x)
1147: # Obsolete; use --with-x.
1148: with_x=yes ;;
1149:
1150: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151: | --x-incl | --x-inc | --x-in | --x-i)
1152: ac_prev=x_includes ;;
1153: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155: x_includes=$ac_optarg ;;
1156:
1157: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159: ac_prev=x_libraries ;;
1160: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162: x_libraries=$ac_optarg ;;
1163:
1164: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165: Try \`$0 --help' for more information"
1166: ;;
1167:
1168: *=*)
1169: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170: # Reject names that are not valid shell variable names.
1171: case $ac_envvar in #(
1172: '' | [0-9]* | *[!_$as_cr_alnum]* )
1173: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174: esac
1175: eval $ac_envvar=\$ac_optarg
1176: export $ac_envvar ;;
1177:
1178: *)
1179: # FIXME: should be removed in autoconf 3.0.
1180: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184: ;;
1185:
1186: esac
1187: done
1188:
1189: if test -n "$ac_prev"; then
1190: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191: as_fn_error $? "missing argument to $ac_option"
1192: fi
1193:
1194: if test -n "$ac_unrecognized_opts"; then
1195: case $enable_option_checking in
1196: no) ;;
1197: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199: esac
1200: fi
1201:
1202: # Check all directory arguments for consistency.
1203: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204: datadir sysconfdir sharedstatedir localstatedir includedir \
1205: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206: libdir localedir mandir
1207: do
1208: eval ac_val=\$$ac_var
1209: # Remove trailing slashes.
1210: case $ac_val in
1211: */ )
1212: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213: eval $ac_var=\$ac_val;;
1214: esac
1215: # Be sure to have absolute directory names.
1216: case $ac_val in
1217: [\\/$]* | ?:[\\/]* ) continue;;
1218: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219: esac
1220: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221: done
1222:
1223: # There might be people who depend on the old broken behavior: `$host'
1224: # used to hold the argument of --host etc.
1225: # FIXME: To remove some day.
1226: build=$build_alias
1227: host=$host_alias
1228: target=$target_alias
1229:
1230: # FIXME: To remove some day.
1231: if test "x$host_alias" != x; then
1232: if test "x$build_alias" = x; then
1233: cross_compiling=maybe
1234: elif test "x$build_alias" != "x$host_alias"; then
1235: cross_compiling=yes
1236: fi
1237: fi
1238:
1239: ac_tool_prefix=
1240: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241:
1242: test "$silent" = yes && exec 6>/dev/null
1243:
1244:
1245: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246: ac_ls_di=`ls -di .` &&
1247: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248: as_fn_error $? "working directory cannot be determined"
1249: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250: as_fn_error $? "pwd does not report name of working directory"
1251:
1252:
1253: # Find the source files, if location was not specified.
1254: if test -z "$srcdir"; then
1255: ac_srcdir_defaulted=yes
1256: # Try the directory containing this script, then the parent directory.
1257: ac_confdir=`$as_dirname -- "$as_myself" ||
1258: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259: X"$as_myself" : 'X\(//\)[^/]' \| \
1260: X"$as_myself" : 'X\(//\)$' \| \
1261: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262: $as_echo X"$as_myself" |
1263: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264: s//\1/
1265: q
1266: }
1267: /^X\(\/\/\)[^/].*/{
1268: s//\1/
1269: q
1270: }
1271: /^X\(\/\/\)$/{
1272: s//\1/
1273: q
1274: }
1275: /^X\(\/\).*/{
1276: s//\1/
1277: q
1278: }
1279: s/.*/./; q'`
1280: srcdir=$ac_confdir
1281: if test ! -r "$srcdir/$ac_unique_file"; then
1282: srcdir=..
1283: fi
1284: else
1285: ac_srcdir_defaulted=no
1286: fi
1287: if test ! -r "$srcdir/$ac_unique_file"; then
1288: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290: fi
1291: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292: ac_abs_confdir=`(
1293: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294: pwd)`
1295: # When building in place, set srcdir=.
1296: if test "$ac_abs_confdir" = "$ac_pwd"; then
1297: srcdir=.
1298: fi
1299: # Remove unnecessary trailing slashes from srcdir.
1300: # Double slashes in file names in object file debugging info
1301: # mess up M-x gdb in Emacs.
1302: case $srcdir in
1303: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304: esac
1305: for ac_var in $ac_precious_vars; do
1306: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307: eval ac_env_${ac_var}_value=\$${ac_var}
1308: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310: done
1311:
1312: #
1313: # Report the --help message.
1314: #
1315: if test "$ac_init_help" = "long"; then
1316: # Omit some internal or obsolete options to make the list less imposing.
1317: # This message is too long to be a string in the A/UX 3.1 sh.
1318: cat <<_ACEOF
1319: \`configure' configures iperf 3.1.3 to adapt to many kinds of systems.
1320:
1321: Usage: $0 [OPTION]... [VAR=VALUE]...
1322:
1323: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324: VAR=VALUE. See below for descriptions of some of the useful variables.
1325:
1326: Defaults for the options are specified in brackets.
1327:
1328: Configuration:
1329: -h, --help display this help and exit
1330: --help=short display options specific to this package
1331: --help=recursive display the short help of all the included packages
1332: -V, --version display version information and exit
1333: -q, --quiet, --silent do not print \`checking ...' messages
1334: --cache-file=FILE cache test results in FILE [disabled]
1335: -C, --config-cache alias for \`--cache-file=config.cache'
1336: -n, --no-create do not create output files
1337: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338:
1339: Installation directories:
1340: --prefix=PREFIX install architecture-independent files in PREFIX
1341: [$ac_default_prefix]
1342: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343: [PREFIX]
1344:
1345: By default, \`make install' will install all the files in
1346: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348: for instance \`--prefix=\$HOME'.
1349:
1350: For better control, use the options below.
1351:
1352: Fine tuning of the installation directories:
1353: --bindir=DIR user executables [EPREFIX/bin]
1354: --sbindir=DIR system admin executables [EPREFIX/sbin]
1355: --libexecdir=DIR program executables [EPREFIX/libexec]
1356: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359: --libdir=DIR object code libraries [EPREFIX/lib]
1360: --includedir=DIR C header files [PREFIX/include]
1361: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364: --infodir=DIR info documentation [DATAROOTDIR/info]
1365: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366: --mandir=DIR man documentation [DATAROOTDIR/man]
1367: --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1368: --htmldir=DIR html documentation [DOCDIR]
1369: --dvidir=DIR dvi documentation [DOCDIR]
1370: --pdfdir=DIR pdf documentation [DOCDIR]
1371: --psdir=DIR ps documentation [DOCDIR]
1372: _ACEOF
1373:
1374: cat <<\_ACEOF
1375:
1376: Program names:
1377: --program-prefix=PREFIX prepend PREFIX to installed program names
1378: --program-suffix=SUFFIX append SUFFIX to installed program names
1379: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380:
1381: System types:
1382: --build=BUILD configure for building on BUILD [guessed]
1383: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384: _ACEOF
1385: fi
1386:
1387: if test -n "$ac_init_help"; then
1388: case $ac_init_help in
1389: short | recursive ) echo "Configuration of iperf 3.1.3:";;
1390: esac
1391: cat <<\_ACEOF
1392:
1393: Optional Features:
1394: --disable-option-checking ignore unrecognized --enable/--with options
1395: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397: --enable-silent-rules less verbose build output (undo: "make V=1")
1398: --disable-silent-rules verbose build output (undo: "make V=0")
1399: --enable-maintainer-mode
1400: enable make rules and dependencies not useful (and
1401: sometimes confusing) to the casual installer
1402: --enable-dependency-tracking
1403: do not reject slow dependency extractors
1404: --disable-dependency-tracking
1405: speeds up one-time build
1406: --enable-shared[=PKGS] build shared libraries [default=yes]
1407: --enable-static[=PKGS] build static libraries [default=yes]
1408: --enable-fast-install[=PKGS]
1409: optimize for fast installation [default=yes]
1410: --disable-libtool-lock avoid locking (might break parallel builds)
1411:
1412: Optional Packages:
1413: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1416: both]
1417: --with-aix-soname=aix|svr4|both
1418: shared library versioning (aka "SONAME") variant to
1419: provide on AIX, [default=aix].
1420: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1422: compiler's sysroot if not specified).
1423:
1424: Some influential environment variables:
1425: CC C compiler command
1426: CFLAGS C compiler flags
1427: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428: nonstandard directory <lib dir>
1429: LIBS libraries to pass to the linker, e.g. -l<library>
1430: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431: you have headers in a nonstandard directory <include dir>
1432: LT_SYS_LIBRARY_PATH
1433: User-defined run-time library search path.
1434: CPP C preprocessor
1435:
1436: Use these variables to override the choices made by `configure' or to help
1437: it to find libraries and programs with nonstandard names/locations.
1438:
1439: Report bugs to <https://github.com/esnet/iperf>.
1440: iperf home page: <http://software.es.net/iperf/>.
1441: _ACEOF
1442: ac_status=$?
1443: fi
1444:
1445: if test "$ac_init_help" = "recursive"; then
1446: # If there are subdirs, report their specific --help.
1447: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448: test -d "$ac_dir" ||
1449: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450: continue
1451: ac_builddir=.
1452:
1453: case "$ac_dir" in
1454: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455: *)
1456: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457: # A ".." for each directory in $ac_dir_suffix.
1458: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459: case $ac_top_builddir_sub in
1460: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462: esac ;;
1463: esac
1464: ac_abs_top_builddir=$ac_pwd
1465: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466: # for backward compatibility:
1467: ac_top_builddir=$ac_top_build_prefix
1468:
1469: case $srcdir in
1470: .) # We are building in place.
1471: ac_srcdir=.
1472: ac_top_srcdir=$ac_top_builddir_sub
1473: ac_abs_top_srcdir=$ac_pwd ;;
1474: [\\/]* | ?:[\\/]* ) # Absolute name.
1475: ac_srcdir=$srcdir$ac_dir_suffix;
1476: ac_top_srcdir=$srcdir
1477: ac_abs_top_srcdir=$srcdir ;;
1478: *) # Relative name.
1479: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480: ac_top_srcdir=$ac_top_build_prefix$srcdir
1481: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482: esac
1483: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484:
1485: cd "$ac_dir" || { ac_status=$?; continue; }
1486: # Check for guested configure.
1487: if test -f "$ac_srcdir/configure.gnu"; then
1488: echo &&
1489: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490: elif test -f "$ac_srcdir/configure"; then
1491: echo &&
1492: $SHELL "$ac_srcdir/configure" --help=recursive
1493: else
1494: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495: fi || ac_status=$?
1496: cd "$ac_pwd" || { ac_status=$?; break; }
1497: done
1498: fi
1499:
1500: test -n "$ac_init_help" && exit $ac_status
1501: if $ac_init_version; then
1502: cat <<\_ACEOF
1503: iperf configure 3.1.3
1504: generated by GNU Autoconf 2.69
1505:
1506: Copyright (C) 2012 Free Software Foundation, Inc.
1507: This configure script is free software; the Free Software Foundation
1508: gives unlimited permission to copy, distribute and modify it.
1509: _ACEOF
1510: exit
1511: fi
1512:
1513: ## ------------------------ ##
1514: ## Autoconf initialization. ##
1515: ## ------------------------ ##
1516:
1517: # ac_fn_c_try_compile LINENO
1518: # --------------------------
1519: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520: ac_fn_c_try_compile ()
1521: {
1522: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523: rm -f conftest.$ac_objext
1524: if { { ac_try="$ac_compile"
1525: case "(($ac_try" in
1526: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527: *) ac_try_echo=$ac_try;;
1528: esac
1529: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530: $as_echo "$ac_try_echo"; } >&5
1531: (eval "$ac_compile") 2>conftest.err
1532: ac_status=$?
1533: if test -s conftest.err; then
1534: grep -v '^ *+' conftest.err >conftest.er1
1535: cat conftest.er1 >&5
1536: mv -f conftest.er1 conftest.err
1537: fi
1538: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539: test $ac_status = 0; } && {
1540: test -z "$ac_c_werror_flag" ||
1541: test ! -s conftest.err
1542: } && test -s conftest.$ac_objext; then :
1543: ac_retval=0
1544: else
1545: $as_echo "$as_me: failed program was:" >&5
1546: sed 's/^/| /' conftest.$ac_ext >&5
1547:
1548: ac_retval=1
1549: fi
1550: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551: as_fn_set_status $ac_retval
1552:
1553: } # ac_fn_c_try_compile
1554:
1555: # ac_fn_c_try_link LINENO
1556: # -----------------------
1557: # Try to link conftest.$ac_ext, and return whether this succeeded.
1558: ac_fn_c_try_link ()
1559: {
1560: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561: rm -f conftest.$ac_objext conftest$ac_exeext
1562: if { { ac_try="$ac_link"
1563: case "(($ac_try" in
1564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565: *) ac_try_echo=$ac_try;;
1566: esac
1567: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568: $as_echo "$ac_try_echo"; } >&5
1569: (eval "$ac_link") 2>conftest.err
1570: ac_status=$?
1571: if test -s conftest.err; then
1572: grep -v '^ *+' conftest.err >conftest.er1
1573: cat conftest.er1 >&5
1574: mv -f conftest.er1 conftest.err
1575: fi
1576: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577: test $ac_status = 0; } && {
1578: test -z "$ac_c_werror_flag" ||
1579: test ! -s conftest.err
1580: } && test -s conftest$ac_exeext && {
1581: test "$cross_compiling" = yes ||
1582: test -x conftest$ac_exeext
1583: }; then :
1584: ac_retval=0
1585: else
1586: $as_echo "$as_me: failed program was:" >&5
1587: sed 's/^/| /' conftest.$ac_ext >&5
1588:
1589: ac_retval=1
1590: fi
1591: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1592: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1593: # interfere with the next link command; also delete a directory that is
1594: # left behind by Apple's compiler. We do this before executing the actions.
1595: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597: as_fn_set_status $ac_retval
1598:
1599: } # ac_fn_c_try_link
1600:
1601: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602: # -------------------------------------------------------
1603: # Tests whether HEADER exists and can be compiled using the include files in
1604: # INCLUDES, setting the cache variable VAR accordingly.
1605: ac_fn_c_check_header_compile ()
1606: {
1607: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609: $as_echo_n "checking for $2... " >&6; }
1610: if eval \${$3+:} false; then :
1611: $as_echo_n "(cached) " >&6
1612: else
1613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614: /* end confdefs.h. */
1615: $4
1616: #include <$2>
1617: _ACEOF
1618: if ac_fn_c_try_compile "$LINENO"; then :
1619: eval "$3=yes"
1620: else
1621: eval "$3=no"
1622: fi
1623: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624: fi
1625: eval ac_res=\$$3
1626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627: $as_echo "$ac_res" >&6; }
1628: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629:
1630: } # ac_fn_c_check_header_compile
1631:
1632: # ac_fn_c_try_cpp LINENO
1633: # ----------------------
1634: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635: ac_fn_c_try_cpp ()
1636: {
1637: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638: if { { ac_try="$ac_cpp conftest.$ac_ext"
1639: case "(($ac_try" in
1640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641: *) ac_try_echo=$ac_try;;
1642: esac
1643: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644: $as_echo "$ac_try_echo"; } >&5
1645: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646: ac_status=$?
1647: if test -s conftest.err; then
1648: grep -v '^ *+' conftest.err >conftest.er1
1649: cat conftest.er1 >&5
1650: mv -f conftest.er1 conftest.err
1651: fi
1652: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653: test $ac_status = 0; } > conftest.i && {
1654: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1655: test ! -s conftest.err
1656: }; then :
1657: ac_retval=0
1658: else
1659: $as_echo "$as_me: failed program was:" >&5
1660: sed 's/^/| /' conftest.$ac_ext >&5
1661:
1662: ac_retval=1
1663: fi
1664: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665: as_fn_set_status $ac_retval
1666:
1667: } # ac_fn_c_try_cpp
1668:
1669: # ac_fn_c_try_run LINENO
1670: # ----------------------
1671: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672: # that executables *can* be run.
1673: ac_fn_c_try_run ()
1674: {
1675: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676: if { { ac_try="$ac_link"
1677: case "(($ac_try" in
1678: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679: *) ac_try_echo=$ac_try;;
1680: esac
1681: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682: $as_echo "$ac_try_echo"; } >&5
1683: (eval "$ac_link") 2>&5
1684: ac_status=$?
1685: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687: { { case "(($ac_try" in
1688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689: *) ac_try_echo=$ac_try;;
1690: esac
1691: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692: $as_echo "$ac_try_echo"; } >&5
1693: (eval "$ac_try") 2>&5
1694: ac_status=$?
1695: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696: test $ac_status = 0; }; }; then :
1697: ac_retval=0
1698: else
1699: $as_echo "$as_me: program exited with status $ac_status" >&5
1700: $as_echo "$as_me: failed program was:" >&5
1701: sed 's/^/| /' conftest.$ac_ext >&5
1702:
1703: ac_retval=$ac_status
1704: fi
1705: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707: as_fn_set_status $ac_retval
1708:
1709: } # ac_fn_c_try_run
1710:
1711: # ac_fn_c_check_func LINENO FUNC VAR
1712: # ----------------------------------
1713: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1714: ac_fn_c_check_func ()
1715: {
1716: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718: $as_echo_n "checking for $2... " >&6; }
1719: if eval \${$3+:} false; then :
1720: $as_echo_n "(cached) " >&6
1721: else
1722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723: /* end confdefs.h. */
1724: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1725: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1726: #define $2 innocuous_$2
1727:
1728: /* System header to define __stub macros and hopefully few prototypes,
1729: which can conflict with char $2 (); below.
1730: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1731: <limits.h> exists even on freestanding compilers. */
1732:
1733: #ifdef __STDC__
1734: # include <limits.h>
1735: #else
1736: # include <assert.h>
1737: #endif
1738:
1739: #undef $2
1740:
1741: /* Override any GCC internal prototype to avoid an error.
1742: Use char because int might match the return type of a GCC
1743: builtin and then its argument prototype would still apply. */
1744: #ifdef __cplusplus
1745: extern "C"
1746: #endif
1747: char $2 ();
1748: /* The GNU C library defines this for functions which it implements
1749: to always fail with ENOSYS. Some functions are actually named
1750: something starting with __ and the normal name is an alias. */
1751: #if defined __stub_$2 || defined __stub___$2
1752: choke me
1753: #endif
1754:
1755: int
1756: main ()
1757: {
1758: return $2 ();
1759: ;
1760: return 0;
1761: }
1762: _ACEOF
1763: if ac_fn_c_try_link "$LINENO"; then :
1764: eval "$3=yes"
1765: else
1766: eval "$3=no"
1767: fi
1768: rm -f core conftest.err conftest.$ac_objext \
1769: conftest$ac_exeext conftest.$ac_ext
1770: fi
1771: eval ac_res=\$$3
1772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773: $as_echo "$ac_res" >&6; }
1774: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775:
1776: } # ac_fn_c_check_func
1777:
1778: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779: # -------------------------------------------------------
1780: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781: # the include files in INCLUDES and setting the cache variable VAR
1782: # accordingly.
1783: ac_fn_c_check_header_mongrel ()
1784: {
1785: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786: if eval \${$3+:} false; then :
1787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788: $as_echo_n "checking for $2... " >&6; }
1789: if eval \${$3+:} false; then :
1790: $as_echo_n "(cached) " >&6
1791: fi
1792: eval ac_res=\$$3
1793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794: $as_echo "$ac_res" >&6; }
1795: else
1796: # Is the header compilable?
1797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798: $as_echo_n "checking $2 usability... " >&6; }
1799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800: /* end confdefs.h. */
1801: $4
1802: #include <$2>
1803: _ACEOF
1804: if ac_fn_c_try_compile "$LINENO"; then :
1805: ac_header_compiler=yes
1806: else
1807: ac_header_compiler=no
1808: fi
1809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811: $as_echo "$ac_header_compiler" >&6; }
1812:
1813: # Is the header present?
1814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815: $as_echo_n "checking $2 presence... " >&6; }
1816: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817: /* end confdefs.h. */
1818: #include <$2>
1819: _ACEOF
1820: if ac_fn_c_try_cpp "$LINENO"; then :
1821: ac_header_preproc=yes
1822: else
1823: ac_header_preproc=no
1824: fi
1825: rm -f conftest.err conftest.i conftest.$ac_ext
1826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827: $as_echo "$ac_header_preproc" >&6; }
1828:
1829: # So? What about this header?
1830: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831: yes:no: )
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836: ;;
1837: no:yes:* )
1838: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1841: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1842: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1845: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1846: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848: ( $as_echo "## --------------------------------------------- ##
1849: ## Report this to https://github.com/esnet/iperf ##
1850: ## --------------------------------------------- ##"
1851: ) | sed "s/^/$as_me: WARNING: /" >&2
1852: ;;
1853: esac
1854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855: $as_echo_n "checking for $2... " >&6; }
1856: if eval \${$3+:} false; then :
1857: $as_echo_n "(cached) " >&6
1858: else
1859: eval "$3=\$ac_header_compiler"
1860: fi
1861: eval ac_res=\$$3
1862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863: $as_echo "$ac_res" >&6; }
1864: fi
1865: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866:
1867: } # ac_fn_c_check_header_mongrel
1868: cat >config.log <<_ACEOF
1869: This file contains any messages produced by compilers while
1870: running configure, to aid debugging if configure makes a mistake.
1871:
1872: It was created by iperf $as_me 3.1.3, which was
1873: generated by GNU Autoconf 2.69. Invocation command line was
1874:
1875: $ $0 $@
1876:
1877: _ACEOF
1878: exec 5>>config.log
1879: {
1880: cat <<_ASUNAME
1881: ## --------- ##
1882: ## Platform. ##
1883: ## --------- ##
1884:
1885: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890:
1891: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893:
1894: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901:
1902: _ASUNAME
1903:
1904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905: for as_dir in $PATH
1906: do
1907: IFS=$as_save_IFS
1908: test -z "$as_dir" && as_dir=.
1909: $as_echo "PATH: $as_dir"
1910: done
1911: IFS=$as_save_IFS
1912:
1913: } >&5
1914:
1915: cat >&5 <<_ACEOF
1916:
1917:
1918: ## ----------- ##
1919: ## Core tests. ##
1920: ## ----------- ##
1921:
1922: _ACEOF
1923:
1924:
1925: # Keep a trace of the command line.
1926: # Strip out --no-create and --no-recursion so they do not pile up.
1927: # Strip out --silent because we don't want to record it for future runs.
1928: # Also quote any args containing shell meta-characters.
1929: # Make two passes to allow for proper duplicate-argument suppression.
1930: ac_configure_args=
1931: ac_configure_args0=
1932: ac_configure_args1=
1933: ac_must_keep_next=false
1934: for ac_pass in 1 2
1935: do
1936: for ac_arg
1937: do
1938: case $ac_arg in
1939: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941: | -silent | --silent | --silen | --sile | --sil)
1942: continue ;;
1943: *\'*)
1944: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945: esac
1946: case $ac_pass in
1947: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948: 2)
1949: as_fn_append ac_configure_args1 " '$ac_arg'"
1950: if test $ac_must_keep_next = true; then
1951: ac_must_keep_next=false # Got value, back to normal.
1952: else
1953: case $ac_arg in
1954: *=* | --config-cache | -C | -disable-* | --disable-* \
1955: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957: | -with-* | --with-* | -without-* | --without-* | --x)
1958: case "$ac_configure_args0 " in
1959: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960: esac
1961: ;;
1962: -* ) ac_must_keep_next=true ;;
1963: esac
1964: fi
1965: as_fn_append ac_configure_args " '$ac_arg'"
1966: ;;
1967: esac
1968: done
1969: done
1970: { ac_configure_args0=; unset ac_configure_args0;}
1971: { ac_configure_args1=; unset ac_configure_args1;}
1972:
1973: # When interrupted or exit'd, cleanup temporary files, and complete
1974: # config.log. We remove comments because anyway the quotes in there
1975: # would cause problems or look ugly.
1976: # WARNING: Use '\'' to represent an apostrophe within the trap.
1977: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978: trap 'exit_status=$?
1979: # Save into config.log some information that might help in debugging.
1980: {
1981: echo
1982:
1983: $as_echo "## ---------------- ##
1984: ## Cache variables. ##
1985: ## ---------------- ##"
1986: echo
1987: # The following way of writing the cache mishandles newlines in values,
1988: (
1989: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1990: eval ac_val=\$$ac_var
1991: case $ac_val in #(
1992: *${as_nl}*)
1993: case $ac_var in #(
1994: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1995: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1996: esac
1997: case $ac_var in #(
1998: _ | IFS | as_nl) ;; #(
1999: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2000: *) { eval $ac_var=; unset $ac_var;} ;;
2001: esac ;;
2002: esac
2003: done
2004: (set) 2>&1 |
2005: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2006: *${as_nl}ac_space=\ *)
2007: sed -n \
2008: "s/'\''/'\''\\\\'\'''\''/g;
2009: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2010: ;; #(
2011: *)
2012: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013: ;;
2014: esac |
2015: sort
2016: )
2017: echo
2018:
2019: $as_echo "## ----------------- ##
2020: ## Output variables. ##
2021: ## ----------------- ##"
2022: echo
2023: for ac_var in $ac_subst_vars
2024: do
2025: eval ac_val=\$$ac_var
2026: case $ac_val in
2027: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028: esac
2029: $as_echo "$ac_var='\''$ac_val'\''"
2030: done | sort
2031: echo
2032:
2033: if test -n "$ac_subst_files"; then
2034: $as_echo "## ------------------- ##
2035: ## File substitutions. ##
2036: ## ------------------- ##"
2037: echo
2038: for ac_var in $ac_subst_files
2039: do
2040: eval ac_val=\$$ac_var
2041: case $ac_val in
2042: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043: esac
2044: $as_echo "$ac_var='\''$ac_val'\''"
2045: done | sort
2046: echo
2047: fi
2048:
2049: if test -s confdefs.h; then
2050: $as_echo "## ----------- ##
2051: ## confdefs.h. ##
2052: ## ----------- ##"
2053: echo
2054: cat confdefs.h
2055: echo
2056: fi
2057: test "$ac_signal" != 0 &&
2058: $as_echo "$as_me: caught signal $ac_signal"
2059: $as_echo "$as_me: exit $exit_status"
2060: } >&5
2061: rm -f core *.core core.conftest.* &&
2062: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2063: exit $exit_status
2064: ' 0
2065: for ac_signal in 1 2 13 15; do
2066: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2067: done
2068: ac_signal=0
2069:
2070: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2071: rm -f -r conftest* confdefs.h
2072:
2073: $as_echo "/* confdefs.h */" > confdefs.h
2074:
2075: # Predefined preprocessor variables.
2076:
2077: cat >>confdefs.h <<_ACEOF
2078: #define PACKAGE_NAME "$PACKAGE_NAME"
2079: _ACEOF
2080:
2081: cat >>confdefs.h <<_ACEOF
2082: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2083: _ACEOF
2084:
2085: cat >>confdefs.h <<_ACEOF
2086: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2087: _ACEOF
2088:
2089: cat >>confdefs.h <<_ACEOF
2090: #define PACKAGE_STRING "$PACKAGE_STRING"
2091: _ACEOF
2092:
2093: cat >>confdefs.h <<_ACEOF
2094: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2095: _ACEOF
2096:
2097: cat >>confdefs.h <<_ACEOF
2098: #define PACKAGE_URL "$PACKAGE_URL"
2099: _ACEOF
2100:
2101:
2102: # Let the site file select an alternate cache file if it wants to.
2103: # Prefer an explicitly selected file to automatically selected ones.
2104: ac_site_file1=NONE
2105: ac_site_file2=NONE
2106: if test -n "$CONFIG_SITE"; then
2107: # We do not want a PATH search for config.site.
2108: case $CONFIG_SITE in #((
2109: -*) ac_site_file1=./$CONFIG_SITE;;
2110: */*) ac_site_file1=$CONFIG_SITE;;
2111: *) ac_site_file1=./$CONFIG_SITE;;
2112: esac
2113: elif test "x$prefix" != xNONE; then
2114: ac_site_file1=$prefix/share/config.site
2115: ac_site_file2=$prefix/etc/config.site
2116: else
2117: ac_site_file1=$ac_default_prefix/share/config.site
2118: ac_site_file2=$ac_default_prefix/etc/config.site
2119: fi
2120: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121: do
2122: test "x$ac_site_file" = xNONE && continue
2123: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2124: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2126: sed 's/^/| /' "$ac_site_file" >&5
2127: . "$ac_site_file" \
2128: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130: as_fn_error $? "failed to load site script $ac_site_file
2131: See \`config.log' for more details" "$LINENO" 5; }
2132: fi
2133: done
2134:
2135: if test -r "$cache_file"; then
2136: # Some versions of bash will fail to source /dev/null (special files
2137: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2138: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2139: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2140: $as_echo "$as_me: loading cache $cache_file" >&6;}
2141: case $cache_file in
2142: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2143: *) . "./$cache_file";;
2144: esac
2145: fi
2146: else
2147: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2148: $as_echo "$as_me: creating cache $cache_file" >&6;}
2149: >$cache_file
2150: fi
2151:
2152: # Check that the precious variables saved in the cache have kept the same
2153: # value.
2154: ac_cache_corrupted=false
2155: for ac_var in $ac_precious_vars; do
2156: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2157: eval ac_new_set=\$ac_env_${ac_var}_set
2158: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2159: eval ac_new_val=\$ac_env_${ac_var}_value
2160: case $ac_old_set,$ac_new_set in
2161: set,)
2162: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2163: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2164: ac_cache_corrupted=: ;;
2165: ,set)
2166: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2167: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2168: ac_cache_corrupted=: ;;
2169: ,);;
2170: *)
2171: if test "x$ac_old_val" != "x$ac_new_val"; then
2172: # differences in whitespace do not lead to failure.
2173: ac_old_val_w=`echo x $ac_old_val`
2174: ac_new_val_w=`echo x $ac_new_val`
2175: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2176: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2177: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2178: ac_cache_corrupted=:
2179: else
2180: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2181: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2182: eval $ac_var=\$ac_old_val
2183: fi
2184: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2185: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2186: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2187: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2188: fi;;
2189: esac
2190: # Pass precious variables to config.status.
2191: if test "$ac_new_set" = set; then
2192: case $ac_new_val in
2193: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2194: *) ac_arg=$ac_var=$ac_new_val ;;
2195: esac
2196: case " $ac_configure_args " in
2197: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2198: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2199: esac
2200: fi
2201: done
2202: if $ac_cache_corrupted; then
2203: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2206: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2207: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2208: fi
2209: ## -------------------- ##
2210: ## Main body of script. ##
2211: ## -------------------- ##
2212:
2213: ac_ext=c
2214: ac_cpp='$CPP $CPPFLAGS'
2215: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2218:
2219:
2220: ac_ext=c
2221: ac_cpp='$CPP $CPPFLAGS'
2222: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225:
2226:
2227: # Specify where the auxiliary files created by configure should go. The config
2228: # directory is picked so that they don't clutter up more useful directories.
2229: ac_aux_dir=
2230: for ac_dir in config "$srcdir"/config; do
2231: if test -f "$ac_dir/install-sh"; then
2232: ac_aux_dir=$ac_dir
2233: ac_install_sh="$ac_aux_dir/install-sh -c"
2234: break
2235: elif test -f "$ac_dir/install.sh"; then
2236: ac_aux_dir=$ac_dir
2237: ac_install_sh="$ac_aux_dir/install.sh -c"
2238: break
2239: elif test -f "$ac_dir/shtool"; then
2240: ac_aux_dir=$ac_dir
2241: ac_install_sh="$ac_aux_dir/shtool install -c"
2242: break
2243: fi
2244: done
2245: if test -z "$ac_aux_dir"; then
2246: as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2247: fi
2248:
2249: # These three variables are undocumented and unsupported,
2250: # and are intended to be withdrawn in a future Autoconf release.
2251: # They can cause serious problems if a builder's source tree is in a directory
2252: # whose full name contains unusual characters.
2253: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2254: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2255: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2256:
2257:
2258:
2259:
2260: # Initialize the automake system
2261: am__api_version='1.15'
2262:
2263: # Find a good install program. We prefer a C program (faster),
2264: # so one script is as good as another. But avoid the broken or
2265: # incompatible versions:
2266: # SysV /etc/install, /usr/sbin/install
2267: # SunOS /usr/etc/install
2268: # IRIX /sbin/install
2269: # AIX /bin/install
2270: # AmigaOS /C/install, which installs bootblocks on floppy discs
2271: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2272: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2273: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2274: # OS/2's system install, which has a completely different semantic
2275: # ./install, which can be erroneously created by make from ./install.sh.
2276: # Reject install programs that cannot install multiple files.
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2278: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2279: if test -z "$INSTALL"; then
2280: if ${ac_cv_path_install+:} false; then :
2281: $as_echo_n "(cached) " >&6
2282: else
2283: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284: for as_dir in $PATH
2285: do
2286: IFS=$as_save_IFS
2287: test -z "$as_dir" && as_dir=.
2288: # Account for people who put trailing slashes in PATH elements.
2289: case $as_dir/ in #((
2290: ./ | .// | /[cC]/* | \
2291: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2292: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2293: /usr/ucb/* ) ;;
2294: *)
2295: # OSF1 and SCO ODT 3.0 have their own names for install.
2296: # Don't use installbsd from OSF since it installs stuff as root
2297: # by default.
2298: for ac_prog in ginstall scoinst install; do
2299: for ac_exec_ext in '' $ac_executable_extensions; do
2300: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2301: if test $ac_prog = install &&
2302: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303: # AIX install. It has an incompatible calling convention.
2304: :
2305: elif test $ac_prog = install &&
2306: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307: # program-specific install script used by HP pwplus--don't use.
2308: :
2309: else
2310: rm -rf conftest.one conftest.two conftest.dir
2311: echo one > conftest.one
2312: echo two > conftest.two
2313: mkdir conftest.dir
2314: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2315: test -s conftest.one && test -s conftest.two &&
2316: test -s conftest.dir/conftest.one &&
2317: test -s conftest.dir/conftest.two
2318: then
2319: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2320: break 3
2321: fi
2322: fi
2323: fi
2324: done
2325: done
2326: ;;
2327: esac
2328:
2329: done
2330: IFS=$as_save_IFS
2331:
2332: rm -rf conftest.one conftest.two conftest.dir
2333:
2334: fi
2335: if test "${ac_cv_path_install+set}" = set; then
2336: INSTALL=$ac_cv_path_install
2337: else
2338: # As a last resort, use the slow shell script. Don't cache a
2339: # value for INSTALL within a source directory, because that will
2340: # break other packages using the cache if that directory is
2341: # removed, or if the value is a relative name.
2342: INSTALL=$ac_install_sh
2343: fi
2344: fi
2345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2346: $as_echo "$INSTALL" >&6; }
2347:
2348: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2349: # It thinks the first close brace ends the variable substitution.
2350: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2351:
2352: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2353:
2354: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2355:
2356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2357: $as_echo_n "checking whether build environment is sane... " >&6; }
2358: # Reject unsafe characters in $srcdir or the absolute working directory
2359: # name. Accept space and tab only in the latter.
2360: am_lf='
2361: '
2362: case `pwd` in
2363: *[\\\"\#\$\&\'\`$am_lf]*)
2364: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365: esac
2366: case $srcdir in
2367: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2368: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2369: esac
2370:
2371: # Do 'set' in a subshell so we don't clobber the current shell's
2372: # arguments. Must try -L first in case configure is actually a
2373: # symlink; some systems play weird games with the mod time of symlinks
2374: # (eg FreeBSD returns the mod time of the symlink's containing
2375: # directory).
2376: if (
2377: am_has_slept=no
2378: for am_try in 1 2; do
2379: echo "timestamp, slept: $am_has_slept" > conftest.file
2380: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2381: if test "$*" = "X"; then
2382: # -L didn't work.
2383: set X `ls -t "$srcdir/configure" conftest.file`
2384: fi
2385: if test "$*" != "X $srcdir/configure conftest.file" \
2386: && test "$*" != "X conftest.file $srcdir/configure"; then
2387:
2388: # If neither matched, then we have a broken ls. This can happen
2389: # if, for instance, CONFIG_SHELL is bash and it inherits a
2390: # broken ls alias from the environment. This has actually
2391: # happened. Such a system could not be considered "sane".
2392: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2393: alias in your environment" "$LINENO" 5
2394: fi
2395: if test "$2" = conftest.file || test $am_try -eq 2; then
2396: break
2397: fi
2398: # Just in case.
2399: sleep 1
2400: am_has_slept=yes
2401: done
2402: test "$2" = conftest.file
2403: )
2404: then
2405: # Ok.
2406: :
2407: else
2408: as_fn_error $? "newly created file is older than distributed files!
2409: Check your system clock" "$LINENO" 5
2410: fi
2411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412: $as_echo "yes" >&6; }
2413: # If we didn't sleep, we still need to ensure time stamps of config.status and
2414: # generated files are strictly newer.
2415: am_sleep_pid=
2416: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2417: ( sleep 1 ) &
2418: am_sleep_pid=$!
2419: fi
2420:
2421: rm -f conftest.file
2422:
2423: test "$program_prefix" != NONE &&
2424: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2425: # Use a double $ so make ignores it.
2426: test "$program_suffix" != NONE &&
2427: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428: # Double any \ or $.
2429: # By default was `s,x,x', remove it if useless.
2430: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2432:
2433: # Expand $ac_aux_dir to an absolute path.
2434: am_aux_dir=`cd "$ac_aux_dir" && pwd`
2435:
2436: if test x"${MISSING+set}" != xset; then
2437: case $am_aux_dir in
2438: *\ * | *\ *)
2439: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2440: *)
2441: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2442: esac
2443: fi
2444: # Use eval to expand $SHELL
2445: if eval "$MISSING --is-lightweight"; then
2446: am_missing_run="$MISSING "
2447: else
2448: am_missing_run=
2449: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2450: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2451: fi
2452:
2453: if test x"${install_sh+set}" != xset; then
2454: case $am_aux_dir in
2455: *\ * | *\ *)
2456: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2457: *)
2458: install_sh="\${SHELL} $am_aux_dir/install-sh"
2459: esac
2460: fi
2461:
2462: # Installed binaries are usually stripped using 'strip' when the user
2463: # run "make install-strip". However 'strip' might not be the right
2464: # tool to use in cross-compilation environments, therefore Automake
2465: # will honor the 'STRIP' environment variable to overrule this program.
2466: if test "$cross_compiling" != no; then
2467: if test -n "$ac_tool_prefix"; then
2468: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469: set dummy ${ac_tool_prefix}strip; ac_word=$2
2470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471: $as_echo_n "checking for $ac_word... " >&6; }
2472: if ${ac_cv_prog_STRIP+:} false; then :
2473: $as_echo_n "(cached) " >&6
2474: else
2475: if test -n "$STRIP"; then
2476: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477: else
2478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479: for as_dir in $PATH
2480: do
2481: IFS=$as_save_IFS
2482: test -z "$as_dir" && as_dir=.
2483: for ac_exec_ext in '' $ac_executable_extensions; do
2484: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487: break 2
2488: fi
2489: done
2490: done
2491: IFS=$as_save_IFS
2492:
2493: fi
2494: fi
2495: STRIP=$ac_cv_prog_STRIP
2496: if test -n "$STRIP"; then
2497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498: $as_echo "$STRIP" >&6; }
2499: else
2500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501: $as_echo "no" >&6; }
2502: fi
2503:
2504:
2505: fi
2506: if test -z "$ac_cv_prog_STRIP"; then
2507: ac_ct_STRIP=$STRIP
2508: # Extract the first word of "strip", so it can be a program name with args.
2509: set dummy strip; ac_word=$2
2510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511: $as_echo_n "checking for $ac_word... " >&6; }
2512: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513: $as_echo_n "(cached) " >&6
2514: else
2515: if test -n "$ac_ct_STRIP"; then
2516: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517: else
2518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519: for as_dir in $PATH
2520: do
2521: IFS=$as_save_IFS
2522: test -z "$as_dir" && as_dir=.
2523: for ac_exec_ext in '' $ac_executable_extensions; do
2524: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525: ac_cv_prog_ac_ct_STRIP="strip"
2526: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527: break 2
2528: fi
2529: done
2530: done
2531: IFS=$as_save_IFS
2532:
2533: fi
2534: fi
2535: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536: if test -n "$ac_ct_STRIP"; then
2537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538: $as_echo "$ac_ct_STRIP" >&6; }
2539: else
2540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541: $as_echo "no" >&6; }
2542: fi
2543:
2544: if test "x$ac_ct_STRIP" = x; then
2545: STRIP=":"
2546: else
2547: case $cross_compiling:$ac_tool_warned in
2548: yes:)
2549: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551: ac_tool_warned=yes ;;
2552: esac
2553: STRIP=$ac_ct_STRIP
2554: fi
2555: else
2556: STRIP="$ac_cv_prog_STRIP"
2557: fi
2558:
2559: fi
2560: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561:
2562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564: if test -z "$MKDIR_P"; then
2565: if ${ac_cv_path_mkdir+:} false; then :
2566: $as_echo_n "(cached) " >&6
2567: else
2568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2570: do
2571: IFS=$as_save_IFS
2572: test -z "$as_dir" && as_dir=.
2573: for ac_prog in mkdir gmkdir; do
2574: for ac_exec_ext in '' $ac_executable_extensions; do
2575: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2576: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2577: 'mkdir (GNU coreutils) '* | \
2578: 'mkdir (coreutils) '* | \
2579: 'mkdir (fileutils) '4.1*)
2580: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2581: break 3;;
2582: esac
2583: done
2584: done
2585: done
2586: IFS=$as_save_IFS
2587:
2588: fi
2589:
2590: test -d ./--version && rmdir ./--version
2591: if test "${ac_cv_path_mkdir+set}" = set; then
2592: MKDIR_P="$ac_cv_path_mkdir -p"
2593: else
2594: # As a last resort, use the slow shell script. Don't cache a
2595: # value for MKDIR_P within a source directory, because that will
2596: # break other packages using the cache if that directory is
2597: # removed, or if the value is a relative name.
2598: MKDIR_P="$ac_install_sh -d"
2599: fi
2600: fi
2601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602: $as_echo "$MKDIR_P" >&6; }
2603:
2604: for ac_prog in gawk mawk nawk awk
2605: do
2606: # Extract the first word of "$ac_prog", so it can be a program name with args.
2607: set dummy $ac_prog; ac_word=$2
2608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609: $as_echo_n "checking for $ac_word... " >&6; }
2610: if ${ac_cv_prog_AWK+:} false; then :
2611: $as_echo_n "(cached) " >&6
2612: else
2613: if test -n "$AWK"; then
2614: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2615: else
2616: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617: for as_dir in $PATH
2618: do
2619: IFS=$as_save_IFS
2620: test -z "$as_dir" && as_dir=.
2621: for ac_exec_ext in '' $ac_executable_extensions; do
2622: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623: ac_cv_prog_AWK="$ac_prog"
2624: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625: break 2
2626: fi
2627: done
2628: done
2629: IFS=$as_save_IFS
2630:
2631: fi
2632: fi
2633: AWK=$ac_cv_prog_AWK
2634: if test -n "$AWK"; then
2635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2636: $as_echo "$AWK" >&6; }
2637: else
2638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639: $as_echo "no" >&6; }
2640: fi
2641:
2642:
2643: test -n "$AWK" && break
2644: done
2645:
2646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2647: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2648: set x ${MAKE-make}
2649: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2651: $as_echo_n "(cached) " >&6
2652: else
2653: cat >conftest.make <<\_ACEOF
2654: SHELL = /bin/sh
2655: all:
2656: @echo '@@@%%%=$(MAKE)=@@@%%%'
2657: _ACEOF
2658: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2659: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2660: *@@@%%%=?*=@@@%%%*)
2661: eval ac_cv_prog_make_${ac_make}_set=yes;;
2662: *)
2663: eval ac_cv_prog_make_${ac_make}_set=no;;
2664: esac
2665: rm -f conftest.make
2666: fi
2667: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669: $as_echo "yes" >&6; }
2670: SET_MAKE=
2671: else
2672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673: $as_echo "no" >&6; }
2674: SET_MAKE="MAKE=${MAKE-make}"
2675: fi
2676:
2677: rm -rf .tst 2>/dev/null
2678: mkdir .tst 2>/dev/null
2679: if test -d .tst; then
2680: am__leading_dot=.
2681: else
2682: am__leading_dot=_
2683: fi
2684: rmdir .tst 2>/dev/null
2685:
2686: # Check whether --enable-silent-rules was given.
2687: if test "${enable_silent_rules+set}" = set; then :
2688: enableval=$enable_silent_rules;
2689: fi
2690:
2691: case $enable_silent_rules in # (((
2692: yes) AM_DEFAULT_VERBOSITY=0;;
2693: no) AM_DEFAULT_VERBOSITY=1;;
2694: *) AM_DEFAULT_VERBOSITY=1;;
2695: esac
2696: am_make=${MAKE-make}
2697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2698: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2699: if ${am_cv_make_support_nested_variables+:} false; then :
2700: $as_echo_n "(cached) " >&6
2701: else
2702: if $as_echo 'TRUE=$(BAR$(V))
2703: BAR0=false
2704: BAR1=true
2705: V=1
2706: am__doit:
2707: @$(TRUE)
2708: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2709: am_cv_make_support_nested_variables=yes
2710: else
2711: am_cv_make_support_nested_variables=no
2712: fi
2713: fi
2714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2715: $as_echo "$am_cv_make_support_nested_variables" >&6; }
2716: if test $am_cv_make_support_nested_variables = yes; then
2717: AM_V='$(V)'
2718: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2719: else
2720: AM_V=$AM_DEFAULT_VERBOSITY
2721: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2722: fi
2723: AM_BACKSLASH='\'
2724:
2725: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2726: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2727: # is not polluted with repeated "-I."
2728: am__isrc=' -I$(srcdir)'
2729: # test to see if srcdir already configured
2730: if test -f $srcdir/config.status; then
2731: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2732: fi
2733: fi
2734:
2735: # test whether we have cygpath
2736: if test -z "$CYGPATH_W"; then
2737: if (cygpath --version) >/dev/null 2>/dev/null; then
2738: CYGPATH_W='cygpath -w'
2739: else
2740: CYGPATH_W=echo
2741: fi
2742: fi
2743:
2744:
2745: # Define the identity of the package.
2746: PACKAGE='iperf'
2747: VERSION='3.1.3'
2748:
2749:
2750: cat >>confdefs.h <<_ACEOF
2751: #define PACKAGE "$PACKAGE"
2752: _ACEOF
2753:
2754:
2755: cat >>confdefs.h <<_ACEOF
2756: #define VERSION "$VERSION"
2757: _ACEOF
2758:
2759: # Some tools Automake needs.
2760:
2761: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2762:
2763:
2764: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2765:
2766:
2767: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2768:
2769:
2770: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2771:
2772:
2773: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2774:
2775: # For better backward compatibility. To be removed once Automake 1.9.x
2776: # dies out for good. For more background, see:
2777: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2778: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2779: mkdir_p='$(MKDIR_P)'
2780:
2781: # We need awk for the "check" target (and possibly the TAP driver). The
2782: # system "awk" is bad on some platforms.
2783: # Always define AMTAR for backward compatibility. Yes, it's still used
2784: # in the wild :-( We should find a proper way to deprecate it ...
2785: AMTAR='$${TAR-tar}'
2786:
2787:
2788: # We'll loop over all known methods to create a tar archive until one works.
2789: _am_tools='gnutar pax cpio none'
2790:
2791: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2792:
2793:
2794:
2795:
2796:
2797:
2798: # POSIX will say in a future version that running "rm -f" with no argument
2799: # is OK; and we want to be able to make that assumption in our Makefile
2800: # recipes. So use an aggressive probe to check that the usage we want is
2801: # actually supported "in the wild" to an acceptable degree.
2802: # See automake bug#10828.
2803: # To make any issue more visible, cause the running configure to be aborted
2804: # by default if the 'rm' program in use doesn't match our expectations; the
2805: # user can still override this though.
2806: if rm -f && rm -fr && rm -rf; then : OK; else
2807: cat >&2 <<'END'
2808: Oops!
2809:
2810: Your 'rm' program seems unable to run without file operands specified
2811: on the command line, even when the '-f' option is present. This is contrary
2812: to the behaviour of most rm programs out there, and not conforming with
2813: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2814:
2815: Please tell bug-automake@gnu.org about your system, including the value
2816: of your $PATH and any error possibly output before this message. This
2817: can help us improve future automake versions.
2818:
2819: END
2820: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2821: echo 'Configuration will proceed anyway, since you have set the' >&2
2822: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2823: echo >&2
2824: else
2825: cat >&2 <<'END'
2826: Aborting the configuration process, to ensure you take notice of the issue.
2827:
2828: You can download and install GNU coreutils to get an 'rm' implementation
2829: that behaves properly: <http://www.gnu.org/software/coreutils/>.
2830:
2831: If you want to complete the configuration process using your problematic
2832: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2833: to "yes", and re-run configure.
2834:
2835: END
2836: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2837: fi
2838: fi
2839:
2840:
2841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2842: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2843: # Check whether --enable-maintainer-mode was given.
2844: if test "${enable_maintainer_mode+set}" = set; then :
2845: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2846: else
2847: USE_MAINTAINER_MODE=no
2848: fi
2849:
2850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2851: $as_echo "$USE_MAINTAINER_MODE" >&6; }
2852: if test $USE_MAINTAINER_MODE = yes; then
2853: MAINTAINER_MODE_TRUE=
2854: MAINTAINER_MODE_FALSE='#'
2855: else
2856: MAINTAINER_MODE_TRUE='#'
2857: MAINTAINER_MODE_FALSE=
2858: fi
2859:
2860: MAINT=$MAINTAINER_MODE_TRUE
2861:
2862:
2863: ac_config_headers="$ac_config_headers src/iperf_config.h"
2864:
2865:
2866: # Make sure we can run config.sub.
2867: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2868: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2869:
2870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2871: $as_echo_n "checking build system type... " >&6; }
2872: if ${ac_cv_build+:} false; then :
2873: $as_echo_n "(cached) " >&6
2874: else
2875: ac_build_alias=$build_alias
2876: test "x$ac_build_alias" = x &&
2877: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2878: test "x$ac_build_alias" = x &&
2879: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2880: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2881: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2882:
2883: fi
2884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2885: $as_echo "$ac_cv_build" >&6; }
2886: case $ac_cv_build in
2887: *-*-*) ;;
2888: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2889: esac
2890: build=$ac_cv_build
2891: ac_save_IFS=$IFS; IFS='-'
2892: set x $ac_cv_build
2893: shift
2894: build_cpu=$1
2895: build_vendor=$2
2896: shift; shift
2897: # Remember, the first character of IFS is used to create $*,
2898: # except with old shells:
2899: build_os=$*
2900: IFS=$ac_save_IFS
2901: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2902:
2903:
2904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2905: $as_echo_n "checking host system type... " >&6; }
2906: if ${ac_cv_host+:} false; then :
2907: $as_echo_n "(cached) " >&6
2908: else
2909: if test "x$host_alias" = x; then
2910: ac_cv_host=$ac_cv_build
2911: else
2912: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2913: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2914: fi
2915:
2916: fi
2917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2918: $as_echo "$ac_cv_host" >&6; }
2919: case $ac_cv_host in
2920: *-*-*) ;;
2921: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2922: esac
2923: host=$ac_cv_host
2924: ac_save_IFS=$IFS; IFS='-'
2925: set x $ac_cv_host
2926: shift
2927: host_cpu=$1
2928: host_vendor=$2
2929: shift; shift
2930: # Remember, the first character of IFS is used to create $*,
2931: # except with old shells:
2932: host_os=$*
2933: IFS=$ac_save_IFS
2934: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2935:
2936:
2937:
2938: # Checks for tools: c compiler, ranlib (used for creating static libraries),
2939: # symlinks and libtool
2940: ac_ext=c
2941: ac_cpp='$CPP $CPPFLAGS'
2942: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945: if test -n "$ac_tool_prefix"; then
2946: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2947: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949: $as_echo_n "checking for $ac_word... " >&6; }
2950: if ${ac_cv_prog_CC+:} false; then :
2951: $as_echo_n "(cached) " >&6
2952: else
2953: if test -n "$CC"; then
2954: ac_cv_prog_CC="$CC" # Let the user override the test.
2955: else
2956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957: for as_dir in $PATH
2958: do
2959: IFS=$as_save_IFS
2960: test -z "$as_dir" && as_dir=.
2961: for ac_exec_ext in '' $ac_executable_extensions; do
2962: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2964: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965: break 2
2966: fi
2967: done
2968: done
2969: IFS=$as_save_IFS
2970:
2971: fi
2972: fi
2973: CC=$ac_cv_prog_CC
2974: if test -n "$CC"; then
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976: $as_echo "$CC" >&6; }
2977: else
2978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979: $as_echo "no" >&6; }
2980: fi
2981:
2982:
2983: fi
2984: if test -z "$ac_cv_prog_CC"; then
2985: ac_ct_CC=$CC
2986: # Extract the first word of "gcc", so it can be a program name with args.
2987: set dummy gcc; ac_word=$2
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989: $as_echo_n "checking for $ac_word... " >&6; }
2990: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2991: $as_echo_n "(cached) " >&6
2992: else
2993: if test -n "$ac_ct_CC"; then
2994: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995: else
2996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997: for as_dir in $PATH
2998: do
2999: IFS=$as_save_IFS
3000: test -z "$as_dir" && as_dir=.
3001: for ac_exec_ext in '' $ac_executable_extensions; do
3002: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003: ac_cv_prog_ac_ct_CC="gcc"
3004: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005: break 2
3006: fi
3007: done
3008: done
3009: IFS=$as_save_IFS
3010:
3011: fi
3012: fi
3013: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014: if test -n "$ac_ct_CC"; then
3015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016: $as_echo "$ac_ct_CC" >&6; }
3017: else
3018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019: $as_echo "no" >&6; }
3020: fi
3021:
3022: if test "x$ac_ct_CC" = x; then
3023: CC=""
3024: else
3025: case $cross_compiling:$ac_tool_warned in
3026: yes:)
3027: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029: ac_tool_warned=yes ;;
3030: esac
3031: CC=$ac_ct_CC
3032: fi
3033: else
3034: CC="$ac_cv_prog_CC"
3035: fi
3036:
3037: if test -z "$CC"; then
3038: if test -n "$ac_tool_prefix"; then
3039: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3040: set dummy ${ac_tool_prefix}cc; ac_word=$2
3041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042: $as_echo_n "checking for $ac_word... " >&6; }
3043: if ${ac_cv_prog_CC+:} false; then :
3044: $as_echo_n "(cached) " >&6
3045: else
3046: if test -n "$CC"; then
3047: ac_cv_prog_CC="$CC" # Let the user override the test.
3048: else
3049: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050: for as_dir in $PATH
3051: do
3052: IFS=$as_save_IFS
3053: test -z "$as_dir" && as_dir=.
3054: for ac_exec_ext in '' $ac_executable_extensions; do
3055: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056: ac_cv_prog_CC="${ac_tool_prefix}cc"
3057: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058: break 2
3059: fi
3060: done
3061: done
3062: IFS=$as_save_IFS
3063:
3064: fi
3065: fi
3066: CC=$ac_cv_prog_CC
3067: if test -n "$CC"; then
3068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069: $as_echo "$CC" >&6; }
3070: else
3071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072: $as_echo "no" >&6; }
3073: fi
3074:
3075:
3076: fi
3077: fi
3078: if test -z "$CC"; then
3079: # Extract the first word of "cc", so it can be a program name with args.
3080: set dummy cc; ac_word=$2
3081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082: $as_echo_n "checking for $ac_word... " >&6; }
3083: if ${ac_cv_prog_CC+:} false; then :
3084: $as_echo_n "(cached) " >&6
3085: else
3086: if test -n "$CC"; then
3087: ac_cv_prog_CC="$CC" # Let the user override the test.
3088: else
3089: ac_prog_rejected=no
3090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091: for as_dir in $PATH
3092: do
3093: IFS=$as_save_IFS
3094: test -z "$as_dir" && as_dir=.
3095: for ac_exec_ext in '' $ac_executable_extensions; do
3096: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3098: ac_prog_rejected=yes
3099: continue
3100: fi
3101: ac_cv_prog_CC="cc"
3102: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103: break 2
3104: fi
3105: done
3106: done
3107: IFS=$as_save_IFS
3108:
3109: if test $ac_prog_rejected = yes; then
3110: # We found a bogon in the path, so make sure we never use it.
3111: set dummy $ac_cv_prog_CC
3112: shift
3113: if test $# != 0; then
3114: # We chose a different compiler from the bogus one.
3115: # However, it has the same basename, so the bogon will be chosen
3116: # first if we set CC to just the basename; use the full file name.
3117: shift
3118: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3119: fi
3120: fi
3121: fi
3122: fi
3123: CC=$ac_cv_prog_CC
3124: if test -n "$CC"; then
3125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126: $as_echo "$CC" >&6; }
3127: else
3128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129: $as_echo "no" >&6; }
3130: fi
3131:
3132:
3133: fi
3134: if test -z "$CC"; then
3135: if test -n "$ac_tool_prefix"; then
3136: for ac_prog in cl.exe
3137: do
3138: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141: $as_echo_n "checking for $ac_word... " >&6; }
3142: if ${ac_cv_prog_CC+:} false; then :
3143: $as_echo_n "(cached) " >&6
3144: else
3145: if test -n "$CC"; then
3146: ac_cv_prog_CC="$CC" # Let the user override the test.
3147: else
3148: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149: for as_dir in $PATH
3150: do
3151: IFS=$as_save_IFS
3152: test -z "$as_dir" && as_dir=.
3153: for ac_exec_ext in '' $ac_executable_extensions; do
3154: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157: break 2
3158: fi
3159: done
3160: done
3161: IFS=$as_save_IFS
3162:
3163: fi
3164: fi
3165: CC=$ac_cv_prog_CC
3166: if test -n "$CC"; then
3167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168: $as_echo "$CC" >&6; }
3169: else
3170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171: $as_echo "no" >&6; }
3172: fi
3173:
3174:
3175: test -n "$CC" && break
3176: done
3177: fi
3178: if test -z "$CC"; then
3179: ac_ct_CC=$CC
3180: for ac_prog in cl.exe
3181: do
3182: # Extract the first word of "$ac_prog", so it can be a program name with args.
3183: set dummy $ac_prog; ac_word=$2
3184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185: $as_echo_n "checking for $ac_word... " >&6; }
3186: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3187: $as_echo_n "(cached) " >&6
3188: else
3189: if test -n "$ac_ct_CC"; then
3190: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191: else
3192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193: for as_dir in $PATH
3194: do
3195: IFS=$as_save_IFS
3196: test -z "$as_dir" && as_dir=.
3197: for ac_exec_ext in '' $ac_executable_extensions; do
3198: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199: ac_cv_prog_ac_ct_CC="$ac_prog"
3200: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201: break 2
3202: fi
3203: done
3204: done
3205: IFS=$as_save_IFS
3206:
3207: fi
3208: fi
3209: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210: if test -n "$ac_ct_CC"; then
3211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3212: $as_echo "$ac_ct_CC" >&6; }
3213: else
3214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215: $as_echo "no" >&6; }
3216: fi
3217:
3218:
3219: test -n "$ac_ct_CC" && break
3220: done
3221:
3222: if test "x$ac_ct_CC" = x; then
3223: CC=""
3224: else
3225: case $cross_compiling:$ac_tool_warned in
3226: yes:)
3227: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229: ac_tool_warned=yes ;;
3230: esac
3231: CC=$ac_ct_CC
3232: fi
3233: fi
3234:
3235: fi
3236:
3237:
3238: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240: as_fn_error $? "no acceptable C compiler found in \$PATH
3241: See \`config.log' for more details" "$LINENO" 5; }
3242:
3243: # Provide some information about the compiler.
3244: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3245: set X $ac_compile
3246: ac_compiler=$2
3247: for ac_option in --version -v -V -qversion; do
3248: { { ac_try="$ac_compiler $ac_option >&5"
3249: case "(($ac_try" in
3250: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251: *) ac_try_echo=$ac_try;;
3252: esac
3253: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254: $as_echo "$ac_try_echo"; } >&5
3255: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3256: ac_status=$?
3257: if test -s conftest.err; then
3258: sed '10a\
3259: ... rest of stderr output deleted ...
3260: 10q' conftest.err >conftest.er1
3261: cat conftest.er1 >&5
3262: fi
3263: rm -f conftest.er1 conftest.err
3264: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265: test $ac_status = 0; }
3266: done
3267:
3268: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269: /* end confdefs.h. */
3270:
3271: int
3272: main ()
3273: {
3274:
3275: ;
3276: return 0;
3277: }
3278: _ACEOF
3279: ac_clean_files_save=$ac_clean_files
3280: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3281: # Try to create an executable without -o first, disregard a.out.
3282: # It will help us diagnose broken compilers, and finding out an intuition
3283: # of exeext.
3284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3285: $as_echo_n "checking whether the C compiler works... " >&6; }
3286: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287:
3288: # The possible output files:
3289: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3290:
3291: ac_rmfiles=
3292: for ac_file in $ac_files
3293: do
3294: case $ac_file in
3295: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3297: esac
3298: done
3299: rm -f $ac_rmfiles
3300:
3301: if { { ac_try="$ac_link_default"
3302: case "(($ac_try" in
3303: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304: *) ac_try_echo=$ac_try;;
3305: esac
3306: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307: $as_echo "$ac_try_echo"; } >&5
3308: (eval "$ac_link_default") 2>&5
3309: ac_status=$?
3310: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311: test $ac_status = 0; }; then :
3312: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3313: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3314: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3315: # so that the user can short-circuit this test for compilers unknown to
3316: # Autoconf.
3317: for ac_file in $ac_files ''
3318: do
3319: test -f "$ac_file" || continue
3320: case $ac_file in
3321: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3322: ;;
3323: [ab].out )
3324: # We found the default executable, but exeext='' is most
3325: # certainly right.
3326: break;;
3327: *.* )
3328: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329: then :; else
3330: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331: fi
3332: # We set ac_cv_exeext here because the later test for it is not
3333: # safe: cross compilers may not add the suffix if given an `-o'
3334: # argument, so we may need to know it at that point already.
3335: # Even if this section looks crufty: it has the advantage of
3336: # actually working.
3337: break;;
3338: * )
3339: break;;
3340: esac
3341: done
3342: test "$ac_cv_exeext" = no && ac_cv_exeext=
3343:
3344: else
3345: ac_file=''
3346: fi
3347: if test -z "$ac_file"; then :
3348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349: $as_echo "no" >&6; }
3350: $as_echo "$as_me: failed program was:" >&5
3351: sed 's/^/| /' conftest.$ac_ext >&5
3352:
3353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355: as_fn_error 77 "C compiler cannot create executables
3356: See \`config.log' for more details" "$LINENO" 5; }
3357: else
3358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3359: $as_echo "yes" >&6; }
3360: fi
3361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3362: $as_echo_n "checking for C compiler default output file name... " >&6; }
3363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3364: $as_echo "$ac_file" >&6; }
3365: ac_exeext=$ac_cv_exeext
3366:
3367: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3368: ac_clean_files=$ac_clean_files_save
3369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3370: $as_echo_n "checking for suffix of executables... " >&6; }
3371: if { { ac_try="$ac_link"
3372: case "(($ac_try" in
3373: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374: *) ac_try_echo=$ac_try;;
3375: esac
3376: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377: $as_echo "$ac_try_echo"; } >&5
3378: (eval "$ac_link") 2>&5
3379: ac_status=$?
3380: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381: test $ac_status = 0; }; then :
3382: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3383: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3384: # work properly (i.e., refer to `conftest.exe'), while it won't with
3385: # `rm'.
3386: for ac_file in conftest.exe conftest conftest.*; do
3387: test -f "$ac_file" || continue
3388: case $ac_file in
3389: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3390: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391: break;;
3392: * ) break;;
3393: esac
3394: done
3395: else
3396: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3399: See \`config.log' for more details" "$LINENO" 5; }
3400: fi
3401: rm -f conftest conftest$ac_cv_exeext
3402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3403: $as_echo "$ac_cv_exeext" >&6; }
3404:
3405: rm -f conftest.$ac_ext
3406: EXEEXT=$ac_cv_exeext
3407: ac_exeext=$EXEEXT
3408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409: /* end confdefs.h. */
3410: #include <stdio.h>
3411: int
3412: main ()
3413: {
3414: FILE *f = fopen ("conftest.out", "w");
3415: return ferror (f) || fclose (f) != 0;
3416:
3417: ;
3418: return 0;
3419: }
3420: _ACEOF
3421: ac_clean_files="$ac_clean_files conftest.out"
3422: # Check that the compiler produces executables we can run. If not, either
3423: # the compiler is broken, or we cross compile.
3424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3425: $as_echo_n "checking whether we are cross compiling... " >&6; }
3426: if test "$cross_compiling" != yes; then
3427: { { ac_try="$ac_link"
3428: case "(($ac_try" in
3429: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430: *) ac_try_echo=$ac_try;;
3431: esac
3432: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433: $as_echo "$ac_try_echo"; } >&5
3434: (eval "$ac_link") 2>&5
3435: ac_status=$?
3436: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437: test $ac_status = 0; }
3438: if { ac_try='./conftest$ac_cv_exeext'
3439: { { case "(($ac_try" in
3440: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441: *) ac_try_echo=$ac_try;;
3442: esac
3443: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444: $as_echo "$ac_try_echo"; } >&5
3445: (eval "$ac_try") 2>&5
3446: ac_status=$?
3447: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448: test $ac_status = 0; }; }; then
3449: cross_compiling=no
3450: else
3451: if test "$cross_compiling" = maybe; then
3452: cross_compiling=yes
3453: else
3454: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456: as_fn_error $? "cannot run C compiled programs.
3457: If you meant to cross compile, use \`--host'.
3458: See \`config.log' for more details" "$LINENO" 5; }
3459: fi
3460: fi
3461: fi
3462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3463: $as_echo "$cross_compiling" >&6; }
3464:
3465: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3466: ac_clean_files=$ac_clean_files_save
3467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3468: $as_echo_n "checking for suffix of object files... " >&6; }
3469: if ${ac_cv_objext+:} false; then :
3470: $as_echo_n "(cached) " >&6
3471: else
3472: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473: /* end confdefs.h. */
3474:
3475: int
3476: main ()
3477: {
3478:
3479: ;
3480: return 0;
3481: }
3482: _ACEOF
3483: rm -f conftest.o conftest.obj
3484: if { { ac_try="$ac_compile"
3485: case "(($ac_try" in
3486: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487: *) ac_try_echo=$ac_try;;
3488: esac
3489: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490: $as_echo "$ac_try_echo"; } >&5
3491: (eval "$ac_compile") 2>&5
3492: ac_status=$?
3493: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494: test $ac_status = 0; }; then :
3495: for ac_file in conftest.o conftest.obj conftest.*; do
3496: test -f "$ac_file" || continue;
3497: case $ac_file in
3498: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3499: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3500: break;;
3501: esac
3502: done
3503: else
3504: $as_echo "$as_me: failed program was:" >&5
3505: sed 's/^/| /' conftest.$ac_ext >&5
3506:
3507: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509: as_fn_error $? "cannot compute suffix of object files: cannot compile
3510: See \`config.log' for more details" "$LINENO" 5; }
3511: fi
3512: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3513: fi
3514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3515: $as_echo "$ac_cv_objext" >&6; }
3516: OBJEXT=$ac_cv_objext
3517: ac_objext=$OBJEXT
3518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3519: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3520: if ${ac_cv_c_compiler_gnu+:} false; then :
3521: $as_echo_n "(cached) " >&6
3522: else
3523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524: /* end confdefs.h. */
3525:
3526: int
3527: main ()
3528: {
3529: #ifndef __GNUC__
3530: choke me
3531: #endif
3532:
3533: ;
3534: return 0;
3535: }
3536: _ACEOF
3537: if ac_fn_c_try_compile "$LINENO"; then :
3538: ac_compiler_gnu=yes
3539: else
3540: ac_compiler_gnu=no
3541: fi
3542: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3544:
3545: fi
3546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3547: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3548: if test $ac_compiler_gnu = yes; then
3549: GCC=yes
3550: else
3551: GCC=
3552: fi
3553: ac_test_CFLAGS=${CFLAGS+set}
3554: ac_save_CFLAGS=$CFLAGS
3555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3556: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3557: if ${ac_cv_prog_cc_g+:} false; then :
3558: $as_echo_n "(cached) " >&6
3559: else
3560: ac_save_c_werror_flag=$ac_c_werror_flag
3561: ac_c_werror_flag=yes
3562: ac_cv_prog_cc_g=no
3563: CFLAGS="-g"
3564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565: /* end confdefs.h. */
3566:
3567: int
3568: main ()
3569: {
3570:
3571: ;
3572: return 0;
3573: }
3574: _ACEOF
3575: if ac_fn_c_try_compile "$LINENO"; then :
3576: ac_cv_prog_cc_g=yes
3577: else
3578: CFLAGS=""
3579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580: /* end confdefs.h. */
3581:
3582: int
3583: main ()
3584: {
3585:
3586: ;
3587: return 0;
3588: }
3589: _ACEOF
3590: if ac_fn_c_try_compile "$LINENO"; then :
3591:
3592: else
3593: ac_c_werror_flag=$ac_save_c_werror_flag
3594: CFLAGS="-g"
3595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596: /* end confdefs.h. */
3597:
3598: int
3599: main ()
3600: {
3601:
3602: ;
3603: return 0;
3604: }
3605: _ACEOF
3606: if ac_fn_c_try_compile "$LINENO"; then :
3607: ac_cv_prog_cc_g=yes
3608: fi
3609: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610: fi
3611: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612: fi
3613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614: ac_c_werror_flag=$ac_save_c_werror_flag
3615: fi
3616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3617: $as_echo "$ac_cv_prog_cc_g" >&6; }
3618: if test "$ac_test_CFLAGS" = set; then
3619: CFLAGS=$ac_save_CFLAGS
3620: elif test $ac_cv_prog_cc_g = yes; then
3621: if test "$GCC" = yes; then
3622: CFLAGS="-g -O2"
3623: else
3624: CFLAGS="-g"
3625: fi
3626: else
3627: if test "$GCC" = yes; then
3628: CFLAGS="-O2"
3629: else
3630: CFLAGS=
3631: fi
3632: fi
3633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3634: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3635: if ${ac_cv_prog_cc_c89+:} false; then :
3636: $as_echo_n "(cached) " >&6
3637: else
3638: ac_cv_prog_cc_c89=no
3639: ac_save_CC=$CC
3640: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641: /* end confdefs.h. */
3642: #include <stdarg.h>
3643: #include <stdio.h>
3644: struct stat;
3645: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3646: struct buf { int x; };
3647: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3648: static char *e (p, i)
3649: char **p;
3650: int i;
3651: {
3652: return p[i];
3653: }
3654: static char *f (char * (*g) (char **, int), char **p, ...)
3655: {
3656: char *s;
3657: va_list v;
3658: va_start (v,p);
3659: s = g (p, va_arg (v,int));
3660: va_end (v);
3661: return s;
3662: }
3663:
3664: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3665: function prototypes and stuff, but not '\xHH' hex character constants.
3666: These don't provoke an error unfortunately, instead are silently treated
3667: as 'x'. The following induces an error, until -std is added to get
3668: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3669: array size at least. It's necessary to write '\x00'==0 to get something
3670: that's true only with -std. */
3671: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672:
3673: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3674: inside strings and character constants. */
3675: #define FOO(x) 'x'
3676: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677:
3678: int test (int i, double x);
3679: struct s1 {int (*f) (int a);};
3680: struct s2 {int (*f) (double a);};
3681: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682: int argc;
3683: char **argv;
3684: int
3685: main ()
3686: {
3687: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3688: ;
3689: return 0;
3690: }
3691: _ACEOF
3692: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3693: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694: do
3695: CC="$ac_save_CC $ac_arg"
3696: if ac_fn_c_try_compile "$LINENO"; then :
3697: ac_cv_prog_cc_c89=$ac_arg
3698: fi
3699: rm -f core conftest.err conftest.$ac_objext
3700: test "x$ac_cv_prog_cc_c89" != "xno" && break
3701: done
3702: rm -f conftest.$ac_ext
3703: CC=$ac_save_CC
3704:
3705: fi
3706: # AC_CACHE_VAL
3707: case "x$ac_cv_prog_cc_c89" in
3708: x)
3709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3710: $as_echo "none needed" >&6; } ;;
3711: xno)
3712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3713: $as_echo "unsupported" >&6; } ;;
3714: *)
3715: CC="$CC $ac_cv_prog_cc_c89"
3716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3717: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3718: esac
3719: if test "x$ac_cv_prog_cc_c89" != xno; then :
3720:
3721: fi
3722:
3723: ac_ext=c
3724: ac_cpp='$CPP $CPPFLAGS'
3725: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728:
3729: ac_ext=c
3730: ac_cpp='$CPP $CPPFLAGS'
3731: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3735: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3736: if ${am_cv_prog_cc_c_o+:} false; then :
3737: $as_echo_n "(cached) " >&6
3738: else
3739: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740: /* end confdefs.h. */
3741:
3742: int
3743: main ()
3744: {
3745:
3746: ;
3747: return 0;
3748: }
3749: _ACEOF
3750: # Make sure it works both with $CC and with simple cc.
3751: # Following AC_PROG_CC_C_O, we do the test twice because some
3752: # compilers refuse to overwrite an existing .o file with -o,
3753: # though they will create one.
3754: am_cv_prog_cc_c_o=yes
3755: for am_i in 1 2; do
3756: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3757: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3758: ac_status=$?
3759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760: (exit $ac_status); } \
3761: && test -f conftest2.$ac_objext; then
3762: : OK
3763: else
3764: am_cv_prog_cc_c_o=no
3765: break
3766: fi
3767: done
3768: rm -f core conftest*
3769: unset am_i
3770: fi
3771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3772: $as_echo "$am_cv_prog_cc_c_o" >&6; }
3773: if test "$am_cv_prog_cc_c_o" != yes; then
3774: # Losing compiler, so override with the script.
3775: # FIXME: It is wrong to rewrite CC.
3776: # But if we don't then we get into trouble of one sort or another.
3777: # A longer-term fix would be to have automake use am__CC in this case,
3778: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3779: CC="$am_aux_dir/compile $CC"
3780: fi
3781: ac_ext=c
3782: ac_cpp='$CPP $CPPFLAGS'
3783: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786:
3787: DEPDIR="${am__leading_dot}deps"
3788:
3789: ac_config_commands="$ac_config_commands depfiles"
3790:
3791:
3792: am_make=${MAKE-make}
3793: cat > confinc << 'END'
3794: am__doit:
3795: @echo this is the am__doit target
3796: .PHONY: am__doit
3797: END
3798: # If we don't find an include directive, just comment out the code.
3799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3800: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3801: am__include="#"
3802: am__quote=
3803: _am_result=none
3804: # First try GNU make style include.
3805: echo "include confinc" > confmf
3806: # Ignore all kinds of additional output from 'make'.
3807: case `$am_make -s -f confmf 2> /dev/null` in #(
3808: *the\ am__doit\ target*)
3809: am__include=include
3810: am__quote=
3811: _am_result=GNU
3812: ;;
3813: esac
3814: # Now try BSD make style include.
3815: if test "$am__include" = "#"; then
3816: echo '.include "confinc"' > confmf
3817: case `$am_make -s -f confmf 2> /dev/null` in #(
3818: *the\ am__doit\ target*)
3819: am__include=.include
3820: am__quote="\""
3821: _am_result=BSD
3822: ;;
3823: esac
3824: fi
3825:
3826:
3827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3828: $as_echo "$_am_result" >&6; }
3829: rm -f confinc confmf
3830:
3831: # Check whether --enable-dependency-tracking was given.
3832: if test "${enable_dependency_tracking+set}" = set; then :
3833: enableval=$enable_dependency_tracking;
3834: fi
3835:
3836: if test "x$enable_dependency_tracking" != xno; then
3837: am_depcomp="$ac_aux_dir/depcomp"
3838: AMDEPBACKSLASH='\'
3839: am__nodep='_no'
3840: fi
3841: if test "x$enable_dependency_tracking" != xno; then
3842: AMDEP_TRUE=
3843: AMDEP_FALSE='#'
3844: else
3845: AMDEP_TRUE='#'
3846: AMDEP_FALSE=
3847: fi
3848:
3849:
3850:
3851: depcc="$CC" am_compiler_list=
3852:
3853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3854: $as_echo_n "checking dependency style of $depcc... " >&6; }
3855: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3856: $as_echo_n "(cached) " >&6
3857: else
3858: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3859: # We make a subdir and do the tests there. Otherwise we can end up
3860: # making bogus files that we don't know about and never remove. For
3861: # instance it was reported that on HP-UX the gcc test will end up
3862: # making a dummy file named 'D' -- because '-MD' means "put the output
3863: # in D".
3864: rm -rf conftest.dir
3865: mkdir conftest.dir
3866: # Copy depcomp to subdir because otherwise we won't find it if we're
3867: # using a relative directory.
3868: cp "$am_depcomp" conftest.dir
3869: cd conftest.dir
3870: # We will build objects and dependencies in a subdirectory because
3871: # it helps to detect inapplicable dependency modes. For instance
3872: # both Tru64's cc and ICC support -MD to output dependencies as a
3873: # side effect of compilation, but ICC will put the dependencies in
3874: # the current directory while Tru64 will put them in the object
3875: # directory.
3876: mkdir sub
3877:
3878: am_cv_CC_dependencies_compiler_type=none
3879: if test "$am_compiler_list" = ""; then
3880: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3881: fi
3882: am__universal=false
3883: case " $depcc " in #(
3884: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3885: esac
3886:
3887: for depmode in $am_compiler_list; do
3888: # Setup a source with many dependencies, because some compilers
3889: # like to wrap large dependency lists on column 80 (with \), and
3890: # we should not choose a depcomp mode which is confused by this.
3891: #
3892: # We need to recreate these files for each test, as the compiler may
3893: # overwrite some of them when testing with obscure command lines.
3894: # This happens at least with the AIX C compiler.
3895: : > sub/conftest.c
3896: for i in 1 2 3 4 5 6; do
3897: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3898: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3899: # Solaris 10 /bin/sh.
3900: echo '/* dummy */' > sub/conftst$i.h
3901: done
3902: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3903:
3904: # We check with '-c' and '-o' for the sake of the "dashmstdout"
3905: # mode. It turns out that the SunPro C++ compiler does not properly
3906: # handle '-M -o', and we need to detect this. Also, some Intel
3907: # versions had trouble with output in subdirs.
3908: am__obj=sub/conftest.${OBJEXT-o}
3909: am__minus_obj="-o $am__obj"
3910: case $depmode in
3911: gcc)
3912: # This depmode causes a compiler race in universal mode.
3913: test "$am__universal" = false || continue
3914: ;;
3915: nosideeffect)
3916: # After this tag, mechanisms are not by side-effect, so they'll
3917: # only be used when explicitly requested.
3918: if test "x$enable_dependency_tracking" = xyes; then
3919: continue
3920: else
3921: break
3922: fi
3923: ;;
3924: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3925: # This compiler won't grok '-c -o', but also, the minuso test has
3926: # not run yet. These depmodes are late enough in the game, and
3927: # so weak that their functioning should not be impacted.
3928: am__obj=conftest.${OBJEXT-o}
3929: am__minus_obj=
3930: ;;
3931: none) break ;;
3932: esac
3933: if depmode=$depmode \
3934: source=sub/conftest.c object=$am__obj \
3935: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3936: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3937: >/dev/null 2>conftest.err &&
3938: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3939: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3940: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3941: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3942: # icc doesn't choke on unknown options, it will just issue warnings
3943: # or remarks (even with -Werror). So we grep stderr for any message
3944: # that says an option was ignored or not supported.
3945: # When given -MP, icc 7.0 and 7.1 complain thusly:
3946: # icc: Command line warning: ignoring option '-M'; no argument required
3947: # The diagnosis changed in icc 8.0:
3948: # icc: Command line remark: option '-MP' not supported
3949: if (grep 'ignoring option' conftest.err ||
3950: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3951: am_cv_CC_dependencies_compiler_type=$depmode
3952: break
3953: fi
3954: fi
3955: done
3956:
3957: cd ..
3958: rm -rf conftest.dir
3959: else
3960: am_cv_CC_dependencies_compiler_type=none
3961: fi
3962:
3963: fi
3964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3965: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3966: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3967:
3968: if
3969: test "x$enable_dependency_tracking" != xno \
3970: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3971: am__fastdepCC_TRUE=
3972: am__fastdepCC_FALSE='#'
3973: else
3974: am__fastdepCC_TRUE='#'
3975: am__fastdepCC_FALSE=
3976: fi
3977:
3978:
3979: if test -n "$ac_tool_prefix"; then
3980: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3981: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983: $as_echo_n "checking for $ac_word... " >&6; }
3984: if ${ac_cv_prog_RANLIB+:} false; then :
3985: $as_echo_n "(cached) " >&6
3986: else
3987: if test -n "$RANLIB"; then
3988: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3989: else
3990: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991: for as_dir in $PATH
3992: do
3993: IFS=$as_save_IFS
3994: test -z "$as_dir" && as_dir=.
3995: for ac_exec_ext in '' $ac_executable_extensions; do
3996: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3998: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999: break 2
4000: fi
4001: done
4002: done
4003: IFS=$as_save_IFS
4004:
4005: fi
4006: fi
4007: RANLIB=$ac_cv_prog_RANLIB
4008: if test -n "$RANLIB"; then
4009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4010: $as_echo "$RANLIB" >&6; }
4011: else
4012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013: $as_echo "no" >&6; }
4014: fi
4015:
4016:
4017: fi
4018: if test -z "$ac_cv_prog_RANLIB"; then
4019: ac_ct_RANLIB=$RANLIB
4020: # Extract the first word of "ranlib", so it can be a program name with args.
4021: set dummy ranlib; ac_word=$2
4022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023: $as_echo_n "checking for $ac_word... " >&6; }
4024: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4025: $as_echo_n "(cached) " >&6
4026: else
4027: if test -n "$ac_ct_RANLIB"; then
4028: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4029: else
4030: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031: for as_dir in $PATH
4032: do
4033: IFS=$as_save_IFS
4034: test -z "$as_dir" && as_dir=.
4035: for ac_exec_ext in '' $ac_executable_extensions; do
4036: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037: ac_cv_prog_ac_ct_RANLIB="ranlib"
4038: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039: break 2
4040: fi
4041: done
4042: done
4043: IFS=$as_save_IFS
4044:
4045: fi
4046: fi
4047: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4048: if test -n "$ac_ct_RANLIB"; then
4049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4050: $as_echo "$ac_ct_RANLIB" >&6; }
4051: else
4052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053: $as_echo "no" >&6; }
4054: fi
4055:
4056: if test "x$ac_ct_RANLIB" = x; then
4057: RANLIB=":"
4058: else
4059: case $cross_compiling:$ac_tool_warned in
4060: yes:)
4061: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063: ac_tool_warned=yes ;;
4064: esac
4065: RANLIB=$ac_ct_RANLIB
4066: fi
4067: else
4068: RANLIB="$ac_cv_prog_RANLIB"
4069: fi
4070:
4071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4072: $as_echo_n "checking whether ln -s works... " >&6; }
4073: LN_S=$as_ln_s
4074: if test "$LN_S" = "ln -s"; then
4075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076: $as_echo "yes" >&6; }
4077: else
4078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4079: $as_echo "no, using $LN_S" >&6; }
4080: fi
4081:
4082: case `pwd` in
4083: *\ * | *\ *)
4084: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4085: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4086: esac
4087:
4088:
4089:
4090: macro_version='2.4.6'
4091: macro_revision='2.4.6'
4092:
4093:
4094:
4095:
4096:
4097:
4098:
4099:
4100:
4101:
4102:
4103:
4104:
4105: ltmain=$ac_aux_dir/ltmain.sh
4106:
4107: # Backslashify metacharacters that are still active within
4108: # double-quoted strings.
4109: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4110:
4111: # Same as above, but do not quote variable references.
4112: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4113:
4114: # Sed substitution to delay expansion of an escaped shell variable in a
4115: # double_quote_subst'ed string.
4116: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4117:
4118: # Sed substitution to delay expansion of an escaped single quote.
4119: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4120:
4121: # Sed substitution to avoid accidental globbing in evaled expressions
4122: no_glob_subst='s/\*/\\\*/g'
4123:
4124: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4125: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4126: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4127:
4128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4129: $as_echo_n "checking how to print strings... " >&6; }
4130: # Test print first, because it will be a builtin if present.
4131: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4132: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4133: ECHO='print -r --'
4134: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4135: ECHO='printf %s\n'
4136: else
4137: # Use this function as a fallback that always works.
4138: func_fallback_echo ()
4139: {
4140: eval 'cat <<_LTECHO_EOF
4141: $1
4142: _LTECHO_EOF'
4143: }
4144: ECHO='func_fallback_echo'
4145: fi
4146:
4147: # func_echo_all arg...
4148: # Invoke $ECHO with all args, space-separated.
4149: func_echo_all ()
4150: {
4151: $ECHO ""
4152: }
4153:
4154: case $ECHO in
4155: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4156: $as_echo "printf" >&6; } ;;
4157: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4158: $as_echo "print -r" >&6; } ;;
4159: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4160: $as_echo "cat" >&6; } ;;
4161: esac
4162:
4163:
4164:
4165:
4166:
4167:
4168:
4169:
4170:
4171:
4172:
4173:
4174:
4175:
4176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4177: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4178: if ${ac_cv_path_SED+:} false; then :
4179: $as_echo_n "(cached) " >&6
4180: else
4181: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4182: for ac_i in 1 2 3 4 5 6 7; do
4183: ac_script="$ac_script$as_nl$ac_script"
4184: done
4185: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4186: { ac_script=; unset ac_script;}
4187: if test -z "$SED"; then
4188: ac_path_SED_found=false
4189: # Loop through the user's path and test for each of PROGNAME-LIST
4190: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191: for as_dir in $PATH
4192: do
4193: IFS=$as_save_IFS
4194: test -z "$as_dir" && as_dir=.
4195: for ac_prog in sed gsed; do
4196: for ac_exec_ext in '' $ac_executable_extensions; do
4197: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4198: as_fn_executable_p "$ac_path_SED" || continue
4199: # Check for GNU ac_path_SED and select it if it is found.
4200: # Check for GNU $ac_path_SED
4201: case `"$ac_path_SED" --version 2>&1` in
4202: *GNU*)
4203: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4204: *)
4205: ac_count=0
4206: $as_echo_n 0123456789 >"conftest.in"
4207: while :
4208: do
4209: cat "conftest.in" "conftest.in" >"conftest.tmp"
4210: mv "conftest.tmp" "conftest.in"
4211: cp "conftest.in" "conftest.nl"
4212: $as_echo '' >> "conftest.nl"
4213: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215: as_fn_arith $ac_count + 1 && ac_count=$as_val
4216: if test $ac_count -gt ${ac_path_SED_max-0}; then
4217: # Best one so far, save it but keep looking for a better one
4218: ac_cv_path_SED="$ac_path_SED"
4219: ac_path_SED_max=$ac_count
4220: fi
4221: # 10*(2^10) chars as input seems more than enough
4222: test $ac_count -gt 10 && break
4223: done
4224: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225: esac
4226:
4227: $ac_path_SED_found && break 3
4228: done
4229: done
4230: done
4231: IFS=$as_save_IFS
4232: if test -z "$ac_cv_path_SED"; then
4233: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4234: fi
4235: else
4236: ac_cv_path_SED=$SED
4237: fi
4238:
4239: fi
4240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4241: $as_echo "$ac_cv_path_SED" >&6; }
4242: SED="$ac_cv_path_SED"
4243: rm -f conftest.sed
4244:
4245: test -z "$SED" && SED=sed
4246: Xsed="$SED -e 1s/^X//"
4247:
4248:
4249:
4250:
4251:
4252:
4253:
4254:
4255:
4256:
4257:
4258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4259: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4260: if ${ac_cv_path_GREP+:} false; then :
4261: $as_echo_n "(cached) " >&6
4262: else
4263: if test -z "$GREP"; then
4264: ac_path_GREP_found=false
4265: # Loop through the user's path and test for each of PROGNAME-LIST
4266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268: do
4269: IFS=$as_save_IFS
4270: test -z "$as_dir" && as_dir=.
4271: for ac_prog in grep ggrep; do
4272: for ac_exec_ext in '' $ac_executable_extensions; do
4273: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4274: as_fn_executable_p "$ac_path_GREP" || continue
4275: # Check for GNU ac_path_GREP and select it if it is found.
4276: # Check for GNU $ac_path_GREP
4277: case `"$ac_path_GREP" --version 2>&1` in
4278: *GNU*)
4279: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4280: *)
4281: ac_count=0
4282: $as_echo_n 0123456789 >"conftest.in"
4283: while :
4284: do
4285: cat "conftest.in" "conftest.in" >"conftest.tmp"
4286: mv "conftest.tmp" "conftest.in"
4287: cp "conftest.in" "conftest.nl"
4288: $as_echo 'GREP' >> "conftest.nl"
4289: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291: as_fn_arith $ac_count + 1 && ac_count=$as_val
4292: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293: # Best one so far, save it but keep looking for a better one
4294: ac_cv_path_GREP="$ac_path_GREP"
4295: ac_path_GREP_max=$ac_count
4296: fi
4297: # 10*(2^10) chars as input seems more than enough
4298: test $ac_count -gt 10 && break
4299: done
4300: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301: esac
4302:
4303: $ac_path_GREP_found && break 3
4304: done
4305: done
4306: done
4307: IFS=$as_save_IFS
4308: if test -z "$ac_cv_path_GREP"; then
4309: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4310: fi
4311: else
4312: ac_cv_path_GREP=$GREP
4313: fi
4314:
4315: fi
4316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4317: $as_echo "$ac_cv_path_GREP" >&6; }
4318: GREP="$ac_cv_path_GREP"
4319:
4320:
4321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4322: $as_echo_n "checking for egrep... " >&6; }
4323: if ${ac_cv_path_EGREP+:} false; then :
4324: $as_echo_n "(cached) " >&6
4325: else
4326: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4327: then ac_cv_path_EGREP="$GREP -E"
4328: else
4329: if test -z "$EGREP"; then
4330: ac_path_EGREP_found=false
4331: # Loop through the user's path and test for each of PROGNAME-LIST
4332: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334: do
4335: IFS=$as_save_IFS
4336: test -z "$as_dir" && as_dir=.
4337: for ac_prog in egrep; do
4338: for ac_exec_ext in '' $ac_executable_extensions; do
4339: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4340: as_fn_executable_p "$ac_path_EGREP" || continue
4341: # Check for GNU ac_path_EGREP and select it if it is found.
4342: # Check for GNU $ac_path_EGREP
4343: case `"$ac_path_EGREP" --version 2>&1` in
4344: *GNU*)
4345: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4346: *)
4347: ac_count=0
4348: $as_echo_n 0123456789 >"conftest.in"
4349: while :
4350: do
4351: cat "conftest.in" "conftest.in" >"conftest.tmp"
4352: mv "conftest.tmp" "conftest.in"
4353: cp "conftest.in" "conftest.nl"
4354: $as_echo 'EGREP' >> "conftest.nl"
4355: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357: as_fn_arith $ac_count + 1 && ac_count=$as_val
4358: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4359: # Best one so far, save it but keep looking for a better one
4360: ac_cv_path_EGREP="$ac_path_EGREP"
4361: ac_path_EGREP_max=$ac_count
4362: fi
4363: # 10*(2^10) chars as input seems more than enough
4364: test $ac_count -gt 10 && break
4365: done
4366: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367: esac
4368:
4369: $ac_path_EGREP_found && break 3
4370: done
4371: done
4372: done
4373: IFS=$as_save_IFS
4374: if test -z "$ac_cv_path_EGREP"; then
4375: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376: fi
4377: else
4378: ac_cv_path_EGREP=$EGREP
4379: fi
4380:
4381: fi
4382: fi
4383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4384: $as_echo "$ac_cv_path_EGREP" >&6; }
4385: EGREP="$ac_cv_path_EGREP"
4386:
4387:
4388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4389: $as_echo_n "checking for fgrep... " >&6; }
4390: if ${ac_cv_path_FGREP+:} false; then :
4391: $as_echo_n "(cached) " >&6
4392: else
4393: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4394: then ac_cv_path_FGREP="$GREP -F"
4395: else
4396: if test -z "$FGREP"; then
4397: ac_path_FGREP_found=false
4398: # Loop through the user's path and test for each of PROGNAME-LIST
4399: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401: do
4402: IFS=$as_save_IFS
4403: test -z "$as_dir" && as_dir=.
4404: for ac_prog in fgrep; do
4405: for ac_exec_ext in '' $ac_executable_extensions; do
4406: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4407: as_fn_executable_p "$ac_path_FGREP" || continue
4408: # Check for GNU ac_path_FGREP and select it if it is found.
4409: # Check for GNU $ac_path_FGREP
4410: case `"$ac_path_FGREP" --version 2>&1` in
4411: *GNU*)
4412: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4413: *)
4414: ac_count=0
4415: $as_echo_n 0123456789 >"conftest.in"
4416: while :
4417: do
4418: cat "conftest.in" "conftest.in" >"conftest.tmp"
4419: mv "conftest.tmp" "conftest.in"
4420: cp "conftest.in" "conftest.nl"
4421: $as_echo 'FGREP' >> "conftest.nl"
4422: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424: as_fn_arith $ac_count + 1 && ac_count=$as_val
4425: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4426: # Best one so far, save it but keep looking for a better one
4427: ac_cv_path_FGREP="$ac_path_FGREP"
4428: ac_path_FGREP_max=$ac_count
4429: fi
4430: # 10*(2^10) chars as input seems more than enough
4431: test $ac_count -gt 10 && break
4432: done
4433: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434: esac
4435:
4436: $ac_path_FGREP_found && break 3
4437: done
4438: done
4439: done
4440: IFS=$as_save_IFS
4441: if test -z "$ac_cv_path_FGREP"; then
4442: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443: fi
4444: else
4445: ac_cv_path_FGREP=$FGREP
4446: fi
4447:
4448: fi
4449: fi
4450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4451: $as_echo "$ac_cv_path_FGREP" >&6; }
4452: FGREP="$ac_cv_path_FGREP"
4453:
4454:
4455: test -z "$GREP" && GREP=grep
4456:
4457:
4458:
4459:
4460:
4461:
4462:
4463:
4464:
4465:
4466:
4467:
4468:
4469:
4470:
4471:
4472:
4473:
4474:
4475: # Check whether --with-gnu-ld was given.
4476: if test "${with_gnu_ld+set}" = set; then :
4477: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4478: else
4479: with_gnu_ld=no
4480: fi
4481:
4482: ac_prog=ld
4483: if test yes = "$GCC"; then
4484: # Check if gcc -print-prog-name=ld gives a path.
4485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4486: $as_echo_n "checking for ld used by $CC... " >&6; }
4487: case $host in
4488: *-*-mingw*)
4489: # gcc leaves a trailing carriage return, which upsets mingw
4490: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4491: *)
4492: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4493: esac
4494: case $ac_prog in
4495: # Accept absolute paths.
4496: [\\/]* | ?:[\\/]*)
4497: re_direlt='/[^/][^/]*/\.\./'
4498: # Canonicalize the pathname of ld
4499: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4500: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4501: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4502: done
4503: test -z "$LD" && LD=$ac_prog
4504: ;;
4505: "")
4506: # If it fails, then pretend we aren't using GCC.
4507: ac_prog=ld
4508: ;;
4509: *)
4510: # If it is relative, then search for the first ld in PATH.
4511: with_gnu_ld=unknown
4512: ;;
4513: esac
4514: elif test yes = "$with_gnu_ld"; then
4515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4516: $as_echo_n "checking for GNU ld... " >&6; }
4517: else
4518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4519: $as_echo_n "checking for non-GNU ld... " >&6; }
4520: fi
4521: if ${lt_cv_path_LD+:} false; then :
4522: $as_echo_n "(cached) " >&6
4523: else
4524: if test -z "$LD"; then
4525: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4526: for ac_dir in $PATH; do
4527: IFS=$lt_save_ifs
4528: test -z "$ac_dir" && ac_dir=.
4529: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530: lt_cv_path_LD=$ac_dir/$ac_prog
4531: # Check to see if the program is GNU ld. I'd rather use --version,
4532: # but apparently some variants of GNU ld only accept -v.
4533: # Break only if it was the GNU/non-GNU ld that we prefer.
4534: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535: *GNU* | *'with BFD'*)
4536: test no != "$with_gnu_ld" && break
4537: ;;
4538: *)
4539: test yes != "$with_gnu_ld" && break
4540: ;;
4541: esac
4542: fi
4543: done
4544: IFS=$lt_save_ifs
4545: else
4546: lt_cv_path_LD=$LD # Let the user override the test with a path.
4547: fi
4548: fi
4549:
4550: LD=$lt_cv_path_LD
4551: if test -n "$LD"; then
4552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4553: $as_echo "$LD" >&6; }
4554: else
4555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556: $as_echo "no" >&6; }
4557: fi
4558: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4560: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4561: if ${lt_cv_prog_gnu_ld+:} false; then :
4562: $as_echo_n "(cached) " >&6
4563: else
4564: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565: case `$LD -v 2>&1 </dev/null` in
4566: *GNU* | *'with BFD'*)
4567: lt_cv_prog_gnu_ld=yes
4568: ;;
4569: *)
4570: lt_cv_prog_gnu_ld=no
4571: ;;
4572: esac
4573: fi
4574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4575: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4576: with_gnu_ld=$lt_cv_prog_gnu_ld
4577:
4578:
4579:
4580:
4581:
4582:
4583:
4584:
4585:
4586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4587: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4588: if ${lt_cv_path_NM+:} false; then :
4589: $as_echo_n "(cached) " >&6
4590: else
4591: if test -n "$NM"; then
4592: # Let the user override the test.
4593: lt_cv_path_NM=$NM
4594: else
4595: lt_nm_to_check=${ac_tool_prefix}nm
4596: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4597: lt_nm_to_check="$lt_nm_to_check nm"
4598: fi
4599: for lt_tmp_nm in $lt_nm_to_check; do
4600: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4601: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4602: IFS=$lt_save_ifs
4603: test -z "$ac_dir" && ac_dir=.
4604: tmp_nm=$ac_dir/$lt_tmp_nm
4605: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4606: # Check to see if the nm accepts a BSD-compat flag.
4607: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4608: # nm: unknown option "B" ignored
4609: # Tru64's nm complains that /dev/null is an invalid object file
4610: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4611: case $build_os in
4612: mingw*) lt_bad_file=conftest.nm/nofile ;;
4613: *) lt_bad_file=/dev/null ;;
4614: esac
4615: case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4616: *$lt_bad_file* | *'Invalid file or object type'*)
4617: lt_cv_path_NM="$tmp_nm -B"
4618: break 2
4619: ;;
4620: *)
4621: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4622: */dev/null*)
4623: lt_cv_path_NM="$tmp_nm -p"
4624: break 2
4625: ;;
4626: *)
4627: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4628: continue # so that we can try to find one that supports BSD flags
4629: ;;
4630: esac
4631: ;;
4632: esac
4633: fi
4634: done
4635: IFS=$lt_save_ifs
4636: done
4637: : ${lt_cv_path_NM=no}
4638: fi
4639: fi
4640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4641: $as_echo "$lt_cv_path_NM" >&6; }
4642: if test no != "$lt_cv_path_NM"; then
4643: NM=$lt_cv_path_NM
4644: else
4645: # Didn't find any BSD compatible name lister, look for dumpbin.
4646: if test -n "$DUMPBIN"; then :
4647: # Let the user override the test.
4648: else
4649: if test -n "$ac_tool_prefix"; then
4650: for ac_prog in dumpbin "link -dump"
4651: do
4652: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4653: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655: $as_echo_n "checking for $ac_word... " >&6; }
4656: if ${ac_cv_prog_DUMPBIN+:} false; then :
4657: $as_echo_n "(cached) " >&6
4658: else
4659: if test -n "$DUMPBIN"; then
4660: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4661: else
4662: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663: for as_dir in $PATH
4664: do
4665: IFS=$as_save_IFS
4666: test -z "$as_dir" && as_dir=.
4667: for ac_exec_ext in '' $ac_executable_extensions; do
4668: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4670: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671: break 2
4672: fi
4673: done
4674: done
4675: IFS=$as_save_IFS
4676:
4677: fi
4678: fi
4679: DUMPBIN=$ac_cv_prog_DUMPBIN
4680: if test -n "$DUMPBIN"; then
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4682: $as_echo "$DUMPBIN" >&6; }
4683: else
4684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685: $as_echo "no" >&6; }
4686: fi
4687:
4688:
4689: test -n "$DUMPBIN" && break
4690: done
4691: fi
4692: if test -z "$DUMPBIN"; then
4693: ac_ct_DUMPBIN=$DUMPBIN
4694: for ac_prog in dumpbin "link -dump"
4695: do
4696: # Extract the first word of "$ac_prog", so it can be a program name with args.
4697: set dummy $ac_prog; ac_word=$2
4698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699: $as_echo_n "checking for $ac_word... " >&6; }
4700: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4701: $as_echo_n "(cached) " >&6
4702: else
4703: if test -n "$ac_ct_DUMPBIN"; then
4704: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4705: else
4706: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707: for as_dir in $PATH
4708: do
4709: IFS=$as_save_IFS
4710: test -z "$as_dir" && as_dir=.
4711: for ac_exec_ext in '' $ac_executable_extensions; do
4712: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4714: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715: break 2
4716: fi
4717: done
4718: done
4719: IFS=$as_save_IFS
4720:
4721: fi
4722: fi
4723: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4724: if test -n "$ac_ct_DUMPBIN"; then
4725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4726: $as_echo "$ac_ct_DUMPBIN" >&6; }
4727: else
4728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729: $as_echo "no" >&6; }
4730: fi
4731:
4732:
4733: test -n "$ac_ct_DUMPBIN" && break
4734: done
4735:
4736: if test "x$ac_ct_DUMPBIN" = x; then
4737: DUMPBIN=":"
4738: else
4739: case $cross_compiling:$ac_tool_warned in
4740: yes:)
4741: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743: ac_tool_warned=yes ;;
4744: esac
4745: DUMPBIN=$ac_ct_DUMPBIN
4746: fi
4747: fi
4748:
4749: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4750: *COFF*)
4751: DUMPBIN="$DUMPBIN -symbols -headers"
4752: ;;
4753: *)
4754: DUMPBIN=:
4755: ;;
4756: esac
4757: fi
4758:
4759: if test : != "$DUMPBIN"; then
4760: NM=$DUMPBIN
4761: fi
4762: fi
4763: test -z "$NM" && NM=nm
4764:
4765:
4766:
4767:
4768:
4769:
4770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4771: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4772: if ${lt_cv_nm_interface+:} false; then :
4773: $as_echo_n "(cached) " >&6
4774: else
4775: lt_cv_nm_interface="BSD nm"
4776: echo "int some_variable = 0;" > conftest.$ac_ext
4777: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4778: (eval "$ac_compile" 2>conftest.err)
4779: cat conftest.err >&5
4780: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4781: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4782: cat conftest.err >&5
4783: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4784: cat conftest.out >&5
4785: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4786: lt_cv_nm_interface="MS dumpbin"
4787: fi
4788: rm -f conftest*
4789: fi
4790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4791: $as_echo "$lt_cv_nm_interface" >&6; }
4792:
4793: # find the maximum length of command line arguments
4794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4795: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4796: if ${lt_cv_sys_max_cmd_len+:} false; then :
4797: $as_echo_n "(cached) " >&6
4798: else
4799: i=0
4800: teststring=ABCD
4801:
4802: case $build_os in
4803: msdosdjgpp*)
4804: # On DJGPP, this test can blow up pretty badly due to problems in libc
4805: # (any single argument exceeding 2000 bytes causes a buffer overrun
4806: # during glob expansion). Even if it were fixed, the result of this
4807: # check would be larger than it should be.
4808: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4809: ;;
4810:
4811: gnu*)
4812: # Under GNU Hurd, this test is not required because there is
4813: # no limit to the length of command line arguments.
4814: # Libtool will interpret -1 as no limit whatsoever
4815: lt_cv_sys_max_cmd_len=-1;
4816: ;;
4817:
4818: cygwin* | mingw* | cegcc*)
4819: # On Win9x/ME, this test blows up -- it succeeds, but takes
4820: # about 5 minutes as the teststring grows exponentially.
4821: # Worse, since 9x/ME are not pre-emptively multitasking,
4822: # you end up with a "frozen" computer, even though with patience
4823: # the test eventually succeeds (with a max line length of 256k).
4824: # Instead, let's just punt: use the minimum linelength reported by
4825: # all of the supported platforms: 8192 (on NT/2K/XP).
4826: lt_cv_sys_max_cmd_len=8192;
4827: ;;
4828:
4829: mint*)
4830: # On MiNT this can take a long time and run out of memory.
4831: lt_cv_sys_max_cmd_len=8192;
4832: ;;
4833:
4834: amigaos*)
4835: # On AmigaOS with pdksh, this test takes hours, literally.
4836: # So we just punt and use a minimum line length of 8192.
4837: lt_cv_sys_max_cmd_len=8192;
4838: ;;
4839:
4840: bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4841: # This has been around since 386BSD, at least. Likely further.
4842: if test -x /sbin/sysctl; then
4843: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4844: elif test -x /usr/sbin/sysctl; then
4845: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4846: else
4847: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4848: fi
4849: # And add a safety zone
4850: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4851: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4852: ;;
4853:
4854: interix*)
4855: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4856: lt_cv_sys_max_cmd_len=196608
4857: ;;
4858:
4859: os2*)
4860: # The test takes a long time on OS/2.
4861: lt_cv_sys_max_cmd_len=8192
4862: ;;
4863:
4864: osf*)
4865: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4866: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4867: # nice to cause kernel panics so lets avoid the loop below.
4868: # First set a reasonable default.
4869: lt_cv_sys_max_cmd_len=16384
4870: #
4871: if test -x /sbin/sysconfig; then
4872: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4873: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4874: esac
4875: fi
4876: ;;
4877: sco3.2v5*)
4878: lt_cv_sys_max_cmd_len=102400
4879: ;;
4880: sysv5* | sco5v6* | sysv4.2uw2*)
4881: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4882: if test -n "$kargmax"; then
4883: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4884: else
4885: lt_cv_sys_max_cmd_len=32768
4886: fi
4887: ;;
4888: *)
4889: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4890: if test -n "$lt_cv_sys_max_cmd_len" && \
4891: test undefined != "$lt_cv_sys_max_cmd_len"; then
4892: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894: else
4895: # Make teststring a little bigger before we do anything with it.
4896: # a 1K string should be a reasonable start.
4897: for i in 1 2 3 4 5 6 7 8; do
4898: teststring=$teststring$teststring
4899: done
4900: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4901: # If test is not a shell built-in, we'll probably end up computing a
4902: # maximum length that is only half of the actual maximum length, but
4903: # we can't tell.
4904: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4905: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4906: test 17 != "$i" # 1/2 MB should be enough
4907: do
4908: i=`expr $i + 1`
4909: teststring=$teststring$teststring
4910: done
4911: # Only check the string length outside the loop.
4912: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4913: teststring=
4914: # Add a significant safety factor because C++ compilers can tack on
4915: # massive amounts of additional arguments before passing them to the
4916: # linker. It appears as though 1/2 is a usable value.
4917: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4918: fi
4919: ;;
4920: esac
4921:
4922: fi
4923:
4924: if test -n "$lt_cv_sys_max_cmd_len"; then
4925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4926: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4927: else
4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4929: $as_echo "none" >&6; }
4930: fi
4931: max_cmd_len=$lt_cv_sys_max_cmd_len
4932:
4933:
4934:
4935:
4936:
4937:
4938: : ${CP="cp -f"}
4939: : ${MV="mv -f"}
4940: : ${RM="rm -f"}
4941:
4942: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4943: lt_unset=unset
4944: else
4945: lt_unset=false
4946: fi
4947:
4948:
4949:
4950:
4951:
4952: # test EBCDIC or ASCII
4953: case `echo X|tr X '\101'` in
4954: A) # ASCII based system
4955: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4956: lt_SP2NL='tr \040 \012'
4957: lt_NL2SP='tr \015\012 \040\040'
4958: ;;
4959: *) # EBCDIC based system
4960: lt_SP2NL='tr \100 \n'
4961: lt_NL2SP='tr \r\n \100\100'
4962: ;;
4963: esac
4964:
4965:
4966:
4967:
4968:
4969:
4970:
4971:
4972:
4973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4974: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4975: if ${lt_cv_to_host_file_cmd+:} false; then :
4976: $as_echo_n "(cached) " >&6
4977: else
4978: case $host in
4979: *-*-mingw* )
4980: case $build in
4981: *-*-mingw* ) # actually msys
4982: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4983: ;;
4984: *-*-cygwin* )
4985: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4986: ;;
4987: * ) # otherwise, assume *nix
4988: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4989: ;;
4990: esac
4991: ;;
4992: *-*-cygwin* )
4993: case $build in
4994: *-*-mingw* ) # actually msys
4995: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4996: ;;
4997: *-*-cygwin* )
4998: lt_cv_to_host_file_cmd=func_convert_file_noop
4999: ;;
5000: * ) # otherwise, assume *nix
5001: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5002: ;;
5003: esac
5004: ;;
5005: * ) # unhandled hosts (and "normal" native builds)
5006: lt_cv_to_host_file_cmd=func_convert_file_noop
5007: ;;
5008: esac
5009:
5010: fi
5011:
5012: to_host_file_cmd=$lt_cv_to_host_file_cmd
5013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5014: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5015:
5016:
5017:
5018:
5019:
5020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5021: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5022: if ${lt_cv_to_tool_file_cmd+:} false; then :
5023: $as_echo_n "(cached) " >&6
5024: else
5025: #assume ordinary cross tools, or native build.
5026: lt_cv_to_tool_file_cmd=func_convert_file_noop
5027: case $host in
5028: *-*-mingw* )
5029: case $build in
5030: *-*-mingw* ) # actually msys
5031: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5032: ;;
5033: esac
5034: ;;
5035: esac
5036:
5037: fi
5038:
5039: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5041: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5042:
5043:
5044:
5045:
5046:
5047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5048: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5049: if ${lt_cv_ld_reload_flag+:} false; then :
5050: $as_echo_n "(cached) " >&6
5051: else
5052: lt_cv_ld_reload_flag='-r'
5053: fi
5054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5055: $as_echo "$lt_cv_ld_reload_flag" >&6; }
5056: reload_flag=$lt_cv_ld_reload_flag
5057: case $reload_flag in
5058: "" | " "*) ;;
5059: *) reload_flag=" $reload_flag" ;;
5060: esac
5061: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062: case $host_os in
5063: cygwin* | mingw* | pw32* | cegcc*)
5064: if test yes != "$GCC"; then
5065: reload_cmds=false
5066: fi
5067: ;;
5068: darwin*)
5069: if test yes = "$GCC"; then
5070: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5071: else
5072: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073: fi
5074: ;;
5075: esac
5076:
5077:
5078:
5079:
5080:
5081:
5082:
5083:
5084:
5085: if test -n "$ac_tool_prefix"; then
5086: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5087: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089: $as_echo_n "checking for $ac_word... " >&6; }
5090: if ${ac_cv_prog_OBJDUMP+:} false; then :
5091: $as_echo_n "(cached) " >&6
5092: else
5093: if test -n "$OBJDUMP"; then
5094: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5095: else
5096: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097: for as_dir in $PATH
5098: do
5099: IFS=$as_save_IFS
5100: test -z "$as_dir" && as_dir=.
5101: for ac_exec_ext in '' $ac_executable_extensions; do
5102: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5104: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105: break 2
5106: fi
5107: done
5108: done
5109: IFS=$as_save_IFS
5110:
5111: fi
5112: fi
5113: OBJDUMP=$ac_cv_prog_OBJDUMP
5114: if test -n "$OBJDUMP"; then
5115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5116: $as_echo "$OBJDUMP" >&6; }
5117: else
5118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119: $as_echo "no" >&6; }
5120: fi
5121:
5122:
5123: fi
5124: if test -z "$ac_cv_prog_OBJDUMP"; then
5125: ac_ct_OBJDUMP=$OBJDUMP
5126: # Extract the first word of "objdump", so it can be a program name with args.
5127: set dummy objdump; ac_word=$2
5128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129: $as_echo_n "checking for $ac_word... " >&6; }
5130: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5131: $as_echo_n "(cached) " >&6
5132: else
5133: if test -n "$ac_ct_OBJDUMP"; then
5134: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5135: else
5136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137: for as_dir in $PATH
5138: do
5139: IFS=$as_save_IFS
5140: test -z "$as_dir" && as_dir=.
5141: for ac_exec_ext in '' $ac_executable_extensions; do
5142: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5144: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145: break 2
5146: fi
5147: done
5148: done
5149: IFS=$as_save_IFS
5150:
5151: fi
5152: fi
5153: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154: if test -n "$ac_ct_OBJDUMP"; then
5155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5156: $as_echo "$ac_ct_OBJDUMP" >&6; }
5157: else
5158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159: $as_echo "no" >&6; }
5160: fi
5161:
5162: if test "x$ac_ct_OBJDUMP" = x; then
5163: OBJDUMP="false"
5164: else
5165: case $cross_compiling:$ac_tool_warned in
5166: yes:)
5167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169: ac_tool_warned=yes ;;
5170: esac
5171: OBJDUMP=$ac_ct_OBJDUMP
5172: fi
5173: else
5174: OBJDUMP="$ac_cv_prog_OBJDUMP"
5175: fi
5176:
5177: test -z "$OBJDUMP" && OBJDUMP=objdump
5178:
5179:
5180:
5181:
5182:
5183:
5184:
5185:
5186:
5187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5188: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5189: if ${lt_cv_deplibs_check_method+:} false; then :
5190: $as_echo_n "(cached) " >&6
5191: else
5192: lt_cv_file_magic_cmd='$MAGIC_CMD'
5193: lt_cv_file_magic_test_file=
5194: lt_cv_deplibs_check_method='unknown'
5195: # Need to set the preceding variable on all platforms that support
5196: # interlibrary dependencies.
5197: # 'none' -- dependencies not supported.
5198: # 'unknown' -- same as none, but documents that we really don't know.
5199: # 'pass_all' -- all dependencies passed with no checks.
5200: # 'test_compile' -- check by making test program.
5201: # 'file_magic [[regex]]' -- check by looking for files in library path
5202: # that responds to the $file_magic_cmd with a given extended regex.
5203: # If you have 'file' or equivalent on your system and you're not sure
5204: # whether 'pass_all' will *always* work, you probably want this one.
5205:
5206: case $host_os in
5207: aix[4-9]*)
5208: lt_cv_deplibs_check_method=pass_all
5209: ;;
5210:
5211: beos*)
5212: lt_cv_deplibs_check_method=pass_all
5213: ;;
5214:
5215: bsdi[45]*)
5216: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5217: lt_cv_file_magic_cmd='/usr/bin/file -L'
5218: lt_cv_file_magic_test_file=/shlib/libc.so
5219: ;;
5220:
5221: cygwin*)
5222: # func_win32_libid is a shell function defined in ltmain.sh
5223: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224: lt_cv_file_magic_cmd='func_win32_libid'
5225: ;;
5226:
5227: mingw* | pw32*)
5228: # Base MSYS/MinGW do not provide the 'file' command needed by
5229: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5230: # unless we find 'file', for example because we are cross-compiling.
5231: if ( file / ) >/dev/null 2>&1; then
5232: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233: lt_cv_file_magic_cmd='func_win32_libid'
5234: else
5235: # Keep this pattern in sync with the one in func_win32_libid.
5236: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5237: lt_cv_file_magic_cmd='$OBJDUMP -f'
5238: fi
5239: ;;
5240:
5241: cegcc*)
5242: # use the weaker test based on 'objdump'. See mingw*.
5243: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5244: lt_cv_file_magic_cmd='$OBJDUMP -f'
5245: ;;
5246:
5247: darwin* | rhapsody*)
5248: lt_cv_deplibs_check_method=pass_all
5249: ;;
5250:
5251: freebsd* | dragonfly*)
5252: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5253: case $host_cpu in
5254: i*86 )
5255: # Not sure whether the presence of OpenBSD here was a mistake.
5256: # Let's accept both of them until this is cleared up.
5257: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5258: lt_cv_file_magic_cmd=/usr/bin/file
5259: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5260: ;;
5261: esac
5262: else
5263: lt_cv_deplibs_check_method=pass_all
5264: fi
5265: ;;
5266:
5267: haiku*)
5268: lt_cv_deplibs_check_method=pass_all
5269: ;;
5270:
5271: hpux10.20* | hpux11*)
5272: lt_cv_file_magic_cmd=/usr/bin/file
5273: case $host_cpu in
5274: ia64*)
5275: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5276: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5277: ;;
5278: hppa*64*)
5279: 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]'
5280: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5281: ;;
5282: *)
5283: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5284: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5285: ;;
5286: esac
5287: ;;
5288:
5289: interix[3-9]*)
5290: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5291: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5292: ;;
5293:
5294: irix5* | irix6* | nonstopux*)
5295: case $LD in
5296: *-32|*"-32 ") libmagic=32-bit;;
5297: *-n32|*"-n32 ") libmagic=N32;;
5298: *-64|*"-64 ") libmagic=64-bit;;
5299: *) libmagic=never-match;;
5300: esac
5301: lt_cv_deplibs_check_method=pass_all
5302: ;;
5303:
5304: # This must be glibc/ELF.
5305: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5306: lt_cv_deplibs_check_method=pass_all
5307: ;;
5308:
5309: netbsd*)
5310: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5311: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5312: else
5313: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5314: fi
5315: ;;
5316:
5317: newos6*)
5318: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5319: lt_cv_file_magic_cmd=/usr/bin/file
5320: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5321: ;;
5322:
5323: *nto* | *qnx*)
5324: lt_cv_deplibs_check_method=pass_all
5325: ;;
5326:
5327: openbsd* | bitrig*)
5328: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5329: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5330: else
5331: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5332: fi
5333: ;;
5334:
5335: osf3* | osf4* | osf5*)
5336: lt_cv_deplibs_check_method=pass_all
5337: ;;
5338:
5339: rdos*)
5340: lt_cv_deplibs_check_method=pass_all
5341: ;;
5342:
5343: solaris*)
5344: lt_cv_deplibs_check_method=pass_all
5345: ;;
5346:
5347: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5348: lt_cv_deplibs_check_method=pass_all
5349: ;;
5350:
5351: sysv4 | sysv4.3*)
5352: case $host_vendor in
5353: motorola)
5354: 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]'
5355: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5356: ;;
5357: ncr)
5358: lt_cv_deplibs_check_method=pass_all
5359: ;;
5360: sequent)
5361: lt_cv_file_magic_cmd='/bin/file'
5362: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5363: ;;
5364: sni)
5365: lt_cv_file_magic_cmd='/bin/file'
5366: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5367: lt_cv_file_magic_test_file=/lib/libc.so
5368: ;;
5369: siemens)
5370: lt_cv_deplibs_check_method=pass_all
5371: ;;
5372: pc)
5373: lt_cv_deplibs_check_method=pass_all
5374: ;;
5375: esac
5376: ;;
5377:
5378: tpf*)
5379: lt_cv_deplibs_check_method=pass_all
5380: ;;
5381: os2*)
5382: lt_cv_deplibs_check_method=pass_all
5383: ;;
5384: esac
5385:
5386: fi
5387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5388: $as_echo "$lt_cv_deplibs_check_method" >&6; }
5389:
5390: file_magic_glob=
5391: want_nocaseglob=no
5392: if test "$build" = "$host"; then
5393: case $host_os in
5394: mingw* | pw32*)
5395: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5396: want_nocaseglob=yes
5397: else
5398: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5399: fi
5400: ;;
5401: esac
5402: fi
5403:
5404: file_magic_cmd=$lt_cv_file_magic_cmd
5405: deplibs_check_method=$lt_cv_deplibs_check_method
5406: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5407:
5408:
5409:
5410:
5411:
5412:
5413:
5414:
5415:
5416:
5417:
5418:
5419:
5420:
5421:
5422:
5423:
5424:
5425:
5426:
5427:
5428:
5429: if test -n "$ac_tool_prefix"; then
5430: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5431: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433: $as_echo_n "checking for $ac_word... " >&6; }
5434: if ${ac_cv_prog_DLLTOOL+:} false; then :
5435: $as_echo_n "(cached) " >&6
5436: else
5437: if test -n "$DLLTOOL"; then
5438: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5439: else
5440: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441: for as_dir in $PATH
5442: do
5443: IFS=$as_save_IFS
5444: test -z "$as_dir" && as_dir=.
5445: for ac_exec_ext in '' $ac_executable_extensions; do
5446: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5448: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449: break 2
5450: fi
5451: done
5452: done
5453: IFS=$as_save_IFS
5454:
5455: fi
5456: fi
5457: DLLTOOL=$ac_cv_prog_DLLTOOL
5458: if test -n "$DLLTOOL"; then
5459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5460: $as_echo "$DLLTOOL" >&6; }
5461: else
5462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463: $as_echo "no" >&6; }
5464: fi
5465:
5466:
5467: fi
5468: if test -z "$ac_cv_prog_DLLTOOL"; then
5469: ac_ct_DLLTOOL=$DLLTOOL
5470: # Extract the first word of "dlltool", so it can be a program name with args.
5471: set dummy dlltool; ac_word=$2
5472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473: $as_echo_n "checking for $ac_word... " >&6; }
5474: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5475: $as_echo_n "(cached) " >&6
5476: else
5477: if test -n "$ac_ct_DLLTOOL"; then
5478: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5479: else
5480: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481: for as_dir in $PATH
5482: do
5483: IFS=$as_save_IFS
5484: test -z "$as_dir" && as_dir=.
5485: for ac_exec_ext in '' $ac_executable_extensions; do
5486: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5488: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489: break 2
5490: fi
5491: done
5492: done
5493: IFS=$as_save_IFS
5494:
5495: fi
5496: fi
5497: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5498: if test -n "$ac_ct_DLLTOOL"; then
5499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5500: $as_echo "$ac_ct_DLLTOOL" >&6; }
5501: else
5502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503: $as_echo "no" >&6; }
5504: fi
5505:
5506: if test "x$ac_ct_DLLTOOL" = x; then
5507: DLLTOOL="false"
5508: else
5509: case $cross_compiling:$ac_tool_warned in
5510: yes:)
5511: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5512: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5513: ac_tool_warned=yes ;;
5514: esac
5515: DLLTOOL=$ac_ct_DLLTOOL
5516: fi
5517: else
5518: DLLTOOL="$ac_cv_prog_DLLTOOL"
5519: fi
5520:
5521: test -z "$DLLTOOL" && DLLTOOL=dlltool
5522:
5523:
5524:
5525:
5526:
5527:
5528:
5529:
5530:
5531:
5532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5533: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5534: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5535: $as_echo_n "(cached) " >&6
5536: else
5537: lt_cv_sharedlib_from_linklib_cmd='unknown'
5538:
5539: case $host_os in
5540: cygwin* | mingw* | pw32* | cegcc*)
5541: # two different shell functions defined in ltmain.sh;
5542: # decide which one to use based on capabilities of $DLLTOOL
5543: case `$DLLTOOL --help 2>&1` in
5544: *--identify-strict*)
5545: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5546: ;;
5547: *)
5548: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5549: ;;
5550: esac
5551: ;;
5552: *)
5553: # fallback: assume linklib IS sharedlib
5554: lt_cv_sharedlib_from_linklib_cmd=$ECHO
5555: ;;
5556: esac
5557:
5558: fi
5559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5560: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5561: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5562: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5563:
5564:
5565:
5566:
5567:
5568:
5569:
5570:
5571: if test -n "$ac_tool_prefix"; then
5572: for ac_prog in ar
5573: do
5574: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5575: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577: $as_echo_n "checking for $ac_word... " >&6; }
5578: if ${ac_cv_prog_AR+:} false; then :
5579: $as_echo_n "(cached) " >&6
5580: else
5581: if test -n "$AR"; then
5582: ac_cv_prog_AR="$AR" # Let the user override the test.
5583: else
5584: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585: for as_dir in $PATH
5586: do
5587: IFS=$as_save_IFS
5588: test -z "$as_dir" && as_dir=.
5589: for ac_exec_ext in '' $ac_executable_extensions; do
5590: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5592: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593: break 2
5594: fi
5595: done
5596: done
5597: IFS=$as_save_IFS
5598:
5599: fi
5600: fi
5601: AR=$ac_cv_prog_AR
5602: if test -n "$AR"; then
5603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5604: $as_echo "$AR" >&6; }
5605: else
5606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607: $as_echo "no" >&6; }
5608: fi
5609:
5610:
5611: test -n "$AR" && break
5612: done
5613: fi
5614: if test -z "$AR"; then
5615: ac_ct_AR=$AR
5616: for ac_prog in ar
5617: do
5618: # Extract the first word of "$ac_prog", so it can be a program name with args.
5619: set dummy $ac_prog; ac_word=$2
5620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621: $as_echo_n "checking for $ac_word... " >&6; }
5622: if ${ac_cv_prog_ac_ct_AR+:} false; then :
5623: $as_echo_n "(cached) " >&6
5624: else
5625: if test -n "$ac_ct_AR"; then
5626: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5627: else
5628: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629: for as_dir in $PATH
5630: do
5631: IFS=$as_save_IFS
5632: test -z "$as_dir" && as_dir=.
5633: for ac_exec_ext in '' $ac_executable_extensions; do
5634: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635: ac_cv_prog_ac_ct_AR="$ac_prog"
5636: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637: break 2
5638: fi
5639: done
5640: done
5641: IFS=$as_save_IFS
5642:
5643: fi
5644: fi
5645: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646: if test -n "$ac_ct_AR"; then
5647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5648: $as_echo "$ac_ct_AR" >&6; }
5649: else
5650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651: $as_echo "no" >&6; }
5652: fi
5653:
5654:
5655: test -n "$ac_ct_AR" && break
5656: done
5657:
5658: if test "x$ac_ct_AR" = x; then
5659: AR="false"
5660: else
5661: case $cross_compiling:$ac_tool_warned in
5662: yes:)
5663: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665: ac_tool_warned=yes ;;
5666: esac
5667: AR=$ac_ct_AR
5668: fi
5669: fi
5670:
5671: : ${AR=ar}
5672: : ${AR_FLAGS=cru}
5673:
5674:
5675:
5676:
5677:
5678:
5679:
5680:
5681:
5682:
5683:
5684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5685: $as_echo_n "checking for archiver @FILE support... " >&6; }
5686: if ${lt_cv_ar_at_file+:} false; then :
5687: $as_echo_n "(cached) " >&6
5688: else
5689: lt_cv_ar_at_file=no
5690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691: /* end confdefs.h. */
5692:
5693: int
5694: main ()
5695: {
5696:
5697: ;
5698: return 0;
5699: }
5700: _ACEOF
5701: if ac_fn_c_try_compile "$LINENO"; then :
5702: echo conftest.$ac_objext > conftest.lst
5703: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5704: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5705: (eval $lt_ar_try) 2>&5
5706: ac_status=$?
5707: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708: test $ac_status = 0; }
5709: if test 0 -eq "$ac_status"; then
5710: # Ensure the archiver fails upon bogus file names.
5711: rm -f conftest.$ac_objext libconftest.a
5712: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5713: (eval $lt_ar_try) 2>&5
5714: ac_status=$?
5715: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716: test $ac_status = 0; }
5717: if test 0 -ne "$ac_status"; then
5718: lt_cv_ar_at_file=@
5719: fi
5720: fi
5721: rm -f conftest.* libconftest.a
5722:
5723: fi
5724: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725:
5726: fi
5727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5728: $as_echo "$lt_cv_ar_at_file" >&6; }
5729:
5730: if test no = "$lt_cv_ar_at_file"; then
5731: archiver_list_spec=
5732: else
5733: archiver_list_spec=$lt_cv_ar_at_file
5734: fi
5735:
5736:
5737:
5738:
5739:
5740:
5741:
5742: if test -n "$ac_tool_prefix"; then
5743: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5744: set dummy ${ac_tool_prefix}strip; ac_word=$2
5745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746: $as_echo_n "checking for $ac_word... " >&6; }
5747: if ${ac_cv_prog_STRIP+:} false; then :
5748: $as_echo_n "(cached) " >&6
5749: else
5750: if test -n "$STRIP"; then
5751: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5752: else
5753: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754: for as_dir in $PATH
5755: do
5756: IFS=$as_save_IFS
5757: test -z "$as_dir" && as_dir=.
5758: for ac_exec_ext in '' $ac_executable_extensions; do
5759: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5761: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762: break 2
5763: fi
5764: done
5765: done
5766: IFS=$as_save_IFS
5767:
5768: fi
5769: fi
5770: STRIP=$ac_cv_prog_STRIP
5771: if test -n "$STRIP"; then
5772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5773: $as_echo "$STRIP" >&6; }
5774: else
5775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776: $as_echo "no" >&6; }
5777: fi
5778:
5779:
5780: fi
5781: if test -z "$ac_cv_prog_STRIP"; then
5782: ac_ct_STRIP=$STRIP
5783: # Extract the first word of "strip", so it can be a program name with args.
5784: set dummy strip; ac_word=$2
5785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786: $as_echo_n "checking for $ac_word... " >&6; }
5787: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5788: $as_echo_n "(cached) " >&6
5789: else
5790: if test -n "$ac_ct_STRIP"; then
5791: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5792: else
5793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794: for as_dir in $PATH
5795: do
5796: IFS=$as_save_IFS
5797: test -z "$as_dir" && as_dir=.
5798: for ac_exec_ext in '' $ac_executable_extensions; do
5799: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800: ac_cv_prog_ac_ct_STRIP="strip"
5801: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802: break 2
5803: fi
5804: done
5805: done
5806: IFS=$as_save_IFS
5807:
5808: fi
5809: fi
5810: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5811: if test -n "$ac_ct_STRIP"; then
5812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5813: $as_echo "$ac_ct_STRIP" >&6; }
5814: else
5815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816: $as_echo "no" >&6; }
5817: fi
5818:
5819: if test "x$ac_ct_STRIP" = x; then
5820: STRIP=":"
5821: else
5822: case $cross_compiling:$ac_tool_warned in
5823: yes:)
5824: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5825: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5826: ac_tool_warned=yes ;;
5827: esac
5828: STRIP=$ac_ct_STRIP
5829: fi
5830: else
5831: STRIP="$ac_cv_prog_STRIP"
5832: fi
5833:
5834: test -z "$STRIP" && STRIP=:
5835:
5836:
5837:
5838:
5839:
5840:
5841: if test -n "$ac_tool_prefix"; then
5842: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5843: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845: $as_echo_n "checking for $ac_word... " >&6; }
5846: if ${ac_cv_prog_RANLIB+:} false; then :
5847: $as_echo_n "(cached) " >&6
5848: else
5849: if test -n "$RANLIB"; then
5850: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5851: else
5852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853: for as_dir in $PATH
5854: do
5855: IFS=$as_save_IFS
5856: test -z "$as_dir" && as_dir=.
5857: for ac_exec_ext in '' $ac_executable_extensions; do
5858: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5860: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861: break 2
5862: fi
5863: done
5864: done
5865: IFS=$as_save_IFS
5866:
5867: fi
5868: fi
5869: RANLIB=$ac_cv_prog_RANLIB
5870: if test -n "$RANLIB"; then
5871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5872: $as_echo "$RANLIB" >&6; }
5873: else
5874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875: $as_echo "no" >&6; }
5876: fi
5877:
5878:
5879: fi
5880: if test -z "$ac_cv_prog_RANLIB"; then
5881: ac_ct_RANLIB=$RANLIB
5882: # Extract the first word of "ranlib", so it can be a program name with args.
5883: set dummy ranlib; ac_word=$2
5884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885: $as_echo_n "checking for $ac_word... " >&6; }
5886: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5887: $as_echo_n "(cached) " >&6
5888: else
5889: if test -n "$ac_ct_RANLIB"; then
5890: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891: else
5892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893: for as_dir in $PATH
5894: do
5895: IFS=$as_save_IFS
5896: test -z "$as_dir" && as_dir=.
5897: for ac_exec_ext in '' $ac_executable_extensions; do
5898: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899: ac_cv_prog_ac_ct_RANLIB="ranlib"
5900: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901: break 2
5902: fi
5903: done
5904: done
5905: IFS=$as_save_IFS
5906:
5907: fi
5908: fi
5909: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910: if test -n "$ac_ct_RANLIB"; then
5911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5912: $as_echo "$ac_ct_RANLIB" >&6; }
5913: else
5914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915: $as_echo "no" >&6; }
5916: fi
5917:
5918: if test "x$ac_ct_RANLIB" = x; then
5919: RANLIB=":"
5920: else
5921: case $cross_compiling:$ac_tool_warned in
5922: yes:)
5923: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5924: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5925: ac_tool_warned=yes ;;
5926: esac
5927: RANLIB=$ac_ct_RANLIB
5928: fi
5929: else
5930: RANLIB="$ac_cv_prog_RANLIB"
5931: fi
5932:
5933: test -z "$RANLIB" && RANLIB=:
5934:
5935:
5936:
5937:
5938:
5939:
5940: # Determine commands to create old-style static archives.
5941: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5942: old_postinstall_cmds='chmod 644 $oldlib'
5943: old_postuninstall_cmds=
5944:
5945: if test -n "$RANLIB"; then
5946: case $host_os in
5947: bitrig* | openbsd*)
5948: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5949: ;;
5950: *)
5951: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5952: ;;
5953: esac
5954: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5955: fi
5956:
5957: case $host_os in
5958: darwin*)
5959: lock_old_archive_extraction=yes ;;
5960: *)
5961: lock_old_archive_extraction=no ;;
5962: esac
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:
6002: # If no C compiler was specified, use CC.
6003: LTCC=${LTCC-"$CC"}
6004:
6005: # If no C compiler flags were specified, use CFLAGS.
6006: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6007:
6008: # Allow CC to be a program name with arguments.
6009: compiler=$CC
6010:
6011:
6012: # Check for command to grab the raw symbol name followed by C symbol from nm.
6013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6014: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6015: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6016: $as_echo_n "(cached) " >&6
6017: else
6018:
6019: # These are sane defaults that work on at least a few old systems.
6020: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6021:
6022: # Character class describing NM global symbol codes.
6023: symcode='[BCDEGRST]'
6024:
6025: # Regexp to match symbols that can be accessed directly from C.
6026: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6027:
6028: # Define system-specific variables.
6029: case $host_os in
6030: aix*)
6031: symcode='[BCDT]'
6032: ;;
6033: cygwin* | mingw* | pw32* | cegcc*)
6034: symcode='[ABCDGISTW]'
6035: ;;
6036: hpux*)
6037: if test ia64 = "$host_cpu"; then
6038: symcode='[ABCDEGRST]'
6039: fi
6040: ;;
6041: irix* | nonstopux*)
6042: symcode='[BCDEGRST]'
6043: ;;
6044: osf*)
6045: symcode='[BCDEGQRST]'
6046: ;;
6047: solaris*)
6048: symcode='[BDRT]'
6049: ;;
6050: sco3.2v5*)
6051: symcode='[DT]'
6052: ;;
6053: sysv4.2uw2*)
6054: symcode='[DT]'
6055: ;;
6056: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6057: symcode='[ABDT]'
6058: ;;
6059: sysv4)
6060: symcode='[DFNSTU]'
6061: ;;
6062: esac
6063:
6064: # If we're using GNU nm, then use its standard symbol codes.
6065: case `$NM -V 2>&1` in
6066: *GNU* | *'with BFD'*)
6067: symcode='[ABCDGIRSTW]' ;;
6068: esac
6069:
6070: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6071: # Gets list of data symbols to import.
6072: lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6073: # Adjust the below global symbol transforms to fixup imported variables.
6074: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6075: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6076: lt_c_name_lib_hook="\
6077: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6078: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6079: else
6080: # Disable hooks by default.
6081: lt_cv_sys_global_symbol_to_import=
6082: lt_cdecl_hook=
6083: lt_c_name_hook=
6084: lt_c_name_lib_hook=
6085: fi
6086:
6087: # Transform an extracted symbol line into a proper C declaration.
6088: # Some systems (esp. on ia64) link data and code symbols differently,
6089: # so use this general approach.
6090: lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6091: $lt_cdecl_hook\
6092: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6093: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6094:
6095: # Transform an extracted symbol line into symbol name and symbol address
6096: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6097: $lt_c_name_hook\
6098: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6099: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6100:
6101: # Transform an extracted symbol line into symbol name with lib prefix and
6102: # symbol address.
6103: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6104: $lt_c_name_lib_hook\
6105: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6106: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6107: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6108:
6109: # Handle CRLF in mingw tool chain
6110: opt_cr=
6111: case $build_os in
6112: mingw*)
6113: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6114: ;;
6115: esac
6116:
6117: # Try without a prefix underscore, then with it.
6118: for ac_symprfx in "" "_"; do
6119:
6120: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6121: symxfrm="\\1 $ac_symprfx\\2 \\2"
6122:
6123: # Write the raw and C identifiers.
6124: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6125: # Fake it for dumpbin and say T for any non-static function,
6126: # D for any global variable and I for any imported variable.
6127: # Also find C++ and __fastcall symbols from MSVC++,
6128: # which start with @ or ?.
6129: lt_cv_sys_global_symbol_pipe="$AWK '"\
6130: " {last_section=section; section=\$ 3};"\
6131: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6132: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6133: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6134: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6135: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6136: " \$ 0!~/External *\|/{next};"\
6137: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6138: " {if(hide[section]) next};"\
6139: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6140: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6141: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6142: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6143: " ' prfx=^$ac_symprfx"
6144: else
6145: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6146: fi
6147: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6148:
6149: # Check to see that the pipe works correctly.
6150: pipe_works=no
6151:
6152: rm -f conftest*
6153: cat > conftest.$ac_ext <<_LT_EOF
6154: #ifdef __cplusplus
6155: extern "C" {
6156: #endif
6157: char nm_test_var;
6158: void nm_test_func(void);
6159: void nm_test_func(void){}
6160: #ifdef __cplusplus
6161: }
6162: #endif
6163: int main(){nm_test_var='a';nm_test_func();return(0);}
6164: _LT_EOF
6165:
6166: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6167: (eval $ac_compile) 2>&5
6168: ac_status=$?
6169: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170: test $ac_status = 0; }; then
6171: # Now try to grab the symbols.
6172: nlist=conftest.nm
6173: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6174: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6175: ac_status=$?
6176: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177: test $ac_status = 0; } && test -s "$nlist"; then
6178: # Try sorting and uniquifying the output.
6179: if sort "$nlist" | uniq > "$nlist"T; then
6180: mv -f "$nlist"T "$nlist"
6181: else
6182: rm -f "$nlist"T
6183: fi
6184:
6185: # Make sure that we snagged all the symbols we need.
6186: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6187: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6188: cat <<_LT_EOF > conftest.$ac_ext
6189: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6190: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6191: /* DATA imports from DLLs on WIN32 can't be const, because runtime
6192: relocations are performed -- see ld's documentation on pseudo-relocs. */
6193: # define LT_DLSYM_CONST
6194: #elif defined __osf__
6195: /* This system does not cope well with relocations in const data. */
6196: # define LT_DLSYM_CONST
6197: #else
6198: # define LT_DLSYM_CONST const
6199: #endif
6200:
6201: #ifdef __cplusplus
6202: extern "C" {
6203: #endif
6204:
6205: _LT_EOF
6206: # Now generate the symbol file.
6207: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6208:
6209: cat <<_LT_EOF >> conftest.$ac_ext
6210:
6211: /* The mapping between symbol names and symbols. */
6212: LT_DLSYM_CONST struct {
6213: const char *name;
6214: void *address;
6215: }
6216: lt__PROGRAM__LTX_preloaded_symbols[] =
6217: {
6218: { "@PROGRAM@", (void *) 0 },
6219: _LT_EOF
6220: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6221: cat <<\_LT_EOF >> conftest.$ac_ext
6222: {0, (void *) 0}
6223: };
6224:
6225: /* This works around a problem in FreeBSD linker */
6226: #ifdef FREEBSD_WORKAROUND
6227: static const void *lt_preloaded_setup() {
6228: return lt__PROGRAM__LTX_preloaded_symbols;
6229: }
6230: #endif
6231:
6232: #ifdef __cplusplus
6233: }
6234: #endif
6235: _LT_EOF
6236: # Now try linking the two files.
6237: mv conftest.$ac_objext conftstm.$ac_objext
6238: lt_globsym_save_LIBS=$LIBS
6239: lt_globsym_save_CFLAGS=$CFLAGS
6240: LIBS=conftstm.$ac_objext
6241: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6242: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6243: (eval $ac_link) 2>&5
6244: ac_status=$?
6245: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246: test $ac_status = 0; } && test -s conftest$ac_exeext; then
6247: pipe_works=yes
6248: fi
6249: LIBS=$lt_globsym_save_LIBS
6250: CFLAGS=$lt_globsym_save_CFLAGS
6251: else
6252: echo "cannot find nm_test_func in $nlist" >&5
6253: fi
6254: else
6255: echo "cannot find nm_test_var in $nlist" >&5
6256: fi
6257: else
6258: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6259: fi
6260: else
6261: echo "$progname: failed program was:" >&5
6262: cat conftest.$ac_ext >&5
6263: fi
6264: rm -rf conftest* conftst*
6265:
6266: # Do not use the global_symbol_pipe unless it works.
6267: if test yes = "$pipe_works"; then
6268: break
6269: else
6270: lt_cv_sys_global_symbol_pipe=
6271: fi
6272: done
6273:
6274: fi
6275:
6276: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6277: lt_cv_sys_global_symbol_to_cdecl=
6278: fi
6279: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6281: $as_echo "failed" >&6; }
6282: else
6283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6284: $as_echo "ok" >&6; }
6285: fi
6286:
6287: # Response file support.
6288: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6289: nm_file_list_spec='@'
6290: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6291: nm_file_list_spec='@'
6292: fi
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:
6330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6331: $as_echo_n "checking for sysroot... " >&6; }
6332:
6333: # Check whether --with-sysroot was given.
6334: if test "${with_sysroot+set}" = set; then :
6335: withval=$with_sysroot;
6336: else
6337: with_sysroot=no
6338: fi
6339:
6340:
6341: lt_sysroot=
6342: case $with_sysroot in #(
6343: yes)
6344: if test yes = "$GCC"; then
6345: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6346: fi
6347: ;; #(
6348: /*)
6349: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6350: ;; #(
6351: no|'')
6352: ;; #(
6353: *)
6354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6355: $as_echo "$with_sysroot" >&6; }
6356: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6357: ;;
6358: esac
6359:
6360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6361: $as_echo "${lt_sysroot:-no}" >&6; }
6362:
6363:
6364:
6365:
6366:
6367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6368: $as_echo_n "checking for a working dd... " >&6; }
6369: if ${ac_cv_path_lt_DD+:} false; then :
6370: $as_echo_n "(cached) " >&6
6371: else
6372: printf 0123456789abcdef0123456789abcdef >conftest.i
6373: cat conftest.i conftest.i >conftest2.i
6374: : ${lt_DD:=$DD}
6375: if test -z "$lt_DD"; then
6376: ac_path_lt_DD_found=false
6377: # Loop through the user's path and test for each of PROGNAME-LIST
6378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379: for as_dir in $PATH
6380: do
6381: IFS=$as_save_IFS
6382: test -z "$as_dir" && as_dir=.
6383: for ac_prog in dd; do
6384: for ac_exec_ext in '' $ac_executable_extensions; do
6385: ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6386: as_fn_executable_p "$ac_path_lt_DD" || continue
6387: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6388: cmp -s conftest.i conftest.out \
6389: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6390: fi
6391: $ac_path_lt_DD_found && break 3
6392: done
6393: done
6394: done
6395: IFS=$as_save_IFS
6396: if test -z "$ac_cv_path_lt_DD"; then
6397: :
6398: fi
6399: else
6400: ac_cv_path_lt_DD=$lt_DD
6401: fi
6402:
6403: rm -f conftest.i conftest2.i conftest.out
6404: fi
6405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6406: $as_echo "$ac_cv_path_lt_DD" >&6; }
6407:
6408:
6409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6410: $as_echo_n "checking how to truncate binary pipes... " >&6; }
6411: if ${lt_cv_truncate_bin+:} false; then :
6412: $as_echo_n "(cached) " >&6
6413: else
6414: printf 0123456789abcdef0123456789abcdef >conftest.i
6415: cat conftest.i conftest.i >conftest2.i
6416: lt_cv_truncate_bin=
6417: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6418: cmp -s conftest.i conftest.out \
6419: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6420: fi
6421: rm -f conftest.i conftest2.i conftest.out
6422: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6423: fi
6424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6425: $as_echo "$lt_cv_truncate_bin" >&6; }
6426:
6427:
6428:
6429:
6430:
6431:
6432:
6433: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6434: func_cc_basename ()
6435: {
6436: for cc_temp in $*""; do
6437: case $cc_temp in
6438: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6439: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6440: \-*) ;;
6441: *) break;;
6442: esac
6443: done
6444: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6445: }
6446:
6447: # Check whether --enable-libtool-lock was given.
6448: if test "${enable_libtool_lock+set}" = set; then :
6449: enableval=$enable_libtool_lock;
6450: fi
6451:
6452: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6453:
6454: # Some flags need to be propagated to the compiler or linker for good
6455: # libtool support.
6456: case $host in
6457: ia64-*-hpux*)
6458: # Find out what ABI is being produced by ac_compile, and set mode
6459: # options accordingly.
6460: echo 'int i;' > conftest.$ac_ext
6461: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462: (eval $ac_compile) 2>&5
6463: ac_status=$?
6464: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465: test $ac_status = 0; }; then
6466: case `/usr/bin/file conftest.$ac_objext` in
6467: *ELF-32*)
6468: HPUX_IA64_MODE=32
6469: ;;
6470: *ELF-64*)
6471: HPUX_IA64_MODE=64
6472: ;;
6473: esac
6474: fi
6475: rm -rf conftest*
6476: ;;
6477: *-*-irix6*)
6478: # Find out what ABI is being produced by ac_compile, and set linker
6479: # options accordingly.
6480: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6481: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6482: (eval $ac_compile) 2>&5
6483: ac_status=$?
6484: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485: test $ac_status = 0; }; then
6486: if test yes = "$lt_cv_prog_gnu_ld"; then
6487: case `/usr/bin/file conftest.$ac_objext` in
6488: *32-bit*)
6489: LD="${LD-ld} -melf32bsmip"
6490: ;;
6491: *N32*)
6492: LD="${LD-ld} -melf32bmipn32"
6493: ;;
6494: *64-bit*)
6495: LD="${LD-ld} -melf64bmip"
6496: ;;
6497: esac
6498: else
6499: case `/usr/bin/file conftest.$ac_objext` in
6500: *32-bit*)
6501: LD="${LD-ld} -32"
6502: ;;
6503: *N32*)
6504: LD="${LD-ld} -n32"
6505: ;;
6506: *64-bit*)
6507: LD="${LD-ld} -64"
6508: ;;
6509: esac
6510: fi
6511: fi
6512: rm -rf conftest*
6513: ;;
6514:
6515: mips64*-*linux*)
6516: # Find out what ABI is being produced by ac_compile, and set linker
6517: # options accordingly.
6518: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6519: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520: (eval $ac_compile) 2>&5
6521: ac_status=$?
6522: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523: test $ac_status = 0; }; then
6524: emul=elf
6525: case `/usr/bin/file conftest.$ac_objext` in
6526: *32-bit*)
6527: emul="${emul}32"
6528: ;;
6529: *64-bit*)
6530: emul="${emul}64"
6531: ;;
6532: esac
6533: case `/usr/bin/file conftest.$ac_objext` in
6534: *MSB*)
6535: emul="${emul}btsmip"
6536: ;;
6537: *LSB*)
6538: emul="${emul}ltsmip"
6539: ;;
6540: esac
6541: case `/usr/bin/file conftest.$ac_objext` in
6542: *N32*)
6543: emul="${emul}n32"
6544: ;;
6545: esac
6546: LD="${LD-ld} -m $emul"
6547: fi
6548: rm -rf conftest*
6549: ;;
6550:
6551: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6552: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6553: # Find out what ABI is being produced by ac_compile, and set linker
6554: # options accordingly. Note that the listed cases only cover the
6555: # situations where additional linker options are needed (such as when
6556: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6557: # vice versa); the common cases where no linker options are needed do
6558: # not appear in the list.
6559: echo 'int i;' > conftest.$ac_ext
6560: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6561: (eval $ac_compile) 2>&5
6562: ac_status=$?
6563: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564: test $ac_status = 0; }; then
6565: case `/usr/bin/file conftest.o` in
6566: *32-bit*)
6567: case $host in
6568: x86_64-*kfreebsd*-gnu)
6569: LD="${LD-ld} -m elf_i386_fbsd"
6570: ;;
6571: x86_64-*linux*)
6572: case `/usr/bin/file conftest.o` in
6573: *x86-64*)
6574: LD="${LD-ld} -m elf32_x86_64"
6575: ;;
6576: *)
6577: LD="${LD-ld} -m elf_i386"
6578: ;;
6579: esac
6580: ;;
6581: powerpc64le-*linux*)
6582: LD="${LD-ld} -m elf32lppclinux"
6583: ;;
6584: powerpc64-*linux*)
6585: LD="${LD-ld} -m elf32ppclinux"
6586: ;;
6587: s390x-*linux*)
6588: LD="${LD-ld} -m elf_s390"
6589: ;;
6590: sparc64-*linux*)
6591: LD="${LD-ld} -m elf32_sparc"
6592: ;;
6593: esac
6594: ;;
6595: *64-bit*)
6596: case $host in
6597: x86_64-*kfreebsd*-gnu)
6598: LD="${LD-ld} -m elf_x86_64_fbsd"
6599: ;;
6600: x86_64-*linux*)
6601: LD="${LD-ld} -m elf_x86_64"
6602: ;;
6603: powerpcle-*linux*)
6604: LD="${LD-ld} -m elf64lppc"
6605: ;;
6606: powerpc-*linux*)
6607: LD="${LD-ld} -m elf64ppc"
6608: ;;
6609: s390*-*linux*|s390*-*tpf*)
6610: LD="${LD-ld} -m elf64_s390"
6611: ;;
6612: sparc*-*linux*)
6613: LD="${LD-ld} -m elf64_sparc"
6614: ;;
6615: esac
6616: ;;
6617: esac
6618: fi
6619: rm -rf conftest*
6620: ;;
6621:
6622: *-*-sco3.2v5*)
6623: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6624: SAVE_CFLAGS=$CFLAGS
6625: CFLAGS="$CFLAGS -belf"
6626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6627: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6628: if ${lt_cv_cc_needs_belf+:} false; then :
6629: $as_echo_n "(cached) " >&6
6630: else
6631: ac_ext=c
6632: ac_cpp='$CPP $CPPFLAGS'
6633: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636:
6637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638: /* end confdefs.h. */
6639:
6640: int
6641: main ()
6642: {
6643:
6644: ;
6645: return 0;
6646: }
6647: _ACEOF
6648: if ac_fn_c_try_link "$LINENO"; then :
6649: lt_cv_cc_needs_belf=yes
6650: else
6651: lt_cv_cc_needs_belf=no
6652: fi
6653: rm -f core conftest.err conftest.$ac_objext \
6654: conftest$ac_exeext conftest.$ac_ext
6655: ac_ext=c
6656: ac_cpp='$CPP $CPPFLAGS'
6657: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660:
6661: fi
6662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6663: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6664: if test yes != "$lt_cv_cc_needs_belf"; then
6665: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6666: CFLAGS=$SAVE_CFLAGS
6667: fi
6668: ;;
6669: *-*solaris*)
6670: # Find out what ABI is being produced by ac_compile, and set linker
6671: # options accordingly.
6672: echo 'int i;' > conftest.$ac_ext
6673: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674: (eval $ac_compile) 2>&5
6675: ac_status=$?
6676: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677: test $ac_status = 0; }; then
6678: case `/usr/bin/file conftest.o` in
6679: *64-bit*)
6680: case $lt_cv_prog_gnu_ld in
6681: yes*)
6682: case $host in
6683: i?86-*-solaris*|x86_64-*-solaris*)
6684: LD="${LD-ld} -m elf_x86_64"
6685: ;;
6686: sparc*-*-solaris*)
6687: LD="${LD-ld} -m elf64_sparc"
6688: ;;
6689: esac
6690: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6691: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6692: LD=${LD-ld}_sol2
6693: fi
6694: ;;
6695: *)
6696: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6697: LD="${LD-ld} -64"
6698: fi
6699: ;;
6700: esac
6701: ;;
6702: esac
6703: fi
6704: rm -rf conftest*
6705: ;;
6706: esac
6707:
6708: need_locks=$enable_libtool_lock
6709:
6710: if test -n "$ac_tool_prefix"; then
6711: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6712: set dummy ${ac_tool_prefix}mt; ac_word=$2
6713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714: $as_echo_n "checking for $ac_word... " >&6; }
6715: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6716: $as_echo_n "(cached) " >&6
6717: else
6718: if test -n "$MANIFEST_TOOL"; then
6719: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6720: else
6721: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722: for as_dir in $PATH
6723: do
6724: IFS=$as_save_IFS
6725: test -z "$as_dir" && as_dir=.
6726: for ac_exec_ext in '' $ac_executable_extensions; do
6727: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6729: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730: break 2
6731: fi
6732: done
6733: done
6734: IFS=$as_save_IFS
6735:
6736: fi
6737: fi
6738: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6739: if test -n "$MANIFEST_TOOL"; then
6740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6741: $as_echo "$MANIFEST_TOOL" >&6; }
6742: else
6743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744: $as_echo "no" >&6; }
6745: fi
6746:
6747:
6748: fi
6749: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6750: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6751: # Extract the first word of "mt", so it can be a program name with args.
6752: set dummy mt; ac_word=$2
6753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754: $as_echo_n "checking for $ac_word... " >&6; }
6755: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6756: $as_echo_n "(cached) " >&6
6757: else
6758: if test -n "$ac_ct_MANIFEST_TOOL"; then
6759: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6760: else
6761: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762: for as_dir in $PATH
6763: do
6764: IFS=$as_save_IFS
6765: test -z "$as_dir" && as_dir=.
6766: for ac_exec_ext in '' $ac_executable_extensions; do
6767: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6769: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770: break 2
6771: fi
6772: done
6773: done
6774: IFS=$as_save_IFS
6775:
6776: fi
6777: fi
6778: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6779: if test -n "$ac_ct_MANIFEST_TOOL"; then
6780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6781: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6782: else
6783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784: $as_echo "no" >&6; }
6785: fi
6786:
6787: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6788: MANIFEST_TOOL=":"
6789: else
6790: case $cross_compiling:$ac_tool_warned in
6791: yes:)
6792: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794: ac_tool_warned=yes ;;
6795: esac
6796: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6797: fi
6798: else
6799: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6800: fi
6801:
6802: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6804: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6805: if ${lt_cv_path_mainfest_tool+:} false; then :
6806: $as_echo_n "(cached) " >&6
6807: else
6808: lt_cv_path_mainfest_tool=no
6809: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6810: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6811: cat conftest.err >&5
6812: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6813: lt_cv_path_mainfest_tool=yes
6814: fi
6815: rm -f conftest*
6816: fi
6817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6818: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6819: if test yes != "$lt_cv_path_mainfest_tool"; then
6820: MANIFEST_TOOL=:
6821: fi
6822:
6823:
6824:
6825:
6826:
6827:
6828: case $host_os in
6829: rhapsody* | darwin*)
6830: if test -n "$ac_tool_prefix"; then
6831: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6832: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834: $as_echo_n "checking for $ac_word... " >&6; }
6835: if ${ac_cv_prog_DSYMUTIL+:} false; then :
6836: $as_echo_n "(cached) " >&6
6837: else
6838: if test -n "$DSYMUTIL"; then
6839: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6840: else
6841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842: for as_dir in $PATH
6843: do
6844: IFS=$as_save_IFS
6845: test -z "$as_dir" && as_dir=.
6846: for ac_exec_ext in '' $ac_executable_extensions; do
6847: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6849: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850: break 2
6851: fi
6852: done
6853: done
6854: IFS=$as_save_IFS
6855:
6856: fi
6857: fi
6858: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6859: if test -n "$DSYMUTIL"; then
6860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6861: $as_echo "$DSYMUTIL" >&6; }
6862: else
6863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864: $as_echo "no" >&6; }
6865: fi
6866:
6867:
6868: fi
6869: if test -z "$ac_cv_prog_DSYMUTIL"; then
6870: ac_ct_DSYMUTIL=$DSYMUTIL
6871: # Extract the first word of "dsymutil", so it can be a program name with args.
6872: set dummy dsymutil; ac_word=$2
6873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874: $as_echo_n "checking for $ac_word... " >&6; }
6875: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6876: $as_echo_n "(cached) " >&6
6877: else
6878: if test -n "$ac_ct_DSYMUTIL"; then
6879: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6880: else
6881: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882: for as_dir in $PATH
6883: do
6884: IFS=$as_save_IFS
6885: test -z "$as_dir" && as_dir=.
6886: for ac_exec_ext in '' $ac_executable_extensions; do
6887: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6889: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890: break 2
6891: fi
6892: done
6893: done
6894: IFS=$as_save_IFS
6895:
6896: fi
6897: fi
6898: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6899: if test -n "$ac_ct_DSYMUTIL"; then
6900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6901: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6902: else
6903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904: $as_echo "no" >&6; }
6905: fi
6906:
6907: if test "x$ac_ct_DSYMUTIL" = x; then
6908: DSYMUTIL=":"
6909: else
6910: case $cross_compiling:$ac_tool_warned in
6911: yes:)
6912: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914: ac_tool_warned=yes ;;
6915: esac
6916: DSYMUTIL=$ac_ct_DSYMUTIL
6917: fi
6918: else
6919: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6920: fi
6921:
6922: if test -n "$ac_tool_prefix"; then
6923: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6924: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926: $as_echo_n "checking for $ac_word... " >&6; }
6927: if ${ac_cv_prog_NMEDIT+:} false; then :
6928: $as_echo_n "(cached) " >&6
6929: else
6930: if test -n "$NMEDIT"; then
6931: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6932: else
6933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934: for as_dir in $PATH
6935: do
6936: IFS=$as_save_IFS
6937: test -z "$as_dir" && as_dir=.
6938: for ac_exec_ext in '' $ac_executable_extensions; do
6939: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6941: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942: break 2
6943: fi
6944: done
6945: done
6946: IFS=$as_save_IFS
6947:
6948: fi
6949: fi
6950: NMEDIT=$ac_cv_prog_NMEDIT
6951: if test -n "$NMEDIT"; then
6952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6953: $as_echo "$NMEDIT" >&6; }
6954: else
6955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956: $as_echo "no" >&6; }
6957: fi
6958:
6959:
6960: fi
6961: if test -z "$ac_cv_prog_NMEDIT"; then
6962: ac_ct_NMEDIT=$NMEDIT
6963: # Extract the first word of "nmedit", so it can be a program name with args.
6964: set dummy nmedit; ac_word=$2
6965: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966: $as_echo_n "checking for $ac_word... " >&6; }
6967: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6968: $as_echo_n "(cached) " >&6
6969: else
6970: if test -n "$ac_ct_NMEDIT"; then
6971: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6972: else
6973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974: for as_dir in $PATH
6975: do
6976: IFS=$as_save_IFS
6977: test -z "$as_dir" && as_dir=.
6978: for ac_exec_ext in '' $ac_executable_extensions; do
6979: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6981: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982: break 2
6983: fi
6984: done
6985: done
6986: IFS=$as_save_IFS
6987:
6988: fi
6989: fi
6990: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6991: if test -n "$ac_ct_NMEDIT"; then
6992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6993: $as_echo "$ac_ct_NMEDIT" >&6; }
6994: else
6995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996: $as_echo "no" >&6; }
6997: fi
6998:
6999: if test "x$ac_ct_NMEDIT" = x; then
7000: NMEDIT=":"
7001: else
7002: case $cross_compiling:$ac_tool_warned in
7003: yes:)
7004: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006: ac_tool_warned=yes ;;
7007: esac
7008: NMEDIT=$ac_ct_NMEDIT
7009: fi
7010: else
7011: NMEDIT="$ac_cv_prog_NMEDIT"
7012: fi
7013:
7014: if test -n "$ac_tool_prefix"; then
7015: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7016: set dummy ${ac_tool_prefix}lipo; ac_word=$2
7017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018: $as_echo_n "checking for $ac_word... " >&6; }
7019: if ${ac_cv_prog_LIPO+:} false; then :
7020: $as_echo_n "(cached) " >&6
7021: else
7022: if test -n "$LIPO"; then
7023: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7024: else
7025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026: for as_dir in $PATH
7027: do
7028: IFS=$as_save_IFS
7029: test -z "$as_dir" && as_dir=.
7030: for ac_exec_ext in '' $ac_executable_extensions; do
7031: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7033: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034: break 2
7035: fi
7036: done
7037: done
7038: IFS=$as_save_IFS
7039:
7040: fi
7041: fi
7042: LIPO=$ac_cv_prog_LIPO
7043: if test -n "$LIPO"; then
7044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7045: $as_echo "$LIPO" >&6; }
7046: else
7047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048: $as_echo "no" >&6; }
7049: fi
7050:
7051:
7052: fi
7053: if test -z "$ac_cv_prog_LIPO"; then
7054: ac_ct_LIPO=$LIPO
7055: # Extract the first word of "lipo", so it can be a program name with args.
7056: set dummy lipo; ac_word=$2
7057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058: $as_echo_n "checking for $ac_word... " >&6; }
7059: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7060: $as_echo_n "(cached) " >&6
7061: else
7062: if test -n "$ac_ct_LIPO"; then
7063: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7064: else
7065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066: for as_dir in $PATH
7067: do
7068: IFS=$as_save_IFS
7069: test -z "$as_dir" && as_dir=.
7070: for ac_exec_ext in '' $ac_executable_extensions; do
7071: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072: ac_cv_prog_ac_ct_LIPO="lipo"
7073: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074: break 2
7075: fi
7076: done
7077: done
7078: IFS=$as_save_IFS
7079:
7080: fi
7081: fi
7082: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7083: if test -n "$ac_ct_LIPO"; then
7084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7085: $as_echo "$ac_ct_LIPO" >&6; }
7086: else
7087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088: $as_echo "no" >&6; }
7089: fi
7090:
7091: if test "x$ac_ct_LIPO" = x; then
7092: LIPO=":"
7093: else
7094: case $cross_compiling:$ac_tool_warned in
7095: yes:)
7096: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098: ac_tool_warned=yes ;;
7099: esac
7100: LIPO=$ac_ct_LIPO
7101: fi
7102: else
7103: LIPO="$ac_cv_prog_LIPO"
7104: fi
7105:
7106: if test -n "$ac_tool_prefix"; then
7107: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7108: set dummy ${ac_tool_prefix}otool; ac_word=$2
7109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110: $as_echo_n "checking for $ac_word... " >&6; }
7111: if ${ac_cv_prog_OTOOL+:} false; then :
7112: $as_echo_n "(cached) " >&6
7113: else
7114: if test -n "$OTOOL"; then
7115: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7116: else
7117: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118: for as_dir in $PATH
7119: do
7120: IFS=$as_save_IFS
7121: test -z "$as_dir" && as_dir=.
7122: for ac_exec_ext in '' $ac_executable_extensions; do
7123: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7125: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126: break 2
7127: fi
7128: done
7129: done
7130: IFS=$as_save_IFS
7131:
7132: fi
7133: fi
7134: OTOOL=$ac_cv_prog_OTOOL
7135: if test -n "$OTOOL"; then
7136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7137: $as_echo "$OTOOL" >&6; }
7138: else
7139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140: $as_echo "no" >&6; }
7141: fi
7142:
7143:
7144: fi
7145: if test -z "$ac_cv_prog_OTOOL"; then
7146: ac_ct_OTOOL=$OTOOL
7147: # Extract the first word of "otool", so it can be a program name with args.
7148: set dummy otool; ac_word=$2
7149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150: $as_echo_n "checking for $ac_word... " >&6; }
7151: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7152: $as_echo_n "(cached) " >&6
7153: else
7154: if test -n "$ac_ct_OTOOL"; then
7155: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7156: else
7157: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158: for as_dir in $PATH
7159: do
7160: IFS=$as_save_IFS
7161: test -z "$as_dir" && as_dir=.
7162: for ac_exec_ext in '' $ac_executable_extensions; do
7163: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164: ac_cv_prog_ac_ct_OTOOL="otool"
7165: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166: break 2
7167: fi
7168: done
7169: done
7170: IFS=$as_save_IFS
7171:
7172: fi
7173: fi
7174: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7175: if test -n "$ac_ct_OTOOL"; then
7176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7177: $as_echo "$ac_ct_OTOOL" >&6; }
7178: else
7179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180: $as_echo "no" >&6; }
7181: fi
7182:
7183: if test "x$ac_ct_OTOOL" = x; then
7184: OTOOL=":"
7185: else
7186: case $cross_compiling:$ac_tool_warned in
7187: yes:)
7188: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190: ac_tool_warned=yes ;;
7191: esac
7192: OTOOL=$ac_ct_OTOOL
7193: fi
7194: else
7195: OTOOL="$ac_cv_prog_OTOOL"
7196: fi
7197:
7198: if test -n "$ac_tool_prefix"; then
7199: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7200: set dummy ${ac_tool_prefix}otool64; ac_word=$2
7201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202: $as_echo_n "checking for $ac_word... " >&6; }
7203: if ${ac_cv_prog_OTOOL64+:} false; then :
7204: $as_echo_n "(cached) " >&6
7205: else
7206: if test -n "$OTOOL64"; then
7207: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7208: else
7209: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210: for as_dir in $PATH
7211: do
7212: IFS=$as_save_IFS
7213: test -z "$as_dir" && as_dir=.
7214: for ac_exec_ext in '' $ac_executable_extensions; do
7215: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7217: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218: break 2
7219: fi
7220: done
7221: done
7222: IFS=$as_save_IFS
7223:
7224: fi
7225: fi
7226: OTOOL64=$ac_cv_prog_OTOOL64
7227: if test -n "$OTOOL64"; then
7228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7229: $as_echo "$OTOOL64" >&6; }
7230: else
7231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232: $as_echo "no" >&6; }
7233: fi
7234:
7235:
7236: fi
7237: if test -z "$ac_cv_prog_OTOOL64"; then
7238: ac_ct_OTOOL64=$OTOOL64
7239: # Extract the first word of "otool64", so it can be a program name with args.
7240: set dummy otool64; ac_word=$2
7241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242: $as_echo_n "checking for $ac_word... " >&6; }
7243: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7244: $as_echo_n "(cached) " >&6
7245: else
7246: if test -n "$ac_ct_OTOOL64"; then
7247: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7248: else
7249: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250: for as_dir in $PATH
7251: do
7252: IFS=$as_save_IFS
7253: test -z "$as_dir" && as_dir=.
7254: for ac_exec_ext in '' $ac_executable_extensions; do
7255: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256: ac_cv_prog_ac_ct_OTOOL64="otool64"
7257: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258: break 2
7259: fi
7260: done
7261: done
7262: IFS=$as_save_IFS
7263:
7264: fi
7265: fi
7266: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7267: if test -n "$ac_ct_OTOOL64"; then
7268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7269: $as_echo "$ac_ct_OTOOL64" >&6; }
7270: else
7271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272: $as_echo "no" >&6; }
7273: fi
7274:
7275: if test "x$ac_ct_OTOOL64" = x; then
7276: OTOOL64=":"
7277: else
7278: case $cross_compiling:$ac_tool_warned in
7279: yes:)
7280: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282: ac_tool_warned=yes ;;
7283: esac
7284: OTOOL64=$ac_ct_OTOOL64
7285: fi
7286: else
7287: OTOOL64="$ac_cv_prog_OTOOL64"
7288: fi
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:
7316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7317: $as_echo_n "checking for -single_module linker flag... " >&6; }
7318: if ${lt_cv_apple_cc_single_mod+:} false; then :
7319: $as_echo_n "(cached) " >&6
7320: else
7321: lt_cv_apple_cc_single_mod=no
7322: if test -z "$LT_MULTI_MODULE"; then
7323: # By default we will add the -single_module flag. You can override
7324: # by either setting the environment variable LT_MULTI_MODULE
7325: # non-empty at configure time, or by adding -multi_module to the
7326: # link flags.
7327: rm -rf libconftest.dylib*
7328: echo "int foo(void){return 1;}" > conftest.c
7329: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7330: -dynamiclib -Wl,-single_module conftest.c" >&5
7331: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7332: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7333: _lt_result=$?
7334: # If there is a non-empty error log, and "single_module"
7335: # appears in it, assume the flag caused a linker warning
7336: if test -s conftest.err && $GREP single_module conftest.err; then
7337: cat conftest.err >&5
7338: # Otherwise, if the output was created with a 0 exit code from
7339: # the compiler, it worked.
7340: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7341: lt_cv_apple_cc_single_mod=yes
7342: else
7343: cat conftest.err >&5
7344: fi
7345: rm -rf libconftest.dylib*
7346: rm -f conftest.*
7347: fi
7348: fi
7349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7350: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7351:
7352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7353: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7354: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7355: $as_echo_n "(cached) " >&6
7356: else
7357: lt_cv_ld_exported_symbols_list=no
7358: save_LDFLAGS=$LDFLAGS
7359: echo "_main" > conftest.sym
7360: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362: /* end confdefs.h. */
7363:
7364: int
7365: main ()
7366: {
7367:
7368: ;
7369: return 0;
7370: }
7371: _ACEOF
7372: if ac_fn_c_try_link "$LINENO"; then :
7373: lt_cv_ld_exported_symbols_list=yes
7374: else
7375: lt_cv_ld_exported_symbols_list=no
7376: fi
7377: rm -f core conftest.err conftest.$ac_objext \
7378: conftest$ac_exeext conftest.$ac_ext
7379: LDFLAGS=$save_LDFLAGS
7380:
7381: fi
7382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7383: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7384:
7385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7386: $as_echo_n "checking for -force_load linker flag... " >&6; }
7387: if ${lt_cv_ld_force_load+:} false; then :
7388: $as_echo_n "(cached) " >&6
7389: else
7390: lt_cv_ld_force_load=no
7391: cat > conftest.c << _LT_EOF
7392: int forced_loaded() { return 2;}
7393: _LT_EOF
7394: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7395: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7396: echo "$AR cru libconftest.a conftest.o" >&5
7397: $AR cru libconftest.a conftest.o 2>&5
7398: echo "$RANLIB libconftest.a" >&5
7399: $RANLIB libconftest.a 2>&5
7400: cat > conftest.c << _LT_EOF
7401: int main() { return 0;}
7402: _LT_EOF
7403: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7404: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7405: _lt_result=$?
7406: if test -s conftest.err && $GREP force_load conftest.err; then
7407: cat conftest.err >&5
7408: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7409: lt_cv_ld_force_load=yes
7410: else
7411: cat conftest.err >&5
7412: fi
7413: rm -f conftest.err libconftest.a conftest conftest.c
7414: rm -rf conftest.dSYM
7415:
7416: fi
7417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7418: $as_echo "$lt_cv_ld_force_load" >&6; }
7419: case $host_os in
7420: rhapsody* | darwin1.[012])
7421: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7422: darwin1.*)
7423: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7424: darwin*) # darwin 5.x on
7425: # if running on 10.5 or later, the deployment target defaults
7426: # to the OS version, if on x86, and 10.4, the deployment
7427: # target defaults to 10.4. Don't you love it?
7428: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7429: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7430: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7431: 10.[012][,.]*)
7432: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7433: 10.*)
7434: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7435: esac
7436: ;;
7437: esac
7438: if test yes = "$lt_cv_apple_cc_single_mod"; then
7439: _lt_dar_single_mod='$single_module'
7440: fi
7441: if test yes = "$lt_cv_ld_exported_symbols_list"; then
7442: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7443: else
7444: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7445: fi
7446: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7447: _lt_dsymutil='~$DSYMUTIL $lib || :'
7448: else
7449: _lt_dsymutil=
7450: fi
7451: ;;
7452: esac
7453:
7454: # func_munge_path_list VARIABLE PATH
7455: # -----------------------------------
7456: # VARIABLE is name of variable containing _space_ separated list of
7457: # directories to be munged by the contents of PATH, which is string
7458: # having a format:
7459: # "DIR[:DIR]:"
7460: # string "DIR[ DIR]" will be prepended to VARIABLE
7461: # ":DIR[:DIR]"
7462: # string "DIR[ DIR]" will be appended to VARIABLE
7463: # "DIRP[:DIRP]::[DIRA:]DIRA"
7464: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7465: # "DIRA[ DIRA]" will be appended to VARIABLE
7466: # "DIR[:DIR]"
7467: # VARIABLE will be replaced by "DIR[ DIR]"
7468: func_munge_path_list ()
7469: {
7470: case x$2 in
7471: x)
7472: ;;
7473: *:)
7474: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7475: ;;
7476: x:*)
7477: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7478: ;;
7479: *::*)
7480: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7481: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7482: ;;
7483: *)
7484: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7485: ;;
7486: esac
7487: }
7488:
7489: ac_ext=c
7490: ac_cpp='$CPP $CPPFLAGS'
7491: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7494: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7495: $as_echo_n "checking how to run the C preprocessor... " >&6; }
7496: # On Suns, sometimes $CPP names a directory.
7497: if test -n "$CPP" && test -d "$CPP"; then
7498: CPP=
7499: fi
7500: if test -z "$CPP"; then
7501: if ${ac_cv_prog_CPP+:} false; then :
7502: $as_echo_n "(cached) " >&6
7503: else
7504: # Double quotes because CPP needs to be expanded
7505: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7506: do
7507: ac_preproc_ok=false
7508: for ac_c_preproc_warn_flag in '' yes
7509: do
7510: # Use a header file that comes with gcc, so configuring glibc
7511: # with a fresh cross-compiler works.
7512: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513: # <limits.h> exists even on freestanding compilers.
7514: # On the NeXT, cc -E runs the code through the compiler's parser,
7515: # not just through cpp. "Syntax error" is here to catch this case.
7516: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517: /* end confdefs.h. */
7518: #ifdef __STDC__
7519: # include <limits.h>
7520: #else
7521: # include <assert.h>
7522: #endif
7523: Syntax error
7524: _ACEOF
7525: if ac_fn_c_try_cpp "$LINENO"; then :
7526:
7527: else
7528: # Broken: fails on valid input.
7529: continue
7530: fi
7531: rm -f conftest.err conftest.i conftest.$ac_ext
7532:
7533: # OK, works on sane cases. Now check whether nonexistent headers
7534: # can be detected and how.
7535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536: /* end confdefs.h. */
7537: #include <ac_nonexistent.h>
7538: _ACEOF
7539: if ac_fn_c_try_cpp "$LINENO"; then :
7540: # Broken: success on invalid input.
7541: continue
7542: else
7543: # Passes both tests.
7544: ac_preproc_ok=:
7545: break
7546: fi
7547: rm -f conftest.err conftest.i conftest.$ac_ext
7548:
7549: done
7550: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7551: rm -f conftest.i conftest.err conftest.$ac_ext
7552: if $ac_preproc_ok; then :
7553: break
7554: fi
7555:
7556: done
7557: ac_cv_prog_CPP=$CPP
7558:
7559: fi
7560: CPP=$ac_cv_prog_CPP
7561: else
7562: ac_cv_prog_CPP=$CPP
7563: fi
7564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7565: $as_echo "$CPP" >&6; }
7566: ac_preproc_ok=false
7567: for ac_c_preproc_warn_flag in '' yes
7568: do
7569: # Use a header file that comes with gcc, so configuring glibc
7570: # with a fresh cross-compiler works.
7571: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7572: # <limits.h> exists even on freestanding compilers.
7573: # On the NeXT, cc -E runs the code through the compiler's parser,
7574: # not just through cpp. "Syntax error" is here to catch this case.
7575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576: /* end confdefs.h. */
7577: #ifdef __STDC__
7578: # include <limits.h>
7579: #else
7580: # include <assert.h>
7581: #endif
7582: Syntax error
7583: _ACEOF
7584: if ac_fn_c_try_cpp "$LINENO"; then :
7585:
7586: else
7587: # Broken: fails on valid input.
7588: continue
7589: fi
7590: rm -f conftest.err conftest.i conftest.$ac_ext
7591:
7592: # OK, works on sane cases. Now check whether nonexistent headers
7593: # can be detected and how.
7594: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595: /* end confdefs.h. */
7596: #include <ac_nonexistent.h>
7597: _ACEOF
7598: if ac_fn_c_try_cpp "$LINENO"; then :
7599: # Broken: success on invalid input.
7600: continue
7601: else
7602: # Passes both tests.
7603: ac_preproc_ok=:
7604: break
7605: fi
7606: rm -f conftest.err conftest.i conftest.$ac_ext
7607:
7608: done
7609: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7610: rm -f conftest.i conftest.err conftest.$ac_ext
7611: if $ac_preproc_ok; then :
7612:
7613: else
7614: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7615: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7616: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7617: See \`config.log' for more details" "$LINENO" 5; }
7618: fi
7619:
7620: ac_ext=c
7621: ac_cpp='$CPP $CPPFLAGS'
7622: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625:
7626:
7627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7628: $as_echo_n "checking for ANSI C header files... " >&6; }
7629: if ${ac_cv_header_stdc+:} false; then :
7630: $as_echo_n "(cached) " >&6
7631: else
7632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633: /* end confdefs.h. */
7634: #include <stdlib.h>
7635: #include <stdarg.h>
7636: #include <string.h>
7637: #include <float.h>
7638:
7639: int
7640: main ()
7641: {
7642:
7643: ;
7644: return 0;
7645: }
7646: _ACEOF
7647: if ac_fn_c_try_compile "$LINENO"; then :
7648: ac_cv_header_stdc=yes
7649: else
7650: ac_cv_header_stdc=no
7651: fi
7652: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653:
7654: if test $ac_cv_header_stdc = yes; then
7655: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7656: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657: /* end confdefs.h. */
7658: #include <string.h>
7659:
7660: _ACEOF
7661: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662: $EGREP "memchr" >/dev/null 2>&1; then :
7663:
7664: else
7665: ac_cv_header_stdc=no
7666: fi
7667: rm -f conftest*
7668:
7669: fi
7670:
7671: if test $ac_cv_header_stdc = yes; then
7672: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674: /* end confdefs.h. */
7675: #include <stdlib.h>
7676:
7677: _ACEOF
7678: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7679: $EGREP "free" >/dev/null 2>&1; then :
7680:
7681: else
7682: ac_cv_header_stdc=no
7683: fi
7684: rm -f conftest*
7685:
7686: fi
7687:
7688: if test $ac_cv_header_stdc = yes; then
7689: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7690: if test "$cross_compiling" = yes; then :
7691: :
7692: else
7693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694: /* end confdefs.h. */
7695: #include <ctype.h>
7696: #include <stdlib.h>
7697: #if ((' ' & 0x0FF) == 0x020)
7698: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7699: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7700: #else
7701: # define ISLOWER(c) \
7702: (('a' <= (c) && (c) <= 'i') \
7703: || ('j' <= (c) && (c) <= 'r') \
7704: || ('s' <= (c) && (c) <= 'z'))
7705: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7706: #endif
7707:
7708: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7709: int
7710: main ()
7711: {
7712: int i;
7713: for (i = 0; i < 256; i++)
7714: if (XOR (islower (i), ISLOWER (i))
7715: || toupper (i) != TOUPPER (i))
7716: return 2;
7717: return 0;
7718: }
7719: _ACEOF
7720: if ac_fn_c_try_run "$LINENO"; then :
7721:
7722: else
7723: ac_cv_header_stdc=no
7724: fi
7725: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7726: conftest.$ac_objext conftest.beam conftest.$ac_ext
7727: fi
7728:
7729: fi
7730: fi
7731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7732: $as_echo "$ac_cv_header_stdc" >&6; }
7733: if test $ac_cv_header_stdc = yes; then
7734:
7735: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7736:
7737: fi
7738:
7739: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7740: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7741: inttypes.h stdint.h unistd.h
7742: do :
7743: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7745: "
7746: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7747: cat >>confdefs.h <<_ACEOF
7748: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7749: _ACEOF
7750:
7751: fi
7752:
7753: done
7754:
7755:
7756: for ac_header in dlfcn.h
7757: do :
7758: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7759: "
7760: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7761: cat >>confdefs.h <<_ACEOF
7762: #define HAVE_DLFCN_H 1
7763: _ACEOF
7764:
7765: fi
7766:
7767: done
7768:
7769:
7770:
7771:
7772:
7773: # Set options
7774:
7775:
7776:
7777: enable_dlopen=no
7778:
7779:
7780: enable_win32_dll=no
7781:
7782:
7783: # Check whether --enable-shared was given.
7784: if test "${enable_shared+set}" = set; then :
7785: enableval=$enable_shared; p=${PACKAGE-default}
7786: case $enableval in
7787: yes) enable_shared=yes ;;
7788: no) enable_shared=no ;;
7789: *)
7790: enable_shared=no
7791: # Look at the argument we got. We use all the common list separators.
7792: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7793: for pkg in $enableval; do
7794: IFS=$lt_save_ifs
7795: if test "X$pkg" = "X$p"; then
7796: enable_shared=yes
7797: fi
7798: done
7799: IFS=$lt_save_ifs
7800: ;;
7801: esac
7802: else
7803: enable_shared=yes
7804: fi
7805:
7806:
7807:
7808:
7809:
7810:
7811:
7812:
7813:
7814: # Check whether --enable-static was given.
7815: if test "${enable_static+set}" = set; then :
7816: enableval=$enable_static; p=${PACKAGE-default}
7817: case $enableval in
7818: yes) enable_static=yes ;;
7819: no) enable_static=no ;;
7820: *)
7821: enable_static=no
7822: # Look at the argument we got. We use all the common list separators.
7823: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7824: for pkg in $enableval; do
7825: IFS=$lt_save_ifs
7826: if test "X$pkg" = "X$p"; then
7827: enable_static=yes
7828: fi
7829: done
7830: IFS=$lt_save_ifs
7831: ;;
7832: esac
7833: else
7834: enable_static=yes
7835: fi
7836:
7837:
7838:
7839:
7840:
7841:
7842:
7843:
7844:
7845:
7846: # Check whether --with-pic was given.
7847: if test "${with_pic+set}" = set; then :
7848: withval=$with_pic; lt_p=${PACKAGE-default}
7849: case $withval in
7850: yes|no) pic_mode=$withval ;;
7851: *)
7852: pic_mode=default
7853: # Look at the argument we got. We use all the common list separators.
7854: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7855: for lt_pkg in $withval; do
7856: IFS=$lt_save_ifs
7857: if test "X$lt_pkg" = "X$lt_p"; then
7858: pic_mode=yes
7859: fi
7860: done
7861: IFS=$lt_save_ifs
7862: ;;
7863: esac
7864: else
7865: pic_mode=default
7866: fi
7867:
7868:
7869:
7870:
7871:
7872:
7873:
7874:
7875: # Check whether --enable-fast-install was given.
7876: if test "${enable_fast_install+set}" = set; then :
7877: enableval=$enable_fast_install; p=${PACKAGE-default}
7878: case $enableval in
7879: yes) enable_fast_install=yes ;;
7880: no) enable_fast_install=no ;;
7881: *)
7882: enable_fast_install=no
7883: # Look at the argument we got. We use all the common list separators.
7884: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7885: for pkg in $enableval; do
7886: IFS=$lt_save_ifs
7887: if test "X$pkg" = "X$p"; then
7888: enable_fast_install=yes
7889: fi
7890: done
7891: IFS=$lt_save_ifs
7892: ;;
7893: esac
7894: else
7895: enable_fast_install=yes
7896: fi
7897:
7898:
7899:
7900:
7901:
7902:
7903:
7904:
7905: shared_archive_member_spec=
7906: case $host,$enable_shared in
7907: power*-*-aix[5-9]*,yes)
7908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7909: $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7910:
7911: # Check whether --with-aix-soname was given.
7912: if test "${with_aix_soname+set}" = set; then :
7913: withval=$with_aix_soname; case $withval in
7914: aix|svr4|both)
7915: ;;
7916: *)
7917: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7918: ;;
7919: esac
7920: lt_cv_with_aix_soname=$with_aix_soname
7921: else
7922: if ${lt_cv_with_aix_soname+:} false; then :
7923: $as_echo_n "(cached) " >&6
7924: else
7925: lt_cv_with_aix_soname=aix
7926: fi
7927:
7928: with_aix_soname=$lt_cv_with_aix_soname
7929: fi
7930:
7931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7932: $as_echo "$with_aix_soname" >&6; }
7933: if test aix != "$with_aix_soname"; then
7934: # For the AIX way of multilib, we name the shared archive member
7935: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7936: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7937: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7938: # the AIX toolchain works better with OBJECT_MODE set (default 32).
7939: if test 64 = "${OBJECT_MODE-32}"; then
7940: shared_archive_member_spec=shr_64
7941: else
7942: shared_archive_member_spec=shr
7943: fi
7944: fi
7945: ;;
7946: *)
7947: with_aix_soname=aix
7948: ;;
7949: esac
7950:
7951:
7952:
7953:
7954:
7955:
7956:
7957:
7958:
7959:
7960: # This can be used to rebuild libtool when needed
7961: LIBTOOL_DEPS=$ltmain
7962:
7963: # Always use our own libtool.
7964: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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:
7995: test -z "$LN_S" && LN_S="ln -s"
7996:
7997:
7998:
7999:
8000:
8001:
8002:
8003:
8004:
8005:
8006:
8007:
8008:
8009:
8010: if test -n "${ZSH_VERSION+set}"; then
8011: setopt NO_GLOB_SUBST
8012: fi
8013:
8014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8015: $as_echo_n "checking for objdir... " >&6; }
8016: if ${lt_cv_objdir+:} false; then :
8017: $as_echo_n "(cached) " >&6
8018: else
8019: rm -f .libs 2>/dev/null
8020: mkdir .libs 2>/dev/null
8021: if test -d .libs; then
8022: lt_cv_objdir=.libs
8023: else
8024: # MS-DOS does not allow filenames that begin with a dot.
8025: lt_cv_objdir=_libs
8026: fi
8027: rmdir .libs 2>/dev/null
8028: fi
8029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8030: $as_echo "$lt_cv_objdir" >&6; }
8031: objdir=$lt_cv_objdir
8032:
8033:
8034:
8035:
8036:
8037: cat >>confdefs.h <<_ACEOF
8038: #define LT_OBJDIR "$lt_cv_objdir/"
8039: _ACEOF
8040:
8041:
8042:
8043:
8044: case $host_os in
8045: aix3*)
8046: # AIX sometimes has problems with the GCC collect2 program. For some
8047: # reason, if we set the COLLECT_NAMES environment variable, the problems
8048: # vanish in a puff of smoke.
8049: if test set != "${COLLECT_NAMES+set}"; then
8050: COLLECT_NAMES=
8051: export COLLECT_NAMES
8052: fi
8053: ;;
8054: esac
8055:
8056: # Global variables:
8057: ofile=libtool
8058: can_build_shared=yes
8059:
8060: # All known linkers require a '.a' archive for static linking (except MSVC,
8061: # which needs '.lib').
8062: libext=a
8063:
8064: with_gnu_ld=$lt_cv_prog_gnu_ld
8065:
8066: old_CC=$CC
8067: old_CFLAGS=$CFLAGS
8068:
8069: # Set sane defaults for various variables
8070: test -z "$CC" && CC=cc
8071: test -z "$LTCC" && LTCC=$CC
8072: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8073: test -z "$LD" && LD=ld
8074: test -z "$ac_objext" && ac_objext=o
8075:
8076: func_cc_basename $compiler
8077: cc_basename=$func_cc_basename_result
8078:
8079:
8080: # Only perform the check for file, if the check method requires it
8081: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8082: case $deplibs_check_method in
8083: file_magic*)
8084: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8086: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8087: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8088: $as_echo_n "(cached) " >&6
8089: else
8090: case $MAGIC_CMD in
8091: [\\/*] | ?:[\\/]*)
8092: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8093: ;;
8094: *)
8095: lt_save_MAGIC_CMD=$MAGIC_CMD
8096: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8097: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8098: for ac_dir in $ac_dummy; do
8099: IFS=$lt_save_ifs
8100: test -z "$ac_dir" && ac_dir=.
8101: if test -f "$ac_dir/${ac_tool_prefix}file"; then
8102: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8103: if test -n "$file_magic_test_file"; then
8104: case $deplibs_check_method in
8105: "file_magic "*)
8106: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8107: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8108: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8109: $EGREP "$file_magic_regex" > /dev/null; then
8110: :
8111: else
8112: cat <<_LT_EOF 1>&2
8113:
8114: *** Warning: the command libtool uses to detect shared libraries,
8115: *** $file_magic_cmd, produces output that libtool cannot recognize.
8116: *** The result is that libtool may fail to recognize shared libraries
8117: *** as such. This will affect the creation of libtool libraries that
8118: *** depend on shared libraries, but programs linked with such libtool
8119: *** libraries will work regardless of this problem. Nevertheless, you
8120: *** may want to report the problem to your system manager and/or to
8121: *** bug-libtool@gnu.org
8122:
8123: _LT_EOF
8124: fi ;;
8125: esac
8126: fi
8127: break
8128: fi
8129: done
8130: IFS=$lt_save_ifs
8131: MAGIC_CMD=$lt_save_MAGIC_CMD
8132: ;;
8133: esac
8134: fi
8135:
8136: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8137: if test -n "$MAGIC_CMD"; then
8138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8139: $as_echo "$MAGIC_CMD" >&6; }
8140: else
8141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142: $as_echo "no" >&6; }
8143: fi
8144:
8145:
8146:
8147:
8148:
8149: if test -z "$lt_cv_path_MAGIC_CMD"; then
8150: if test -n "$ac_tool_prefix"; then
8151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8152: $as_echo_n "checking for file... " >&6; }
8153: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8154: $as_echo_n "(cached) " >&6
8155: else
8156: case $MAGIC_CMD in
8157: [\\/*] | ?:[\\/]*)
8158: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8159: ;;
8160: *)
8161: lt_save_MAGIC_CMD=$MAGIC_CMD
8162: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8163: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8164: for ac_dir in $ac_dummy; do
8165: IFS=$lt_save_ifs
8166: test -z "$ac_dir" && ac_dir=.
8167: if test -f "$ac_dir/file"; then
8168: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8169: if test -n "$file_magic_test_file"; then
8170: case $deplibs_check_method in
8171: "file_magic "*)
8172: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8173: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8174: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8175: $EGREP "$file_magic_regex" > /dev/null; then
8176: :
8177: else
8178: cat <<_LT_EOF 1>&2
8179:
8180: *** Warning: the command libtool uses to detect shared libraries,
8181: *** $file_magic_cmd, produces output that libtool cannot recognize.
8182: *** The result is that libtool may fail to recognize shared libraries
8183: *** as such. This will affect the creation of libtool libraries that
8184: *** depend on shared libraries, but programs linked with such libtool
8185: *** libraries will work regardless of this problem. Nevertheless, you
8186: *** may want to report the problem to your system manager and/or to
8187: *** bug-libtool@gnu.org
8188:
8189: _LT_EOF
8190: fi ;;
8191: esac
8192: fi
8193: break
8194: fi
8195: done
8196: IFS=$lt_save_ifs
8197: MAGIC_CMD=$lt_save_MAGIC_CMD
8198: ;;
8199: esac
8200: fi
8201:
8202: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8203: if test -n "$MAGIC_CMD"; then
8204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8205: $as_echo "$MAGIC_CMD" >&6; }
8206: else
8207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208: $as_echo "no" >&6; }
8209: fi
8210:
8211:
8212: else
8213: MAGIC_CMD=:
8214: fi
8215: fi
8216:
8217: fi
8218: ;;
8219: esac
8220:
8221: # Use C for the default configuration in the libtool script
8222:
8223: lt_save_CC=$CC
8224: ac_ext=c
8225: ac_cpp='$CPP $CPPFLAGS'
8226: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229:
8230:
8231: # Source file extension for C test sources.
8232: ac_ext=c
8233:
8234: # Object file extension for compiled C test sources.
8235: objext=o
8236: objext=$objext
8237:
8238: # Code to be used in simple compile tests
8239: lt_simple_compile_test_code="int some_variable = 0;"
8240:
8241: # Code to be used in simple link tests
8242: lt_simple_link_test_code='int main(){return(0);}'
8243:
8244:
8245:
8246:
8247:
8248:
8249:
8250: # If no C compiler was specified, use CC.
8251: LTCC=${LTCC-"$CC"}
8252:
8253: # If no C compiler flags were specified, use CFLAGS.
8254: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8255:
8256: # Allow CC to be a program name with arguments.
8257: compiler=$CC
8258:
8259: # Save the default compiler, since it gets overwritten when the other
8260: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8261: compiler_DEFAULT=$CC
8262:
8263: # save warnings/boilerplate of simple test code
8264: ac_outfile=conftest.$ac_objext
8265: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8266: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8267: _lt_compiler_boilerplate=`cat conftest.err`
8268: $RM conftest*
8269:
8270: ac_outfile=conftest.$ac_objext
8271: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8272: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8273: _lt_linker_boilerplate=`cat conftest.err`
8274: $RM -r conftest*
8275:
8276:
8277: if test -n "$compiler"; then
8278:
8279: lt_prog_compiler_no_builtin_flag=
8280:
8281: if test yes = "$GCC"; then
8282: case $cc_basename in
8283: nvcc*)
8284: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8285: *)
8286: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8287: esac
8288:
8289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8290: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8291: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8292: $as_echo_n "(cached) " >&6
8293: else
8294: lt_cv_prog_compiler_rtti_exceptions=no
8295: ac_outfile=conftest.$ac_objext
8296: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8297: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8298: # Insert the option either (1) after the last *FLAGS variable, or
8299: # (2) before a word containing "conftest.", or (3) at the end.
8300: # Note that $ac_compile itself does not contain backslashes and begins
8301: # with a dollar sign (not a hyphen), so the echo should work correctly.
8302: # The option is referenced via a variable to avoid confusing sed.
8303: lt_compile=`echo "$ac_compile" | $SED \
8304: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8305: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8306: -e 's:$: $lt_compiler_flag:'`
8307: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8308: (eval "$lt_compile" 2>conftest.err)
8309: ac_status=$?
8310: cat conftest.err >&5
8311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312: if (exit $ac_status) && test -s "$ac_outfile"; then
8313: # The compiler can only warn and ignore the option if not recognized
8314: # So say no if there are warnings other than the usual output.
8315: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8316: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8317: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8318: lt_cv_prog_compiler_rtti_exceptions=yes
8319: fi
8320: fi
8321: $RM conftest*
8322:
8323: fi
8324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8325: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8326:
8327: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8328: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8329: else
8330: :
8331: fi
8332:
8333: fi
8334:
8335:
8336:
8337:
8338:
8339:
8340: lt_prog_compiler_wl=
8341: lt_prog_compiler_pic=
8342: lt_prog_compiler_static=
8343:
8344:
8345: if test yes = "$GCC"; then
8346: lt_prog_compiler_wl='-Wl,'
8347: lt_prog_compiler_static='-static'
8348:
8349: case $host_os in
8350: aix*)
8351: # All AIX code is PIC.
8352: if test ia64 = "$host_cpu"; then
8353: # AIX 5 now supports IA64 processor
8354: lt_prog_compiler_static='-Bstatic'
8355: fi
8356: lt_prog_compiler_pic='-fPIC'
8357: ;;
8358:
8359: amigaos*)
8360: case $host_cpu in
8361: powerpc)
8362: # see comment about AmigaOS4 .so support
8363: lt_prog_compiler_pic='-fPIC'
8364: ;;
8365: m68k)
8366: # FIXME: we need at least 68020 code to build shared libraries, but
8367: # adding the '-m68020' flag to GCC prevents building anything better,
8368: # like '-m68040'.
8369: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8370: ;;
8371: esac
8372: ;;
8373:
8374: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8375: # PIC is the default for these OSes.
8376: ;;
8377:
8378: mingw* | cygwin* | pw32* | os2* | cegcc*)
8379: # This hack is so that the source file can tell whether it is being
8380: # built for inclusion in a dll (and should export symbols for example).
8381: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8382: # (--disable-auto-import) libraries
8383: lt_prog_compiler_pic='-DDLL_EXPORT'
8384: case $host_os in
8385: os2*)
8386: lt_prog_compiler_static='$wl-static'
8387: ;;
8388: esac
8389: ;;
8390:
8391: darwin* | rhapsody*)
8392: # PIC is the default on this platform
8393: # Common symbols not allowed in MH_DYLIB files
8394: lt_prog_compiler_pic='-fno-common'
8395: ;;
8396:
8397: haiku*)
8398: # PIC is the default for Haiku.
8399: # The "-static" flag exists, but is broken.
8400: lt_prog_compiler_static=
8401: ;;
8402:
8403: hpux*)
8404: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8405: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8406: # sets the default TLS model and affects inlining.
8407: case $host_cpu in
8408: hppa*64*)
8409: # +Z the default
8410: ;;
8411: *)
8412: lt_prog_compiler_pic='-fPIC'
8413: ;;
8414: esac
8415: ;;
8416:
8417: interix[3-9]*)
8418: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8419: # Instead, we relocate shared libraries at runtime.
8420: ;;
8421:
8422: msdosdjgpp*)
8423: # Just because we use GCC doesn't mean we suddenly get shared libraries
8424: # on systems that don't support them.
8425: lt_prog_compiler_can_build_shared=no
8426: enable_shared=no
8427: ;;
8428:
8429: *nto* | *qnx*)
8430: # QNX uses GNU C++, but need to define -shared option too, otherwise
8431: # it will coredump.
8432: lt_prog_compiler_pic='-fPIC -shared'
8433: ;;
8434:
8435: sysv4*MP*)
8436: if test -d /usr/nec; then
8437: lt_prog_compiler_pic=-Kconform_pic
8438: fi
8439: ;;
8440:
8441: *)
8442: lt_prog_compiler_pic='-fPIC'
8443: ;;
8444: esac
8445:
8446: case $cc_basename in
8447: nvcc*) # Cuda Compiler Driver 2.2
8448: lt_prog_compiler_wl='-Xlinker '
8449: if test -n "$lt_prog_compiler_pic"; then
8450: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8451: fi
8452: ;;
8453: esac
8454: else
8455: # PORTME Check for flag to pass linker flags through the system compiler.
8456: case $host_os in
8457: aix*)
8458: lt_prog_compiler_wl='-Wl,'
8459: if test ia64 = "$host_cpu"; then
8460: # AIX 5 now supports IA64 processor
8461: lt_prog_compiler_static='-Bstatic'
8462: else
8463: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8464: fi
8465: ;;
8466:
8467: darwin* | rhapsody*)
8468: # PIC is the default on this platform
8469: # Common symbols not allowed in MH_DYLIB files
8470: lt_prog_compiler_pic='-fno-common'
8471: case $cc_basename in
8472: nagfor*)
8473: # NAG Fortran compiler
8474: lt_prog_compiler_wl='-Wl,-Wl,,'
8475: lt_prog_compiler_pic='-PIC'
8476: lt_prog_compiler_static='-Bstatic'
8477: ;;
8478: esac
8479: ;;
8480:
8481: mingw* | cygwin* | pw32* | os2* | cegcc*)
8482: # This hack is so that the source file can tell whether it is being
8483: # built for inclusion in a dll (and should export symbols for example).
8484: lt_prog_compiler_pic='-DDLL_EXPORT'
8485: case $host_os in
8486: os2*)
8487: lt_prog_compiler_static='$wl-static'
8488: ;;
8489: esac
8490: ;;
8491:
8492: hpux9* | hpux10* | hpux11*)
8493: lt_prog_compiler_wl='-Wl,'
8494: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8495: # not for PA HP-UX.
8496: case $host_cpu in
8497: hppa*64*|ia64*)
8498: # +Z the default
8499: ;;
8500: *)
8501: lt_prog_compiler_pic='+Z'
8502: ;;
8503: esac
8504: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8505: lt_prog_compiler_static='$wl-a ${wl}archive'
8506: ;;
8507:
8508: irix5* | irix6* | nonstopux*)
8509: lt_prog_compiler_wl='-Wl,'
8510: # PIC (with -KPIC) is the default.
8511: lt_prog_compiler_static='-non_shared'
8512: ;;
8513:
8514: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8515: case $cc_basename in
8516: # old Intel for x86_64, which still supported -KPIC.
8517: ecc*)
8518: lt_prog_compiler_wl='-Wl,'
8519: lt_prog_compiler_pic='-KPIC'
8520: lt_prog_compiler_static='-static'
8521: ;;
8522: # icc used to be incompatible with GCC.
8523: # ICC 10 doesn't accept -KPIC any more.
8524: icc* | ifort*)
8525: lt_prog_compiler_wl='-Wl,'
8526: lt_prog_compiler_pic='-fPIC'
8527: lt_prog_compiler_static='-static'
8528: ;;
8529: # Lahey Fortran 8.1.
8530: lf95*)
8531: lt_prog_compiler_wl='-Wl,'
8532: lt_prog_compiler_pic='--shared'
8533: lt_prog_compiler_static='--static'
8534: ;;
8535: nagfor*)
8536: # NAG Fortran compiler
8537: lt_prog_compiler_wl='-Wl,-Wl,,'
8538: lt_prog_compiler_pic='-PIC'
8539: lt_prog_compiler_static='-Bstatic'
8540: ;;
8541: tcc*)
8542: # Fabrice Bellard et al's Tiny C Compiler
8543: lt_prog_compiler_wl='-Wl,'
8544: lt_prog_compiler_pic='-fPIC'
8545: lt_prog_compiler_static='-static'
8546: ;;
8547: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8548: # Portland Group compilers (*not* the Pentium gcc compiler,
8549: # which looks to be a dead project)
8550: lt_prog_compiler_wl='-Wl,'
8551: lt_prog_compiler_pic='-fpic'
8552: lt_prog_compiler_static='-Bstatic'
8553: ;;
8554: ccc*)
8555: lt_prog_compiler_wl='-Wl,'
8556: # All Alpha code is PIC.
8557: lt_prog_compiler_static='-non_shared'
8558: ;;
8559: xl* | bgxl* | bgf* | mpixl*)
8560: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8561: lt_prog_compiler_wl='-Wl,'
8562: lt_prog_compiler_pic='-qpic'
8563: lt_prog_compiler_static='-qstaticlink'
8564: ;;
8565: *)
8566: case `$CC -V 2>&1 | sed 5q` in
8567: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8568: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8569: lt_prog_compiler_pic='-KPIC'
8570: lt_prog_compiler_static='-Bstatic'
8571: lt_prog_compiler_wl=''
8572: ;;
8573: *Sun\ F* | *Sun*Fortran*)
8574: lt_prog_compiler_pic='-KPIC'
8575: lt_prog_compiler_static='-Bstatic'
8576: lt_prog_compiler_wl='-Qoption ld '
8577: ;;
8578: *Sun\ C*)
8579: # Sun C 5.9
8580: lt_prog_compiler_pic='-KPIC'
8581: lt_prog_compiler_static='-Bstatic'
8582: lt_prog_compiler_wl='-Wl,'
8583: ;;
8584: *Intel*\ [CF]*Compiler*)
8585: lt_prog_compiler_wl='-Wl,'
8586: lt_prog_compiler_pic='-fPIC'
8587: lt_prog_compiler_static='-static'
8588: ;;
8589: *Portland\ Group*)
8590: lt_prog_compiler_wl='-Wl,'
8591: lt_prog_compiler_pic='-fpic'
8592: lt_prog_compiler_static='-Bstatic'
8593: ;;
8594: esac
8595: ;;
8596: esac
8597: ;;
8598:
8599: newsos6)
8600: lt_prog_compiler_pic='-KPIC'
8601: lt_prog_compiler_static='-Bstatic'
8602: ;;
8603:
8604: *nto* | *qnx*)
8605: # QNX uses GNU C++, but need to define -shared option too, otherwise
8606: # it will coredump.
8607: lt_prog_compiler_pic='-fPIC -shared'
8608: ;;
8609:
8610: osf3* | osf4* | osf5*)
8611: lt_prog_compiler_wl='-Wl,'
8612: # All OSF/1 code is PIC.
8613: lt_prog_compiler_static='-non_shared'
8614: ;;
8615:
8616: rdos*)
8617: lt_prog_compiler_static='-non_shared'
8618: ;;
8619:
8620: solaris*)
8621: lt_prog_compiler_pic='-KPIC'
8622: lt_prog_compiler_static='-Bstatic'
8623: case $cc_basename in
8624: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8625: lt_prog_compiler_wl='-Qoption ld ';;
8626: *)
8627: lt_prog_compiler_wl='-Wl,';;
8628: esac
8629: ;;
8630:
8631: sunos4*)
8632: lt_prog_compiler_wl='-Qoption ld '
8633: lt_prog_compiler_pic='-PIC'
8634: lt_prog_compiler_static='-Bstatic'
8635: ;;
8636:
8637: sysv4 | sysv4.2uw2* | sysv4.3*)
8638: lt_prog_compiler_wl='-Wl,'
8639: lt_prog_compiler_pic='-KPIC'
8640: lt_prog_compiler_static='-Bstatic'
8641: ;;
8642:
8643: sysv4*MP*)
8644: if test -d /usr/nec; then
8645: lt_prog_compiler_pic='-Kconform_pic'
8646: lt_prog_compiler_static='-Bstatic'
8647: fi
8648: ;;
8649:
8650: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8651: lt_prog_compiler_wl='-Wl,'
8652: lt_prog_compiler_pic='-KPIC'
8653: lt_prog_compiler_static='-Bstatic'
8654: ;;
8655:
8656: unicos*)
8657: lt_prog_compiler_wl='-Wl,'
8658: lt_prog_compiler_can_build_shared=no
8659: ;;
8660:
8661: uts4*)
8662: lt_prog_compiler_pic='-pic'
8663: lt_prog_compiler_static='-Bstatic'
8664: ;;
8665:
8666: *)
8667: lt_prog_compiler_can_build_shared=no
8668: ;;
8669: esac
8670: fi
8671:
8672: case $host_os in
8673: # For platforms that do not support PIC, -DPIC is meaningless:
8674: *djgpp*)
8675: lt_prog_compiler_pic=
8676: ;;
8677: *)
8678: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8679: ;;
8680: esac
8681:
8682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8683: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8684: if ${lt_cv_prog_compiler_pic+:} false; then :
8685: $as_echo_n "(cached) " >&6
8686: else
8687: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8688: fi
8689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8690: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8691: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8692:
8693: #
8694: # Check to make sure the PIC flag actually works.
8695: #
8696: if test -n "$lt_prog_compiler_pic"; then
8697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8698: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8699: if ${lt_cv_prog_compiler_pic_works+:} false; then :
8700: $as_echo_n "(cached) " >&6
8701: else
8702: lt_cv_prog_compiler_pic_works=no
8703: ac_outfile=conftest.$ac_objext
8704: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8705: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8706: # Insert the option either (1) after the last *FLAGS variable, or
8707: # (2) before a word containing "conftest.", or (3) at the end.
8708: # Note that $ac_compile itself does not contain backslashes and begins
8709: # with a dollar sign (not a hyphen), so the echo should work correctly.
8710: # The option is referenced via a variable to avoid confusing sed.
8711: lt_compile=`echo "$ac_compile" | $SED \
8712: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8713: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8714: -e 's:$: $lt_compiler_flag:'`
8715: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8716: (eval "$lt_compile" 2>conftest.err)
8717: ac_status=$?
8718: cat conftest.err >&5
8719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720: if (exit $ac_status) && test -s "$ac_outfile"; then
8721: # The compiler can only warn and ignore the option if not recognized
8722: # So say no if there are warnings other than the usual output.
8723: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8724: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8725: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8726: lt_cv_prog_compiler_pic_works=yes
8727: fi
8728: fi
8729: $RM conftest*
8730:
8731: fi
8732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8733: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8734:
8735: if test yes = "$lt_cv_prog_compiler_pic_works"; then
8736: case $lt_prog_compiler_pic in
8737: "" | " "*) ;;
8738: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8739: esac
8740: else
8741: lt_prog_compiler_pic=
8742: lt_prog_compiler_can_build_shared=no
8743: fi
8744:
8745: fi
8746:
8747:
8748:
8749:
8750:
8751:
8752:
8753:
8754:
8755:
8756:
8757: #
8758: # Check to make sure the static flag actually works.
8759: #
8760: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8762: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8763: if ${lt_cv_prog_compiler_static_works+:} false; then :
8764: $as_echo_n "(cached) " >&6
8765: else
8766: lt_cv_prog_compiler_static_works=no
8767: save_LDFLAGS=$LDFLAGS
8768: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8769: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8770: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8771: # The linker can only warn and ignore the option if not recognized
8772: # So say no if there are warnings
8773: if test -s conftest.err; then
8774: # Append any errors to the config.log.
8775: cat conftest.err 1>&5
8776: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8777: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8778: if diff conftest.exp conftest.er2 >/dev/null; then
8779: lt_cv_prog_compiler_static_works=yes
8780: fi
8781: else
8782: lt_cv_prog_compiler_static_works=yes
8783: fi
8784: fi
8785: $RM -r conftest*
8786: LDFLAGS=$save_LDFLAGS
8787:
8788: fi
8789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8790: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8791:
8792: if test yes = "$lt_cv_prog_compiler_static_works"; then
8793: :
8794: else
8795: lt_prog_compiler_static=
8796: fi
8797:
8798:
8799:
8800:
8801:
8802:
8803:
8804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8805: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8806: if ${lt_cv_prog_compiler_c_o+:} false; then :
8807: $as_echo_n "(cached) " >&6
8808: else
8809: lt_cv_prog_compiler_c_o=no
8810: $RM -r conftest 2>/dev/null
8811: mkdir conftest
8812: cd conftest
8813: mkdir out
8814: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815:
8816: lt_compiler_flag="-o out/conftest2.$ac_objext"
8817: # Insert the option either (1) after the last *FLAGS variable, or
8818: # (2) before a word containing "conftest.", or (3) at the end.
8819: # Note that $ac_compile itself does not contain backslashes and begins
8820: # with a dollar sign (not a hyphen), so the echo should work correctly.
8821: lt_compile=`echo "$ac_compile" | $SED \
8822: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824: -e 's:$: $lt_compiler_flag:'`
8825: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826: (eval "$lt_compile" 2>out/conftest.err)
8827: ac_status=$?
8828: cat out/conftest.err >&5
8829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8831: then
8832: # The compiler can only warn and ignore the option if not recognized
8833: # So say no if there are warnings
8834: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8835: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8836: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8837: lt_cv_prog_compiler_c_o=yes
8838: fi
8839: fi
8840: chmod u+w . 2>&5
8841: $RM conftest*
8842: # SGI C++ compiler will create directory out/ii_files/ for
8843: # template instantiation
8844: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8845: $RM out/* && rmdir out
8846: cd ..
8847: $RM -r conftest
8848: $RM conftest*
8849:
8850: fi
8851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8852: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8853:
8854:
8855:
8856:
8857:
8858:
8859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8860: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8861: if ${lt_cv_prog_compiler_c_o+:} false; then :
8862: $as_echo_n "(cached) " >&6
8863: else
8864: lt_cv_prog_compiler_c_o=no
8865: $RM -r conftest 2>/dev/null
8866: mkdir conftest
8867: cd conftest
8868: mkdir out
8869: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8870:
8871: lt_compiler_flag="-o out/conftest2.$ac_objext"
8872: # Insert the option either (1) after the last *FLAGS variable, or
8873: # (2) before a word containing "conftest.", or (3) at the end.
8874: # Note that $ac_compile itself does not contain backslashes and begins
8875: # with a dollar sign (not a hyphen), so the echo should work correctly.
8876: lt_compile=`echo "$ac_compile" | $SED \
8877: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8878: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8879: -e 's:$: $lt_compiler_flag:'`
8880: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8881: (eval "$lt_compile" 2>out/conftest.err)
8882: ac_status=$?
8883: cat out/conftest.err >&5
8884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8886: then
8887: # The compiler can only warn and ignore the option if not recognized
8888: # So say no if there are warnings
8889: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8890: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8891: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8892: lt_cv_prog_compiler_c_o=yes
8893: fi
8894: fi
8895: chmod u+w . 2>&5
8896: $RM conftest*
8897: # SGI C++ compiler will create directory out/ii_files/ for
8898: # template instantiation
8899: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8900: $RM out/* && rmdir out
8901: cd ..
8902: $RM -r conftest
8903: $RM conftest*
8904:
8905: fi
8906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8907: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8908:
8909:
8910:
8911:
8912: hard_links=nottested
8913: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8914: # do not overwrite the value of need_locks provided by the user
8915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8916: $as_echo_n "checking if we can lock with hard links... " >&6; }
8917: hard_links=yes
8918: $RM conftest*
8919: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8920: touch conftest.a
8921: ln conftest.a conftest.b 2>&5 || hard_links=no
8922: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8924: $as_echo "$hard_links" >&6; }
8925: if test no = "$hard_links"; then
8926: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8927: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8928: need_locks=warn
8929: fi
8930: else
8931: need_locks=no
8932: fi
8933:
8934:
8935:
8936:
8937:
8938:
8939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8940: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8941:
8942: runpath_var=
8943: allow_undefined_flag=
8944: always_export_symbols=no
8945: archive_cmds=
8946: archive_expsym_cmds=
8947: compiler_needs_object=no
8948: enable_shared_with_static_runtimes=no
8949: export_dynamic_flag_spec=
8950: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8951: hardcode_automatic=no
8952: hardcode_direct=no
8953: hardcode_direct_absolute=no
8954: hardcode_libdir_flag_spec=
8955: hardcode_libdir_separator=
8956: hardcode_minus_L=no
8957: hardcode_shlibpath_var=unsupported
8958: inherit_rpath=no
8959: link_all_deplibs=unknown
8960: module_cmds=
8961: module_expsym_cmds=
8962: old_archive_from_new_cmds=
8963: old_archive_from_expsyms_cmds=
8964: thread_safe_flag_spec=
8965: whole_archive_flag_spec=
8966: # include_expsyms should be a list of space-separated symbols to be *always*
8967: # included in the symbol list
8968: include_expsyms=
8969: # exclude_expsyms can be an extended regexp of symbols to exclude
8970: # it will be wrapped by ' (' and ')$', so one must not match beginning or
8971: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8972: # as well as any symbol that contains 'd'.
8973: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8974: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8975: # platforms (ab)use it in PIC code, but their linkers get confused if
8976: # the symbol is explicitly referenced. Since portable code cannot
8977: # rely on this symbol name, it's probably fine to never include it in
8978: # preloaded symbol tables.
8979: # Exclude shared library initialization/finalization symbols.
8980: extract_expsyms_cmds=
8981:
8982: case $host_os in
8983: cygwin* | mingw* | pw32* | cegcc*)
8984: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8985: # When not using gcc, we currently assume that we are using
8986: # Microsoft Visual C++.
8987: if test yes != "$GCC"; then
8988: with_gnu_ld=no
8989: fi
8990: ;;
8991: interix*)
8992: # we just hope/assume this is gcc and not c89 (= MSVC++)
8993: with_gnu_ld=yes
8994: ;;
8995: openbsd* | bitrig*)
8996: with_gnu_ld=no
8997: ;;
8998: esac
8999:
9000: ld_shlibs=yes
9001:
9002: # On some targets, GNU ld is compatible enough with the native linker
9003: # that we're better off using the native interface for both.
9004: lt_use_gnu_ld_interface=no
9005: if test yes = "$with_gnu_ld"; then
9006: case $host_os in
9007: aix*)
9008: # The AIX port of GNU ld has always aspired to compatibility
9009: # with the native linker. However, as the warning in the GNU ld
9010: # block says, versions before 2.19.5* couldn't really create working
9011: # shared libraries, regardless of the interface used.
9012: case `$LD -v 2>&1` in
9013: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9014: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9015: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9016: *)
9017: lt_use_gnu_ld_interface=yes
9018: ;;
9019: esac
9020: ;;
9021: *)
9022: lt_use_gnu_ld_interface=yes
9023: ;;
9024: esac
9025: fi
9026:
9027: if test yes = "$lt_use_gnu_ld_interface"; then
9028: # If archive_cmds runs LD, not CC, wlarc should be empty
9029: wlarc='$wl'
9030:
9031: # Set some defaults for GNU ld with shared library support. These
9032: # are reset later if shared libraries are not supported. Putting them
9033: # here allows them to be overridden if necessary.
9034: runpath_var=LD_RUN_PATH
9035: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9036: export_dynamic_flag_spec='$wl--export-dynamic'
9037: # ancient GNU ld didn't support --whole-archive et. al.
9038: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9039: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9040: else
9041: whole_archive_flag_spec=
9042: fi
9043: supports_anon_versioning=no
9044: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9045: *GNU\ gold*) supports_anon_versioning=yes ;;
9046: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9047: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9048: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9049: *\ 2.11.*) ;; # other 2.11 versions
9050: *) supports_anon_versioning=yes ;;
9051: esac
9052:
9053: # See if GNU ld supports shared libraries.
9054: case $host_os in
9055: aix[3-9]*)
9056: # On AIX/PPC, the GNU linker is very broken
9057: if test ia64 != "$host_cpu"; then
9058: ld_shlibs=no
9059: cat <<_LT_EOF 1>&2
9060:
9061: *** Warning: the GNU linker, at least up to release 2.19, is reported
9062: *** to be unable to reliably create shared libraries on AIX.
9063: *** Therefore, libtool is disabling shared libraries support. If you
9064: *** really care for shared libraries, you may want to install binutils
9065: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9066: *** You will then need to restart the configuration process.
9067:
9068: _LT_EOF
9069: fi
9070: ;;
9071:
9072: amigaos*)
9073: case $host_cpu in
9074: powerpc)
9075: # see comment about AmigaOS4 .so support
9076: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9077: archive_expsym_cmds=''
9078: ;;
9079: m68k)
9080: 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)'
9081: hardcode_libdir_flag_spec='-L$libdir'
9082: hardcode_minus_L=yes
9083: ;;
9084: esac
9085: ;;
9086:
9087: beos*)
9088: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9089: allow_undefined_flag=unsupported
9090: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9091: # support --undefined. This deserves some investigation. FIXME
9092: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9093: else
9094: ld_shlibs=no
9095: fi
9096: ;;
9097:
9098: cygwin* | mingw* | pw32* | cegcc*)
9099: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9100: # as there is no search path for DLLs.
9101: hardcode_libdir_flag_spec='-L$libdir'
9102: export_dynamic_flag_spec='$wl--export-all-symbols'
9103: allow_undefined_flag=unsupported
9104: always_export_symbols=no
9105: enable_shared_with_static_runtimes=yes
9106: 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'
9107: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9108:
9109: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9110: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9111: # If the export-symbols file already is a .def file, use it as
9112: # is; otherwise, prepend EXPORTS...
9113: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9114: cp $export_symbols $output_objdir/$soname.def;
9115: else
9116: echo EXPORTS > $output_objdir/$soname.def;
9117: cat $export_symbols >> $output_objdir/$soname.def;
9118: fi~
9119: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9120: else
9121: ld_shlibs=no
9122: fi
9123: ;;
9124:
9125: haiku*)
9126: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9127: link_all_deplibs=yes
9128: ;;
9129:
9130: os2*)
9131: hardcode_libdir_flag_spec='-L$libdir'
9132: hardcode_minus_L=yes
9133: allow_undefined_flag=unsupported
9134: shrext_cmds=.dll
9135: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9136: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9137: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9138: $ECHO EXPORTS >> $output_objdir/$libname.def~
9139: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9140: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9141: emximp -o $lib $output_objdir/$libname.def'
9142: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9143: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9144: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9145: $ECHO EXPORTS >> $output_objdir/$libname.def~
9146: prefix_cmds="$SED"~
9147: if test EXPORTS = "`$SED 1q $export_symbols`"; then
9148: prefix_cmds="$prefix_cmds -e 1d";
9149: fi~
9150: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9151: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9152: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9153: emximp -o $lib $output_objdir/$libname.def'
9154: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9155: enable_shared_with_static_runtimes=yes
9156: ;;
9157:
9158: interix[3-9]*)
9159: hardcode_direct=no
9160: hardcode_shlibpath_var=no
9161: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9162: export_dynamic_flag_spec='$wl-E'
9163: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9164: # Instead, shared libraries are loaded at an image base (0x10000000 by
9165: # default) and relocated if they conflict, which is a slow very memory
9166: # consuming and fragmenting process. To avoid this, we pick a random,
9167: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9168: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9169: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9170: 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'
9171: ;;
9172:
9173: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9174: tmp_diet=no
9175: if test linux-dietlibc = "$host_os"; then
9176: case $cc_basename in
9177: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9178: esac
9179: fi
9180: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9181: && test no = "$tmp_diet"
9182: then
9183: tmp_addflag=' $pic_flag'
9184: tmp_sharedflag='-shared'
9185: case $cc_basename,$host_cpu in
9186: pgcc*) # Portland Group C compiler
9187: 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'
9188: tmp_addflag=' $pic_flag'
9189: ;;
9190: pgf77* | pgf90* | pgf95* | pgfortran*)
9191: # Portland Group f77 and f90 compilers
9192: 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'
9193: tmp_addflag=' $pic_flag -Mnomain' ;;
9194: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9195: tmp_addflag=' -i_dynamic' ;;
9196: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9197: tmp_addflag=' -i_dynamic -nofor_main' ;;
9198: ifc* | ifort*) # Intel Fortran compiler
9199: tmp_addflag=' -nofor_main' ;;
9200: lf95*) # Lahey Fortran 8.1
9201: whole_archive_flag_spec=
9202: tmp_sharedflag='--shared' ;;
9203: nagfor*) # NAGFOR 5.3
9204: tmp_sharedflag='-Wl,-shared' ;;
9205: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9206: tmp_sharedflag='-qmkshrobj'
9207: tmp_addflag= ;;
9208: nvcc*) # Cuda Compiler Driver 2.2
9209: 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'
9210: compiler_needs_object=yes
9211: ;;
9212: esac
9213: case `$CC -V 2>&1 | sed 5q` in
9214: *Sun\ C*) # Sun C 5.9
9215: 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'
9216: compiler_needs_object=yes
9217: tmp_sharedflag='-G' ;;
9218: *Sun\ F*) # Sun Fortran 8.3
9219: tmp_sharedflag='-G' ;;
9220: esac
9221: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9222:
9223: if test yes = "$supports_anon_versioning"; then
9224: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9225: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9226: echo "local: *; };" >> $output_objdir/$libname.ver~
9227: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9228: fi
9229:
9230: case $cc_basename in
9231: tcc*)
9232: export_dynamic_flag_spec='-rdynamic'
9233: ;;
9234: xlf* | bgf* | bgxlf* | mpixlf*)
9235: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9236: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9237: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9238: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9239: if test yes = "$supports_anon_versioning"; then
9240: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242: echo "local: *; };" >> $output_objdir/$libname.ver~
9243: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9244: fi
9245: ;;
9246: esac
9247: else
9248: ld_shlibs=no
9249: fi
9250: ;;
9251:
9252: netbsd*)
9253: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9254: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9255: wlarc=
9256: else
9257: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9258: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9259: fi
9260: ;;
9261:
9262: solaris*)
9263: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9264: ld_shlibs=no
9265: cat <<_LT_EOF 1>&2
9266:
9267: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9268: *** create shared libraries on Solaris systems. Therefore, libtool
9269: *** is disabling shared libraries support. We urge you to upgrade GNU
9270: *** binutils to release 2.9.1 or newer. Another option is to modify
9271: *** your PATH or compiler configuration so that the native linker is
9272: *** used, and then restart.
9273:
9274: _LT_EOF
9275: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9277: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9278: else
9279: ld_shlibs=no
9280: fi
9281: ;;
9282:
9283: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9284: case `$LD -v 2>&1` in
9285: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9286: ld_shlibs=no
9287: cat <<_LT_EOF 1>&2
9288:
9289: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9290: *** reliably create shared libraries on SCO systems. Therefore, libtool
9291: *** is disabling shared libraries support. We urge you to upgrade GNU
9292: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9293: *** your PATH or compiler configuration so that the native linker is
9294: *** used, and then restart.
9295:
9296: _LT_EOF
9297: ;;
9298: *)
9299: # For security reasons, it is highly recommended that you always
9300: # use absolute paths for naming shared libraries, and exclude the
9301: # DT_RUNPATH tag from executables and libraries. But doing so
9302: # requires that you compile everything twice, which is a pain.
9303: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9304: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9305: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9306: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9307: else
9308: ld_shlibs=no
9309: fi
9310: ;;
9311: esac
9312: ;;
9313:
9314: sunos4*)
9315: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316: wlarc=
9317: hardcode_direct=yes
9318: hardcode_shlibpath_var=no
9319: ;;
9320:
9321: *)
9322: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9324: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9325: else
9326: ld_shlibs=no
9327: fi
9328: ;;
9329: esac
9330:
9331: if test no = "$ld_shlibs"; then
9332: runpath_var=
9333: hardcode_libdir_flag_spec=
9334: export_dynamic_flag_spec=
9335: whole_archive_flag_spec=
9336: fi
9337: else
9338: # PORTME fill in a description of your system's linker (not GNU ld)
9339: case $host_os in
9340: aix3*)
9341: allow_undefined_flag=unsupported
9342: always_export_symbols=yes
9343: 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'
9344: # Note: this linker hardcodes the directories in LIBPATH if there
9345: # are no directories specified by -L.
9346: hardcode_minus_L=yes
9347: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9348: # Neither direct hardcoding nor static linking is supported with a
9349: # broken collect2.
9350: hardcode_direct=unsupported
9351: fi
9352: ;;
9353:
9354: aix[4-9]*)
9355: if test ia64 = "$host_cpu"; then
9356: # On IA64, the linker does run time linking by default, so we don't
9357: # have to do anything special.
9358: aix_use_runtimelinking=no
9359: exp_sym_flag='-Bexport'
9360: no_entry_flag=
9361: else
9362: # If we're using GNU nm, then we don't want the "-C" option.
9363: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9364: # Without the "-l" option, or with the "-B" option, AIX nm treats
9365: # weak defined symbols like other global defined symbols, whereas
9366: # GNU nm marks them as "W".
9367: # While the 'weak' keyword is ignored in the Export File, we need
9368: # it in the Import File for the 'aix-soname' feature, so we have
9369: # to replace the "-B" option with "-P" for AIX nm.
9370: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9371: 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'
9372: else
9373: 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'
9374: fi
9375: aix_use_runtimelinking=no
9376:
9377: # Test if we are trying to use run time linking or normal
9378: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9379: # have runtime linking enabled, and use it for executables.
9380: # For shared libraries, we enable/disable runtime linking
9381: # depending on the kind of the shared library created -
9382: # when "with_aix_soname,aix_use_runtimelinking" is:
9383: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9384: # "aix,yes" lib.so shared, rtl:yes, for executables
9385: # lib.a static archive
9386: # "both,no" lib.so.V(shr.o) shared, rtl:yes
9387: # lib.a(lib.so.V) shared, rtl:no, for executables
9388: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9389: # lib.a(lib.so.V) shared, rtl:no
9390: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9391: # lib.a static archive
9392: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9393: for ld_flag in $LDFLAGS; do
9394: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9395: aix_use_runtimelinking=yes
9396: break
9397: fi
9398: done
9399: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9400: # With aix-soname=svr4, we create the lib.so.V shared archives only,
9401: # so we don't have lib.a shared libs to link our executables.
9402: # We have to force runtime linking in this case.
9403: aix_use_runtimelinking=yes
9404: LDFLAGS="$LDFLAGS -Wl,-brtl"
9405: fi
9406: ;;
9407: esac
9408:
9409: exp_sym_flag='-bexport'
9410: no_entry_flag='-bnoentry'
9411: fi
9412:
9413: # When large executables or shared objects are built, AIX ld can
9414: # have problems creating the table of contents. If linking a library
9415: # or program results in "error TOC overflow" add -mminimal-toc to
9416: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9417: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9418:
9419: archive_cmds=''
9420: hardcode_direct=yes
9421: hardcode_direct_absolute=yes
9422: hardcode_libdir_separator=':'
9423: link_all_deplibs=yes
9424: file_list_spec='$wl-f,'
9425: case $with_aix_soname,$aix_use_runtimelinking in
9426: aix,*) ;; # traditional, no import file
9427: svr4,* | *,yes) # use import file
9428: # The Import File defines what to hardcode.
9429: hardcode_direct=no
9430: hardcode_direct_absolute=no
9431: ;;
9432: esac
9433:
9434: if test yes = "$GCC"; then
9435: case $host_os in aix4.[012]|aix4.[012].*)
9436: # We only want to do this on AIX 4.2 and lower, the check
9437: # below for broken collect2 doesn't work under 4.3+
9438: collect2name=`$CC -print-prog-name=collect2`
9439: if test -f "$collect2name" &&
9440: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9441: then
9442: # We have reworked collect2
9443: :
9444: else
9445: # We have old collect2
9446: hardcode_direct=unsupported
9447: # It fails to find uninstalled libraries when the uninstalled
9448: # path is not listed in the libpath. Setting hardcode_minus_L
9449: # to unsupported forces relinking
9450: hardcode_minus_L=yes
9451: hardcode_libdir_flag_spec='-L$libdir'
9452: hardcode_libdir_separator=
9453: fi
9454: ;;
9455: esac
9456: shared_flag='-shared'
9457: if test yes = "$aix_use_runtimelinking"; then
9458: shared_flag="$shared_flag "'$wl-G'
9459: fi
9460: # Need to ensure runtime linking is disabled for the traditional
9461: # shared library, or the linker may eventually find shared libraries
9462: # /with/ Import File - we do not want to mix them.
9463: shared_flag_aix='-shared'
9464: shared_flag_svr4='-shared $wl-G'
9465: else
9466: # not using gcc
9467: if test ia64 = "$host_cpu"; then
9468: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9469: # chokes on -Wl,-G. The following line is correct:
9470: shared_flag='-G'
9471: else
9472: if test yes = "$aix_use_runtimelinking"; then
9473: shared_flag='$wl-G'
9474: else
9475: shared_flag='$wl-bM:SRE'
9476: fi
9477: shared_flag_aix='$wl-bM:SRE'
9478: shared_flag_svr4='$wl-G'
9479: fi
9480: fi
9481:
9482: export_dynamic_flag_spec='$wl-bexpall'
9483: # It seems that -bexpall does not export symbols beginning with
9484: # underscore (_), so it is better to generate a list of symbols to export.
9485: always_export_symbols=yes
9486: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9487: # Warning - without using the other runtime loading flags (-brtl),
9488: # -berok will link without error, but may produce a broken library.
9489: allow_undefined_flag='-berok'
9490: # Determine the default libpath from the value encoded in an
9491: # empty executable.
9492: if test set = "${lt_cv_aix_libpath+set}"; then
9493: aix_libpath=$lt_cv_aix_libpath
9494: else
9495: if ${lt_cv_aix_libpath_+:} false; then :
9496: $as_echo_n "(cached) " >&6
9497: else
9498: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499: /* end confdefs.h. */
9500:
9501: int
9502: main ()
9503: {
9504:
9505: ;
9506: return 0;
9507: }
9508: _ACEOF
9509: if ac_fn_c_try_link "$LINENO"; then :
9510:
9511: lt_aix_libpath_sed='
9512: /Import File Strings/,/^$/ {
9513: /^0/ {
9514: s/^0 *\([^ ]*\) *$/\1/
9515: p
9516: }
9517: }'
9518: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9519: # Check for a 64-bit object if we didn't find anything.
9520: if test -z "$lt_cv_aix_libpath_"; then
9521: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522: fi
9523: fi
9524: rm -f core conftest.err conftest.$ac_objext \
9525: conftest$ac_exeext conftest.$ac_ext
9526: if test -z "$lt_cv_aix_libpath_"; then
9527: lt_cv_aix_libpath_=/usr/lib:/lib
9528: fi
9529:
9530: fi
9531:
9532: aix_libpath=$lt_cv_aix_libpath_
9533: fi
9534:
9535: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9536: 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
9537: else
9538: if test ia64 = "$host_cpu"; then
9539: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9540: allow_undefined_flag="-z nodefs"
9541: 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"
9542: else
9543: # Determine the default libpath from the value encoded in an
9544: # empty executable.
9545: if test set = "${lt_cv_aix_libpath+set}"; then
9546: aix_libpath=$lt_cv_aix_libpath
9547: else
9548: if ${lt_cv_aix_libpath_+:} false; then :
9549: $as_echo_n "(cached) " >&6
9550: else
9551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552: /* end confdefs.h. */
9553:
9554: int
9555: main ()
9556: {
9557:
9558: ;
9559: return 0;
9560: }
9561: _ACEOF
9562: if ac_fn_c_try_link "$LINENO"; then :
9563:
9564: lt_aix_libpath_sed='
9565: /Import File Strings/,/^$/ {
9566: /^0/ {
9567: s/^0 *\([^ ]*\) *$/\1/
9568: p
9569: }
9570: }'
9571: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9572: # Check for a 64-bit object if we didn't find anything.
9573: if test -z "$lt_cv_aix_libpath_"; then
9574: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9575: fi
9576: fi
9577: rm -f core conftest.err conftest.$ac_objext \
9578: conftest$ac_exeext conftest.$ac_ext
9579: if test -z "$lt_cv_aix_libpath_"; then
9580: lt_cv_aix_libpath_=/usr/lib:/lib
9581: fi
9582:
9583: fi
9584:
9585: aix_libpath=$lt_cv_aix_libpath_
9586: fi
9587:
9588: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9589: # Warning - without using the other run time loading flags,
9590: # -berok will link without error, but may produce a broken library.
9591: no_undefined_flag=' $wl-bernotok'
9592: allow_undefined_flag=' $wl-berok'
9593: if test yes = "$with_gnu_ld"; then
9594: # We only use this code for GNU lds that support --whole-archive.
9595: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9596: else
9597: # Exported symbols can be pulled into shared objects from archives
9598: whole_archive_flag_spec='$convenience'
9599: fi
9600: archive_cmds_need_lc=yes
9601: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9602: # -brtl affects multiple linker settings, -berok does not and is overridden later
9603: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9604: if test svr4 != "$with_aix_soname"; then
9605: # This is similar to how AIX traditionally builds its shared libraries.
9606: 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'
9607: fi
9608: if test aix != "$with_aix_soname"; then
9609: 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'
9610: else
9611: # used by -dlpreopen to get the symbols
9612: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9613: fi
9614: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9615: fi
9616: fi
9617: ;;
9618:
9619: amigaos*)
9620: case $host_cpu in
9621: powerpc)
9622: # see comment about AmigaOS4 .so support
9623: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9624: archive_expsym_cmds=''
9625: ;;
9626: m68k)
9627: 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)'
9628: hardcode_libdir_flag_spec='-L$libdir'
9629: hardcode_minus_L=yes
9630: ;;
9631: esac
9632: ;;
9633:
9634: bsdi[45]*)
9635: export_dynamic_flag_spec=-rdynamic
9636: ;;
9637:
9638: cygwin* | mingw* | pw32* | cegcc*)
9639: # When not using gcc, we currently assume that we are using
9640: # Microsoft Visual C++.
9641: # hardcode_libdir_flag_spec is actually meaningless, as there is
9642: # no search path for DLLs.
9643: case $cc_basename in
9644: cl*)
9645: # Native MSVC
9646: hardcode_libdir_flag_spec=' '
9647: allow_undefined_flag=unsupported
9648: always_export_symbols=yes
9649: file_list_spec='@'
9650: # Tell ltmain to make .lib files, not .a files.
9651: libext=lib
9652: # Tell ltmain to make .dll files, not .so files.
9653: shrext_cmds=.dll
9654: # FIXME: Setting linknames here is a bad hack.
9655: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9656: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9657: cp "$export_symbols" "$output_objdir/$soname.def";
9658: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9659: else
9660: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9661: fi~
9662: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9663: linknames='
9664: # The linker will not automatically build a static lib if we build a DLL.
9665: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9666: enable_shared_with_static_runtimes=yes
9667: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9668: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9669: # Don't use ranlib
9670: old_postinstall_cmds='chmod 644 $oldlib'
9671: postlink_cmds='lt_outputfile="@OUTPUT@"~
9672: lt_tool_outputfile="@TOOL_OUTPUT@"~
9673: case $lt_outputfile in
9674: *.exe|*.EXE) ;;
9675: *)
9676: lt_outputfile=$lt_outputfile.exe
9677: lt_tool_outputfile=$lt_tool_outputfile.exe
9678: ;;
9679: esac~
9680: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9681: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9682: $RM "$lt_outputfile.manifest";
9683: fi'
9684: ;;
9685: *)
9686: # Assume MSVC wrapper
9687: hardcode_libdir_flag_spec=' '
9688: allow_undefined_flag=unsupported
9689: # Tell ltmain to make .lib files, not .a files.
9690: libext=lib
9691: # Tell ltmain to make .dll files, not .so files.
9692: shrext_cmds=.dll
9693: # FIXME: Setting linknames here is a bad hack.
9694: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9695: # The linker will automatically build a .lib file if we build a DLL.
9696: old_archive_from_new_cmds='true'
9697: # FIXME: Should let the user specify the lib program.
9698: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9699: enable_shared_with_static_runtimes=yes
9700: ;;
9701: esac
9702: ;;
9703:
9704: darwin* | rhapsody*)
9705:
9706:
9707: archive_cmds_need_lc=no
9708: hardcode_direct=no
9709: hardcode_automatic=yes
9710: hardcode_shlibpath_var=unsupported
9711: if test yes = "$lt_cv_ld_force_load"; then
9712: 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\"`'
9713:
9714: else
9715: whole_archive_flag_spec=''
9716: fi
9717: link_all_deplibs=yes
9718: allow_undefined_flag=$_lt_dar_allow_undefined
9719: case $cc_basename in
9720: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9721: *) _lt_dar_can_shared=$GCC ;;
9722: esac
9723: if test yes = "$_lt_dar_can_shared"; then
9724: output_verbose_link_cmd=func_echo_all
9725: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9726: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9727: 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"
9728: 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"
9729:
9730: else
9731: ld_shlibs=no
9732: fi
9733:
9734: ;;
9735:
9736: dgux*)
9737: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738: hardcode_libdir_flag_spec='-L$libdir'
9739: hardcode_shlibpath_var=no
9740: ;;
9741:
9742: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9743: # support. Future versions do this automatically, but an explicit c++rt0.o
9744: # does not break anything, and helps significantly (at the cost of a little
9745: # extra space).
9746: freebsd2.2*)
9747: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9748: hardcode_libdir_flag_spec='-R$libdir'
9749: hardcode_direct=yes
9750: hardcode_shlibpath_var=no
9751: ;;
9752:
9753: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9754: freebsd2.*)
9755: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9756: hardcode_direct=yes
9757: hardcode_minus_L=yes
9758: hardcode_shlibpath_var=no
9759: ;;
9760:
9761: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9762: freebsd* | dragonfly*)
9763: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9764: hardcode_libdir_flag_spec='-R$libdir'
9765: hardcode_direct=yes
9766: hardcode_shlibpath_var=no
9767: ;;
9768:
9769: hpux9*)
9770: if test yes = "$GCC"; then
9771: 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'
9772: else
9773: 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'
9774: fi
9775: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9776: hardcode_libdir_separator=:
9777: hardcode_direct=yes
9778:
9779: # hardcode_minus_L: Not really in the search PATH,
9780: # but as the default location of the library.
9781: hardcode_minus_L=yes
9782: export_dynamic_flag_spec='$wl-E'
9783: ;;
9784:
9785: hpux10*)
9786: if test yes,no = "$GCC,$with_gnu_ld"; then
9787: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9788: else
9789: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9790: fi
9791: if test no = "$with_gnu_ld"; then
9792: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9793: hardcode_libdir_separator=:
9794: hardcode_direct=yes
9795: hardcode_direct_absolute=yes
9796: export_dynamic_flag_spec='$wl-E'
9797: # hardcode_minus_L: Not really in the search PATH,
9798: # but as the default location of the library.
9799: hardcode_minus_L=yes
9800: fi
9801: ;;
9802:
9803: hpux11*)
9804: if test yes,no = "$GCC,$with_gnu_ld"; then
9805: case $host_cpu in
9806: hppa*64*)
9807: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9808: ;;
9809: ia64*)
9810: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9811: ;;
9812: *)
9813: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9814: ;;
9815: esac
9816: else
9817: case $host_cpu in
9818: hppa*64*)
9819: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9820: ;;
9821: ia64*)
9822: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9823: ;;
9824: *)
9825:
9826: # Older versions of the 11.00 compiler do not understand -b yet
9827: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9829: $as_echo_n "checking if $CC understands -b... " >&6; }
9830: if ${lt_cv_prog_compiler__b+:} false; then :
9831: $as_echo_n "(cached) " >&6
9832: else
9833: lt_cv_prog_compiler__b=no
9834: save_LDFLAGS=$LDFLAGS
9835: LDFLAGS="$LDFLAGS -b"
9836: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9837: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9838: # The linker can only warn and ignore the option if not recognized
9839: # So say no if there are warnings
9840: if test -s conftest.err; then
9841: # Append any errors to the config.log.
9842: cat conftest.err 1>&5
9843: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9844: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9845: if diff conftest.exp conftest.er2 >/dev/null; then
9846: lt_cv_prog_compiler__b=yes
9847: fi
9848: else
9849: lt_cv_prog_compiler__b=yes
9850: fi
9851: fi
9852: $RM -r conftest*
9853: LDFLAGS=$save_LDFLAGS
9854:
9855: fi
9856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9857: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9858:
9859: if test yes = "$lt_cv_prog_compiler__b"; then
9860: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9861: else
9862: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9863: fi
9864:
9865: ;;
9866: esac
9867: fi
9868: if test no = "$with_gnu_ld"; then
9869: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9870: hardcode_libdir_separator=:
9871:
9872: case $host_cpu in
9873: hppa*64*|ia64*)
9874: hardcode_direct=no
9875: hardcode_shlibpath_var=no
9876: ;;
9877: *)
9878: hardcode_direct=yes
9879: hardcode_direct_absolute=yes
9880: export_dynamic_flag_spec='$wl-E'
9881:
9882: # hardcode_minus_L: Not really in the search PATH,
9883: # but as the default location of the library.
9884: hardcode_minus_L=yes
9885: ;;
9886: esac
9887: fi
9888: ;;
9889:
9890: irix5* | irix6* | nonstopux*)
9891: if test yes = "$GCC"; then
9892: 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'
9893: # Try to use the -exported_symbol ld option, if it does not
9894: # work, assume that -exports_file does not work either and
9895: # implicitly export all symbols.
9896: # This should be the same for all languages, so no per-tag cache variable.
9897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9898: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9899: if ${lt_cv_irix_exported_symbol+:} false; then :
9900: $as_echo_n "(cached) " >&6
9901: else
9902: save_LDFLAGS=$LDFLAGS
9903: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905: /* end confdefs.h. */
9906: int foo (void) { return 0; }
9907: _ACEOF
9908: if ac_fn_c_try_link "$LINENO"; then :
9909: lt_cv_irix_exported_symbol=yes
9910: else
9911: lt_cv_irix_exported_symbol=no
9912: fi
9913: rm -f core conftest.err conftest.$ac_objext \
9914: conftest$ac_exeext conftest.$ac_ext
9915: LDFLAGS=$save_LDFLAGS
9916: fi
9917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9918: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9919: if test yes = "$lt_cv_irix_exported_symbol"; then
9920: 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'
9921: fi
9922: else
9923: 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'
9924: 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'
9925: fi
9926: archive_cmds_need_lc='no'
9927: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9928: hardcode_libdir_separator=:
9929: inherit_rpath=yes
9930: link_all_deplibs=yes
9931: ;;
9932:
9933: linux*)
9934: case $cc_basename in
9935: tcc*)
9936: # Fabrice Bellard et al's Tiny C Compiler
9937: ld_shlibs=yes
9938: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9939: ;;
9940: esac
9941: ;;
9942:
9943: netbsd*)
9944: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9945: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9946: else
9947: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9948: fi
9949: hardcode_libdir_flag_spec='-R$libdir'
9950: hardcode_direct=yes
9951: hardcode_shlibpath_var=no
9952: ;;
9953:
9954: newsos6)
9955: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956: hardcode_direct=yes
9957: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9958: hardcode_libdir_separator=:
9959: hardcode_shlibpath_var=no
9960: ;;
9961:
9962: *nto* | *qnx*)
9963: ;;
9964:
9965: openbsd* | bitrig*)
9966: if test -f /usr/libexec/ld.so; then
9967: hardcode_direct=yes
9968: hardcode_shlibpath_var=no
9969: hardcode_direct_absolute=yes
9970: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9971: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9973: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9974: export_dynamic_flag_spec='$wl-E'
9975: else
9976: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9977: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9978: fi
9979: else
9980: ld_shlibs=no
9981: fi
9982: ;;
9983:
9984: os2*)
9985: hardcode_libdir_flag_spec='-L$libdir'
9986: hardcode_minus_L=yes
9987: allow_undefined_flag=unsupported
9988: shrext_cmds=.dll
9989: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9990: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9991: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9992: $ECHO EXPORTS >> $output_objdir/$libname.def~
9993: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9994: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9995: emximp -o $lib $output_objdir/$libname.def'
9996: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9997: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9998: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9999: $ECHO EXPORTS >> $output_objdir/$libname.def~
10000: prefix_cmds="$SED"~
10001: if test EXPORTS = "`$SED 1q $export_symbols`"; then
10002: prefix_cmds="$prefix_cmds -e 1d";
10003: fi~
10004: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10005: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10006: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10007: emximp -o $lib $output_objdir/$libname.def'
10008: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10009: enable_shared_with_static_runtimes=yes
10010: ;;
10011:
10012: osf3*)
10013: if test yes = "$GCC"; then
10014: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10015: 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'
10016: else
10017: allow_undefined_flag=' -expect_unresolved \*'
10018: 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'
10019: fi
10020: archive_cmds_need_lc='no'
10021: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10022: hardcode_libdir_separator=:
10023: ;;
10024:
10025: osf4* | osf5*) # as osf3* with the addition of -msym flag
10026: if test yes = "$GCC"; then
10027: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10028: 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'
10029: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10030: else
10031: allow_undefined_flag=' -expect_unresolved \*'
10032: 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'
10033: 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~
10034: $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'
10035:
10036: # Both c and cxx compiler support -rpath directly
10037: hardcode_libdir_flag_spec='-rpath $libdir'
10038: fi
10039: archive_cmds_need_lc='no'
10040: hardcode_libdir_separator=:
10041: ;;
10042:
10043: solaris*)
10044: no_undefined_flag=' -z defs'
10045: if test yes = "$GCC"; then
10046: wlarc='$wl'
10047: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10048: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10049: $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'
10050: else
10051: case `$CC -V 2>&1` in
10052: *"Compilers 5.0"*)
10053: wlarc=''
10054: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10056: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10057: ;;
10058: *)
10059: wlarc='$wl'
10060: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10061: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10063: ;;
10064: esac
10065: fi
10066: hardcode_libdir_flag_spec='-R$libdir'
10067: hardcode_shlibpath_var=no
10068: case $host_os in
10069: solaris2.[0-5] | solaris2.[0-5].*) ;;
10070: *)
10071: # The compiler driver will combine and reorder linker options,
10072: # but understands '-z linker_flag'. GCC discards it without '$wl',
10073: # but is careful enough not to reorder.
10074: # Supported since Solaris 2.6 (maybe 2.5.1?)
10075: if test yes = "$GCC"; then
10076: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10077: else
10078: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10079: fi
10080: ;;
10081: esac
10082: link_all_deplibs=yes
10083: ;;
10084:
10085: sunos4*)
10086: if test sequent = "$host_vendor"; then
10087: # Use $CC to link under sequent, because it throws in some extra .o
10088: # files that make .init and .fini sections work.
10089: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10090: else
10091: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10092: fi
10093: hardcode_libdir_flag_spec='-L$libdir'
10094: hardcode_direct=yes
10095: hardcode_minus_L=yes
10096: hardcode_shlibpath_var=no
10097: ;;
10098:
10099: sysv4)
10100: case $host_vendor in
10101: sni)
10102: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103: hardcode_direct=yes # is this really true???
10104: ;;
10105: siemens)
10106: ## LD is ld it makes a PLAMLIB
10107: ## CC just makes a GrossModule.
10108: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10109: reload_cmds='$CC -r -o $output$reload_objs'
10110: hardcode_direct=no
10111: ;;
10112: motorola)
10113: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10115: ;;
10116: esac
10117: runpath_var='LD_RUN_PATH'
10118: hardcode_shlibpath_var=no
10119: ;;
10120:
10121: sysv4.3*)
10122: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123: hardcode_shlibpath_var=no
10124: export_dynamic_flag_spec='-Bexport'
10125: ;;
10126:
10127: sysv4*MP*)
10128: if test -d /usr/nec; then
10129: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130: hardcode_shlibpath_var=no
10131: runpath_var=LD_RUN_PATH
10132: hardcode_runpath_var=yes
10133: ld_shlibs=yes
10134: fi
10135: ;;
10136:
10137: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10138: no_undefined_flag='$wl-z,text'
10139: archive_cmds_need_lc=no
10140: hardcode_shlibpath_var=no
10141: runpath_var='LD_RUN_PATH'
10142:
10143: if test yes = "$GCC"; then
10144: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146: else
10147: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149: fi
10150: ;;
10151:
10152: sysv5* | sco3.2v5* | sco5v6*)
10153: # Note: We CANNOT use -z defs as we might desire, because we do not
10154: # link with -lc, and that would cause any symbols used from libc to
10155: # always be unresolved, which means just about no library would
10156: # ever link correctly. If we're not using GNU ld we use -z text
10157: # though, which does catch some bad symbols but isn't as heavy-handed
10158: # as -z defs.
10159: no_undefined_flag='$wl-z,text'
10160: allow_undefined_flag='$wl-z,nodefs'
10161: archive_cmds_need_lc=no
10162: hardcode_shlibpath_var=no
10163: hardcode_libdir_flag_spec='$wl-R,$libdir'
10164: hardcode_libdir_separator=':'
10165: link_all_deplibs=yes
10166: export_dynamic_flag_spec='$wl-Bexport'
10167: runpath_var='LD_RUN_PATH'
10168:
10169: if test yes = "$GCC"; then
10170: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172: else
10173: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175: fi
10176: ;;
10177:
10178: uts4*)
10179: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180: hardcode_libdir_flag_spec='-L$libdir'
10181: hardcode_shlibpath_var=no
10182: ;;
10183:
10184: *)
10185: ld_shlibs=no
10186: ;;
10187: esac
10188:
10189: if test sni = "$host_vendor"; then
10190: case $host in
10191: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10192: export_dynamic_flag_spec='$wl-Blargedynsym'
10193: ;;
10194: esac
10195: fi
10196: fi
10197:
10198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10199: $as_echo "$ld_shlibs" >&6; }
10200: test no = "$ld_shlibs" && can_build_shared=no
10201:
10202: with_gnu_ld=$with_gnu_ld
10203:
10204:
10205:
10206:
10207:
10208:
10209:
10210:
10211:
10212:
10213:
10214:
10215:
10216:
10217:
10218: #
10219: # Do we need to explicitly link libc?
10220: #
10221: case "x$archive_cmds_need_lc" in
10222: x|xyes)
10223: # Assume -lc should be added
10224: archive_cmds_need_lc=yes
10225:
10226: if test yes,yes = "$GCC,$enable_shared"; then
10227: case $archive_cmds in
10228: *'~'*)
10229: # FIXME: we may have to deal with multi-command sequences.
10230: ;;
10231: '$CC '*)
10232: # Test whether the compiler implicitly links with -lc since on some
10233: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10234: # to ld, don't add -lc before -lgcc.
10235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10236: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10237: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10238: $as_echo_n "(cached) " >&6
10239: else
10240: $RM conftest*
10241: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10242:
10243: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10244: (eval $ac_compile) 2>&5
10245: ac_status=$?
10246: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10247: test $ac_status = 0; } 2>conftest.err; then
10248: soname=conftest
10249: lib=conftest
10250: libobjs=conftest.$ac_objext
10251: deplibs=
10252: wl=$lt_prog_compiler_wl
10253: pic_flag=$lt_prog_compiler_pic
10254: compiler_flags=-v
10255: linker_flags=-v
10256: verstring=
10257: output_objdir=.
10258: libname=conftest
10259: lt_save_allow_undefined_flag=$allow_undefined_flag
10260: allow_undefined_flag=
10261: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10262: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10263: ac_status=$?
10264: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10265: test $ac_status = 0; }
10266: then
10267: lt_cv_archive_cmds_need_lc=no
10268: else
10269: lt_cv_archive_cmds_need_lc=yes
10270: fi
10271: allow_undefined_flag=$lt_save_allow_undefined_flag
10272: else
10273: cat conftest.err 1>&5
10274: fi
10275: $RM conftest*
10276:
10277: fi
10278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10279: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10280: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10281: ;;
10282: esac
10283: fi
10284: ;;
10285: esac
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:
10438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10439: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10440:
10441: if test yes = "$GCC"; then
10442: case $host_os in
10443: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10444: *) lt_awk_arg='/^libraries:/' ;;
10445: esac
10446: case $host_os in
10447: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10448: *) lt_sed_strip_eq='s|=/|/|g' ;;
10449: esac
10450: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10451: case $lt_search_path_spec in
10452: *\;*)
10453: # if the path contains ";" then we assume it to be the separator
10454: # otherwise default to the standard path separator (i.e. ":") - it is
10455: # assumed that no part of a normal pathname contains ";" but that should
10456: # okay in the real world where ";" in dirpaths is itself problematic.
10457: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10458: ;;
10459: *)
10460: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10461: ;;
10462: esac
10463: # Ok, now we have the path, separated by spaces, we can step through it
10464: # and add multilib dir if necessary...
10465: lt_tmp_lt_search_path_spec=
10466: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10467: # ...but if some path component already ends with the multilib dir we assume
10468: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10469: case "$lt_multi_os_dir; $lt_search_path_spec " in
10470: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10471: lt_multi_os_dir=
10472: ;;
10473: esac
10474: for lt_sys_path in $lt_search_path_spec; do
10475: if test -d "$lt_sys_path$lt_multi_os_dir"; then
10476: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10477: elif test -n "$lt_multi_os_dir"; then
10478: test -d "$lt_sys_path" && \
10479: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10480: fi
10481: done
10482: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10483: BEGIN {RS = " "; FS = "/|\n";} {
10484: lt_foo = "";
10485: lt_count = 0;
10486: for (lt_i = NF; lt_i > 0; lt_i--) {
10487: if ($lt_i != "" && $lt_i != ".") {
10488: if ($lt_i == "..") {
10489: lt_count++;
10490: } else {
10491: if (lt_count == 0) {
10492: lt_foo = "/" $lt_i lt_foo;
10493: } else {
10494: lt_count--;
10495: }
10496: }
10497: }
10498: }
10499: if (lt_foo != "") { lt_freq[lt_foo]++; }
10500: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10501: }'`
10502: # AWK program above erroneously prepends '/' to C:/dos/paths
10503: # for these hosts.
10504: case $host_os in
10505: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10506: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10507: esac
10508: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10509: else
10510: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10511: fi
10512: library_names_spec=
10513: libname_spec='lib$name'
10514: soname_spec=
10515: shrext_cmds=.so
10516: postinstall_cmds=
10517: postuninstall_cmds=
10518: finish_cmds=
10519: finish_eval=
10520: shlibpath_var=
10521: shlibpath_overrides_runpath=unknown
10522: version_type=none
10523: dynamic_linker="$host_os ld.so"
10524: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10525: need_lib_prefix=unknown
10526: hardcode_into_libs=no
10527:
10528: # when you set need_version to no, make sure it does not cause -set_version
10529: # flags to be left without arguments
10530: need_version=unknown
10531:
10532:
10533:
10534: case $host_os in
10535: aix3*)
10536: version_type=linux # correct to gnu/linux during the next big refactor
10537: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10538: shlibpath_var=LIBPATH
10539:
10540: # AIX 3 has no versioning support, so we append a major version to the name.
10541: soname_spec='$libname$release$shared_ext$major'
10542: ;;
10543:
10544: aix[4-9]*)
10545: version_type=linux # correct to gnu/linux during the next big refactor
10546: need_lib_prefix=no
10547: need_version=no
10548: hardcode_into_libs=yes
10549: if test ia64 = "$host_cpu"; then
10550: # AIX 5 supports IA64
10551: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10552: shlibpath_var=LD_LIBRARY_PATH
10553: else
10554: # With GCC up to 2.95.x, collect2 would create an import file
10555: # for dependence libraries. The import file would start with
10556: # the line '#! .'. This would cause the generated library to
10557: # depend on '.', always an invalid library. This was fixed in
10558: # development snapshots of GCC prior to 3.0.
10559: case $host_os in
10560: aix4 | aix4.[01] | aix4.[01].*)
10561: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10562: echo ' yes '
10563: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10564: :
10565: else
10566: can_build_shared=no
10567: fi
10568: ;;
10569: esac
10570: # Using Import Files as archive members, it is possible to support
10571: # filename-based versioning of shared library archives on AIX. While
10572: # this would work for both with and without runtime linking, it will
10573: # prevent static linking of such archives. So we do filename-based
10574: # shared library versioning with .so extension only, which is used
10575: # when both runtime linking and shared linking is enabled.
10576: # Unfortunately, runtime linking may impact performance, so we do
10577: # not want this to be the default eventually. Also, we use the
10578: # versioned .so libs for executables only if there is the -brtl
10579: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10580: # To allow for filename-based versioning support, we need to create
10581: # libNAME.so.V as an archive file, containing:
10582: # *) an Import File, referring to the versioned filename of the
10583: # archive as well as the shared archive member, telling the
10584: # bitwidth (32 or 64) of that shared object, and providing the
10585: # list of exported symbols of that shared object, eventually
10586: # decorated with the 'weak' keyword
10587: # *) the shared object with the F_LOADONLY flag set, to really avoid
10588: # it being seen by the linker.
10589: # At run time we better use the real file rather than another symlink,
10590: # but for link time we create the symlink libNAME.so -> libNAME.so.V
10591:
10592: case $with_aix_soname,$aix_use_runtimelinking in
10593: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10594: # soname into executable. Probably we can add versioning support to
10595: # collect2, so additional links can be useful in future.
10596: aix,yes) # traditional libtool
10597: dynamic_linker='AIX unversionable lib.so'
10598: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10599: # instead of lib<name>.a to let people know that these are not
10600: # typical AIX shared libraries.
10601: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10602: ;;
10603: aix,no) # traditional AIX only
10604: dynamic_linker='AIX lib.a(lib.so.V)'
10605: # We preserve .a as extension for shared libraries through AIX4.2
10606: # and later when we are not doing run time linking.
10607: library_names_spec='$libname$release.a $libname.a'
10608: soname_spec='$libname$release$shared_ext$major'
10609: ;;
10610: svr4,*) # full svr4 only
10611: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10612: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10613: # We do not specify a path in Import Files, so LIBPATH fires.
10614: shlibpath_overrides_runpath=yes
10615: ;;
10616: *,yes) # both, prefer svr4
10617: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10618: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10619: # unpreferred sharedlib libNAME.a needs extra handling
10620: 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"'
10621: 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"'
10622: # We do not specify a path in Import Files, so LIBPATH fires.
10623: shlibpath_overrides_runpath=yes
10624: ;;
10625: *,no) # both, prefer aix
10626: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10627: library_names_spec='$libname$release.a $libname.a'
10628: soname_spec='$libname$release$shared_ext$major'
10629: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10630: 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)'
10631: 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"'
10632: ;;
10633: esac
10634: shlibpath_var=LIBPATH
10635: fi
10636: ;;
10637:
10638: amigaos*)
10639: case $host_cpu in
10640: powerpc)
10641: # Since July 2007 AmigaOS4 officially supports .so libraries.
10642: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10643: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10644: ;;
10645: m68k)
10646: library_names_spec='$libname.ixlibrary $libname.a'
10647: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10648: 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'
10649: ;;
10650: esac
10651: ;;
10652:
10653: beos*)
10654: library_names_spec='$libname$shared_ext'
10655: dynamic_linker="$host_os ld.so"
10656: shlibpath_var=LIBRARY_PATH
10657: ;;
10658:
10659: bsdi[45]*)
10660: version_type=linux # correct to gnu/linux during the next big refactor
10661: need_version=no
10662: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10663: soname_spec='$libname$release$shared_ext$major'
10664: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10665: shlibpath_var=LD_LIBRARY_PATH
10666: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10667: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10668: # the default ld.so.conf also contains /usr/contrib/lib and
10669: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10670: # libtool to hard-code these into programs
10671: ;;
10672:
10673: cygwin* | mingw* | pw32* | cegcc*)
10674: version_type=windows
10675: shrext_cmds=.dll
10676: need_version=no
10677: need_lib_prefix=no
10678:
10679: case $GCC,$cc_basename in
10680: yes,*)
10681: # gcc
10682: library_names_spec='$libname.dll.a'
10683: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10684: postinstall_cmds='base_file=`basename \$file`~
10685: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10686: dldir=$destdir/`dirname \$dlpath`~
10687: test -d \$dldir || mkdir -p \$dldir~
10688: $install_prog $dir/$dlname \$dldir/$dlname~
10689: chmod a+x \$dldir/$dlname~
10690: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10691: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10692: fi'
10693: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10694: dlpath=$dir/\$dldll~
10695: $RM \$dlpath'
10696: shlibpath_overrides_runpath=yes
10697:
10698: case $host_os in
10699: cygwin*)
10700: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10701: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10702:
10703: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10704: ;;
10705: mingw* | cegcc*)
10706: # MinGW DLLs use traditional 'lib' prefix
10707: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10708: ;;
10709: pw32*)
10710: # pw32 DLLs use 'pw' prefix rather than 'lib'
10711: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10712: ;;
10713: esac
10714: dynamic_linker='Win32 ld.exe'
10715: ;;
10716:
10717: *,cl*)
10718: # Native MSVC
10719: libname_spec='$name'
10720: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10721: library_names_spec='$libname.dll.lib'
10722:
10723: case $build_os in
10724: mingw*)
10725: sys_lib_search_path_spec=
10726: lt_save_ifs=$IFS
10727: IFS=';'
10728: for lt_path in $LIB
10729: do
10730: IFS=$lt_save_ifs
10731: # Let DOS variable expansion print the short 8.3 style file name.
10732: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10733: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10734: done
10735: IFS=$lt_save_ifs
10736: # Convert to MSYS style.
10737: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10738: ;;
10739: cygwin*)
10740: # Convert to unix form, then to dos form, then back to unix form
10741: # but this time dos style (no spaces!) so that the unix form looks
10742: # like /cygdrive/c/PROGRA~1:/cygdr...
10743: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10744: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10745: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10746: ;;
10747: *)
10748: sys_lib_search_path_spec=$LIB
10749: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10750: # It is most probably a Windows format PATH.
10751: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10752: else
10753: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10754: fi
10755: # FIXME: find the short name or the path components, as spaces are
10756: # common. (e.g. "Program Files" -> "PROGRA~1")
10757: ;;
10758: esac
10759:
10760: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10761: postinstall_cmds='base_file=`basename \$file`~
10762: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10763: dldir=$destdir/`dirname \$dlpath`~
10764: test -d \$dldir || mkdir -p \$dldir~
10765: $install_prog $dir/$dlname \$dldir/$dlname'
10766: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10767: dlpath=$dir/\$dldll~
10768: $RM \$dlpath'
10769: shlibpath_overrides_runpath=yes
10770: dynamic_linker='Win32 link.exe'
10771: ;;
10772:
10773: *)
10774: # Assume MSVC wrapper
10775: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10776: dynamic_linker='Win32 ld.exe'
10777: ;;
10778: esac
10779: # FIXME: first we should search . and the directory the executable is in
10780: shlibpath_var=PATH
10781: ;;
10782:
10783: darwin* | rhapsody*)
10784: dynamic_linker="$host_os dyld"
10785: version_type=darwin
10786: need_lib_prefix=no
10787: need_version=no
10788: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10789: soname_spec='$libname$release$major$shared_ext'
10790: shlibpath_overrides_runpath=yes
10791: shlibpath_var=DYLD_LIBRARY_PATH
10792: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10793:
10794: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10795: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10796: ;;
10797:
10798: dgux*)
10799: version_type=linux # correct to gnu/linux during the next big refactor
10800: need_lib_prefix=no
10801: need_version=no
10802: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10803: soname_spec='$libname$release$shared_ext$major'
10804: shlibpath_var=LD_LIBRARY_PATH
10805: ;;
10806:
10807: freebsd* | dragonfly*)
10808: # DragonFly does not have aout. When/if they implement a new
10809: # versioning mechanism, adjust this.
10810: if test -x /usr/bin/objformat; then
10811: objformat=`/usr/bin/objformat`
10812: else
10813: case $host_os in
10814: freebsd[23].*) objformat=aout ;;
10815: *) objformat=elf ;;
10816: esac
10817: fi
10818: version_type=freebsd-$objformat
10819: case $version_type in
10820: freebsd-elf*)
10821: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10822: soname_spec='$libname$release$shared_ext$major'
10823: need_version=no
10824: need_lib_prefix=no
10825: ;;
10826: freebsd-*)
10827: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10828: need_version=yes
10829: ;;
10830: esac
10831: shlibpath_var=LD_LIBRARY_PATH
10832: case $host_os in
10833: freebsd2.*)
10834: shlibpath_overrides_runpath=yes
10835: ;;
10836: freebsd3.[01]* | freebsdelf3.[01]*)
10837: shlibpath_overrides_runpath=yes
10838: hardcode_into_libs=yes
10839: ;;
10840: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10841: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10842: shlibpath_overrides_runpath=no
10843: hardcode_into_libs=yes
10844: ;;
10845: *) # from 4.6 on, and DragonFly
10846: shlibpath_overrides_runpath=yes
10847: hardcode_into_libs=yes
10848: ;;
10849: esac
10850: ;;
10851:
10852: haiku*)
10853: version_type=linux # correct to gnu/linux during the next big refactor
10854: need_lib_prefix=no
10855: need_version=no
10856: dynamic_linker="$host_os runtime_loader"
10857: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10858: soname_spec='$libname$release$shared_ext$major'
10859: shlibpath_var=LIBRARY_PATH
10860: shlibpath_overrides_runpath=no
10861: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10862: hardcode_into_libs=yes
10863: ;;
10864:
10865: hpux9* | hpux10* | hpux11*)
10866: # Give a soname corresponding to the major version so that dld.sl refuses to
10867: # link against other versions.
10868: version_type=sunos
10869: need_lib_prefix=no
10870: need_version=no
10871: case $host_cpu in
10872: ia64*)
10873: shrext_cmds='.so'
10874: hardcode_into_libs=yes
10875: dynamic_linker="$host_os dld.so"
10876: shlibpath_var=LD_LIBRARY_PATH
10877: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10878: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879: soname_spec='$libname$release$shared_ext$major'
10880: if test 32 = "$HPUX_IA64_MODE"; then
10881: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10882: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10883: else
10884: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10885: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10886: fi
10887: ;;
10888: hppa*64*)
10889: shrext_cmds='.sl'
10890: hardcode_into_libs=yes
10891: dynamic_linker="$host_os dld.sl"
10892: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10893: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10894: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10895: soname_spec='$libname$release$shared_ext$major'
10896: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10897: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10898: ;;
10899: *)
10900: shrext_cmds='.sl'
10901: dynamic_linker="$host_os dld.sl"
10902: shlibpath_var=SHLIB_PATH
10903: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10904: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10905: soname_spec='$libname$release$shared_ext$major'
10906: ;;
10907: esac
10908: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10909: postinstall_cmds='chmod 555 $lib'
10910: # or fails outright, so override atomically:
10911: install_override_mode=555
10912: ;;
10913:
10914: interix[3-9]*)
10915: version_type=linux # correct to gnu/linux during the next big refactor
10916: need_lib_prefix=no
10917: need_version=no
10918: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919: soname_spec='$libname$release$shared_ext$major'
10920: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10921: shlibpath_var=LD_LIBRARY_PATH
10922: shlibpath_overrides_runpath=no
10923: hardcode_into_libs=yes
10924: ;;
10925:
10926: irix5* | irix6* | nonstopux*)
10927: case $host_os in
10928: nonstopux*) version_type=nonstopux ;;
10929: *)
10930: if test yes = "$lt_cv_prog_gnu_ld"; then
10931: version_type=linux # correct to gnu/linux during the next big refactor
10932: else
10933: version_type=irix
10934: fi ;;
10935: esac
10936: need_lib_prefix=no
10937: need_version=no
10938: soname_spec='$libname$release$shared_ext$major'
10939: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10940: case $host_os in
10941: irix5* | nonstopux*)
10942: libsuff= shlibsuff=
10943: ;;
10944: *)
10945: case $LD in # libtool.m4 will add one of these switches to LD
10946: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10947: libsuff= shlibsuff= libmagic=32-bit;;
10948: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10949: libsuff=32 shlibsuff=N32 libmagic=N32;;
10950: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10951: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10952: *) libsuff= shlibsuff= libmagic=never-match;;
10953: esac
10954: ;;
10955: esac
10956: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10957: shlibpath_overrides_runpath=no
10958: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10959: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10960: hardcode_into_libs=yes
10961: ;;
10962:
10963: # No shared lib support for Linux oldld, aout, or coff.
10964: linux*oldld* | linux*aout* | linux*coff*)
10965: dynamic_linker=no
10966: ;;
10967:
10968: linux*android*)
10969: version_type=none # Android doesn't support versioned libraries.
10970: need_lib_prefix=no
10971: need_version=no
10972: library_names_spec='$libname$release$shared_ext'
10973: soname_spec='$libname$release$shared_ext'
10974: finish_cmds=
10975: shlibpath_var=LD_LIBRARY_PATH
10976: shlibpath_overrides_runpath=yes
10977:
10978: # This implies no fast_install, which is unacceptable.
10979: # Some rework will be needed to allow for fast_install
10980: # before this can be enabled.
10981: hardcode_into_libs=yes
10982:
10983: dynamic_linker='Android linker'
10984: # Don't embed -rpath directories since the linker doesn't support them.
10985: hardcode_libdir_flag_spec='-L$libdir'
10986: ;;
10987:
10988: # This must be glibc/ELF.
10989: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10990: version_type=linux # correct to gnu/linux during the next big refactor
10991: need_lib_prefix=no
10992: need_version=no
10993: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10994: soname_spec='$libname$release$shared_ext$major'
10995: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10996: shlibpath_var=LD_LIBRARY_PATH
10997: shlibpath_overrides_runpath=no
10998:
10999: # Some binutils ld are patched to set DT_RUNPATH
11000: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11001: $as_echo_n "(cached) " >&6
11002: else
11003: lt_cv_shlibpath_overrides_runpath=no
11004: save_LDFLAGS=$LDFLAGS
11005: save_libdir=$libdir
11006: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11007: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009: /* end confdefs.h. */
11010:
11011: int
11012: main ()
11013: {
11014:
11015: ;
11016: return 0;
11017: }
11018: _ACEOF
11019: if ac_fn_c_try_link "$LINENO"; then :
11020: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11021: lt_cv_shlibpath_overrides_runpath=yes
11022: fi
11023: fi
11024: rm -f core conftest.err conftest.$ac_objext \
11025: conftest$ac_exeext conftest.$ac_ext
11026: LDFLAGS=$save_LDFLAGS
11027: libdir=$save_libdir
11028:
11029: fi
11030:
11031: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11032:
11033: # This implies no fast_install, which is unacceptable.
11034: # Some rework will be needed to allow for fast_install
11035: # before this can be enabled.
11036: hardcode_into_libs=yes
11037:
11038: # Ideally, we could use ldconfig to report *all* directores which are
11039: # searched for libraries, however this is still not possible. Aside from not
11040: # being certain /sbin/ldconfig is available, command
11041: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11042: # even though it is searched at run-time. Try to do the best guess by
11043: # appending ld.so.conf contents (and includes) to the search path.
11044: if test -f /etc/ld.so.conf; then
11045: 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' ' '`
11046: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11047: fi
11048:
11049: # We used to test for /lib/ld.so.1 and disable shared libraries on
11050: # powerpc, because MkLinux only supported shared libraries with the
11051: # GNU dynamic linker. Since this was broken with cross compilers,
11052: # most powerpc-linux boxes support dynamic linking these days and
11053: # people can always --disable-shared, the test was removed, and we
11054: # assume the GNU/Linux dynamic linker is in use.
11055: dynamic_linker='GNU/Linux ld.so'
11056: ;;
11057:
11058: netbsd*)
11059: version_type=sunos
11060: need_lib_prefix=no
11061: need_version=no
11062: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11063: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11064: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11065: dynamic_linker='NetBSD (a.out) ld.so'
11066: else
11067: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11068: soname_spec='$libname$release$shared_ext$major'
11069: dynamic_linker='NetBSD ld.elf_so'
11070: fi
11071: shlibpath_var=LD_LIBRARY_PATH
11072: shlibpath_overrides_runpath=yes
11073: hardcode_into_libs=yes
11074: ;;
11075:
11076: newsos6)
11077: version_type=linux # correct to gnu/linux during the next big refactor
11078: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079: shlibpath_var=LD_LIBRARY_PATH
11080: shlibpath_overrides_runpath=yes
11081: ;;
11082:
11083: *nto* | *qnx*)
11084: version_type=qnx
11085: need_lib_prefix=no
11086: need_version=no
11087: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088: soname_spec='$libname$release$shared_ext$major'
11089: shlibpath_var=LD_LIBRARY_PATH
11090: shlibpath_overrides_runpath=no
11091: hardcode_into_libs=yes
11092: dynamic_linker='ldqnx.so'
11093: ;;
11094:
11095: openbsd* | bitrig*)
11096: version_type=sunos
11097: sys_lib_dlsearch_path_spec=/usr/lib
11098: need_lib_prefix=no
11099: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11100: need_version=no
11101: else
11102: need_version=yes
11103: fi
11104: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11105: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11106: shlibpath_var=LD_LIBRARY_PATH
11107: shlibpath_overrides_runpath=yes
11108: ;;
11109:
11110: os2*)
11111: libname_spec='$name'
11112: version_type=windows
11113: shrext_cmds=.dll
11114: need_version=no
11115: need_lib_prefix=no
11116: # OS/2 can only load a DLL with a base name of 8 characters or less.
11117: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11118: v=$($ECHO $release$versuffix | tr -d .-);
11119: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11120: $ECHO $n$v`$shared_ext'
11121: library_names_spec='${libname}_dll.$libext'
11122: dynamic_linker='OS/2 ld.exe'
11123: shlibpath_var=BEGINLIBPATH
11124: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11125: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11126: postinstall_cmds='base_file=`basename \$file`~
11127: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11128: dldir=$destdir/`dirname \$dlpath`~
11129: test -d \$dldir || mkdir -p \$dldir~
11130: $install_prog $dir/$dlname \$dldir/$dlname~
11131: chmod a+x \$dldir/$dlname~
11132: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11133: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11134: fi'
11135: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11136: dlpath=$dir/\$dldll~
11137: $RM \$dlpath'
11138: ;;
11139:
11140: osf3* | osf4* | osf5*)
11141: version_type=osf
11142: need_lib_prefix=no
11143: need_version=no
11144: soname_spec='$libname$release$shared_ext$major'
11145: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11146: shlibpath_var=LD_LIBRARY_PATH
11147: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11148: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11149: ;;
11150:
11151: rdos*)
11152: dynamic_linker=no
11153: ;;
11154:
11155: solaris*)
11156: version_type=linux # correct to gnu/linux during the next big refactor
11157: need_lib_prefix=no
11158: need_version=no
11159: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160: soname_spec='$libname$release$shared_ext$major'
11161: shlibpath_var=LD_LIBRARY_PATH
11162: shlibpath_overrides_runpath=yes
11163: hardcode_into_libs=yes
11164: # ldd complains unless libraries are executable
11165: postinstall_cmds='chmod +x $lib'
11166: ;;
11167:
11168: sunos4*)
11169: version_type=sunos
11170: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11171: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11172: shlibpath_var=LD_LIBRARY_PATH
11173: shlibpath_overrides_runpath=yes
11174: if test yes = "$with_gnu_ld"; then
11175: need_lib_prefix=no
11176: fi
11177: need_version=yes
11178: ;;
11179:
11180: sysv4 | sysv4.3*)
11181: version_type=linux # correct to gnu/linux during the next big refactor
11182: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183: soname_spec='$libname$release$shared_ext$major'
11184: shlibpath_var=LD_LIBRARY_PATH
11185: case $host_vendor in
11186: sni)
11187: shlibpath_overrides_runpath=no
11188: need_lib_prefix=no
11189: runpath_var=LD_RUN_PATH
11190: ;;
11191: siemens)
11192: need_lib_prefix=no
11193: ;;
11194: motorola)
11195: need_lib_prefix=no
11196: need_version=no
11197: shlibpath_overrides_runpath=no
11198: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11199: ;;
11200: esac
11201: ;;
11202:
11203: sysv4*MP*)
11204: if test -d /usr/nec; then
11205: version_type=linux # correct to gnu/linux during the next big refactor
11206: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11207: soname_spec='$libname$shared_ext.$major'
11208: shlibpath_var=LD_LIBRARY_PATH
11209: fi
11210: ;;
11211:
11212: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11213: version_type=sco
11214: need_lib_prefix=no
11215: need_version=no
11216: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11217: soname_spec='$libname$release$shared_ext$major'
11218: shlibpath_var=LD_LIBRARY_PATH
11219: shlibpath_overrides_runpath=yes
11220: hardcode_into_libs=yes
11221: if test yes = "$with_gnu_ld"; then
11222: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11223: else
11224: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11225: case $host_os in
11226: sco3.2v5*)
11227: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11228: ;;
11229: esac
11230: fi
11231: sys_lib_dlsearch_path_spec='/usr/lib'
11232: ;;
11233:
11234: tpf*)
11235: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11236: version_type=linux # correct to gnu/linux during the next big refactor
11237: need_lib_prefix=no
11238: need_version=no
11239: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11240: shlibpath_var=LD_LIBRARY_PATH
11241: shlibpath_overrides_runpath=no
11242: hardcode_into_libs=yes
11243: ;;
11244:
11245: uts4*)
11246: version_type=linux # correct to gnu/linux during the next big refactor
11247: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248: soname_spec='$libname$release$shared_ext$major'
11249: shlibpath_var=LD_LIBRARY_PATH
11250: ;;
11251:
11252: *)
11253: dynamic_linker=no
11254: ;;
11255: esac
11256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11257: $as_echo "$dynamic_linker" >&6; }
11258: test no = "$dynamic_linker" && can_build_shared=no
11259:
11260: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11261: if test yes = "$GCC"; then
11262: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11263: fi
11264:
11265: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11266: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11267: fi
11268:
11269: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11270: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11271: fi
11272:
11273: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11274: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11275:
11276: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11277: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11278:
11279: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11280: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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:
11378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11379: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11380: hardcode_action=
11381: if test -n "$hardcode_libdir_flag_spec" ||
11382: test -n "$runpath_var" ||
11383: test yes = "$hardcode_automatic"; then
11384:
11385: # We can hardcode non-existent directories.
11386: if test no != "$hardcode_direct" &&
11387: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11388: # have to relink, otherwise we might link with an installed library
11389: # when we should be linking with a yet-to-be-installed one
11390: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11391: test no != "$hardcode_minus_L"; then
11392: # Linking always hardcodes the temporary library directory.
11393: hardcode_action=relink
11394: else
11395: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11396: hardcode_action=immediate
11397: fi
11398: else
11399: # We cannot hardcode anything, or else we can only hardcode existing
11400: # directories.
11401: hardcode_action=unsupported
11402: fi
11403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11404: $as_echo "$hardcode_action" >&6; }
11405:
11406: if test relink = "$hardcode_action" ||
11407: test yes = "$inherit_rpath"; then
11408: # Fast installation is not supported
11409: enable_fast_install=no
11410: elif test yes = "$shlibpath_overrides_runpath" ||
11411: test no = "$enable_shared"; then
11412: # Fast installation is not necessary
11413: enable_fast_install=needless
11414: fi
11415:
11416:
11417:
11418:
11419:
11420:
11421: if test yes != "$enable_dlopen"; then
11422: enable_dlopen=unknown
11423: enable_dlopen_self=unknown
11424: enable_dlopen_self_static=unknown
11425: else
11426: lt_cv_dlopen=no
11427: lt_cv_dlopen_libs=
11428:
11429: case $host_os in
11430: beos*)
11431: lt_cv_dlopen=load_add_on
11432: lt_cv_dlopen_libs=
11433: lt_cv_dlopen_self=yes
11434: ;;
11435:
11436: mingw* | pw32* | cegcc*)
11437: lt_cv_dlopen=LoadLibrary
11438: lt_cv_dlopen_libs=
11439: ;;
11440:
11441: cygwin*)
11442: lt_cv_dlopen=dlopen
11443: lt_cv_dlopen_libs=
11444: ;;
11445:
11446: darwin*)
11447: # if libdl is installed we need to link against it
11448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11449: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11450: if ${ac_cv_lib_dl_dlopen+:} false; then :
11451: $as_echo_n "(cached) " >&6
11452: else
11453: ac_check_lib_save_LIBS=$LIBS
11454: LIBS="-ldl $LIBS"
11455: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456: /* end confdefs.h. */
11457:
11458: /* Override any GCC internal prototype to avoid an error.
11459: Use char because int might match the return type of a GCC
11460: builtin and then its argument prototype would still apply. */
11461: #ifdef __cplusplus
11462: extern "C"
11463: #endif
11464: char dlopen ();
11465: int
11466: main ()
11467: {
11468: return dlopen ();
11469: ;
11470: return 0;
11471: }
11472: _ACEOF
11473: if ac_fn_c_try_link "$LINENO"; then :
11474: ac_cv_lib_dl_dlopen=yes
11475: else
11476: ac_cv_lib_dl_dlopen=no
11477: fi
11478: rm -f core conftest.err conftest.$ac_objext \
11479: conftest$ac_exeext conftest.$ac_ext
11480: LIBS=$ac_check_lib_save_LIBS
11481: fi
11482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11483: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11484: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11485: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11486: else
11487:
11488: lt_cv_dlopen=dyld
11489: lt_cv_dlopen_libs=
11490: lt_cv_dlopen_self=yes
11491:
11492: fi
11493:
11494: ;;
11495:
11496: tpf*)
11497: # Don't try to run any link tests for TPF. We know it's impossible
11498: # because TPF is a cross-compiler, and we know how we open DSOs.
11499: lt_cv_dlopen=dlopen
11500: lt_cv_dlopen_libs=
11501: lt_cv_dlopen_self=no
11502: ;;
11503:
11504: *)
11505: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11506: if test "x$ac_cv_func_shl_load" = xyes; then :
11507: lt_cv_dlopen=shl_load
11508: else
11509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11510: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11511: if ${ac_cv_lib_dld_shl_load+:} false; then :
11512: $as_echo_n "(cached) " >&6
11513: else
11514: ac_check_lib_save_LIBS=$LIBS
11515: LIBS="-ldld $LIBS"
11516: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517: /* end confdefs.h. */
11518:
11519: /* Override any GCC internal prototype to avoid an error.
11520: Use char because int might match the return type of a GCC
11521: builtin and then its argument prototype would still apply. */
11522: #ifdef __cplusplus
11523: extern "C"
11524: #endif
11525: char shl_load ();
11526: int
11527: main ()
11528: {
11529: return shl_load ();
11530: ;
11531: return 0;
11532: }
11533: _ACEOF
11534: if ac_fn_c_try_link "$LINENO"; then :
11535: ac_cv_lib_dld_shl_load=yes
11536: else
11537: ac_cv_lib_dld_shl_load=no
11538: fi
11539: rm -f core conftest.err conftest.$ac_objext \
11540: conftest$ac_exeext conftest.$ac_ext
11541: LIBS=$ac_check_lib_save_LIBS
11542: fi
11543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11544: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11545: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11546: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11547: else
11548: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11549: if test "x$ac_cv_func_dlopen" = xyes; then :
11550: lt_cv_dlopen=dlopen
11551: else
11552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11553: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11554: if ${ac_cv_lib_dl_dlopen+:} false; then :
11555: $as_echo_n "(cached) " >&6
11556: else
11557: ac_check_lib_save_LIBS=$LIBS
11558: LIBS="-ldl $LIBS"
11559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560: /* end confdefs.h. */
11561:
11562: /* Override any GCC internal prototype to avoid an error.
11563: Use char because int might match the return type of a GCC
11564: builtin and then its argument prototype would still apply. */
11565: #ifdef __cplusplus
11566: extern "C"
11567: #endif
11568: char dlopen ();
11569: int
11570: main ()
11571: {
11572: return dlopen ();
11573: ;
11574: return 0;
11575: }
11576: _ACEOF
11577: if ac_fn_c_try_link "$LINENO"; then :
11578: ac_cv_lib_dl_dlopen=yes
11579: else
11580: ac_cv_lib_dl_dlopen=no
11581: fi
11582: rm -f core conftest.err conftest.$ac_objext \
11583: conftest$ac_exeext conftest.$ac_ext
11584: LIBS=$ac_check_lib_save_LIBS
11585: fi
11586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11587: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11588: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11589: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11590: else
11591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11592: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11593: if ${ac_cv_lib_svld_dlopen+:} false; then :
11594: $as_echo_n "(cached) " >&6
11595: else
11596: ac_check_lib_save_LIBS=$LIBS
11597: LIBS="-lsvld $LIBS"
11598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599: /* end confdefs.h. */
11600:
11601: /* Override any GCC internal prototype to avoid an error.
11602: Use char because int might match the return type of a GCC
11603: builtin and then its argument prototype would still apply. */
11604: #ifdef __cplusplus
11605: extern "C"
11606: #endif
11607: char dlopen ();
11608: int
11609: main ()
11610: {
11611: return dlopen ();
11612: ;
11613: return 0;
11614: }
11615: _ACEOF
11616: if ac_fn_c_try_link "$LINENO"; then :
11617: ac_cv_lib_svld_dlopen=yes
11618: else
11619: ac_cv_lib_svld_dlopen=no
11620: fi
11621: rm -f core conftest.err conftest.$ac_objext \
11622: conftest$ac_exeext conftest.$ac_ext
11623: LIBS=$ac_check_lib_save_LIBS
11624: fi
11625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11626: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11627: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11628: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11629: else
11630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11631: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11632: if ${ac_cv_lib_dld_dld_link+:} false; then :
11633: $as_echo_n "(cached) " >&6
11634: else
11635: ac_check_lib_save_LIBS=$LIBS
11636: LIBS="-ldld $LIBS"
11637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638: /* end confdefs.h. */
11639:
11640: /* Override any GCC internal prototype to avoid an error.
11641: Use char because int might match the return type of a GCC
11642: builtin and then its argument prototype would still apply. */
11643: #ifdef __cplusplus
11644: extern "C"
11645: #endif
11646: char dld_link ();
11647: int
11648: main ()
11649: {
11650: return dld_link ();
11651: ;
11652: return 0;
11653: }
11654: _ACEOF
11655: if ac_fn_c_try_link "$LINENO"; then :
11656: ac_cv_lib_dld_dld_link=yes
11657: else
11658: ac_cv_lib_dld_dld_link=no
11659: fi
11660: rm -f core conftest.err conftest.$ac_objext \
11661: conftest$ac_exeext conftest.$ac_ext
11662: LIBS=$ac_check_lib_save_LIBS
11663: fi
11664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11665: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11666: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11667: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11668: fi
11669:
11670:
11671: fi
11672:
11673:
11674: fi
11675:
11676:
11677: fi
11678:
11679:
11680: fi
11681:
11682:
11683: fi
11684:
11685: ;;
11686: esac
11687:
11688: if test no = "$lt_cv_dlopen"; then
11689: enable_dlopen=no
11690: else
11691: enable_dlopen=yes
11692: fi
11693:
11694: case $lt_cv_dlopen in
11695: dlopen)
11696: save_CPPFLAGS=$CPPFLAGS
11697: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11698:
11699: save_LDFLAGS=$LDFLAGS
11700: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11701:
11702: save_LIBS=$LIBS
11703: LIBS="$lt_cv_dlopen_libs $LIBS"
11704:
11705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11706: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11707: if ${lt_cv_dlopen_self+:} false; then :
11708: $as_echo_n "(cached) " >&6
11709: else
11710: if test yes = "$cross_compiling"; then :
11711: lt_cv_dlopen_self=cross
11712: else
11713: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11714: lt_status=$lt_dlunknown
11715: cat > conftest.$ac_ext <<_LT_EOF
11716: #line $LINENO "configure"
11717: #include "confdefs.h"
11718:
11719: #if HAVE_DLFCN_H
11720: #include <dlfcn.h>
11721: #endif
11722:
11723: #include <stdio.h>
11724:
11725: #ifdef RTLD_GLOBAL
11726: # define LT_DLGLOBAL RTLD_GLOBAL
11727: #else
11728: # ifdef DL_GLOBAL
11729: # define LT_DLGLOBAL DL_GLOBAL
11730: # else
11731: # define LT_DLGLOBAL 0
11732: # endif
11733: #endif
11734:
11735: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11736: find out it does not work in some platform. */
11737: #ifndef LT_DLLAZY_OR_NOW
11738: # ifdef RTLD_LAZY
11739: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11740: # else
11741: # ifdef DL_LAZY
11742: # define LT_DLLAZY_OR_NOW DL_LAZY
11743: # else
11744: # ifdef RTLD_NOW
11745: # define LT_DLLAZY_OR_NOW RTLD_NOW
11746: # else
11747: # ifdef DL_NOW
11748: # define LT_DLLAZY_OR_NOW DL_NOW
11749: # else
11750: # define LT_DLLAZY_OR_NOW 0
11751: # endif
11752: # endif
11753: # endif
11754: # endif
11755: #endif
11756:
11757: /* When -fvisibility=hidden is used, assume the code has been annotated
11758: correspondingly for the symbols needed. */
11759: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11760: int fnord () __attribute__((visibility("default")));
11761: #endif
11762:
11763: int fnord () { return 42; }
11764: int main ()
11765: {
11766: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11767: int status = $lt_dlunknown;
11768:
11769: if (self)
11770: {
11771: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11772: else
11773: {
11774: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11775: else puts (dlerror ());
11776: }
11777: /* dlclose (self); */
11778: }
11779: else
11780: puts (dlerror ());
11781:
11782: return status;
11783: }
11784: _LT_EOF
11785: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11786: (eval $ac_link) 2>&5
11787: ac_status=$?
11788: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11789: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11790: (./conftest; exit; ) >&5 2>/dev/null
11791: lt_status=$?
11792: case x$lt_status in
11793: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11794: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11795: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11796: esac
11797: else :
11798: # compilation failed
11799: lt_cv_dlopen_self=no
11800: fi
11801: fi
11802: rm -fr conftest*
11803:
11804:
11805: fi
11806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11807: $as_echo "$lt_cv_dlopen_self" >&6; }
11808:
11809: if test yes = "$lt_cv_dlopen_self"; then
11810: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11812: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11813: if ${lt_cv_dlopen_self_static+:} false; then :
11814: $as_echo_n "(cached) " >&6
11815: else
11816: if test yes = "$cross_compiling"; then :
11817: lt_cv_dlopen_self_static=cross
11818: else
11819: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11820: lt_status=$lt_dlunknown
11821: cat > conftest.$ac_ext <<_LT_EOF
11822: #line $LINENO "configure"
11823: #include "confdefs.h"
11824:
11825: #if HAVE_DLFCN_H
11826: #include <dlfcn.h>
11827: #endif
11828:
11829: #include <stdio.h>
11830:
11831: #ifdef RTLD_GLOBAL
11832: # define LT_DLGLOBAL RTLD_GLOBAL
11833: #else
11834: # ifdef DL_GLOBAL
11835: # define LT_DLGLOBAL DL_GLOBAL
11836: # else
11837: # define LT_DLGLOBAL 0
11838: # endif
11839: #endif
11840:
11841: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11842: find out it does not work in some platform. */
11843: #ifndef LT_DLLAZY_OR_NOW
11844: # ifdef RTLD_LAZY
11845: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11846: # else
11847: # ifdef DL_LAZY
11848: # define LT_DLLAZY_OR_NOW DL_LAZY
11849: # else
11850: # ifdef RTLD_NOW
11851: # define LT_DLLAZY_OR_NOW RTLD_NOW
11852: # else
11853: # ifdef DL_NOW
11854: # define LT_DLLAZY_OR_NOW DL_NOW
11855: # else
11856: # define LT_DLLAZY_OR_NOW 0
11857: # endif
11858: # endif
11859: # endif
11860: # endif
11861: #endif
11862:
11863: /* When -fvisibility=hidden is used, assume the code has been annotated
11864: correspondingly for the symbols needed. */
11865: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11866: int fnord () __attribute__((visibility("default")));
11867: #endif
11868:
11869: int fnord () { return 42; }
11870: int main ()
11871: {
11872: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11873: int status = $lt_dlunknown;
11874:
11875: if (self)
11876: {
11877: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11878: else
11879: {
11880: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11881: else puts (dlerror ());
11882: }
11883: /* dlclose (self); */
11884: }
11885: else
11886: puts (dlerror ());
11887:
11888: return status;
11889: }
11890: _LT_EOF
11891: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11892: (eval $ac_link) 2>&5
11893: ac_status=$?
11894: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11895: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11896: (./conftest; exit; ) >&5 2>/dev/null
11897: lt_status=$?
11898: case x$lt_status in
11899: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11900: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11901: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11902: esac
11903: else :
11904: # compilation failed
11905: lt_cv_dlopen_self_static=no
11906: fi
11907: fi
11908: rm -fr conftest*
11909:
11910:
11911: fi
11912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11913: $as_echo "$lt_cv_dlopen_self_static" >&6; }
11914: fi
11915:
11916: CPPFLAGS=$save_CPPFLAGS
11917: LDFLAGS=$save_LDFLAGS
11918: LIBS=$save_LIBS
11919: ;;
11920: esac
11921:
11922: case $lt_cv_dlopen_self in
11923: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11924: *) enable_dlopen_self=unknown ;;
11925: esac
11926:
11927: case $lt_cv_dlopen_self_static in
11928: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11929: *) enable_dlopen_self_static=unknown ;;
11930: esac
11931: fi
11932:
11933:
11934:
11935:
11936:
11937:
11938:
11939:
11940:
11941:
11942:
11943:
11944:
11945:
11946:
11947:
11948:
11949: striplib=
11950: old_striplib=
11951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11952: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11953: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11954: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11955: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11957: $as_echo "yes" >&6; }
11958: else
11959: # FIXME - insert some real tests, host_os isn't really good enough
11960: case $host_os in
11961: darwin*)
11962: if test -n "$STRIP"; then
11963: striplib="$STRIP -x"
11964: old_striplib="$STRIP -S"
11965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966: $as_echo "yes" >&6; }
11967: else
11968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969: $as_echo "no" >&6; }
11970: fi
11971: ;;
11972: *)
11973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974: $as_echo "no" >&6; }
11975: ;;
11976: esac
11977: fi
11978:
11979:
11980:
11981:
11982:
11983:
11984:
11985:
11986:
11987:
11988:
11989:
11990: # Report what library types will actually be built
11991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11992: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11994: $as_echo "$can_build_shared" >&6; }
11995:
11996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11997: $as_echo_n "checking whether to build shared libraries... " >&6; }
11998: test no = "$can_build_shared" && enable_shared=no
11999:
12000: # On AIX, shared libraries and static libraries use the same namespace, and
12001: # are all built from PIC.
12002: case $host_os in
12003: aix3*)
12004: test yes = "$enable_shared" && enable_static=no
12005: if test -n "$RANLIB"; then
12006: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12007: postinstall_cmds='$RANLIB $lib'
12008: fi
12009: ;;
12010:
12011: aix[4-9]*)
12012: if test ia64 != "$host_cpu"; then
12013: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12014: yes,aix,yes) ;; # shared object as lib.so file only
12015: yes,svr4,*) ;; # shared object as lib.so archive member only
12016: yes,*) enable_static=no ;; # shared object in lib.a archive as well
12017: esac
12018: fi
12019: ;;
12020: esac
12021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12022: $as_echo "$enable_shared" >&6; }
12023:
12024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12025: $as_echo_n "checking whether to build static libraries... " >&6; }
12026: # Make sure either enable_shared or enable_static is yes.
12027: test yes = "$enable_shared" || enable_static=yes
12028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12029: $as_echo "$enable_static" >&6; }
12030:
12031:
12032:
12033:
12034: fi
12035: ac_ext=c
12036: ac_cpp='$CPP $CPPFLAGS'
12037: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12038: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12039: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12040:
12041: CC=$lt_save_CC
12042:
12043:
12044:
12045:
12046:
12047:
12048:
12049:
12050:
12051:
12052:
12053:
12054:
12055:
12056:
12057: ac_config_commands="$ac_config_commands libtool"
12058:
12059:
12060:
12061:
12062: # Only expand once:
12063:
12064:
12065:
12066: # Add -Wall if we are using GCC.
12067: if test "x$GCC" = "xyes"; then
12068: CFLAGS="$CFLAGS -Wall"
12069: fi
12070:
12071: # Checks for header files.
12072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12073: $as_echo_n "checking for ANSI C header files... " >&6; }
12074: if ${ac_cv_header_stdc+:} false; then :
12075: $as_echo_n "(cached) " >&6
12076: else
12077: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078: /* end confdefs.h. */
12079: #include <stdlib.h>
12080: #include <stdarg.h>
12081: #include <string.h>
12082: #include <float.h>
12083:
12084: int
12085: main ()
12086: {
12087:
12088: ;
12089: return 0;
12090: }
12091: _ACEOF
12092: if ac_fn_c_try_compile "$LINENO"; then :
12093: ac_cv_header_stdc=yes
12094: else
12095: ac_cv_header_stdc=no
12096: fi
12097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098:
12099: if test $ac_cv_header_stdc = yes; then
12100: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102: /* end confdefs.h. */
12103: #include <string.h>
12104:
12105: _ACEOF
12106: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12107: $EGREP "memchr" >/dev/null 2>&1; then :
12108:
12109: else
12110: ac_cv_header_stdc=no
12111: fi
12112: rm -f conftest*
12113:
12114: fi
12115:
12116: if test $ac_cv_header_stdc = yes; then
12117: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12118: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119: /* end confdefs.h. */
12120: #include <stdlib.h>
12121:
12122: _ACEOF
12123: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12124: $EGREP "free" >/dev/null 2>&1; then :
12125:
12126: else
12127: ac_cv_header_stdc=no
12128: fi
12129: rm -f conftest*
12130:
12131: fi
12132:
12133: if test $ac_cv_header_stdc = yes; then
12134: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12135: if test "$cross_compiling" = yes; then :
12136: :
12137: else
12138: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139: /* end confdefs.h. */
12140: #include <ctype.h>
12141: #include <stdlib.h>
12142: #if ((' ' & 0x0FF) == 0x020)
12143: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12144: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12145: #else
12146: # define ISLOWER(c) \
12147: (('a' <= (c) && (c) <= 'i') \
12148: || ('j' <= (c) && (c) <= 'r') \
12149: || ('s' <= (c) && (c) <= 'z'))
12150: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12151: #endif
12152:
12153: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12154: int
12155: main ()
12156: {
12157: int i;
12158: for (i = 0; i < 256; i++)
12159: if (XOR (islower (i), ISLOWER (i))
12160: || toupper (i) != TOUPPER (i))
12161: return 2;
12162: return 0;
12163: }
12164: _ACEOF
12165: if ac_fn_c_try_run "$LINENO"; then :
12166:
12167: else
12168: ac_cv_header_stdc=no
12169: fi
12170: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12171: conftest.$ac_objext conftest.beam conftest.$ac_ext
12172: fi
12173:
12174: fi
12175: fi
12176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12177: $as_echo "$ac_cv_header_stdc" >&6; }
12178: if test $ac_cv_header_stdc = yes; then
12179:
12180: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12181:
12182: fi
12183:
12184:
12185: # Check for systems which need -lsocket and -lnsl
12186: #AX_LIB_SOCKET_NSL
12187:
12188: # Check for the math library (needed by cjson on some platforms)
12189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12190: $as_echo_n "checking for library containing floor... " >&6; }
12191: if ${ac_cv_search_floor+:} false; then :
12192: $as_echo_n "(cached) " >&6
12193: else
12194: ac_func_search_save_LIBS=$LIBS
12195: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196: /* end confdefs.h. */
12197:
12198: /* Override any GCC internal prototype to avoid an error.
12199: Use char because int might match the return type of a GCC
12200: builtin and then its argument prototype would still apply. */
12201: #ifdef __cplusplus
12202: extern "C"
12203: #endif
12204: char floor ();
12205: int
12206: main ()
12207: {
12208: return floor ();
12209: ;
12210: return 0;
12211: }
12212: _ACEOF
12213: for ac_lib in '' m; do
12214: if test -z "$ac_lib"; then
12215: ac_res="none required"
12216: else
12217: ac_res=-l$ac_lib
12218: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12219: fi
12220: if ac_fn_c_try_link "$LINENO"; then :
12221: ac_cv_search_floor=$ac_res
12222: fi
12223: rm -f core conftest.err conftest.$ac_objext \
12224: conftest$ac_exeext
12225: if ${ac_cv_search_floor+:} false; then :
12226: break
12227: fi
12228: done
12229: if ${ac_cv_search_floor+:} false; then :
12230:
12231: else
12232: ac_cv_search_floor=no
12233: fi
12234: rm conftest.$ac_ext
12235: LIBS=$ac_func_search_save_LIBS
12236: fi
12237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12238: $as_echo "$ac_cv_search_floor" >&6; }
12239: ac_res=$ac_cv_search_floor
12240: if test "$ac_res" != no; then :
12241: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12242:
12243: else
12244:
12245: echo "floor()"
12246: exit 1
12247:
12248: fi
12249:
12250:
12251: # Solaris puts nanosleep in -lrt
12252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12253: $as_echo_n "checking for library containing nanosleep... " >&6; }
12254: if ${ac_cv_search_nanosleep+:} false; then :
12255: $as_echo_n "(cached) " >&6
12256: else
12257: ac_func_search_save_LIBS=$LIBS
12258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259: /* end confdefs.h. */
12260:
12261: /* Override any GCC internal prototype to avoid an error.
12262: Use char because int might match the return type of a GCC
12263: builtin and then its argument prototype would still apply. */
12264: #ifdef __cplusplus
12265: extern "C"
12266: #endif
12267: char nanosleep ();
12268: int
12269: main ()
12270: {
12271: return nanosleep ();
12272: ;
12273: return 0;
12274: }
12275: _ACEOF
12276: for ac_lib in '' rt; do
12277: if test -z "$ac_lib"; then
12278: ac_res="none required"
12279: else
12280: ac_res=-l$ac_lib
12281: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12282: fi
12283: if ac_fn_c_try_link "$LINENO"; then :
12284: ac_cv_search_nanosleep=$ac_res
12285: fi
12286: rm -f core conftest.err conftest.$ac_objext \
12287: conftest$ac_exeext
12288: if ${ac_cv_search_nanosleep+:} false; then :
12289: break
12290: fi
12291: done
12292: if ${ac_cv_search_nanosleep+:} false; then :
12293:
12294: else
12295: ac_cv_search_nanosleep=no
12296: fi
12297: rm conftest.$ac_ext
12298: LIBS=$ac_func_search_save_LIBS
12299: fi
12300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12301: $as_echo "$ac_cv_search_nanosleep" >&6; }
12302: ac_res=$ac_cv_search_nanosleep
12303: if test "$ac_res" != no; then :
12304: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12305:
12306: else
12307:
12308: echo "nanosleep() required for timing operations."
12309: exit 1
12310:
12311: fi
12312:
12313:
12314: # Solaris puts hstrerror in -lresolv
12315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
12316: $as_echo_n "checking for library containing hstrerror... " >&6; }
12317: if ${ac_cv_search_hstrerror+:} false; then :
12318: $as_echo_n "(cached) " >&6
12319: else
12320: ac_func_search_save_LIBS=$LIBS
12321: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322: /* end confdefs.h. */
12323:
12324: /* Override any GCC internal prototype to avoid an error.
12325: Use char because int might match the return type of a GCC
12326: builtin and then its argument prototype would still apply. */
12327: #ifdef __cplusplus
12328: extern "C"
12329: #endif
12330: char hstrerror ();
12331: int
12332: main ()
12333: {
12334: return hstrerror ();
12335: ;
12336: return 0;
12337: }
12338: _ACEOF
12339: for ac_lib in '' resolv; do
12340: if test -z "$ac_lib"; then
12341: ac_res="none required"
12342: else
12343: ac_res=-l$ac_lib
12344: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12345: fi
12346: if ac_fn_c_try_link "$LINENO"; then :
12347: ac_cv_search_hstrerror=$ac_res
12348: fi
12349: rm -f core conftest.err conftest.$ac_objext \
12350: conftest$ac_exeext
12351: if ${ac_cv_search_hstrerror+:} false; then :
12352: break
12353: fi
12354: done
12355: if ${ac_cv_search_hstrerror+:} false; then :
12356:
12357: else
12358: ac_cv_search_hstrerror=no
12359: fi
12360: rm conftest.$ac_ext
12361: LIBS=$ac_func_search_save_LIBS
12362: fi
12363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
12364: $as_echo "$ac_cv_search_hstrerror" >&6; }
12365: ac_res=$ac_cv_search_hstrerror
12366: if test "$ac_res" != no; then :
12367: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12368:
12369: else
12370:
12371: echo "nanosleep() required for timing operations."
12372: exit 1
12373:
12374: fi
12375:
12376:
12377: # On illumos we need -lsocket
12378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12379: $as_echo_n "checking for library containing socket... " >&6; }
12380: if ${ac_cv_search_socket+:} false; then :
12381: $as_echo_n "(cached) " >&6
12382: else
12383: ac_func_search_save_LIBS=$LIBS
12384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385: /* end confdefs.h. */
12386:
12387: /* Override any GCC internal prototype to avoid an error.
12388: Use char because int might match the return type of a GCC
12389: builtin and then its argument prototype would still apply. */
12390: #ifdef __cplusplus
12391: extern "C"
12392: #endif
12393: char socket ();
12394: int
12395: main ()
12396: {
12397: return socket ();
12398: ;
12399: return 0;
12400: }
12401: _ACEOF
12402: for ac_lib in '' socket; do
12403: if test -z "$ac_lib"; then
12404: ac_res="none required"
12405: else
12406: ac_res=-l$ac_lib
12407: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12408: fi
12409: if ac_fn_c_try_link "$LINENO"; then :
12410: ac_cv_search_socket=$ac_res
12411: fi
12412: rm -f core conftest.err conftest.$ac_objext \
12413: conftest$ac_exeext
12414: if ${ac_cv_search_socket+:} false; then :
12415: break
12416: fi
12417: done
12418: if ${ac_cv_search_socket+:} false; then :
12419:
12420: else
12421: ac_cv_search_socket=no
12422: fi
12423: rm conftest.$ac_ext
12424: LIBS=$ac_func_search_save_LIBS
12425: fi
12426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12427: $as_echo "$ac_cv_search_socket" >&6; }
12428: ac_res=$ac_cv_search_socket
12429: if test "$ac_res" != no; then :
12430: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12431:
12432: else
12433:
12434: echo "socket()"
12435: exit 1
12436:
12437: fi
12438:
12439:
12440: # On illumos inet_ntop in in -lnsl
12441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12442: $as_echo_n "checking for library containing inet_ntop... " >&6; }
12443: if ${ac_cv_search_inet_ntop+:} false; then :
12444: $as_echo_n "(cached) " >&6
12445: else
12446: ac_func_search_save_LIBS=$LIBS
12447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448: /* end confdefs.h. */
12449:
12450: /* Override any GCC internal prototype to avoid an error.
12451: Use char because int might match the return type of a GCC
12452: builtin and then its argument prototype would still apply. */
12453: #ifdef __cplusplus
12454: extern "C"
12455: #endif
12456: char inet_ntop ();
12457: int
12458: main ()
12459: {
12460: return inet_ntop ();
12461: ;
12462: return 0;
12463: }
12464: _ACEOF
12465: for ac_lib in '' nsl; do
12466: if test -z "$ac_lib"; then
12467: ac_res="none required"
12468: else
12469: ac_res=-l$ac_lib
12470: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12471: fi
12472: if ac_fn_c_try_link "$LINENO"; then :
12473: ac_cv_search_inet_ntop=$ac_res
12474: fi
12475: rm -f core conftest.err conftest.$ac_objext \
12476: conftest$ac_exeext
12477: if ${ac_cv_search_inet_ntop+:} false; then :
12478: break
12479: fi
12480: done
12481: if ${ac_cv_search_inet_ntop+:} false; then :
12482:
12483: else
12484: ac_cv_search_inet_ntop=no
12485: fi
12486: rm conftest.$ac_ext
12487: LIBS=$ac_func_search_save_LIBS
12488: fi
12489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12490: $as_echo "$ac_cv_search_inet_ntop" >&6; }
12491: ac_res=$ac_cv_search_inet_ntop
12492: if test "$ac_res" != no; then :
12493: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12494:
12495: else
12496:
12497: echo "inet_ntop()"
12498: exit 1
12499:
12500: fi
12501:
12502:
12503: # Checks for typedefs, structures, and compiler characteristics.
12504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12505: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12506: if ${ac_cv_c_const+:} false; then :
12507: $as_echo_n "(cached) " >&6
12508: else
12509: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510: /* end confdefs.h. */
12511:
12512: int
12513: main ()
12514: {
12515:
12516: #ifndef __cplusplus
12517: /* Ultrix mips cc rejects this sort of thing. */
12518: typedef int charset[2];
12519: const charset cs = { 0, 0 };
12520: /* SunOS 4.1.1 cc rejects this. */
12521: char const *const *pcpcc;
12522: char **ppc;
12523: /* NEC SVR4.0.2 mips cc rejects this. */
12524: struct point {int x, y;};
12525: static struct point const zero = {0,0};
12526: /* AIX XL C 1.02.0.0 rejects this.
12527: It does not let you subtract one const X* pointer from another in
12528: an arm of an if-expression whose if-part is not a constant
12529: expression */
12530: const char *g = "string";
12531: pcpcc = &g + (g ? g-g : 0);
12532: /* HPUX 7.0 cc rejects these. */
12533: ++pcpcc;
12534: ppc = (char**) pcpcc;
12535: pcpcc = (char const *const *) ppc;
12536: { /* SCO 3.2v4 cc rejects this sort of thing. */
12537: char tx;
12538: char *t = &tx;
12539: char const *s = 0 ? (char *) 0 : (char const *) 0;
12540:
12541: *t++ = 0;
12542: if (s) return 0;
12543: }
12544: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12545: int x[] = {25, 17};
12546: const int *foo = &x[0];
12547: ++foo;
12548: }
12549: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12550: typedef const int *iptr;
12551: iptr p = 0;
12552: ++p;
12553: }
12554: { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12555: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12556: struct s { int j; const int *ap[3]; } bx;
12557: struct s *b = &bx; b->j = 5;
12558: }
12559: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12560: const int foo = 10;
12561: if (!foo) return 0;
12562: }
12563: return !cs[0] && !zero.x;
12564: #endif
12565:
12566: ;
12567: return 0;
12568: }
12569: _ACEOF
12570: if ac_fn_c_try_compile "$LINENO"; then :
12571: ac_cv_c_const=yes
12572: else
12573: ac_cv_c_const=no
12574: fi
12575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12576: fi
12577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12578: $as_echo "$ac_cv_c_const" >&6; }
12579: if test $ac_cv_c_const = no; then
12580:
12581: $as_echo "#define const /**/" >>confdefs.h
12582:
12583: fi
12584:
12585:
12586: # Check for SCTP support
12587: for ac_header in sys/socket.h
12588: do :
12589: ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12590: if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12591: cat >>confdefs.h <<_ACEOF
12592: #define HAVE_SYS_SOCKET_H 1
12593: _ACEOF
12594:
12595: fi
12596:
12597: done
12598:
12599: for ac_header in netinet/sctp.h
12600: do :
12601: ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12602: #include <sys/socket.h>
12603: #endif
12604:
12605: "
12606: if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
12607: cat >>confdefs.h <<_ACEOF
12608: #define HAVE_NETINET_SCTP_H 1
12609: _ACEOF
12610:
12611: $as_echo "#define HAVE_SCTP 1" >>confdefs.h
12612:
12613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12614: $as_echo_n "checking for library containing sctp_bindx... " >&6; }
12615: if ${ac_cv_search_sctp_bindx+:} false; then :
12616: $as_echo_n "(cached) " >&6
12617: else
12618: ac_func_search_save_LIBS=$LIBS
12619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620: /* end confdefs.h. */
12621:
12622: /* Override any GCC internal prototype to avoid an error.
12623: Use char because int might match the return type of a GCC
12624: builtin and then its argument prototype would still apply. */
12625: #ifdef __cplusplus
12626: extern "C"
12627: #endif
12628: char sctp_bindx ();
12629: int
12630: main ()
12631: {
12632: return sctp_bindx ();
12633: ;
12634: return 0;
12635: }
12636: _ACEOF
12637: for ac_lib in '' sctp; do
12638: if test -z "$ac_lib"; then
12639: ac_res="none required"
12640: else
12641: ac_res=-l$ac_lib
12642: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12643: fi
12644: if ac_fn_c_try_link "$LINENO"; then :
12645: ac_cv_search_sctp_bindx=$ac_res
12646: fi
12647: rm -f core conftest.err conftest.$ac_objext \
12648: conftest$ac_exeext
12649: if ${ac_cv_search_sctp_bindx+:} false; then :
12650: break
12651: fi
12652: done
12653: if ${ac_cv_search_sctp_bindx+:} false; then :
12654:
12655: else
12656: ac_cv_search_sctp_bindx=no
12657: fi
12658: rm conftest.$ac_ext
12659: LIBS=$ac_func_search_save_LIBS
12660: fi
12661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12662: $as_echo "$ac_cv_search_sctp_bindx" >&6; }
12663: ac_res=$ac_cv_search_sctp_bindx
12664: if test "$ac_res" != no; then :
12665: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12666:
12667: fi
12668:
12669:
12670: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
12671: # -------------------------------------------
12672: # Tests whether TYPE exists after having included INCLUDES, setting cache
12673: # variable VAR accordingly.
12674: ac_fn_c_check_type ()
12675: {
12676: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
12678: $as_echo_n "checking for $2... " >&6; }
12679: if eval \${$3+:} false; then :
12680: $as_echo_n "(cached) " >&6
12681: else
12682: eval "$3=no"
12683: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684: /* end confdefs.h. */
12685: $4
12686: int
12687: main ()
12688: {
12689: if (sizeof ($2))
12690: return 0;
12691: ;
12692: return 0;
12693: }
12694: _ACEOF
12695: if ac_fn_c_try_compile "$LINENO"; then :
12696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697: /* end confdefs.h. */
12698: $4
12699: int
12700: main ()
12701: {
12702: if (sizeof (($2)))
12703: return 0;
12704: ;
12705: return 0;
12706: }
12707: _ACEOF
12708: if ac_fn_c_try_compile "$LINENO"; then :
12709:
12710: else
12711: eval "$3=yes"
12712: fi
12713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714: fi
12715: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716: fi
12717: eval ac_res=\$$3
12718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12719: $as_echo "$ac_res" >&6; }
12720: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
12721:
12722: } # ac_fn_c_check_type
12723: ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
12724: "
12725: if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
12726:
12727: cat >>confdefs.h <<_ACEOF
12728: #define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
12729: _ACEOF
12730:
12731:
12732: fi
12733:
12734: fi
12735:
12736: done
12737:
12738:
12739: # Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
12740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
12741: $as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
12742: if ${iperf3_cv_header_tcp_congestion+:} false; then :
12743: $as_echo_n "(cached) " >&6
12744: else
12745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746: /* end confdefs.h. */
12747: #include <netinet/tcp.h>
12748: #ifdef TCP_CONGESTION
12749: yes
12750: #endif
12751:
12752: _ACEOF
12753: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12754: $EGREP "yes" >/dev/null 2>&1; then :
12755: iperf3_cv_header_tcp_congestion=yes
12756: else
12757: iperf3_cv_header_tcp_congestion=no
12758: fi
12759: rm -f conftest*
12760:
12761: fi
12762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
12763: $as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12764: if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12765:
12766: $as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
12767:
12768: fi
12769:
12770: # Check for IPv6 flowlabel support (believed to be Linux only)
12771: # We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12772: # don't use that file directly (we have our own stripped-down
12773: # copy, see src/flowlabel.h for more details).
12774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
12775: $as_echo_n "checking IPv6 flowlabel support... " >&6; }
12776: if ${iperf3_cv_header_flowlabel+:} false; then :
12777: $as_echo_n "(cached) " >&6
12778: else
12779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780: /* end confdefs.h. */
12781: #include <sys/types.h>
12782: #include <linux/in6.h>
12783: #ifdef IPV6_FLOWLABEL_MGR
12784: yes
12785: #endif
12786:
12787: _ACEOF
12788: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12789: $EGREP "yes" >/dev/null 2>&1; then :
12790: iperf3_cv_header_flowlabel=yes
12791: else
12792: iperf3_cv_header_flowlabel=no
12793: fi
12794: rm -f conftest*
12795:
12796: fi
12797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
12798: $as_echo "$iperf3_cv_header_flowlabel" >&6; }
12799: if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
12800:
12801: $as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
12802:
12803: fi
12804:
12805: # Check for CPU affinity support. FreeBSD and Linux do this differently
12806: # unfortunately so we have to check separately for each of them.
12807: # FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
12808: # Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
12809: # generic concept is available.
12810: for ac_func in cpuset_setaffinity sched_setaffinity
12811: do :
12812: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12813: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12814: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12815: cat >>confdefs.h <<_ACEOF
12816: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12817: _ACEOF
12818:
12819: $as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
12820:
12821: fi
12822: done
12823:
12824:
12825: # Check for sendfile support. FreeBSD, Linux, and MacOS all support
12826: # this system call, but they're all different in terms of what headers
12827: # it needs and what arguments it expects.
12828: for ac_func in sendfile
12829: do :
12830: ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
12831: if test "x$ac_cv_func_sendfile" = xyes; then :
12832: cat >>confdefs.h <<_ACEOF
12833: #define HAVE_SENDFILE 1
12834: _ACEOF
12835:
12836: fi
12837: done
12838:
12839:
12840: # Check for packet pacing socket option (Linux only for now).
12841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
12842: $as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
12843: if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
12844: $as_echo_n "(cached) " >&6
12845: else
12846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847: /* end confdefs.h. */
12848: #include <sys/socket.h>
12849: #ifdef SO_MAX_PACING_RATE
12850: yes
12851: #endif
12852:
12853: _ACEOF
12854: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12855: $EGREP "yes" >/dev/null 2>&1; then :
12856: iperf3_cv_header_so_max_pacing_rate=yes
12857: else
12858: iperf3_cv_header_so_max_pacing_rate=no
12859: fi
12860: rm -f conftest*
12861:
12862: fi
12863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
12864: $as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
12865: if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
12866:
12867: $as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
12868:
12869: fi
12870:
12871:
12872: ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
12873:
12874: cat >confcache <<\_ACEOF
12875: # This file is a shell script that caches the results of configure
12876: # tests run on this system so they can be shared between configure
12877: # scripts and configure runs, see configure's option --config-cache.
12878: # It is not useful on other systems. If it contains results you don't
12879: # want to keep, you may remove or edit it.
12880: #
12881: # config.status only pays attention to the cache file if you give it
12882: # the --recheck option to rerun configure.
12883: #
12884: # `ac_cv_env_foo' variables (set or unset) will be overridden when
12885: # loading this file, other *unset* `ac_cv_foo' will be assigned the
12886: # following values.
12887:
12888: _ACEOF
12889:
12890: # The following way of writing the cache mishandles newlines in values,
12891: # but we know of no workaround that is simple, portable, and efficient.
12892: # So, we kill variables containing newlines.
12893: # Ultrix sh set writes to stderr and can't be redirected directly,
12894: # and sets the high bit in the cache file unless we assign to the vars.
12895: (
12896: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12897: eval ac_val=\$$ac_var
12898: case $ac_val in #(
12899: *${as_nl}*)
12900: case $ac_var in #(
12901: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12902: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12903: esac
12904: case $ac_var in #(
12905: _ | IFS | as_nl) ;; #(
12906: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12907: *) { eval $ac_var=; unset $ac_var;} ;;
12908: esac ;;
12909: esac
12910: done
12911:
12912: (set) 2>&1 |
12913: case $as_nl`(ac_space=' '; set) 2>&1` in #(
12914: *${as_nl}ac_space=\ *)
12915: # `set' does not quote correctly, so add quotes: double-quote
12916: # substitution turns \\\\ into \\, and sed turns \\ into \.
12917: sed -n \
12918: "s/'/'\\\\''/g;
12919: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12920: ;; #(
12921: *)
12922: # `set' quotes correctly as required by POSIX, so do not add quotes.
12923: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12924: ;;
12925: esac |
12926: sort
12927: ) |
12928: sed '
12929: /^ac_cv_env_/b end
12930: t clear
12931: :clear
12932: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12933: t end
12934: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12935: :end' >>confcache
12936: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12937: if test -w "$cache_file"; then
12938: if test "x$cache_file" != "x/dev/null"; then
12939: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12940: $as_echo "$as_me: updating cache $cache_file" >&6;}
12941: if test ! -f "$cache_file" || test -h "$cache_file"; then
12942: cat confcache >"$cache_file"
12943: else
12944: case $cache_file in #(
12945: */* | ?:*)
12946: mv -f confcache "$cache_file"$$ &&
12947: mv -f "$cache_file"$$ "$cache_file" ;; #(
12948: *)
12949: mv -f confcache "$cache_file" ;;
12950: esac
12951: fi
12952: fi
12953: else
12954: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12955: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12956: fi
12957: fi
12958: rm -f confcache
12959:
12960: test "x$prefix" = xNONE && prefix=$ac_default_prefix
12961: # Let make expand exec_prefix.
12962: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12963:
12964: DEFS=-DHAVE_CONFIG_H
12965:
12966: ac_libobjs=
12967: ac_ltlibobjs=
12968: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12969: # 1. Remove the extension, and $U if already installed.
12970: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12971: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12972: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12973: # will be set to the directory where LIBOBJS objects are built.
12974: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12975: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12976: done
12977: LIBOBJS=$ac_libobjs
12978:
12979: LTLIBOBJS=$ac_ltlibobjs
12980:
12981:
12982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12983: $as_echo_n "checking that generated files are newer than configure... " >&6; }
12984: if test -n "$am_sleep_pid"; then
12985: # Hide warnings about reused PIDs.
12986: wait $am_sleep_pid 2>/dev/null
12987: fi
12988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12989: $as_echo "done" >&6; }
12990: if test -n "$EXEEXT"; then
12991: am__EXEEXT_TRUE=
12992: am__EXEEXT_FALSE='#'
12993: else
12994: am__EXEEXT_TRUE='#'
12995: am__EXEEXT_FALSE=
12996: fi
12997:
12998: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12999: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13000: Usually this means the macro was only invoked conditionally." "$LINENO" 5
13001: fi
13002: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13003: as_fn_error $? "conditional \"AMDEP\" was never defined.
13004: Usually this means the macro was only invoked conditionally." "$LINENO" 5
13005: fi
13006: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13007: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13008: Usually this means the macro was only invoked conditionally." "$LINENO" 5
13009: fi
13010:
13011: : "${CONFIG_STATUS=./config.status}"
13012: ac_write_fail=0
13013: ac_clean_files_save=$ac_clean_files
13014: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13015: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13016: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13017: as_write_fail=0
13018: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13019: #! $SHELL
13020: # Generated by $as_me.
13021: # Run this file to recreate the current configuration.
13022: # Compiler output produced by configure, useful for debugging
13023: # configure, is in config.log if it exists.
13024:
13025: debug=false
13026: ac_cs_recheck=false
13027: ac_cs_silent=false
13028:
13029: SHELL=\${CONFIG_SHELL-$SHELL}
13030: export SHELL
13031: _ASEOF
13032: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13033: ## -------------------- ##
13034: ## M4sh Initialization. ##
13035: ## -------------------- ##
13036:
13037: # Be more Bourne compatible
13038: DUALCASE=1; export DUALCASE # for MKS sh
13039: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13040: emulate sh
13041: NULLCMD=:
13042: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13043: # is contrary to our usage. Disable this feature.
13044: alias -g '${1+"$@"}'='"$@"'
13045: setopt NO_GLOB_SUBST
13046: else
13047: case `(set -o) 2>/dev/null` in #(
13048: *posix*) :
13049: set -o posix ;; #(
13050: *) :
13051: ;;
13052: esac
13053: fi
13054:
13055:
13056: as_nl='
13057: '
13058: export as_nl
13059: # Printing a long string crashes Solaris 7 /usr/bin/printf.
13060: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13061: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13062: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13063: # Prefer a ksh shell builtin over an external printf program on Solaris,
13064: # but without wasting forks for bash or zsh.
13065: if test -z "$BASH_VERSION$ZSH_VERSION" \
13066: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13067: as_echo='print -r --'
13068: as_echo_n='print -rn --'
13069: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13070: as_echo='printf %s\n'
13071: as_echo_n='printf %s'
13072: else
13073: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13074: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13075: as_echo_n='/usr/ucb/echo -n'
13076: else
13077: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13078: as_echo_n_body='eval
13079: arg=$1;
13080: case $arg in #(
13081: *"$as_nl"*)
13082: expr "X$arg" : "X\\(.*\\)$as_nl";
13083: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13084: esac;
13085: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13086: '
13087: export as_echo_n_body
13088: as_echo_n='sh -c $as_echo_n_body as_echo'
13089: fi
13090: export as_echo_body
13091: as_echo='sh -c $as_echo_body as_echo'
13092: fi
13093:
13094: # The user is always right.
13095: if test "${PATH_SEPARATOR+set}" != set; then
13096: PATH_SEPARATOR=:
13097: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13098: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13099: PATH_SEPARATOR=';'
13100: }
13101: fi
13102:
13103:
13104: # IFS
13105: # We need space, tab and new line, in precisely that order. Quoting is
13106: # there to prevent editors from complaining about space-tab.
13107: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13108: # splitting by setting IFS to empty value.)
13109: IFS=" "" $as_nl"
13110:
13111: # Find who we are. Look in the path if we contain no directory separator.
13112: as_myself=
13113: case $0 in #((
13114: *[\\/]* ) as_myself=$0 ;;
13115: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116: for as_dir in $PATH
13117: do
13118: IFS=$as_save_IFS
13119: test -z "$as_dir" && as_dir=.
13120: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13121: done
13122: IFS=$as_save_IFS
13123:
13124: ;;
13125: esac
13126: # We did not find ourselves, most probably we were run as `sh COMMAND'
13127: # in which case we are not to be found in the path.
13128: if test "x$as_myself" = x; then
13129: as_myself=$0
13130: fi
13131: if test ! -f "$as_myself"; then
13132: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13133: exit 1
13134: fi
13135:
13136: # Unset variables that we do not need and which cause bugs (e.g. in
13137: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13138: # suppresses any "Segmentation fault" message there. '((' could
13139: # trigger a bug in pdksh 5.2.14.
13140: for as_var in BASH_ENV ENV MAIL MAILPATH
13141: do eval test x\${$as_var+set} = xset \
13142: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13143: done
13144: PS1='$ '
13145: PS2='> '
13146: PS4='+ '
13147:
13148: # NLS nuisances.
13149: LC_ALL=C
13150: export LC_ALL
13151: LANGUAGE=C
13152: export LANGUAGE
13153:
13154: # CDPATH.
13155: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13156:
13157:
13158: # as_fn_error STATUS ERROR [LINENO LOG_FD]
13159: # ----------------------------------------
13160: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13161: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13162: # script with STATUS, using 1 if that was 0.
13163: as_fn_error ()
13164: {
13165: as_status=$1; test $as_status -eq 0 && as_status=1
13166: if test "$4"; then
13167: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13168: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13169: fi
13170: $as_echo "$as_me: error: $2" >&2
13171: as_fn_exit $as_status
13172: } # as_fn_error
13173:
13174:
13175: # as_fn_set_status STATUS
13176: # -----------------------
13177: # Set $? to STATUS, without forking.
13178: as_fn_set_status ()
13179: {
13180: return $1
13181: } # as_fn_set_status
13182:
13183: # as_fn_exit STATUS
13184: # -----------------
13185: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13186: as_fn_exit ()
13187: {
13188: set +e
13189: as_fn_set_status $1
13190: exit $1
13191: } # as_fn_exit
13192:
13193: # as_fn_unset VAR
13194: # ---------------
13195: # Portably unset VAR.
13196: as_fn_unset ()
13197: {
13198: { eval $1=; unset $1;}
13199: }
13200: as_unset=as_fn_unset
13201: # as_fn_append VAR VALUE
13202: # ----------------------
13203: # Append the text in VALUE to the end of the definition contained in VAR. Take
13204: # advantage of any shell optimizations that allow amortized linear growth over
13205: # repeated appends, instead of the typical quadratic growth present in naive
13206: # implementations.
13207: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13208: eval 'as_fn_append ()
13209: {
13210: eval $1+=\$2
13211: }'
13212: else
13213: as_fn_append ()
13214: {
13215: eval $1=\$$1\$2
13216: }
13217: fi # as_fn_append
13218:
13219: # as_fn_arith ARG...
13220: # ------------------
13221: # Perform arithmetic evaluation on the ARGs, and store the result in the
13222: # global $as_val. Take advantage of shells that can avoid forks. The arguments
13223: # must be portable across $(()) and expr.
13224: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13225: eval 'as_fn_arith ()
13226: {
13227: as_val=$(( $* ))
13228: }'
13229: else
13230: as_fn_arith ()
13231: {
13232: as_val=`expr "$@" || test $? -eq 1`
13233: }
13234: fi # as_fn_arith
13235:
13236:
13237: if expr a : '\(a\)' >/dev/null 2>&1 &&
13238: test "X`expr 00001 : '.*\(...\)'`" = X001; then
13239: as_expr=expr
13240: else
13241: as_expr=false
13242: fi
13243:
13244: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13245: as_basename=basename
13246: else
13247: as_basename=false
13248: fi
13249:
13250: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13251: as_dirname=dirname
13252: else
13253: as_dirname=false
13254: fi
13255:
13256: as_me=`$as_basename -- "$0" ||
13257: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13258: X"$0" : 'X\(//\)$' \| \
13259: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13260: $as_echo X/"$0" |
13261: sed '/^.*\/\([^/][^/]*\)\/*$/{
13262: s//\1/
13263: q
13264: }
13265: /^X\/\(\/\/\)$/{
13266: s//\1/
13267: q
13268: }
13269: /^X\/\(\/\).*/{
13270: s//\1/
13271: q
13272: }
13273: s/.*/./; q'`
13274:
13275: # Avoid depending upon Character Ranges.
13276: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13277: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13278: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13279: as_cr_digits='0123456789'
13280: as_cr_alnum=$as_cr_Letters$as_cr_digits
13281:
13282: ECHO_C= ECHO_N= ECHO_T=
13283: case `echo -n x` in #(((((
13284: -n*)
13285: case `echo 'xy\c'` in
13286: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13287: xy) ECHO_C='\c';;
13288: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13289: ECHO_T=' ';;
13290: esac;;
13291: *)
13292: ECHO_N='-n';;
13293: esac
13294:
13295: rm -f conf$$ conf$$.exe conf$$.file
13296: if test -d conf$$.dir; then
13297: rm -f conf$$.dir/conf$$.file
13298: else
13299: rm -f conf$$.dir
13300: mkdir conf$$.dir 2>/dev/null
13301: fi
13302: if (echo >conf$$.file) 2>/dev/null; then
13303: if ln -s conf$$.file conf$$ 2>/dev/null; then
13304: as_ln_s='ln -s'
13305: # ... but there are two gotchas:
13306: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13307: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13308: # In both cases, we have to default to `cp -pR'.
13309: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13310: as_ln_s='cp -pR'
13311: elif ln conf$$.file conf$$ 2>/dev/null; then
13312: as_ln_s=ln
13313: else
13314: as_ln_s='cp -pR'
13315: fi
13316: else
13317: as_ln_s='cp -pR'
13318: fi
13319: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13320: rmdir conf$$.dir 2>/dev/null
13321:
13322:
13323: # as_fn_mkdir_p
13324: # -------------
13325: # Create "$as_dir" as a directory, including parents if necessary.
13326: as_fn_mkdir_p ()
13327: {
13328:
13329: case $as_dir in #(
13330: -*) as_dir=./$as_dir;;
13331: esac
13332: test -d "$as_dir" || eval $as_mkdir_p || {
13333: as_dirs=
13334: while :; do
13335: case $as_dir in #(
13336: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13337: *) as_qdir=$as_dir;;
13338: esac
13339: as_dirs="'$as_qdir' $as_dirs"
13340: as_dir=`$as_dirname -- "$as_dir" ||
13341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13342: X"$as_dir" : 'X\(//\)[^/]' \| \
13343: X"$as_dir" : 'X\(//\)$' \| \
13344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13345: $as_echo X"$as_dir" |
13346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13347: s//\1/
13348: q
13349: }
13350: /^X\(\/\/\)[^/].*/{
13351: s//\1/
13352: q
13353: }
13354: /^X\(\/\/\)$/{
13355: s//\1/
13356: q
13357: }
13358: /^X\(\/\).*/{
13359: s//\1/
13360: q
13361: }
13362: s/.*/./; q'`
13363: test -d "$as_dir" && break
13364: done
13365: test -z "$as_dirs" || eval "mkdir $as_dirs"
13366: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13367:
13368:
13369: } # as_fn_mkdir_p
13370: if mkdir -p . 2>/dev/null; then
13371: as_mkdir_p='mkdir -p "$as_dir"'
13372: else
13373: test -d ./-p && rmdir ./-p
13374: as_mkdir_p=false
13375: fi
13376:
13377:
13378: # as_fn_executable_p FILE
13379: # -----------------------
13380: # Test if FILE is an executable regular file.
13381: as_fn_executable_p ()
13382: {
13383: test -f "$1" && test -x "$1"
13384: } # as_fn_executable_p
13385: as_test_x='test -x'
13386: as_executable_p=as_fn_executable_p
13387:
13388: # Sed expression to map a string onto a valid CPP name.
13389: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13390:
13391: # Sed expression to map a string onto a valid variable name.
13392: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13393:
13394:
13395: exec 6>&1
13396: ## ----------------------------------- ##
13397: ## Main body of $CONFIG_STATUS script. ##
13398: ## ----------------------------------- ##
13399: _ASEOF
13400: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13401:
13402: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13403: # Save the log message, to keep $0 and so on meaningful, and to
13404: # report actual input values of CONFIG_FILES etc. instead of their
13405: # values after options handling.
13406: ac_log="
13407: This file was extended by iperf $as_me 3.1.3, which was
13408: generated by GNU Autoconf 2.69. Invocation command line was
13409:
13410: CONFIG_FILES = $CONFIG_FILES
13411: CONFIG_HEADERS = $CONFIG_HEADERS
13412: CONFIG_LINKS = $CONFIG_LINKS
13413: CONFIG_COMMANDS = $CONFIG_COMMANDS
13414: $ $0 $@
13415:
13416: on `(hostname || uname -n) 2>/dev/null | sed 1q`
13417: "
13418:
13419: _ACEOF
13420:
13421: case $ac_config_files in *"
13422: "*) set x $ac_config_files; shift; ac_config_files=$*;;
13423: esac
13424:
13425: case $ac_config_headers in *"
13426: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13427: esac
13428:
13429:
13430: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13431: # Files that config.status was made for.
13432: config_files="$ac_config_files"
13433: config_headers="$ac_config_headers"
13434: config_commands="$ac_config_commands"
13435:
13436: _ACEOF
13437:
13438: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13439: ac_cs_usage="\
13440: \`$as_me' instantiates files and other configuration actions
13441: from templates according to the current configuration. Unless the files
13442: and actions are specified as TAGs, all are instantiated by default.
13443:
13444: Usage: $0 [OPTION]... [TAG]...
13445:
13446: -h, --help print this help, then exit
13447: -V, --version print version number and configuration settings, then exit
13448: --config print configuration, then exit
13449: -q, --quiet, --silent
13450: do not print progress messages
13451: -d, --debug don't remove temporary files
13452: --recheck update $as_me by reconfiguring in the same conditions
13453: --file=FILE[:TEMPLATE]
13454: instantiate the configuration file FILE
13455: --header=FILE[:TEMPLATE]
13456: instantiate the configuration header FILE
13457:
13458: Configuration files:
13459: $config_files
13460:
13461: Configuration headers:
13462: $config_headers
13463:
13464: Configuration commands:
13465: $config_commands
13466:
13467: Report bugs to <https://github.com/esnet/iperf>.
13468: iperf home page: <http://software.es.net/iperf/>."
13469:
13470: _ACEOF
13471: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13472: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13473: ac_cs_version="\\
13474: iperf config.status 3.1.3
13475: configured by $0, generated by GNU Autoconf 2.69,
13476: with options \\"\$ac_cs_config\\"
13477:
13478: Copyright (C) 2012 Free Software Foundation, Inc.
13479: This config.status script is free software; the Free Software Foundation
13480: gives unlimited permission to copy, distribute and modify it."
13481:
13482: ac_pwd='$ac_pwd'
13483: srcdir='$srcdir'
13484: INSTALL='$INSTALL'
13485: MKDIR_P='$MKDIR_P'
13486: AWK='$AWK'
13487: test -n "\$AWK" || AWK=awk
13488: _ACEOF
13489:
13490: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13491: # The default lists apply if the user does not specify any file.
13492: ac_need_defaults=:
13493: while test $# != 0
13494: do
13495: case $1 in
13496: --*=?*)
13497: ac_option=`expr "X$1" : 'X\([^=]*\)='`
13498: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13499: ac_shift=:
13500: ;;
13501: --*=)
13502: ac_option=`expr "X$1" : 'X\([^=]*\)='`
13503: ac_optarg=
13504: ac_shift=:
13505: ;;
13506: *)
13507: ac_option=$1
13508: ac_optarg=$2
13509: ac_shift=shift
13510: ;;
13511: esac
13512:
13513: case $ac_option in
13514: # Handling of the options.
13515: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13516: ac_cs_recheck=: ;;
13517: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13518: $as_echo "$ac_cs_version"; exit ;;
13519: --config | --confi | --conf | --con | --co | --c )
13520: $as_echo "$ac_cs_config"; exit ;;
13521: --debug | --debu | --deb | --de | --d | -d )
13522: debug=: ;;
13523: --file | --fil | --fi | --f )
13524: $ac_shift
13525: case $ac_optarg in
13526: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13527: '') as_fn_error $? "missing file argument" ;;
13528: esac
13529: as_fn_append CONFIG_FILES " '$ac_optarg'"
13530: ac_need_defaults=false;;
13531: --header | --heade | --head | --hea )
13532: $ac_shift
13533: case $ac_optarg in
13534: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13535: esac
13536: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13537: ac_need_defaults=false;;
13538: --he | --h)
13539: # Conflict between --help and --header
13540: as_fn_error $? "ambiguous option: \`$1'
13541: Try \`$0 --help' for more information.";;
13542: --help | --hel | -h )
13543: $as_echo "$ac_cs_usage"; exit ;;
13544: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13545: | -silent | --silent | --silen | --sile | --sil | --si | --s)
13546: ac_cs_silent=: ;;
13547:
13548: # This is an error.
13549: -*) as_fn_error $? "unrecognized option: \`$1'
13550: Try \`$0 --help' for more information." ;;
13551:
13552: *) as_fn_append ac_config_targets " $1"
13553: ac_need_defaults=false ;;
13554:
13555: esac
13556: shift
13557: done
13558:
13559: ac_configure_extra_args=
13560:
13561: if $ac_cs_silent; then
13562: exec 6>/dev/null
13563: ac_configure_extra_args="$ac_configure_extra_args --silent"
13564: fi
13565:
13566: _ACEOF
13567: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13568: if \$ac_cs_recheck; then
13569: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13570: shift
13571: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13572: CONFIG_SHELL='$SHELL'
13573: export CONFIG_SHELL
13574: exec "\$@"
13575: fi
13576:
13577: _ACEOF
13578: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13579: exec 5>>config.log
13580: {
13581: echo
13582: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13583: ## Running $as_me. ##
13584: _ASBOX
13585: $as_echo "$ac_log"
13586: } >&5
13587:
13588: _ACEOF
13589: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13590: #
13591: # INIT-COMMANDS
13592: #
13593: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13594:
13595:
13596: # The HP-UX ksh and POSIX shell print the target directory to stdout
13597: # if CDPATH is set.
13598: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13599:
13600: sed_quote_subst='$sed_quote_subst'
13601: double_quote_subst='$double_quote_subst'
13602: delay_variable_subst='$delay_variable_subst'
13603: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13604: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13605: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13606: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13607: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13608: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13609: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13610: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13611: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13612: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13613: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13614: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13615: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13616: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13617: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13618: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13619: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13620: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13621: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13622: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13623: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13624: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13625: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13626: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13627: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13628: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13629: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13630: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13631: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13632: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13633: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13634: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13635: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13636: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13637: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13638: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13639: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13640: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13641: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13642: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13643: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13644: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13645: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13646: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13647: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13648: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13649: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13650: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13651: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13652: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13653: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13654: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13655: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13656: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13657: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13658: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13659: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13660: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13661: 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"`'
13662: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13663: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13664: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13665: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13666: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13667: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13668: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13669: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13670: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13671: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13672: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13673: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13674: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13675: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13676: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13677: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13678: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13679: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13680: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13681: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13682: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13683: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13684: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13685: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13686: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13687: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13688: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13689: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13690: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13691: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13692: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13693: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13694: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13695: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13696: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13697: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13698: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13699: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13700: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13701: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13702: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13703: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13704: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13705: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13706: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13707: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13708: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13709: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13710: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13711: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13712: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13713: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13714: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13715: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13716: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13717: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13718: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13719: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13720: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13721: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13722: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13723: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13724: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13725: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13726: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13727: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13728: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13729: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13730: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13731: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13732: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13733: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13734: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13735: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13736: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13737: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13738:
13739: LTCC='$LTCC'
13740: LTCFLAGS='$LTCFLAGS'
13741: compiler='$compiler_DEFAULT'
13742:
13743: # A function that is used when there is no print builtin or printf.
13744: func_fallback_echo ()
13745: {
13746: eval 'cat <<_LTECHO_EOF
13747: \$1
13748: _LTECHO_EOF'
13749: }
13750:
13751: # Quote evaled strings.
13752: for var in SHELL \
13753: ECHO \
13754: PATH_SEPARATOR \
13755: SED \
13756: GREP \
13757: EGREP \
13758: FGREP \
13759: LD \
13760: NM \
13761: LN_S \
13762: lt_SP2NL \
13763: lt_NL2SP \
13764: reload_flag \
13765: OBJDUMP \
13766: deplibs_check_method \
13767: file_magic_cmd \
13768: file_magic_glob \
13769: want_nocaseglob \
13770: DLLTOOL \
13771: sharedlib_from_linklib_cmd \
13772: AR \
13773: AR_FLAGS \
13774: archiver_list_spec \
13775: STRIP \
13776: RANLIB \
13777: CC \
13778: CFLAGS \
13779: compiler \
13780: lt_cv_sys_global_symbol_pipe \
13781: lt_cv_sys_global_symbol_to_cdecl \
13782: lt_cv_sys_global_symbol_to_import \
13783: lt_cv_sys_global_symbol_to_c_name_address \
13784: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13785: lt_cv_nm_interface \
13786: nm_file_list_spec \
13787: lt_cv_truncate_bin \
13788: lt_prog_compiler_no_builtin_flag \
13789: lt_prog_compiler_pic \
13790: lt_prog_compiler_wl \
13791: lt_prog_compiler_static \
13792: lt_cv_prog_compiler_c_o \
13793: need_locks \
13794: MANIFEST_TOOL \
13795: DSYMUTIL \
13796: NMEDIT \
13797: LIPO \
13798: OTOOL \
13799: OTOOL64 \
13800: shrext_cmds \
13801: export_dynamic_flag_spec \
13802: whole_archive_flag_spec \
13803: compiler_needs_object \
13804: with_gnu_ld \
13805: allow_undefined_flag \
13806: no_undefined_flag \
13807: hardcode_libdir_flag_spec \
13808: hardcode_libdir_separator \
13809: exclude_expsyms \
13810: include_expsyms \
13811: file_list_spec \
13812: variables_saved_for_relink \
13813: libname_spec \
13814: library_names_spec \
13815: soname_spec \
13816: install_override_mode \
13817: finish_eval \
13818: old_striplib \
13819: striplib; do
13820: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13821: *[\\\\\\\`\\"\\\$]*)
13822: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13823: ;;
13824: *)
13825: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13826: ;;
13827: esac
13828: done
13829:
13830: # Double-quote double-evaled strings.
13831: for var in reload_cmds \
13832: old_postinstall_cmds \
13833: old_postuninstall_cmds \
13834: old_archive_cmds \
13835: extract_expsyms_cmds \
13836: old_archive_from_new_cmds \
13837: old_archive_from_expsyms_cmds \
13838: archive_cmds \
13839: archive_expsym_cmds \
13840: module_cmds \
13841: module_expsym_cmds \
13842: export_symbols_cmds \
13843: prelink_cmds \
13844: postlink_cmds \
13845: postinstall_cmds \
13846: postuninstall_cmds \
13847: finish_cmds \
13848: sys_lib_search_path_spec \
13849: configure_time_dlsearch_path \
13850: configure_time_lt_sys_library_path; do
13851: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13852: *[\\\\\\\`\\"\\\$]*)
13853: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13854: ;;
13855: *)
13856: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13857: ;;
13858: esac
13859: done
13860:
13861: ac_aux_dir='$ac_aux_dir'
13862:
13863: # See if we are running on zsh, and set the options that allow our
13864: # commands through without removal of \ escapes INIT.
13865: if test -n "\${ZSH_VERSION+set}"; then
13866: setopt NO_GLOB_SUBST
13867: fi
13868:
13869:
13870: PACKAGE='$PACKAGE'
13871: VERSION='$VERSION'
13872: RM='$RM'
13873: ofile='$ofile'
13874:
13875:
13876:
13877:
13878: _ACEOF
13879:
13880: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13881:
13882: # Handling of arguments.
13883: for ac_config_target in $ac_config_targets
13884: do
13885: case $ac_config_target in
13886: "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
13887: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13888: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13889: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13890: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13891: "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
13892: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13893: "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
13894:
13895: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13896: esac
13897: done
13898:
13899:
13900: # If the user did not use the arguments to specify the items to instantiate,
13901: # then the envvar interface is used. Set only those that are not.
13902: # We use the long form for the default assignment because of an extremely
13903: # bizarre bug on SunOS 4.1.3.
13904: if $ac_need_defaults; then
13905: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13906: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13907: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13908: fi
13909:
13910: # Have a temporary directory for convenience. Make it in the build tree
13911: # simply because there is no reason against having it here, and in addition,
13912: # creating and moving files from /tmp can sometimes cause problems.
13913: # Hook for its removal unless debugging.
13914: # Note that there is a small window in which the directory will not be cleaned:
13915: # after its creation but before its name has been assigned to `$tmp'.
13916: $debug ||
13917: {
13918: tmp= ac_tmp=
13919: trap 'exit_status=$?
13920: : "${ac_tmp:=$tmp}"
13921: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13922: ' 0
13923: trap 'as_fn_exit 1' 1 2 13 15
13924: }
13925: # Create a (secure) tmp directory for tmp files.
13926:
13927: {
13928: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13929: test -d "$tmp"
13930: } ||
13931: {
13932: tmp=./conf$$-$RANDOM
13933: (umask 077 && mkdir "$tmp")
13934: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13935: ac_tmp=$tmp
13936:
13937: # Set up the scripts for CONFIG_FILES section.
13938: # No need to generate them if there are no CONFIG_FILES.
13939: # This happens for instance with `./config.status config.h'.
13940: if test -n "$CONFIG_FILES"; then
13941:
13942:
13943: ac_cr=`echo X | tr X '\015'`
13944: # On cygwin, bash can eat \r inside `` if the user requested igncr.
13945: # But we know of no other shell where ac_cr would be empty at this
13946: # point, so we can use a bashism as a fallback.
13947: if test "x$ac_cr" = x; then
13948: eval ac_cr=\$\'\\r\'
13949: fi
13950: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13951: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13952: ac_cs_awk_cr='\\r'
13953: else
13954: ac_cs_awk_cr=$ac_cr
13955: fi
13956:
13957: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13958: _ACEOF
13959:
13960:
13961: {
13962: echo "cat >conf$$subs.awk <<_ACEOF" &&
13963: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13964: echo "_ACEOF"
13965: } >conf$$subs.sh ||
13966: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13967: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13968: ac_delim='%!_!# '
13969: for ac_last_try in false false false false false :; do
13970: . ./conf$$subs.sh ||
13971: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13972:
13973: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13974: if test $ac_delim_n = $ac_delim_num; then
13975: break
13976: elif $ac_last_try; then
13977: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13978: else
13979: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13980: fi
13981: done
13982: rm -f conf$$subs.sh
13983:
13984: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13985: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13986: _ACEOF
13987: sed -n '
13988: h
13989: s/^/S["/; s/!.*/"]=/
13990: p
13991: g
13992: s/^[^!]*!//
13993: :repl
13994: t repl
13995: s/'"$ac_delim"'$//
13996: t delim
13997: :nl
13998: h
13999: s/\(.\{148\}\)..*/\1/
14000: t more1
14001: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14002: p
14003: n
14004: b repl
14005: :more1
14006: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14007: p
14008: g
14009: s/.\{148\}//
14010: t nl
14011: :delim
14012: h
14013: s/\(.\{148\}\)..*/\1/
14014: t more2
14015: s/["\\]/\\&/g; s/^/"/; s/$/"/
14016: p
14017: b
14018: :more2
14019: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14020: p
14021: g
14022: s/.\{148\}//
14023: t delim
14024: ' <conf$$subs.awk | sed '
14025: /^[^""]/{
14026: N
14027: s/\n//
14028: }
14029: ' >>$CONFIG_STATUS || ac_write_fail=1
14030: rm -f conf$$subs.awk
14031: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14032: _ACAWK
14033: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14034: for (key in S) S_is_set[key] = 1
14035: FS = ""
14036:
14037: }
14038: {
14039: line = $ 0
14040: nfields = split(line, field, "@")
14041: substed = 0
14042: len = length(field[1])
14043: for (i = 2; i < nfields; i++) {
14044: key = field[i]
14045: keylen = length(key)
14046: if (S_is_set[key]) {
14047: value = S[key]
14048: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14049: len += length(value) + length(field[++i])
14050: substed = 1
14051: } else
14052: len += 1 + keylen
14053: }
14054:
14055: print line
14056: }
14057:
14058: _ACAWK
14059: _ACEOF
14060: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14061: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14062: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14063: else
14064: cat
14065: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14066: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14067: _ACEOF
14068:
14069: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14070: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14071: # trailing colons and then remove the whole line if VPATH becomes empty
14072: # (actually we leave an empty line to preserve line numbers).
14073: if test "x$srcdir" = x.; then
14074: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14075: h
14076: s///
14077: s/^/:/
14078: s/[ ]*$/:/
14079: s/:\$(srcdir):/:/g
14080: s/:\${srcdir}:/:/g
14081: s/:@srcdir@:/:/g
14082: s/^:*//
14083: s/:*$//
14084: x
14085: s/\(=[ ]*\).*/\1/
14086: G
14087: s/\n//
14088: s/^[^=]*=[ ]*$//
14089: }'
14090: fi
14091:
14092: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093: fi # test -n "$CONFIG_FILES"
14094:
14095: # Set up the scripts for CONFIG_HEADERS section.
14096: # No need to generate them if there are no CONFIG_HEADERS.
14097: # This happens for instance with `./config.status Makefile'.
14098: if test -n "$CONFIG_HEADERS"; then
14099: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14100: BEGIN {
14101: _ACEOF
14102:
14103: # Transform confdefs.h into an awk script `defines.awk', embedded as
14104: # here-document in config.status, that substitutes the proper values into
14105: # config.h.in to produce config.h.
14106:
14107: # Create a delimiter string that does not exist in confdefs.h, to ease
14108: # handling of long lines.
14109: ac_delim='%!_!# '
14110: for ac_last_try in false false :; do
14111: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14112: if test -z "$ac_tt"; then
14113: break
14114: elif $ac_last_try; then
14115: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14116: else
14117: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14118: fi
14119: done
14120:
14121: # For the awk script, D is an array of macro values keyed by name,
14122: # likewise P contains macro parameters if any. Preserve backslash
14123: # newline sequences.
14124:
14125: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14126: sed -n '
14127: s/.\{148\}/&'"$ac_delim"'/g
14128: t rset
14129: :rset
14130: s/^[ ]*#[ ]*define[ ][ ]*/ /
14131: t def
14132: d
14133: :def
14134: s/\\$//
14135: t bsnl
14136: s/["\\]/\\&/g
14137: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14138: D["\1"]=" \3"/p
14139: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14140: d
14141: :bsnl
14142: s/["\\]/\\&/g
14143: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14144: D["\1"]=" \3\\\\\\n"\\/p
14145: t cont
14146: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14147: t cont
14148: d
14149: :cont
14150: n
14151: s/.\{148\}/&'"$ac_delim"'/g
14152: t clear
14153: :clear
14154: s/\\$//
14155: t bsnlc
14156: s/["\\]/\\&/g; s/^/"/; s/$/"/p
14157: d
14158: :bsnlc
14159: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14160: b cont
14161: ' <confdefs.h | sed '
14162: s/'"$ac_delim"'/"\\\
14163: "/g' >>$CONFIG_STATUS || ac_write_fail=1
14164:
14165: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14166: for (key in D) D_is_set[key] = 1
14167: FS = ""
14168: }
14169: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14170: line = \$ 0
14171: split(line, arg, " ")
14172: if (arg[1] == "#") {
14173: defundef = arg[2]
14174: mac1 = arg[3]
14175: } else {
14176: defundef = substr(arg[1], 2)
14177: mac1 = arg[2]
14178: }
14179: split(mac1, mac2, "(") #)
14180: macro = mac2[1]
14181: prefix = substr(line, 1, index(line, defundef) - 1)
14182: if (D_is_set[macro]) {
14183: # Preserve the white space surrounding the "#".
14184: print prefix "define", macro P[macro] D[macro]
14185: next
14186: } else {
14187: # Replace #undef with comments. This is necessary, for example,
14188: # in the case of _POSIX_SOURCE, which is predefined and required
14189: # on some systems where configure will not decide to define it.
14190: if (defundef == "undef") {
14191: print "/*", prefix defundef, macro, "*/"
14192: next
14193: }
14194: }
14195: }
14196: { print }
14197: _ACAWK
14198: _ACEOF
14199: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14200: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14201: fi # test -n "$CONFIG_HEADERS"
14202:
14203:
14204: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14205: shift
14206: for ac_tag
14207: do
14208: case $ac_tag in
14209: :[FHLC]) ac_mode=$ac_tag; continue;;
14210: esac
14211: case $ac_mode$ac_tag in
14212: :[FHL]*:*);;
14213: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14214: :[FH]-) ac_tag=-:-;;
14215: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14216: esac
14217: ac_save_IFS=$IFS
14218: IFS=:
14219: set x $ac_tag
14220: IFS=$ac_save_IFS
14221: shift
14222: ac_file=$1
14223: shift
14224:
14225: case $ac_mode in
14226: :L) ac_source=$1;;
14227: :[FH])
14228: ac_file_inputs=
14229: for ac_f
14230: do
14231: case $ac_f in
14232: -) ac_f="$ac_tmp/stdin";;
14233: *) # Look for the file first in the build tree, then in the source tree
14234: # (if the path is not absolute). The absolute path cannot be DOS-style,
14235: # because $ac_f cannot contain `:'.
14236: test -f "$ac_f" ||
14237: case $ac_f in
14238: [\\/$]*) false;;
14239: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14240: esac ||
14241: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14242: esac
14243: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14244: as_fn_append ac_file_inputs " '$ac_f'"
14245: done
14246:
14247: # Let's still pretend it is `configure' which instantiates (i.e., don't
14248: # use $as_me), people would be surprised to read:
14249: # /* config.h. Generated by config.status. */
14250: configure_input='Generated from '`
14251: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14252: `' by configure.'
14253: if test x"$ac_file" != x-; then
14254: configure_input="$ac_file. $configure_input"
14255: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14256: $as_echo "$as_me: creating $ac_file" >&6;}
14257: fi
14258: # Neutralize special characters interpreted by sed in replacement strings.
14259: case $configure_input in #(
14260: *\&* | *\|* | *\\* )
14261: ac_sed_conf_input=`$as_echo "$configure_input" |
14262: sed 's/[\\\\&|]/\\\\&/g'`;; #(
14263: *) ac_sed_conf_input=$configure_input;;
14264: esac
14265:
14266: case $ac_tag in
14267: *:-:* | *:-) cat >"$ac_tmp/stdin" \
14268: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14269: esac
14270: ;;
14271: esac
14272:
14273: ac_dir=`$as_dirname -- "$ac_file" ||
14274: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14275: X"$ac_file" : 'X\(//\)[^/]' \| \
14276: X"$ac_file" : 'X\(//\)$' \| \
14277: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14278: $as_echo X"$ac_file" |
14279: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14280: s//\1/
14281: q
14282: }
14283: /^X\(\/\/\)[^/].*/{
14284: s//\1/
14285: q
14286: }
14287: /^X\(\/\/\)$/{
14288: s//\1/
14289: q
14290: }
14291: /^X\(\/\).*/{
14292: s//\1/
14293: q
14294: }
14295: s/.*/./; q'`
14296: as_dir="$ac_dir"; as_fn_mkdir_p
14297: ac_builddir=.
14298:
14299: case "$ac_dir" in
14300: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14301: *)
14302: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14303: # A ".." for each directory in $ac_dir_suffix.
14304: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14305: case $ac_top_builddir_sub in
14306: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14307: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14308: esac ;;
14309: esac
14310: ac_abs_top_builddir=$ac_pwd
14311: ac_abs_builddir=$ac_pwd$ac_dir_suffix
14312: # for backward compatibility:
14313: ac_top_builddir=$ac_top_build_prefix
14314:
14315: case $srcdir in
14316: .) # We are building in place.
14317: ac_srcdir=.
14318: ac_top_srcdir=$ac_top_builddir_sub
14319: ac_abs_top_srcdir=$ac_pwd ;;
14320: [\\/]* | ?:[\\/]* ) # Absolute name.
14321: ac_srcdir=$srcdir$ac_dir_suffix;
14322: ac_top_srcdir=$srcdir
14323: ac_abs_top_srcdir=$srcdir ;;
14324: *) # Relative name.
14325: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14326: ac_top_srcdir=$ac_top_build_prefix$srcdir
14327: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14328: esac
14329: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14330:
14331:
14332: case $ac_mode in
14333: :F)
14334: #
14335: # CONFIG_FILE
14336: #
14337:
14338: case $INSTALL in
14339: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14340: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14341: esac
14342: ac_MKDIR_P=$MKDIR_P
14343: case $MKDIR_P in
14344: [\\/$]* | ?:[\\/]* ) ;;
14345: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14346: esac
14347: _ACEOF
14348:
14349: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14350: # If the template does not know about datarootdir, expand it.
14351: # FIXME: This hack should be removed a few years after 2.60.
14352: ac_datarootdir_hack=; ac_datarootdir_seen=
14353: ac_sed_dataroot='
14354: /datarootdir/ {
14355: p
14356: q
14357: }
14358: /@datadir@/p
14359: /@docdir@/p
14360: /@infodir@/p
14361: /@localedir@/p
14362: /@mandir@/p'
14363: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14364: *datarootdir*) ac_datarootdir_seen=yes;;
14365: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14366: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14367: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14368: _ACEOF
14369: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14370: ac_datarootdir_hack='
14371: s&@datadir@&$datadir&g
14372: s&@docdir@&$docdir&g
14373: s&@infodir@&$infodir&g
14374: s&@localedir@&$localedir&g
14375: s&@mandir@&$mandir&g
14376: s&\\\${datarootdir}&$datarootdir&g' ;;
14377: esac
14378: _ACEOF
14379:
14380: # Neutralize VPATH when `$srcdir' = `.'.
14381: # Shell code in configure.ac might set extrasub.
14382: # FIXME: do we really want to maintain this feature?
14383: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14384: ac_sed_extra="$ac_vpsub
14385: $extrasub
14386: _ACEOF
14387: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14388: :t
14389: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14390: s|@configure_input@|$ac_sed_conf_input|;t t
14391: s&@top_builddir@&$ac_top_builddir_sub&;t t
14392: s&@top_build_prefix@&$ac_top_build_prefix&;t t
14393: s&@srcdir@&$ac_srcdir&;t t
14394: s&@abs_srcdir@&$ac_abs_srcdir&;t t
14395: s&@top_srcdir@&$ac_top_srcdir&;t t
14396: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14397: s&@builddir@&$ac_builddir&;t t
14398: s&@abs_builddir@&$ac_abs_builddir&;t t
14399: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14400: s&@INSTALL@&$ac_INSTALL&;t t
14401: s&@MKDIR_P@&$ac_MKDIR_P&;t t
14402: $ac_datarootdir_hack
14403: "
14404: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14405: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14406:
14407: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14408: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14409: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14410: "$ac_tmp/out"`; test -z "$ac_out"; } &&
14411: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14412: which seems to be undefined. Please make sure it is defined" >&5
14413: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14414: which seems to be undefined. Please make sure it is defined" >&2;}
14415:
14416: rm -f "$ac_tmp/stdin"
14417: case $ac_file in
14418: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14419: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14420: esac \
14421: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14422: ;;
14423: :H)
14424: #
14425: # CONFIG_HEADER
14426: #
14427: if test x"$ac_file" != x-; then
14428: {
14429: $as_echo "/* $configure_input */" \
14430: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14431: } >"$ac_tmp/config.h" \
14432: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14433: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14434: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14435: $as_echo "$as_me: $ac_file is unchanged" >&6;}
14436: else
14437: rm -f "$ac_file"
14438: mv "$ac_tmp/config.h" "$ac_file" \
14439: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14440: fi
14441: else
14442: $as_echo "/* $configure_input */" \
14443: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14444: || as_fn_error $? "could not create -" "$LINENO" 5
14445: fi
14446: # Compute "$ac_file"'s index in $config_headers.
14447: _am_arg="$ac_file"
14448: _am_stamp_count=1
14449: for _am_header in $config_headers :; do
14450: case $_am_header in
14451: $_am_arg | $_am_arg:* )
14452: break ;;
14453: * )
14454: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14455: esac
14456: done
14457: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14458: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14459: X"$_am_arg" : 'X\(//\)[^/]' \| \
14460: X"$_am_arg" : 'X\(//\)$' \| \
14461: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14462: $as_echo X"$_am_arg" |
14463: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14464: s//\1/
14465: q
14466: }
14467: /^X\(\/\/\)[^/].*/{
14468: s//\1/
14469: q
14470: }
14471: /^X\(\/\/\)$/{
14472: s//\1/
14473: q
14474: }
14475: /^X\(\/\).*/{
14476: s//\1/
14477: q
14478: }
14479: s/.*/./; q'`/stamp-h$_am_stamp_count
14480: ;;
14481:
14482: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14483: $as_echo "$as_me: executing $ac_file commands" >&6;}
14484: ;;
14485: esac
14486:
14487:
14488: case $ac_file$ac_mode in
14489: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14490: # Older Autoconf quotes --file arguments for eval, but not when files
14491: # are listed without --file. Let's play safe and only enable the eval
14492: # if we detect the quoting.
14493: case $CONFIG_FILES in
14494: *\'*) eval set x "$CONFIG_FILES" ;;
14495: *) set x $CONFIG_FILES ;;
14496: esac
14497: shift
14498: for mf
14499: do
14500: # Strip MF so we end up with the name of the file.
14501: mf=`echo "$mf" | sed -e 's/:.*$//'`
14502: # Check whether this is an Automake generated Makefile or not.
14503: # We used to match only the files named 'Makefile.in', but
14504: # some people rename them; so instead we look at the file content.
14505: # Grep'ing the first line is not enough: some people post-process
14506: # each Makefile.in and add a new line on top of each file to say so.
14507: # Grep'ing the whole file is not good either: AIX grep has a line
14508: # limit of 2048, but all sed's we know have understand at least 4000.
14509: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14510: dirpart=`$as_dirname -- "$mf" ||
14511: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14512: X"$mf" : 'X\(//\)[^/]' \| \
14513: X"$mf" : 'X\(//\)$' \| \
14514: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14515: $as_echo X"$mf" |
14516: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14517: s//\1/
14518: q
14519: }
14520: /^X\(\/\/\)[^/].*/{
14521: s//\1/
14522: q
14523: }
14524: /^X\(\/\/\)$/{
14525: s//\1/
14526: q
14527: }
14528: /^X\(\/\).*/{
14529: s//\1/
14530: q
14531: }
14532: s/.*/./; q'`
14533: else
14534: continue
14535: fi
14536: # Extract the definition of DEPDIR, am__include, and am__quote
14537: # from the Makefile without running 'make'.
14538: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14539: test -z "$DEPDIR" && continue
14540: am__include=`sed -n 's/^am__include = //p' < "$mf"`
14541: test -z "$am__include" && continue
14542: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14543: # Find all dependency output files, they are included files with
14544: # $(DEPDIR) in their names. We invoke sed twice because it is the
14545: # simplest approach to changing $(DEPDIR) to its actual value in the
14546: # expansion.
14547: for file in `sed -n "
14548: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14549: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14550: # Make sure the directory exists.
14551: test -f "$dirpart/$file" && continue
14552: fdir=`$as_dirname -- "$file" ||
14553: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14554: X"$file" : 'X\(//\)[^/]' \| \
14555: X"$file" : 'X\(//\)$' \| \
14556: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14557: $as_echo X"$file" |
14558: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14559: s//\1/
14560: q
14561: }
14562: /^X\(\/\/\)[^/].*/{
14563: s//\1/
14564: q
14565: }
14566: /^X\(\/\/\)$/{
14567: s//\1/
14568: q
14569: }
14570: /^X\(\/\).*/{
14571: s//\1/
14572: q
14573: }
14574: s/.*/./; q'`
14575: as_dir=$dirpart/$fdir; as_fn_mkdir_p
14576: # echo "creating $dirpart/$file"
14577: echo '# dummy' > "$dirpart/$file"
14578: done
14579: done
14580: }
14581: ;;
14582: "libtool":C)
14583:
14584: # See if we are running on zsh, and set the options that allow our
14585: # commands through without removal of \ escapes.
14586: if test -n "${ZSH_VERSION+set}"; then
14587: setopt NO_GLOB_SUBST
14588: fi
14589:
14590: cfgfile=${ofile}T
14591: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14592: $RM "$cfgfile"
14593:
14594: cat <<_LT_EOF >> "$cfgfile"
14595: #! $SHELL
14596: # Generated automatically by $as_me ($PACKAGE) $VERSION
14597: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14598: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14599:
14600: # Provide generalized library-building support services.
14601: # Written by Gordon Matzigkeit, 1996
14602:
14603: # Copyright (C) 2014 Free Software Foundation, Inc.
14604: # This is free software; see the source for copying conditions. There is NO
14605: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14606:
14607: # GNU Libtool is free software; you can redistribute it and/or modify
14608: # it under the terms of the GNU General Public License as published by
14609: # the Free Software Foundation; either version 2 of of the License, or
14610: # (at your option) any later version.
14611: #
14612: # As a special exception to the GNU General Public License, if you
14613: # distribute this file as part of a program or library that is built
14614: # using GNU Libtool, you may include this file under the same
14615: # distribution terms that you use for the rest of that program.
14616: #
14617: # GNU Libtool is distributed in the hope that it will be useful, but
14618: # WITHOUT ANY WARRANTY; without even the implied warranty of
14619: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14620: # GNU General Public License for more details.
14621: #
14622: # You should have received a copy of the GNU General Public License
14623: # along with this program. If not, see <http://www.gnu.org/licenses/>.
14624:
14625:
14626: # The names of the tagged configurations supported by this script.
14627: available_tags=''
14628:
14629: # Configured defaults for sys_lib_dlsearch_path munging.
14630: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14631:
14632: # ### BEGIN LIBTOOL CONFIG
14633:
14634: # Which release of libtool.m4 was used?
14635: macro_version=$macro_version
14636: macro_revision=$macro_revision
14637:
14638: # Whether or not to build shared libraries.
14639: build_libtool_libs=$enable_shared
14640:
14641: # Whether or not to build static libraries.
14642: build_old_libs=$enable_static
14643:
14644: # What type of objects to build.
14645: pic_mode=$pic_mode
14646:
14647: # Whether or not to optimize for fast installation.
14648: fast_install=$enable_fast_install
14649:
14650: # Shared archive member basename,for filename based shared library versioning on AIX.
14651: shared_archive_member_spec=$shared_archive_member_spec
14652:
14653: # Shell to use when invoking shell scripts.
14654: SHELL=$lt_SHELL
14655:
14656: # An echo program that protects backslashes.
14657: ECHO=$lt_ECHO
14658:
14659: # The PATH separator for the build system.
14660: PATH_SEPARATOR=$lt_PATH_SEPARATOR
14661:
14662: # The host system.
14663: host_alias=$host_alias
14664: host=$host
14665: host_os=$host_os
14666:
14667: # The build system.
14668: build_alias=$build_alias
14669: build=$build
14670: build_os=$build_os
14671:
14672: # A sed program that does not truncate output.
14673: SED=$lt_SED
14674:
14675: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14676: Xsed="\$SED -e 1s/^X//"
14677:
14678: # A grep program that handles long lines.
14679: GREP=$lt_GREP
14680:
14681: # An ERE matcher.
14682: EGREP=$lt_EGREP
14683:
14684: # A literal string matcher.
14685: FGREP=$lt_FGREP
14686:
14687: # A BSD- or MS-compatible name lister.
14688: NM=$lt_NM
14689:
14690: # Whether we need soft or hard links.
14691: LN_S=$lt_LN_S
14692:
14693: # What is the maximum length of a command?
14694: max_cmd_len=$max_cmd_len
14695:
14696: # Object file suffix (normally "o").
14697: objext=$ac_objext
14698:
14699: # Executable file suffix (normally "").
14700: exeext=$exeext
14701:
14702: # whether the shell understands "unset".
14703: lt_unset=$lt_unset
14704:
14705: # turn spaces into newlines.
14706: SP2NL=$lt_lt_SP2NL
14707:
14708: # turn newlines into spaces.
14709: NL2SP=$lt_lt_NL2SP
14710:
14711: # convert \$build file names to \$host format.
14712: to_host_file_cmd=$lt_cv_to_host_file_cmd
14713:
14714: # convert \$build files to toolchain format.
14715: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14716:
14717: # An object symbol dumper.
14718: OBJDUMP=$lt_OBJDUMP
14719:
14720: # Method to check whether dependent libraries are shared objects.
14721: deplibs_check_method=$lt_deplibs_check_method
14722:
14723: # Command to use when deplibs_check_method = "file_magic".
14724: file_magic_cmd=$lt_file_magic_cmd
14725:
14726: # How to find potential files when deplibs_check_method = "file_magic".
14727: file_magic_glob=$lt_file_magic_glob
14728:
14729: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14730: want_nocaseglob=$lt_want_nocaseglob
14731:
14732: # DLL creation program.
14733: DLLTOOL=$lt_DLLTOOL
14734:
14735: # Command to associate shared and link libraries.
14736: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14737:
14738: # The archiver.
14739: AR=$lt_AR
14740:
14741: # Flags to create an archive.
14742: AR_FLAGS=$lt_AR_FLAGS
14743:
14744: # How to feed a file listing to the archiver.
14745: archiver_list_spec=$lt_archiver_list_spec
14746:
14747: # A symbol stripping program.
14748: STRIP=$lt_STRIP
14749:
14750: # Commands used to install an old-style archive.
14751: RANLIB=$lt_RANLIB
14752: old_postinstall_cmds=$lt_old_postinstall_cmds
14753: old_postuninstall_cmds=$lt_old_postuninstall_cmds
14754:
14755: # Whether to use a lock for old archive extraction.
14756: lock_old_archive_extraction=$lock_old_archive_extraction
14757:
14758: # A C compiler.
14759: LTCC=$lt_CC
14760:
14761: # LTCC compiler flags.
14762: LTCFLAGS=$lt_CFLAGS
14763:
14764: # Take the output of nm and produce a listing of raw symbols and C names.
14765: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14766:
14767: # Transform the output of nm in a proper C declaration.
14768: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14769:
14770: # Transform the output of nm into a list of symbols to manually relocate.
14771: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14772:
14773: # Transform the output of nm in a C name address pair.
14774: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14775:
14776: # Transform the output of nm in a C name address pair when lib prefix is needed.
14777: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14778:
14779: # The name lister interface.
14780: nm_interface=$lt_lt_cv_nm_interface
14781:
14782: # Specify filename containing input files for \$NM.
14783: nm_file_list_spec=$lt_nm_file_list_spec
14784:
14785: # The root where to search for dependent libraries,and where our libraries should be installed.
14786: lt_sysroot=$lt_sysroot
14787:
14788: # Command to truncate a binary pipe.
14789: lt_truncate_bin=$lt_lt_cv_truncate_bin
14790:
14791: # The name of the directory that contains temporary libtool files.
14792: objdir=$objdir
14793:
14794: # Used to examine libraries when file_magic_cmd begins with "file".
14795: MAGIC_CMD=$MAGIC_CMD
14796:
14797: # Must we lock files when doing compilation?
14798: need_locks=$lt_need_locks
14799:
14800: # Manifest tool.
14801: MANIFEST_TOOL=$lt_MANIFEST_TOOL
14802:
14803: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14804: DSYMUTIL=$lt_DSYMUTIL
14805:
14806: # Tool to change global to local symbols on Mac OS X.
14807: NMEDIT=$lt_NMEDIT
14808:
14809: # Tool to manipulate fat objects and archives on Mac OS X.
14810: LIPO=$lt_LIPO
14811:
14812: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14813: OTOOL=$lt_OTOOL
14814:
14815: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14816: OTOOL64=$lt_OTOOL64
14817:
14818: # Old archive suffix (normally "a").
14819: libext=$libext
14820:
14821: # Shared library suffix (normally ".so").
14822: shrext_cmds=$lt_shrext_cmds
14823:
14824: # The commands to extract the exported symbol list from a shared archive.
14825: extract_expsyms_cmds=$lt_extract_expsyms_cmds
14826:
14827: # Variables whose values should be saved in libtool wrapper scripts and
14828: # restored at link time.
14829: variables_saved_for_relink=$lt_variables_saved_for_relink
14830:
14831: # Do we need the "lib" prefix for modules?
14832: need_lib_prefix=$need_lib_prefix
14833:
14834: # Do we need a version for libraries?
14835: need_version=$need_version
14836:
14837: # Library versioning type.
14838: version_type=$version_type
14839:
14840: # Shared library runtime path variable.
14841: runpath_var=$runpath_var
14842:
14843: # Shared library path variable.
14844: shlibpath_var=$shlibpath_var
14845:
14846: # Is shlibpath searched before the hard-coded library search path?
14847: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14848:
14849: # Format of library name prefix.
14850: libname_spec=$lt_libname_spec
14851:
14852: # List of archive names. First name is the real one, the rest are links.
14853: # The last name is the one that the linker finds with -lNAME
14854: library_names_spec=$lt_library_names_spec
14855:
14856: # The coded name of the library, if different from the real name.
14857: soname_spec=$lt_soname_spec
14858:
14859: # Permission mode override for installation of shared libraries.
14860: install_override_mode=$lt_install_override_mode
14861:
14862: # Command to use after installation of a shared archive.
14863: postinstall_cmds=$lt_postinstall_cmds
14864:
14865: # Command to use after uninstallation of a shared archive.
14866: postuninstall_cmds=$lt_postuninstall_cmds
14867:
14868: # Commands used to finish a libtool library installation in a directory.
14869: finish_cmds=$lt_finish_cmds
14870:
14871: # As "finish_cmds", except a single script fragment to be evaled but
14872: # not shown.
14873: finish_eval=$lt_finish_eval
14874:
14875: # Whether we should hardcode library paths into libraries.
14876: hardcode_into_libs=$hardcode_into_libs
14877:
14878: # Compile-time system search path for libraries.
14879: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14880:
14881: # Detected run-time system search path for libraries.
14882: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14883:
14884: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14885: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14886:
14887: # Whether dlopen is supported.
14888: dlopen_support=$enable_dlopen
14889:
14890: # Whether dlopen of programs is supported.
14891: dlopen_self=$enable_dlopen_self
14892:
14893: # Whether dlopen of statically linked programs is supported.
14894: dlopen_self_static=$enable_dlopen_self_static
14895:
14896: # Commands to strip libraries.
14897: old_striplib=$lt_old_striplib
14898: striplib=$lt_striplib
14899:
14900:
14901: # The linker used to build libraries.
14902: LD=$lt_LD
14903:
14904: # How to create reloadable object files.
14905: reload_flag=$lt_reload_flag
14906: reload_cmds=$lt_reload_cmds
14907:
14908: # Commands used to build an old-style archive.
14909: old_archive_cmds=$lt_old_archive_cmds
14910:
14911: # A language specific compiler.
14912: CC=$lt_compiler
14913:
14914: # Is the compiler the GNU compiler?
14915: with_gcc=$GCC
14916:
14917: # Compiler flag to turn off builtin functions.
14918: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14919:
14920: # Additional compiler flags for building library objects.
14921: pic_flag=$lt_lt_prog_compiler_pic
14922:
14923: # How to pass a linker flag through the compiler.
14924: wl=$lt_lt_prog_compiler_wl
14925:
14926: # Compiler flag to prevent dynamic linking.
14927: link_static_flag=$lt_lt_prog_compiler_static
14928:
14929: # Does compiler simultaneously support -c and -o options?
14930: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14931:
14932: # Whether or not to add -lc for building shared libraries.
14933: build_libtool_need_lc=$archive_cmds_need_lc
14934:
14935: # Whether or not to disallow shared libs when runtime libs are static.
14936: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14937:
14938: # Compiler flag to allow reflexive dlopens.
14939: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14940:
14941: # Compiler flag to generate shared objects directly from archives.
14942: whole_archive_flag_spec=$lt_whole_archive_flag_spec
14943:
14944: # Whether the compiler copes with passing no objects directly.
14945: compiler_needs_object=$lt_compiler_needs_object
14946:
14947: # Create an old-style archive from a shared archive.
14948: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14949:
14950: # Create a temporary old-style archive to link instead of a shared archive.
14951: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14952:
14953: # Commands used to build a shared archive.
14954: archive_cmds=$lt_archive_cmds
14955: archive_expsym_cmds=$lt_archive_expsym_cmds
14956:
14957: # Commands used to build a loadable module if different from building
14958: # a shared archive.
14959: module_cmds=$lt_module_cmds
14960: module_expsym_cmds=$lt_module_expsym_cmds
14961:
14962: # Whether we are building with GNU ld or not.
14963: with_gnu_ld=$lt_with_gnu_ld
14964:
14965: # Flag that allows shared libraries with undefined symbols to be built.
14966: allow_undefined_flag=$lt_allow_undefined_flag
14967:
14968: # Flag that enforces no undefined symbols.
14969: no_undefined_flag=$lt_no_undefined_flag
14970:
14971: # Flag to hardcode \$libdir into a binary during linking.
14972: # This must work even if \$libdir does not exist
14973: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14974:
14975: # Whether we need a single "-rpath" flag with a separated argument.
14976: hardcode_libdir_separator=$lt_hardcode_libdir_separator
14977:
14978: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14979: # DIR into the resulting binary.
14980: hardcode_direct=$hardcode_direct
14981:
14982: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14983: # DIR into the resulting binary and the resulting library dependency is
14984: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14985: # library is relocated.
14986: hardcode_direct_absolute=$hardcode_direct_absolute
14987:
14988: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14989: # into the resulting binary.
14990: hardcode_minus_L=$hardcode_minus_L
14991:
14992: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14993: # into the resulting binary.
14994: hardcode_shlibpath_var=$hardcode_shlibpath_var
14995:
14996: # Set to "yes" if building a shared library automatically hardcodes DIR
14997: # into the library and all subsequent libraries and executables linked
14998: # against it.
14999: hardcode_automatic=$hardcode_automatic
15000:
15001: # Set to yes if linker adds runtime paths of dependent libraries
15002: # to runtime path list.
15003: inherit_rpath=$inherit_rpath
15004:
15005: # Whether libtool must link a program against all its dependency libraries.
15006: link_all_deplibs=$link_all_deplibs
15007:
15008: # Set to "yes" if exported symbols are required.
15009: always_export_symbols=$always_export_symbols
15010:
15011: # The commands to list exported symbols.
15012: export_symbols_cmds=$lt_export_symbols_cmds
15013:
15014: # Symbols that should not be listed in the preloaded symbols.
15015: exclude_expsyms=$lt_exclude_expsyms
15016:
15017: # Symbols that must always be exported.
15018: include_expsyms=$lt_include_expsyms
15019:
15020: # Commands necessary for linking programs (against libraries) with templates.
15021: prelink_cmds=$lt_prelink_cmds
15022:
15023: # Commands necessary for finishing linking programs.
15024: postlink_cmds=$lt_postlink_cmds
15025:
15026: # Specify filename containing input files.
15027: file_list_spec=$lt_file_list_spec
15028:
15029: # How to hardcode a shared library path into an executable.
15030: hardcode_action=$hardcode_action
15031:
15032: # ### END LIBTOOL CONFIG
15033:
15034: _LT_EOF
15035:
15036: cat <<'_LT_EOF' >> "$cfgfile"
15037:
15038: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15039:
15040: # func_munge_path_list VARIABLE PATH
15041: # -----------------------------------
15042: # VARIABLE is name of variable containing _space_ separated list of
15043: # directories to be munged by the contents of PATH, which is string
15044: # having a format:
15045: # "DIR[:DIR]:"
15046: # string "DIR[ DIR]" will be prepended to VARIABLE
15047: # ":DIR[:DIR]"
15048: # string "DIR[ DIR]" will be appended to VARIABLE
15049: # "DIRP[:DIRP]::[DIRA:]DIRA"
15050: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15051: # "DIRA[ DIRA]" will be appended to VARIABLE
15052: # "DIR[:DIR]"
15053: # VARIABLE will be replaced by "DIR[ DIR]"
15054: func_munge_path_list ()
15055: {
15056: case x$2 in
15057: x)
15058: ;;
15059: *:)
15060: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15061: ;;
15062: x:*)
15063: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15064: ;;
15065: *::*)
15066: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15067: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15068: ;;
15069: *)
15070: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15071: ;;
15072: esac
15073: }
15074:
15075:
15076: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15077: func_cc_basename ()
15078: {
15079: for cc_temp in $*""; do
15080: case $cc_temp in
15081: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15082: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15083: \-*) ;;
15084: *) break;;
15085: esac
15086: done
15087: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15088: }
15089:
15090:
15091: # ### END FUNCTIONS SHARED WITH CONFIGURE
15092:
15093: _LT_EOF
15094:
15095: case $host_os in
15096: aix3*)
15097: cat <<\_LT_EOF >> "$cfgfile"
15098: # AIX sometimes has problems with the GCC collect2 program. For some
15099: # reason, if we set the COLLECT_NAMES environment variable, the problems
15100: # vanish in a puff of smoke.
15101: if test set != "${COLLECT_NAMES+set}"; then
15102: COLLECT_NAMES=
15103: export COLLECT_NAMES
15104: fi
15105: _LT_EOF
15106: ;;
15107: esac
15108:
15109:
15110: ltmain=$ac_aux_dir/ltmain.sh
15111:
15112:
15113: # We use sed instead of cat because bash on DJGPP gets confused if
15114: # if finds mixed CR/LF and LF-only lines. Since sed operates in
15115: # text mode, it properly converts lines to CR/LF. This bash problem
15116: # is reportedly fixed, but why not run on old versions too?
15117: sed '$q' "$ltmain" >> "$cfgfile" \
15118: || (rm -f "$cfgfile"; exit 1)
15119:
15120: mv -f "$cfgfile" "$ofile" ||
15121: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15122: chmod +x "$ofile"
15123:
15124: ;;
15125:
15126: esac
15127: done # for ac_tag
15128:
15129:
15130: as_fn_exit 0
15131: _ACEOF
15132: ac_clean_files=$ac_clean_files_save
15133:
15134: test $ac_write_fail = 0 ||
15135: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15136:
15137:
15138: # configure is writing to config.log, and then calls config.status.
15139: # config.status does its own redirection, appending to config.log.
15140: # Unfortunately, on DOS this fails, as config.log is still kept open
15141: # by configure, so config.status won't be able to write to it; its
15142: # output is simply discarded. So we exec the FD to /dev/null,
15143: # effectively closing config.log, so it can be properly (re)opened and
15144: # appended to by config.status. When coming back to configure, we
15145: # need to make the FD available again.
15146: if test "$no_create" != yes; then
15147: ac_cs_success=:
15148: ac_config_status_args=
15149: test "$silent" = yes &&
15150: ac_config_status_args="$ac_config_status_args --quiet"
15151: exec 5>/dev/null
15152: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15153: exec 5>>config.log
15154: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15155: # would make configure fail if this is the last instruction.
15156: $ac_cs_success || as_fn_exit 1
15157: fi
15158: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15159: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15160: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15161: fi
15162:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>