Annotation of embedaddon/iperf/configure, revision 1.1.1.3
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.3 ! misho 3: # Generated by GNU Autoconf 2.71 for iperf 3.15.
1.1 misho 4: #
5: # Report bugs to <https://github.com/esnet/iperf>.
6: #
7: #
1.1.1.3 ! misho 8: # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
! 9: # Inc.
1.1 misho 10: #
11: #
12: # This configure script is free software; the Free Software Foundation
13: # gives unlimited permission to copy, distribute and modify it.
14: ## -------------------- ##
15: ## M4sh Initialization. ##
16: ## -------------------- ##
17:
18: # Be more Bourne compatible
19: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.3 ! misho 20: as_nop=:
! 21: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
! 22: then :
1.1 misho 23: emulate sh
24: NULLCMD=:
25: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26: # is contrary to our usage. Disable this feature.
27: alias -g '${1+"$@"}'='"$@"'
28: setopt NO_GLOB_SUBST
1.1.1.3 ! misho 29: else $as_nop
1.1 misho 30: case `(set -o) 2>/dev/null` in #(
31: *posix*) :
32: set -o posix ;; #(
33: *) :
34: ;;
35: esac
36: fi
37:
38:
1.1.1.3 ! misho 39:
! 40: # Reset variables that may have inherited troublesome values from
! 41: # the environment.
! 42:
! 43: # IFS needs to be set, to space, tab, and newline, in precisely that order.
! 44: # (If _AS_PATH_WALK were called with IFS unset, it would have the
! 45: # side effect of setting IFS to empty, thus disabling word splitting.)
! 46: # Quoting is to prevent editors from complaining about space-tab.
1.1 misho 47: as_nl='
48: '
49: export as_nl
1.1.1.3 ! misho 50: IFS=" "" $as_nl"
! 51:
! 52: PS1='$ '
! 53: PS2='> '
! 54: PS4='+ '
! 55:
! 56: # Ensure predictable behavior from utilities with locale-dependent output.
! 57: LC_ALL=C
! 58: export LC_ALL
! 59: LANGUAGE=C
! 60: export LANGUAGE
! 61:
! 62: # We cannot yet rely on "unset" to work, but we need these variables
! 63: # to be unset--not just set to an empty or harmless value--now, to
! 64: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
! 65: # also avoids known problems related to "unset" and subshell syntax
! 66: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
! 67: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
! 68: do eval test \${$as_var+y} \
! 69: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 70: done
! 71:
! 72: # Ensure that fds 0, 1, and 2 are open.
! 73: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
! 74: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
! 75: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 misho 76:
77: # The user is always right.
1.1.1.3 ! misho 78: if ${PATH_SEPARATOR+false} :; then
1.1 misho 79: PATH_SEPARATOR=:
80: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82: PATH_SEPARATOR=';'
83: }
84: fi
85:
86:
87: # Find who we are. Look in the path if we contain no directory separator.
88: as_myself=
89: case $0 in #((
90: *[\\/]* ) as_myself=$0 ;;
91: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92: for as_dir in $PATH
93: do
94: IFS=$as_save_IFS
1.1.1.3 ! misho 95: case $as_dir in #(((
! 96: '') as_dir=./ ;;
! 97: */) ;;
! 98: *) as_dir=$as_dir/ ;;
! 99: esac
! 100: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 misho 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
1.1.1.3 ! misho 112: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 misho 113: exit 1
114: fi
115:
116:
117: # Use a proper internal environment variable to ensure we don't fall
118: # into an infinite loop, continuously re-executing ourselves.
119: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120: _as_can_reexec=no; export _as_can_reexec;
121: # We cannot yet assume a decent shell, so we have to provide a
122: # neutralization value for shells without unset; and this also
123: # works around shells that cannot unset nonexistent variables.
124: # Preserve -v and -x to the replacement shell.
125: BASH_ENV=/dev/null
126: ENV=/dev/null
127: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128: case $- in # ((((
129: *v*x* | *x*v* ) as_opts=-vx ;;
130: *v* ) as_opts=-v ;;
131: *x* ) as_opts=-x ;;
132: * ) as_opts= ;;
133: esac
134: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135: # Admittedly, this is quite paranoid, since all the known shells bail
136: # out after a failed `exec'.
1.1.1.3 ! misho 137: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
! 138: exit 255
1.1 misho 139: fi
140: # We don't want this to propagate to other subprocesses.
141: { _as_can_reexec=; unset _as_can_reexec;}
142: if test "x$CONFIG_SHELL" = x; then
1.1.1.3 ! misho 143: as_bourne_compatible="as_nop=:
! 144: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
! 145: then :
1.1 misho 146: emulate sh
147: NULLCMD=:
148: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149: # is contrary to our usage. Disable this feature.
150: alias -g '\${1+\"\$@\"}'='\"\$@\"'
151: setopt NO_GLOB_SUBST
1.1.1.3 ! misho 152: else \$as_nop
1.1 misho 153: case \`(set -o) 2>/dev/null\` in #(
154: *posix*) :
155: set -o posix ;; #(
156: *) :
157: ;;
158: esac
159: fi
160: "
161: as_required="as_fn_return () { (exit \$1); }
162: as_fn_success () { as_fn_return 0; }
163: as_fn_failure () { as_fn_return 1; }
164: as_fn_ret_success () { return 0; }
165: as_fn_ret_failure () { return 1; }
166:
167: exitcode=0
168: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.1.1.3 ! misho 172: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
! 173: then :
1.1 misho 174:
1.1.1.3 ! misho 175: else \$as_nop
1.1 misho 176: exitcode=1; echo positional parameters were not saved.
177: fi
178: test x\$exitcode = x0 || exit 1
1.1.1.3 ! misho 179: blah=\$(echo \$(echo blah))
! 180: test x\"\$blah\" = xblah || exit 1
1.1 misho 181: test -x / || exit 1"
182: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186:
187: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191: PATH=/empty FPATH=/empty; export PATH FPATH
192: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194: test \$(( 1 + 1 )) = 2 || exit 1"
1.1.1.3 ! misho 195: if (eval "$as_required") 2>/dev/null
! 196: then :
1.1 misho 197: as_have_required=yes
1.1.1.3 ! misho 198: else $as_nop
1.1 misho 199: as_have_required=no
200: fi
1.1.1.3 ! misho 201: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
! 202: then :
1.1 misho 203:
1.1.1.3 ! misho 204: else $as_nop
1.1 misho 205: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206: as_found=false
207: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208: do
209: IFS=$as_save_IFS
1.1.1.3 ! misho 210: case $as_dir in #(((
! 211: '') as_dir=./ ;;
! 212: */) ;;
! 213: *) as_dir=$as_dir/ ;;
! 214: esac
1.1 misho 215: as_found=:
216: case $as_dir in #(
217: /*)
218: for as_base in sh bash ksh sh5; do
219: # Try only shells that exist, to save several forks.
1.1.1.3 ! misho 220: as_shell=$as_dir$as_base
1.1 misho 221: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.1.1.3 ! misho 222: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
! 223: then :
1.1 misho 224: CONFIG_SHELL=$as_shell as_have_required=yes
1.1.1.3 ! misho 225: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
! 226: then :
1.1 misho 227: break 2
228: fi
229: fi
230: done;;
231: esac
232: as_found=false
233: done
234: IFS=$as_save_IFS
1.1.1.3 ! misho 235: if $as_found
! 236: then :
! 237:
! 238: else $as_nop
! 239: if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
! 240: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
! 241: then :
! 242: CONFIG_SHELL=$SHELL as_have_required=yes
! 243: fi
! 244: fi
1.1 misho 245:
246:
1.1.1.3 ! misho 247: if test "x$CONFIG_SHELL" != x
! 248: then :
1.1 misho 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'.
1.1.1.3 ! misho 266: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.1 misho 267: exit 255
268: fi
269:
1.1.1.3 ! misho 270: if test x$as_have_required = xno
! 271: then :
! 272: printf "%s\n" "$0: This script requires a shell more modern than all"
! 273: printf "%s\n" "$0: the shells that I found on your system."
! 274: if test ${ZSH_VERSION+y} ; then
! 275: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
! 276: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.1 misho 277: else
1.1.1.3 ! misho 278: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
1.1 misho 279: $0: https://github.com/esnet/iperf about your system,
280: $0: including any error possibly output before this
281: $0: message. Then install a modern shell, or manually run
282: $0: the script under such a shell if you do have one."
283: fi
284: exit 1
285: fi
286: fi
287: fi
288: SHELL=${CONFIG_SHELL-/bin/sh}
289: export SHELL
290: # Unset more variables known to interfere with behavior of common tools.
291: CLICOLOR_FORCE= GREP_OPTIONS=
292: unset CLICOLOR_FORCE GREP_OPTIONS
293:
294: ## --------------------- ##
295: ## M4sh Shell Functions. ##
296: ## --------------------- ##
297: # as_fn_unset VAR
298: # ---------------
299: # Portably unset VAR.
300: as_fn_unset ()
301: {
302: { eval $1=; unset $1;}
303: }
304: as_unset=as_fn_unset
305:
1.1.1.3 ! misho 306:
1.1 misho 307: # as_fn_set_status STATUS
308: # -----------------------
309: # Set $? to STATUS, without forking.
310: as_fn_set_status ()
311: {
312: return $1
313: } # as_fn_set_status
314:
315: # as_fn_exit STATUS
316: # -----------------
317: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318: as_fn_exit ()
319: {
320: set +e
321: as_fn_set_status $1
322: exit $1
323: } # as_fn_exit
1.1.1.3 ! misho 324: # as_fn_nop
! 325: # ---------
! 326: # Do nothing but, unlike ":", preserve the value of $?.
! 327: as_fn_nop ()
! 328: {
! 329: return $?
! 330: }
! 331: as_nop=as_fn_nop
1.1 misho 332:
333: # as_fn_mkdir_p
334: # -------------
335: # Create "$as_dir" as a directory, including parents if necessary.
336: as_fn_mkdir_p ()
337: {
338:
339: case $as_dir in #(
340: -*) as_dir=./$as_dir;;
341: esac
342: test -d "$as_dir" || eval $as_mkdir_p || {
343: as_dirs=
344: while :; do
345: case $as_dir in #(
1.1.1.3 ! misho 346: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 misho 347: *) as_qdir=$as_dir;;
348: esac
349: as_dirs="'$as_qdir' $as_dirs"
350: as_dir=`$as_dirname -- "$as_dir" ||
351: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352: X"$as_dir" : 'X\(//\)[^/]' \| \
353: X"$as_dir" : 'X\(//\)$' \| \
354: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 355: printf "%s\n" X"$as_dir" |
1.1 misho 356: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357: s//\1/
358: q
359: }
360: /^X\(\/\/\)[^/].*/{
361: s//\1/
362: q
363: }
364: /^X\(\/\/\)$/{
365: s//\1/
366: q
367: }
368: /^X\(\/\).*/{
369: s//\1/
370: q
371: }
372: s/.*/./; q'`
373: test -d "$as_dir" && break
374: done
375: test -z "$as_dirs" || eval "mkdir $as_dirs"
376: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377:
378:
379: } # as_fn_mkdir_p
380:
381: # as_fn_executable_p FILE
382: # -----------------------
383: # Test if FILE is an executable regular file.
384: as_fn_executable_p ()
385: {
386: test -f "$1" && test -x "$1"
387: } # as_fn_executable_p
388: # as_fn_append VAR VALUE
389: # ----------------------
390: # Append the text in VALUE to the end of the definition contained in VAR. Take
391: # advantage of any shell optimizations that allow amortized linear growth over
392: # repeated appends, instead of the typical quadratic growth present in naive
393: # implementations.
1.1.1.3 ! misho 394: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
! 395: then :
1.1 misho 396: eval 'as_fn_append ()
397: {
398: eval $1+=\$2
399: }'
1.1.1.3 ! misho 400: else $as_nop
1.1 misho 401: as_fn_append ()
402: {
403: eval $1=\$$1\$2
404: }
405: fi # as_fn_append
406:
407: # as_fn_arith ARG...
408: # ------------------
409: # Perform arithmetic evaluation on the ARGs, and store the result in the
410: # global $as_val. Take advantage of shells that can avoid forks. The arguments
411: # must be portable across $(()) and expr.
1.1.1.3 ! misho 412: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
! 413: then :
1.1 misho 414: eval 'as_fn_arith ()
415: {
416: as_val=$(( $* ))
417: }'
1.1.1.3 ! misho 418: else $as_nop
1.1 misho 419: as_fn_arith ()
420: {
421: as_val=`expr "$@" || test $? -eq 1`
422: }
423: fi # as_fn_arith
424:
1.1.1.3 ! misho 425: # as_fn_nop
! 426: # ---------
! 427: # Do nothing but, unlike ":", preserve the value of $?.
! 428: as_fn_nop ()
! 429: {
! 430: return $?
! 431: }
! 432: as_nop=as_fn_nop
1.1 misho 433:
434: # as_fn_error STATUS ERROR [LINENO LOG_FD]
435: # ----------------------------------------
436: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438: # script with STATUS, using 1 if that was 0.
439: as_fn_error ()
440: {
441: as_status=$1; test $as_status -eq 0 && as_status=1
442: if test "$4"; then
443: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 444: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 445: fi
1.1.1.3 ! misho 446: printf "%s\n" "$as_me: error: $2" >&2
1.1 misho 447: as_fn_exit $as_status
448: } # as_fn_error
449:
450: if expr a : '\(a\)' >/dev/null 2>&1 &&
451: test "X`expr 00001 : '.*\(...\)'`" = X001; then
452: as_expr=expr
453: else
454: as_expr=false
455: fi
456:
457: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458: as_basename=basename
459: else
460: as_basename=false
461: fi
462:
463: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464: as_dirname=dirname
465: else
466: as_dirname=false
467: fi
468:
469: as_me=`$as_basename -- "$0" ||
470: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471: X"$0" : 'X\(//\)$' \| \
472: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 473: printf "%s\n" X/"$0" |
1.1 misho 474: sed '/^.*\/\([^/][^/]*\)\/*$/{
475: s//\1/
476: q
477: }
478: /^X\/\(\/\/\)$/{
479: s//\1/
480: q
481: }
482: /^X\/\(\/\).*/{
483: s//\1/
484: q
485: }
486: s/.*/./; q'`
487:
488: # Avoid depending upon Character Ranges.
489: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492: as_cr_digits='0123456789'
493: as_cr_alnum=$as_cr_Letters$as_cr_digits
494:
495:
496: as_lineno_1=$LINENO as_lineno_1a=$LINENO
497: as_lineno_2=$LINENO as_lineno_2a=$LINENO
498: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501: sed -n '
502: p
503: /[$]LINENO/=
504: ' <$as_myself |
505: sed '
506: s/[$]LINENO.*/&-/
507: t lineno
508: b
509: :lineno
510: N
511: :loop
512: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513: t loop
514: s/-\n.*//
515: ' >$as_me.lineno &&
516: chmod +x "$as_me.lineno" ||
1.1.1.3 ! misho 517: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misho 518:
519: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520: # already done that, so ensure we don't try to do so again and fall
521: # in an infinite loop. This has already happened in practice.
522: _as_can_reexec=no; export _as_can_reexec
523: # Don't try to exec as it changes $[0], causing all sort of problems
524: # (the dirname of $[0] is not the place where we might find the
525: # original and so on. Autoconf is especially sensitive to this).
526: . "./$as_me.lineno"
527: # Exit status is that of the last command.
528: exit
529: }
530:
1.1.1.3 ! misho 531:
! 532: # Determine whether it's possible to make 'echo' print without a newline.
! 533: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
! 534: # for compatibility with existing Makefiles.
1.1 misho 535: ECHO_C= ECHO_N= ECHO_T=
536: case `echo -n x` in #(((((
537: -n*)
538: case `echo 'xy\c'` in
539: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540: xy) ECHO_C='\c';;
541: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542: ECHO_T=' ';;
543: esac;;
544: *)
545: ECHO_N='-n';;
546: esac
547:
1.1.1.3 ! misho 548: # For backward compatibility with old third-party macros, we provide
! 549: # the shell variables $as_echo and $as_echo_n. New code should use
! 550: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
! 551: as_echo='printf %s\n'
! 552: as_echo_n='printf %s'
! 553:
! 554:
1.1 misho 555: rm -f conf$$ conf$$.exe conf$$.file
556: if test -d conf$$.dir; then
557: rm -f conf$$.dir/conf$$.file
558: else
559: rm -f conf$$.dir
560: mkdir conf$$.dir 2>/dev/null
561: fi
562: if (echo >conf$$.file) 2>/dev/null; then
563: if ln -s conf$$.file conf$$ 2>/dev/null; then
564: as_ln_s='ln -s'
565: # ... but there are two gotchas:
566: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568: # In both cases, we have to default to `cp -pR'.
569: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570: as_ln_s='cp -pR'
571: elif ln conf$$.file conf$$ 2>/dev/null; then
572: as_ln_s=ln
573: else
574: as_ln_s='cp -pR'
575: fi
576: else
577: as_ln_s='cp -pR'
578: fi
579: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580: rmdir conf$$.dir 2>/dev/null
581:
582: if mkdir -p . 2>/dev/null; then
583: as_mkdir_p='mkdir -p "$as_dir"'
584: else
585: test -d ./-p && rmdir ./-p
586: as_mkdir_p=false
587: fi
588:
589: as_test_x='test -x'
590: as_executable_p=as_fn_executable_p
591:
592: # Sed expression to map a string onto a valid CPP name.
593: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594:
595: # Sed expression to map a string onto a valid variable name.
596: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597:
598: SHELL=${CONFIG_SHELL-/bin/sh}
599:
600:
601: test -n "$DJDIR" || exec 7<&0 </dev/null
602: exec 6>&1
603:
604: # Name of the host.
605: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606: # so uname gets run too.
607: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608:
609: #
610: # Initializations.
611: #
612: ac_default_prefix=/usr/local
613: ac_clean_files=
614: ac_config_libobj_dir=.
615: LIBOBJS=
616: cross_compiling=no
617: subdirs=
618: MFLAGS=
619: MAKEFLAGS=
620:
621: # Identity of this package.
622: PACKAGE_NAME='iperf'
623: PACKAGE_TARNAME='iperf'
1.1.1.3 ! misho 624: PACKAGE_VERSION='3.15'
! 625: PACKAGE_STRING='iperf 3.15'
1.1 misho 626: PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
1.1.1.2 misho 627: PACKAGE_URL='https://software.es.net/iperf/'
1.1 misho 628:
629: # Factoring default headers for most tests.
630: ac_includes_default="\
1.1.1.3 ! misho 631: #include <stddef.h>
! 632: #ifdef HAVE_STDIO_H
! 633: # include <stdio.h>
1.1 misho 634: #endif
1.1.1.3 ! misho 635: #ifdef HAVE_STDLIB_H
1.1 misho 636: # include <stdlib.h>
637: #endif
638: #ifdef HAVE_STRING_H
639: # include <string.h>
640: #endif
641: #ifdef HAVE_INTTYPES_H
642: # include <inttypes.h>
643: #endif
644: #ifdef HAVE_STDINT_H
645: # include <stdint.h>
646: #endif
1.1.1.3 ! misho 647: #ifdef HAVE_STRINGS_H
! 648: # include <strings.h>
! 649: #endif
! 650: #ifdef HAVE_SYS_TYPES_H
! 651: # include <sys/types.h>
! 652: #endif
! 653: #ifdef HAVE_SYS_STAT_H
! 654: # include <sys/stat.h>
! 655: #endif
1.1 misho 656: #ifdef HAVE_UNISTD_H
657: # include <unistd.h>
658: #endif"
659:
1.1.1.3 ! misho 660: ac_header_c_list=
1.1 misho 661: ac_subst_vars='am__EXEEXT_FALSE
662: am__EXEEXT_TRUE
663: LTLIBOBJS
664: LIBOBJS
1.1.1.2 misho 665: OPENSSL_LDFLAGS
666: OPENSSL_LIBS
667: OPENSSL_INCLUDES
668: PKG_CONFIG
669: ENABLE_PROFILING_FALSE
670: ENABLE_PROFILING_TRUE
671: MAINT
672: MAINTAINER_MODE_FALSE
673: MAINTAINER_MODE_TRUE
1.1 misho 674: LT_SYS_LIBRARY_PATH
675: OTOOL64
676: OTOOL
677: LIPO
678: NMEDIT
679: DSYMUTIL
680: MANIFEST_TOOL
1.1.1.2 misho 681: RANLIB
1.1 misho 682: ac_ct_AR
683: AR
684: DLLTOOL
685: OBJDUMP
1.1.1.3 ! misho 686: FILECMD
1.1.1.2 misho 687: LN_S
1.1 misho 688: NM
689: ac_ct_DUMPBIN
690: DUMPBIN
691: LD
692: FGREP
693: EGREP
694: GREP
695: SED
696: am__fastdepCC_FALSE
697: am__fastdepCC_TRUE
698: CCDEPMODE
699: am__nodep
700: AMDEPBACKSLASH
701: AMDEP_FALSE
702: AMDEP_TRUE
703: am__include
704: DEPDIR
705: OBJEXT
706: EXEEXT
707: ac_ct_CC
708: CPPFLAGS
709: LDFLAGS
710: CFLAGS
711: CC
712: host_os
713: host_vendor
714: host_cpu
715: host
716: build_os
717: build_vendor
718: build_cpu
719: build
1.1.1.2 misho 720: LIBTOOL
1.1 misho 721: AM_BACKSLASH
722: AM_DEFAULT_VERBOSITY
723: AM_DEFAULT_V
724: AM_V
1.1.1.3 ! misho 725: CSCOPE
! 726: ETAGS
! 727: CTAGS
1.1 misho 728: am__untar
729: am__tar
730: AMTAR
731: am__leading_dot
732: SET_MAKE
733: AWK
734: mkdir_p
735: MKDIR_P
736: INSTALL_STRIP_PROGRAM
737: STRIP
738: install_sh
739: MAKEINFO
740: AUTOHEADER
741: AUTOMAKE
742: AUTOCONF
743: ACLOCAL
744: VERSION
745: PACKAGE
746: CYGPATH_W
747: am__isrc
748: INSTALL_DATA
749: INSTALL_SCRIPT
750: INSTALL_PROGRAM
1.1.1.2 misho 751: ENABLE_STATIC_BIN_FALSE
752: ENABLE_STATIC_BIN_TRUE
1.1 misho 753: target_alias
754: host_alias
755: build_alias
756: LIBS
757: ECHO_T
758: ECHO_N
759: ECHO_C
760: DEFS
761: mandir
762: localedir
763: libdir
764: psdir
765: pdfdir
766: dvidir
767: htmldir
768: infodir
769: docdir
770: oldincludedir
771: includedir
1.1.1.3 ! misho 772: runstatedir
1.1 misho 773: localstatedir
774: sharedstatedir
775: sysconfdir
776: datadir
777: datarootdir
778: libexecdir
779: sbindir
780: bindir
781: program_transform_name
782: prefix
783: exec_prefix
784: PACKAGE_URL
785: PACKAGE_BUGREPORT
786: PACKAGE_STRING
787: PACKAGE_VERSION
788: PACKAGE_TARNAME
789: PACKAGE_NAME
790: PATH_SEPARATOR
1.1.1.2 misho 791: SHELL
792: am__quote'
1.1 misho 793: ac_subst_files=''
794: ac_user_opts='
795: enable_option_checking
1.1.1.2 misho 796: enable_static_bin
1.1 misho 797: enable_silent_rules
798: enable_shared
799: enable_static
800: with_pic
801: enable_fast_install
802: with_aix_soname
1.1.1.2 misho 803: enable_dependency_tracking
1.1 misho 804: with_gnu_ld
805: with_sysroot
806: enable_libtool_lock
1.1.1.2 misho 807: enable_maintainer_mode
808: enable_profiling
809: with_sctp
810: with_openssl
1.1 misho 811: '
812: ac_precious_vars='build_alias
813: host_alias
814: target_alias
815: CC
816: CFLAGS
817: LDFLAGS
818: LIBS
819: CPPFLAGS
1.1.1.3 ! misho 820: LT_SYS_LIBRARY_PATH'
1.1 misho 821:
822:
823: # Initialize some variables set by options.
824: ac_init_help=
825: ac_init_version=false
826: ac_unrecognized_opts=
827: ac_unrecognized_sep=
828: # The variables have the same names as the options, with
829: # dashes changed to underlines.
830: cache_file=/dev/null
831: exec_prefix=NONE
832: no_create=
833: no_recursion=
834: prefix=NONE
835: program_prefix=NONE
836: program_suffix=NONE
837: program_transform_name=s,x,x,
838: silent=
839: site=
840: srcdir=
841: verbose=
842: x_includes=NONE
843: x_libraries=NONE
844:
845: # Installation directory options.
846: # These are left unexpanded so users can "make install exec_prefix=/foo"
847: # and all the variables that are supposed to be based on exec_prefix
848: # by default will actually change.
849: # Use braces instead of parens because sh, perl, etc. also accept them.
850: # (The list follows the same order as the GNU Coding Standards.)
851: bindir='${exec_prefix}/bin'
852: sbindir='${exec_prefix}/sbin'
853: libexecdir='${exec_prefix}/libexec'
854: datarootdir='${prefix}/share'
855: datadir='${datarootdir}'
856: sysconfdir='${prefix}/etc'
857: sharedstatedir='${prefix}/com'
858: localstatedir='${prefix}/var'
1.1.1.3 ! misho 859: runstatedir='${localstatedir}/run'
1.1 misho 860: includedir='${prefix}/include'
861: oldincludedir='/usr/include'
862: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863: infodir='${datarootdir}/info'
864: htmldir='${docdir}'
865: dvidir='${docdir}'
866: pdfdir='${docdir}'
867: psdir='${docdir}'
868: libdir='${exec_prefix}/lib'
869: localedir='${datarootdir}/locale'
870: mandir='${datarootdir}/man'
871:
872: ac_prev=
873: ac_dashdash=
874: for ac_option
875: do
876: # If the previous option needs an argument, assign it.
877: if test -n "$ac_prev"; then
878: eval $ac_prev=\$ac_option
879: ac_prev=
880: continue
881: fi
882:
883: case $ac_option in
884: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885: *=) ac_optarg= ;;
886: *) ac_optarg=yes ;;
887: esac
888:
889: case $ac_dashdash$ac_option in
890: --)
891: ac_dashdash=yes ;;
892:
893: -bindir | --bindir | --bindi | --bind | --bin | --bi)
894: ac_prev=bindir ;;
895: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896: bindir=$ac_optarg ;;
897:
898: -build | --build | --buil | --bui | --bu)
899: ac_prev=build_alias ;;
900: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901: build_alias=$ac_optarg ;;
902:
903: -cache-file | --cache-file | --cache-fil | --cache-fi \
904: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905: ac_prev=cache_file ;;
906: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908: cache_file=$ac_optarg ;;
909:
910: --config-cache | -C)
911: cache_file=config.cache ;;
912:
913: -datadir | --datadir | --datadi | --datad)
914: ac_prev=datadir ;;
915: -datadir=* | --datadir=* | --datadi=* | --datad=*)
916: datadir=$ac_optarg ;;
917:
918: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919: | --dataroo | --dataro | --datar)
920: ac_prev=datarootdir ;;
921: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923: datarootdir=$ac_optarg ;;
924:
925: -disable-* | --disable-*)
926: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927: # Reject names that are not valid shell variable names.
928: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.3 ! misho 929: as_fn_error $? "invalid feature name: \`$ac_useropt'"
1.1 misho 930: ac_useropt_orig=$ac_useropt
1.1.1.3 ! misho 931: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 932: case $ac_user_opts in
933: *"
934: "enable_$ac_useropt"
935: "*) ;;
936: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937: ac_unrecognized_sep=', ';;
938: esac
939: eval enable_$ac_useropt=no ;;
940:
941: -docdir | --docdir | --docdi | --doc | --do)
942: ac_prev=docdir ;;
943: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944: docdir=$ac_optarg ;;
945:
946: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947: ac_prev=dvidir ;;
948: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949: dvidir=$ac_optarg ;;
950:
951: -enable-* | --enable-*)
952: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953: # Reject names that are not valid shell variable names.
954: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.3 ! misho 955: as_fn_error $? "invalid feature name: \`$ac_useropt'"
1.1 misho 956: ac_useropt_orig=$ac_useropt
1.1.1.3 ! misho 957: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 958: case $ac_user_opts in
959: *"
960: "enable_$ac_useropt"
961: "*) ;;
962: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963: ac_unrecognized_sep=', ';;
964: esac
965: eval enable_$ac_useropt=\$ac_optarg ;;
966:
967: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969: | --exec | --exe | --ex)
970: ac_prev=exec_prefix ;;
971: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973: | --exec=* | --exe=* | --ex=*)
974: exec_prefix=$ac_optarg ;;
975:
976: -gas | --gas | --ga | --g)
977: # Obsolete; use --with-gas.
978: with_gas=yes ;;
979:
980: -help | --help | --hel | --he | -h)
981: ac_init_help=long ;;
982: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983: ac_init_help=recursive ;;
984: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985: ac_init_help=short ;;
986:
987: -host | --host | --hos | --ho)
988: ac_prev=host_alias ;;
989: -host=* | --host=* | --hos=* | --ho=*)
990: host_alias=$ac_optarg ;;
991:
992: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993: ac_prev=htmldir ;;
994: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995: | --ht=*)
996: htmldir=$ac_optarg ;;
997:
998: -includedir | --includedir | --includedi | --included | --include \
999: | --includ | --inclu | --incl | --inc)
1000: ac_prev=includedir ;;
1001: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002: | --includ=* | --inclu=* | --incl=* | --inc=*)
1003: includedir=$ac_optarg ;;
1004:
1005: -infodir | --infodir | --infodi | --infod | --info | --inf)
1006: ac_prev=infodir ;;
1007: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008: infodir=$ac_optarg ;;
1009:
1010: -libdir | --libdir | --libdi | --libd)
1011: ac_prev=libdir ;;
1012: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013: libdir=$ac_optarg ;;
1014:
1015: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016: | --libexe | --libex | --libe)
1017: ac_prev=libexecdir ;;
1018: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019: | --libexe=* | --libex=* | --libe=*)
1020: libexecdir=$ac_optarg ;;
1021:
1022: -localedir | --localedir | --localedi | --localed | --locale)
1023: ac_prev=localedir ;;
1024: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025: localedir=$ac_optarg ;;
1026:
1027: -localstatedir | --localstatedir | --localstatedi | --localstated \
1028: | --localstate | --localstat | --localsta | --localst | --locals)
1029: ac_prev=localstatedir ;;
1030: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032: localstatedir=$ac_optarg ;;
1033:
1034: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035: ac_prev=mandir ;;
1036: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037: mandir=$ac_optarg ;;
1038:
1039: -nfp | --nfp | --nf)
1040: # Obsolete; use --without-fp.
1041: with_fp=no ;;
1042:
1043: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044: | --no-cr | --no-c | -n)
1045: no_create=yes ;;
1046:
1047: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049: no_recursion=yes ;;
1050:
1051: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053: | --oldin | --oldi | --old | --ol | --o)
1054: ac_prev=oldincludedir ;;
1055: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058: oldincludedir=$ac_optarg ;;
1059:
1060: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061: ac_prev=prefix ;;
1062: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063: prefix=$ac_optarg ;;
1064:
1065: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066: | --program-pre | --program-pr | --program-p)
1067: ac_prev=program_prefix ;;
1068: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070: program_prefix=$ac_optarg ;;
1071:
1072: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073: | --program-suf | --program-su | --program-s)
1074: ac_prev=program_suffix ;;
1075: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077: program_suffix=$ac_optarg ;;
1078:
1079: -program-transform-name | --program-transform-name \
1080: | --program-transform-nam | --program-transform-na \
1081: | --program-transform-n | --program-transform- \
1082: | --program-transform | --program-transfor \
1083: | --program-transfo | --program-transf \
1084: | --program-trans | --program-tran \
1085: | --progr-tra | --program-tr | --program-t)
1086: ac_prev=program_transform_name ;;
1087: -program-transform-name=* | --program-transform-name=* \
1088: | --program-transform-nam=* | --program-transform-na=* \
1089: | --program-transform-n=* | --program-transform-=* \
1090: | --program-transform=* | --program-transfor=* \
1091: | --program-transfo=* | --program-transf=* \
1092: | --program-trans=* | --program-tran=* \
1093: | --progr-tra=* | --program-tr=* | --program-t=*)
1094: program_transform_name=$ac_optarg ;;
1095:
1096: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097: ac_prev=pdfdir ;;
1098: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099: pdfdir=$ac_optarg ;;
1100:
1101: -psdir | --psdir | --psdi | --psd | --ps)
1102: ac_prev=psdir ;;
1103: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104: psdir=$ac_optarg ;;
1105:
1106: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107: | -silent | --silent | --silen | --sile | --sil)
1108: silent=yes ;;
1109:
1.1.1.3 ! misho 1110: -runstatedir | --runstatedir | --runstatedi | --runstated \
! 1111: | --runstate | --runstat | --runsta | --runst | --runs \
! 1112: | --run | --ru | --r)
! 1113: ac_prev=runstatedir ;;
! 1114: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
! 1115: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
! 1116: | --run=* | --ru=* | --r=*)
! 1117: runstatedir=$ac_optarg ;;
! 1118:
1.1 misho 1119: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120: ac_prev=sbindir ;;
1121: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122: | --sbi=* | --sb=*)
1123: sbindir=$ac_optarg ;;
1124:
1125: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127: | --sharedst | --shareds | --shared | --share | --shar \
1128: | --sha | --sh)
1129: ac_prev=sharedstatedir ;;
1130: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133: | --sha=* | --sh=*)
1134: sharedstatedir=$ac_optarg ;;
1135:
1136: -site | --site | --sit)
1137: ac_prev=site ;;
1138: -site=* | --site=* | --sit=*)
1139: site=$ac_optarg ;;
1140:
1141: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142: ac_prev=srcdir ;;
1143: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144: srcdir=$ac_optarg ;;
1145:
1146: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147: | --syscon | --sysco | --sysc | --sys | --sy)
1148: ac_prev=sysconfdir ;;
1149: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151: sysconfdir=$ac_optarg ;;
1152:
1153: -target | --target | --targe | --targ | --tar | --ta | --t)
1154: ac_prev=target_alias ;;
1155: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156: target_alias=$ac_optarg ;;
1157:
1158: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159: verbose=yes ;;
1160:
1161: -version | --version | --versio | --versi | --vers | -V)
1162: ac_init_version=: ;;
1163:
1164: -with-* | --with-*)
1165: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166: # Reject names that are not valid shell variable names.
1167: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.3 ! misho 1168: as_fn_error $? "invalid package name: \`$ac_useropt'"
1.1 misho 1169: ac_useropt_orig=$ac_useropt
1.1.1.3 ! misho 1170: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 1171: case $ac_user_opts in
1172: *"
1173: "with_$ac_useropt"
1174: "*) ;;
1175: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176: ac_unrecognized_sep=', ';;
1177: esac
1178: eval with_$ac_useropt=\$ac_optarg ;;
1179:
1180: -without-* | --without-*)
1181: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182: # Reject names that are not valid shell variable names.
1183: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.3 ! misho 1184: as_fn_error $? "invalid package name: \`$ac_useropt'"
1.1 misho 1185: ac_useropt_orig=$ac_useropt
1.1.1.3 ! misho 1186: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 1187: case $ac_user_opts in
1188: *"
1189: "with_$ac_useropt"
1190: "*) ;;
1191: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192: ac_unrecognized_sep=', ';;
1193: esac
1194: eval with_$ac_useropt=no ;;
1195:
1196: --x)
1197: # Obsolete; use --with-x.
1198: with_x=yes ;;
1199:
1200: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201: | --x-incl | --x-inc | --x-in | --x-i)
1202: ac_prev=x_includes ;;
1203: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205: x_includes=$ac_optarg ;;
1206:
1207: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209: ac_prev=x_libraries ;;
1210: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212: x_libraries=$ac_optarg ;;
1213:
1214: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215: Try \`$0 --help' for more information"
1216: ;;
1217:
1218: *=*)
1219: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220: # Reject names that are not valid shell variable names.
1221: case $ac_envvar in #(
1222: '' | [0-9]* | *[!_$as_cr_alnum]* )
1223: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224: esac
1225: eval $ac_envvar=\$ac_optarg
1226: export $ac_envvar ;;
1227:
1228: *)
1229: # FIXME: should be removed in autoconf 3.0.
1.1.1.3 ! misho 1230: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misho 1231: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.3 ! misho 1232: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 misho 1233: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234: ;;
1235:
1236: esac
1237: done
1238:
1239: if test -n "$ac_prev"; then
1240: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241: as_fn_error $? "missing argument to $ac_option"
1242: fi
1243:
1244: if test -n "$ac_unrecognized_opts"; then
1245: case $enable_option_checking in
1246: no) ;;
1247: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.1.1.3 ! misho 1248: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.1 misho 1249: esac
1250: fi
1251:
1252: # Check all directory arguments for consistency.
1253: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254: datadir sysconfdir sharedstatedir localstatedir includedir \
1255: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.1.1.3 ! misho 1256: libdir localedir mandir runstatedir
1.1 misho 1257: do
1258: eval ac_val=\$$ac_var
1259: # Remove trailing slashes.
1260: case $ac_val in
1261: */ )
1262: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263: eval $ac_var=\$ac_val;;
1264: esac
1265: # Be sure to have absolute directory names.
1266: case $ac_val in
1267: [\\/$]* | ?:[\\/]* ) continue;;
1268: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269: esac
1270: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271: done
1272:
1273: # There might be people who depend on the old broken behavior: `$host'
1274: # used to hold the argument of --host etc.
1275: # FIXME: To remove some day.
1276: build=$build_alias
1277: host=$host_alias
1278: target=$target_alias
1279:
1280: # FIXME: To remove some day.
1281: if test "x$host_alias" != x; then
1282: if test "x$build_alias" = x; then
1283: cross_compiling=maybe
1284: elif test "x$build_alias" != "x$host_alias"; then
1285: cross_compiling=yes
1286: fi
1287: fi
1288:
1289: ac_tool_prefix=
1290: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291:
1292: test "$silent" = yes && exec 6>/dev/null
1293:
1294:
1295: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296: ac_ls_di=`ls -di .` &&
1297: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298: as_fn_error $? "working directory cannot be determined"
1299: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300: as_fn_error $? "pwd does not report name of working directory"
1301:
1302:
1303: # Find the source files, if location was not specified.
1304: if test -z "$srcdir"; then
1305: ac_srcdir_defaulted=yes
1306: # Try the directory containing this script, then the parent directory.
1307: ac_confdir=`$as_dirname -- "$as_myself" ||
1308: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309: X"$as_myself" : 'X\(//\)[^/]' \| \
1310: X"$as_myself" : 'X\(//\)$' \| \
1311: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 1312: printf "%s\n" X"$as_myself" |
1.1 misho 1313: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314: s//\1/
1315: q
1316: }
1317: /^X\(\/\/\)[^/].*/{
1318: s//\1/
1319: q
1320: }
1321: /^X\(\/\/\)$/{
1322: s//\1/
1323: q
1324: }
1325: /^X\(\/\).*/{
1326: s//\1/
1327: q
1328: }
1329: s/.*/./; q'`
1330: srcdir=$ac_confdir
1331: if test ! -r "$srcdir/$ac_unique_file"; then
1332: srcdir=..
1333: fi
1334: else
1335: ac_srcdir_defaulted=no
1336: fi
1337: if test ! -r "$srcdir/$ac_unique_file"; then
1338: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340: fi
1341: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342: ac_abs_confdir=`(
1343: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344: pwd)`
1345: # When building in place, set srcdir=.
1346: if test "$ac_abs_confdir" = "$ac_pwd"; then
1347: srcdir=.
1348: fi
1349: # Remove unnecessary trailing slashes from srcdir.
1350: # Double slashes in file names in object file debugging info
1351: # mess up M-x gdb in Emacs.
1352: case $srcdir in
1353: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354: esac
1355: for ac_var in $ac_precious_vars; do
1356: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357: eval ac_env_${ac_var}_value=\$${ac_var}
1358: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360: done
1361:
1362: #
1363: # Report the --help message.
1364: #
1365: if test "$ac_init_help" = "long"; then
1366: # Omit some internal or obsolete options to make the list less imposing.
1367: # This message is too long to be a string in the A/UX 3.1 sh.
1368: cat <<_ACEOF
1.1.1.3 ! misho 1369: \`configure' configures iperf 3.15 to adapt to many kinds of systems.
1.1 misho 1370:
1371: Usage: $0 [OPTION]... [VAR=VALUE]...
1372:
1373: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374: VAR=VALUE. See below for descriptions of some of the useful variables.
1375:
1376: Defaults for the options are specified in brackets.
1377:
1378: Configuration:
1379: -h, --help display this help and exit
1380: --help=short display options specific to this package
1381: --help=recursive display the short help of all the included packages
1382: -V, --version display version information and exit
1383: -q, --quiet, --silent do not print \`checking ...' messages
1384: --cache-file=FILE cache test results in FILE [disabled]
1385: -C, --config-cache alias for \`--cache-file=config.cache'
1386: -n, --no-create do not create output files
1387: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388:
1389: Installation directories:
1390: --prefix=PREFIX install architecture-independent files in PREFIX
1391: [$ac_default_prefix]
1392: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393: [PREFIX]
1394:
1395: By default, \`make install' will install all the files in
1396: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398: for instance \`--prefix=\$HOME'.
1399:
1400: For better control, use the options below.
1401:
1402: Fine tuning of the installation directories:
1403: --bindir=DIR user executables [EPREFIX/bin]
1404: --sbindir=DIR system admin executables [EPREFIX/sbin]
1405: --libexecdir=DIR program executables [EPREFIX/libexec]
1406: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.1.1.3 ! misho 1409: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 misho 1410: --libdir=DIR object code libraries [EPREFIX/lib]
1411: --includedir=DIR C header files [PREFIX/include]
1412: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415: --infodir=DIR info documentation [DATAROOTDIR/info]
1416: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417: --mandir=DIR man documentation [DATAROOTDIR/man]
1418: --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1419: --htmldir=DIR html documentation [DOCDIR]
1420: --dvidir=DIR dvi documentation [DOCDIR]
1421: --pdfdir=DIR pdf documentation [DOCDIR]
1422: --psdir=DIR ps documentation [DOCDIR]
1423: _ACEOF
1424:
1425: cat <<\_ACEOF
1426:
1427: Program names:
1428: --program-prefix=PREFIX prepend PREFIX to installed program names
1429: --program-suffix=SUFFIX append SUFFIX to installed program names
1430: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431:
1432: System types:
1433: --build=BUILD configure for building on BUILD [guessed]
1434: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435: _ACEOF
1436: fi
1437:
1438: if test -n "$ac_init_help"; then
1439: case $ac_init_help in
1.1.1.3 ! misho 1440: short | recursive ) echo "Configuration of iperf 3.15:";;
1.1 misho 1441: esac
1442: cat <<\_ACEOF
1443:
1444: Optional Features:
1445: --disable-option-checking ignore unrecognized --enable/--with options
1446: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 misho 1448: --enable-static-bin link iperf3 binary statically
1.1 misho 1449: --enable-silent-rules less verbose build output (undo: "make V=1")
1450: --disable-silent-rules verbose build output (undo: "make V=0")
1451: --enable-shared[=PKGS] build shared libraries [default=yes]
1452: --enable-static[=PKGS] build static libraries [default=yes]
1453: --enable-fast-install[=PKGS]
1454: optimize for fast installation [default=yes]
1.1.1.2 misho 1455: --enable-dependency-tracking
1456: do not reject slow dependency extractors
1457: --disable-dependency-tracking
1458: speeds up one-time build
1.1 misho 1459: --disable-libtool-lock avoid locking (might break parallel builds)
1.1.1.2 misho 1460: --enable-maintainer-mode
1461: enable make rules and dependencies not useful (and
1462: sometimes confusing) to the casual installer
1463: --enable-profiling Enable iperf3 profiling binary
1.1 misho 1464:
1465: Optional Packages:
1466: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469: both]
1470: --with-aix-soname=aix|svr4|both
1471: shared library versioning (aka "SONAME") variant to
1472: provide on AIX, [default=aix].
1473: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1474: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1475: compiler's sysroot if not specified).
1.1.1.2 misho 1476: --without-sctp disable SCTP
1477: --with-openssl=DIR root of the OpenSSL directory
1.1 misho 1478:
1479: Some influential environment variables:
1480: CC C compiler command
1481: CFLAGS C compiler flags
1482: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483: nonstandard directory <lib dir>
1484: LIBS libraries to pass to the linker, e.g. -l<library>
1485: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486: you have headers in a nonstandard directory <include dir>
1487: LT_SYS_LIBRARY_PATH
1488: User-defined run-time library search path.
1489:
1490: Use these variables to override the choices made by `configure' or to help
1491: it to find libraries and programs with nonstandard names/locations.
1492:
1493: Report bugs to <https://github.com/esnet/iperf>.
1.1.1.2 misho 1494: iperf home page: <https://software.es.net/iperf/>.
1.1 misho 1495: _ACEOF
1496: ac_status=$?
1497: fi
1498:
1499: if test "$ac_init_help" = "recursive"; then
1500: # If there are subdirs, report their specific --help.
1501: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502: test -d "$ac_dir" ||
1503: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504: continue
1505: ac_builddir=.
1506:
1507: case "$ac_dir" in
1508: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509: *)
1.1.1.3 ! misho 1510: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 misho 1511: # A ".." for each directory in $ac_dir_suffix.
1.1.1.3 ! misho 1512: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 misho 1513: case $ac_top_builddir_sub in
1514: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516: esac ;;
1517: esac
1518: ac_abs_top_builddir=$ac_pwd
1519: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520: # for backward compatibility:
1521: ac_top_builddir=$ac_top_build_prefix
1522:
1523: case $srcdir in
1524: .) # We are building in place.
1525: ac_srcdir=.
1526: ac_top_srcdir=$ac_top_builddir_sub
1527: ac_abs_top_srcdir=$ac_pwd ;;
1528: [\\/]* | ?:[\\/]* ) # Absolute name.
1529: ac_srcdir=$srcdir$ac_dir_suffix;
1530: ac_top_srcdir=$srcdir
1531: ac_abs_top_srcdir=$srcdir ;;
1532: *) # Relative name.
1533: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534: ac_top_srcdir=$ac_top_build_prefix$srcdir
1535: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536: esac
1537: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538:
1539: cd "$ac_dir" || { ac_status=$?; continue; }
1.1.1.3 ! misho 1540: # Check for configure.gnu first; this name is used for a wrapper for
! 1541: # Metaconfig's "Configure" on case-insensitive file systems.
1.1 misho 1542: if test -f "$ac_srcdir/configure.gnu"; then
1543: echo &&
1544: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545: elif test -f "$ac_srcdir/configure"; then
1546: echo &&
1547: $SHELL "$ac_srcdir/configure" --help=recursive
1548: else
1.1.1.3 ! misho 1549: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 misho 1550: fi || ac_status=$?
1551: cd "$ac_pwd" || { ac_status=$?; break; }
1552: done
1553: fi
1554:
1555: test -n "$ac_init_help" && exit $ac_status
1556: if $ac_init_version; then
1557: cat <<\_ACEOF
1.1.1.3 ! misho 1558: iperf configure 3.15
! 1559: generated by GNU Autoconf 2.71
1.1 misho 1560:
1.1.1.3 ! misho 1561: Copyright (C) 2021 Free Software Foundation, Inc.
1.1 misho 1562: This configure script is free software; the Free Software Foundation
1563: gives unlimited permission to copy, distribute and modify it.
1564: _ACEOF
1565: exit
1566: fi
1567:
1568: ## ------------------------ ##
1569: ## Autoconf initialization. ##
1570: ## ------------------------ ##
1571:
1572: # ac_fn_c_try_compile LINENO
1573: # --------------------------
1574: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575: ac_fn_c_try_compile ()
1576: {
1577: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 1578: rm -f conftest.$ac_objext conftest.beam
1.1 misho 1579: if { { ac_try="$ac_compile"
1580: case "(($ac_try" in
1581: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582: *) ac_try_echo=$ac_try;;
1583: esac
1584: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 1585: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1586: (eval "$ac_compile") 2>conftest.err
1587: ac_status=$?
1588: if test -s conftest.err; then
1589: grep -v '^ *+' conftest.err >conftest.er1
1590: cat conftest.er1 >&5
1591: mv -f conftest.er1 conftest.err
1592: fi
1.1.1.3 ! misho 1593: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 1594: test $ac_status = 0; } && {
1595: test -z "$ac_c_werror_flag" ||
1596: test ! -s conftest.err
1.1.1.3 ! misho 1597: } && test -s conftest.$ac_objext
! 1598: then :
1.1 misho 1599: ac_retval=0
1.1.1.3 ! misho 1600: else $as_nop
! 1601: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 1602: sed 's/^/| /' conftest.$ac_ext >&5
1603:
1604: ac_retval=1
1605: fi
1606: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607: as_fn_set_status $ac_retval
1608:
1609: } # ac_fn_c_try_compile
1610:
1611: # ac_fn_c_try_link LINENO
1612: # -----------------------
1613: # Try to link conftest.$ac_ext, and return whether this succeeded.
1614: ac_fn_c_try_link ()
1615: {
1616: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 1617: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.1 misho 1618: if { { ac_try="$ac_link"
1619: case "(($ac_try" in
1620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621: *) ac_try_echo=$ac_try;;
1622: esac
1623: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 1624: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1625: (eval "$ac_link") 2>conftest.err
1626: ac_status=$?
1627: if test -s conftest.err; then
1628: grep -v '^ *+' conftest.err >conftest.er1
1629: cat conftest.er1 >&5
1630: mv -f conftest.er1 conftest.err
1631: fi
1.1.1.3 ! misho 1632: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 1633: test $ac_status = 0; } && {
1634: test -z "$ac_c_werror_flag" ||
1635: test ! -s conftest.err
1636: } && test -s conftest$ac_exeext && {
1637: test "$cross_compiling" = yes ||
1638: test -x conftest$ac_exeext
1.1.1.3 ! misho 1639: }
! 1640: then :
1.1 misho 1641: ac_retval=0
1.1.1.3 ! misho 1642: else $as_nop
! 1643: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 1644: sed 's/^/| /' conftest.$ac_ext >&5
1645:
1646: ac_retval=1
1647: fi
1648: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650: # interfere with the next link command; also delete a directory that is
1651: # left behind by Apple's compiler. We do this before executing the actions.
1652: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654: as_fn_set_status $ac_retval
1655:
1656: } # ac_fn_c_try_link
1657:
1658: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659: # -------------------------------------------------------
1660: # Tests whether HEADER exists and can be compiled using the include files in
1661: # INCLUDES, setting the cache variable VAR accordingly.
1662: ac_fn_c_check_header_compile ()
1663: {
1664: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 1665: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1666: printf %s "checking for $2... " >&6; }
! 1667: if eval test \${$3+y}
! 1668: then :
! 1669: printf %s "(cached) " >&6
! 1670: else $as_nop
1.1 misho 1671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672: /* end confdefs.h. */
1673: $4
1674: #include <$2>
1675: _ACEOF
1.1.1.3 ! misho 1676: if ac_fn_c_try_compile "$LINENO"
! 1677: then :
1.1 misho 1678: eval "$3=yes"
1.1.1.3 ! misho 1679: else $as_nop
1.1 misho 1680: eval "$3=no"
1681: fi
1.1.1.3 ! misho 1682: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 1683: fi
1684: eval ac_res=\$$3
1.1.1.3 ! misho 1685: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1686: printf "%s\n" "$ac_res" >&6; }
1.1 misho 1687: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688:
1689: } # ac_fn_c_check_header_compile
1690:
1691: # ac_fn_c_check_func LINENO FUNC VAR
1692: # ----------------------------------
1693: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1694: ac_fn_c_check_func ()
1695: {
1696: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 1697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1698: printf %s "checking for $2... " >&6; }
! 1699: if eval test \${$3+y}
! 1700: then :
! 1701: printf %s "(cached) " >&6
! 1702: else $as_nop
1.1 misho 1703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704: /* end confdefs.h. */
1705: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1706: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1707: #define $2 innocuous_$2
1708:
1709: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.3 ! misho 1710: which can conflict with char $2 (); below. */
1.1 misho 1711:
1.1.1.3 ! misho 1712: #include <limits.h>
1.1 misho 1713: #undef $2
1714:
1715: /* Override any GCC internal prototype to avoid an error.
1716: Use char because int might match the return type of a GCC
1717: builtin and then its argument prototype would still apply. */
1718: #ifdef __cplusplus
1719: extern "C"
1720: #endif
1721: char $2 ();
1722: /* The GNU C library defines this for functions which it implements
1723: to always fail with ENOSYS. Some functions are actually named
1724: something starting with __ and the normal name is an alias. */
1725: #if defined __stub_$2 || defined __stub___$2
1726: choke me
1727: #endif
1728:
1729: int
1.1.1.3 ! misho 1730: main (void)
1.1 misho 1731: {
1732: return $2 ();
1733: ;
1734: return 0;
1735: }
1736: _ACEOF
1.1.1.3 ! misho 1737: if ac_fn_c_try_link "$LINENO"
! 1738: then :
1.1 misho 1739: eval "$3=yes"
1.1.1.3 ! misho 1740: else $as_nop
1.1 misho 1741: eval "$3=no"
1742: fi
1.1.1.3 ! misho 1743: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 1744: conftest$ac_exeext conftest.$ac_ext
1745: fi
1746: eval ac_res=\$$3
1.1.1.3 ! misho 1747: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1748: printf "%s\n" "$ac_res" >&6; }
1.1 misho 1749: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750:
1751: } # ac_fn_c_check_func
1752:
1.1.1.3 ! misho 1753: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
! 1754: # ----------------------------------------------------
! 1755: # Tries to find if the field MEMBER exists in type AGGR, after including
! 1756: # INCLUDES, setting cache variable VAR accordingly.
! 1757: ac_fn_c_check_member ()
1.1 misho 1758: {
1759: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 1760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
! 1761: printf %s "checking for $2.$3... " >&6; }
! 1762: if eval test \${$4+y}
! 1763: then :
! 1764: printf %s "(cached) " >&6
! 1765: else $as_nop
! 1766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 1767: /* end confdefs.h. */
1.1.1.3 ! misho 1768: $5
! 1769: int
! 1770: main (void)
! 1771: {
! 1772: static $2 ac_aggr;
! 1773: if (ac_aggr.$3)
! 1774: return 0;
! 1775: ;
! 1776: return 0;
! 1777: }
1.1 misho 1778: _ACEOF
1.1.1.3 ! misho 1779: if ac_fn_c_try_compile "$LINENO"
! 1780: then :
! 1781: eval "$4=yes"
! 1782: else $as_nop
! 1783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 1784: /* end confdefs.h. */
1.1.1.3 ! misho 1785: $5
! 1786: int
! 1787: main (void)
! 1788: {
! 1789: static $2 ac_aggr;
! 1790: if (sizeof ac_aggr.$3)
! 1791: return 0;
! 1792: ;
! 1793: return 0;
! 1794: }
1.1 misho 1795: _ACEOF
1.1.1.3 ! misho 1796: if ac_fn_c_try_compile "$LINENO"
! 1797: then :
! 1798: eval "$4=yes"
! 1799: else $as_nop
! 1800: eval "$4=no"
! 1801: fi
! 1802: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 1803: fi
! 1804: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 1805: fi
! 1806: eval ac_res=\$$4
! 1807: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1808: printf "%s\n" "$ac_res" >&6; }
1.1 misho 1809: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810:
1.1.1.3 ! misho 1811: } # ac_fn_c_check_member
! 1812: ac_configure_args_raw=
! 1813: for ac_arg
! 1814: do
! 1815: case $ac_arg in
! 1816: *\'*)
! 1817: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1818: esac
! 1819: as_fn_append ac_configure_args_raw " '$ac_arg'"
! 1820: done
! 1821:
! 1822: case $ac_configure_args_raw in
! 1823: *$as_nl*)
! 1824: ac_safe_unquote= ;;
! 1825: *)
! 1826: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
! 1827: ac_unsafe_a="$ac_unsafe_z#~"
! 1828: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
! 1829: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
! 1830: esac
! 1831:
1.1 misho 1832: cat >config.log <<_ACEOF
1833: This file contains any messages produced by compilers while
1834: running configure, to aid debugging if configure makes a mistake.
1835:
1.1.1.3 ! misho 1836: It was created by iperf $as_me 3.15, which was
! 1837: generated by GNU Autoconf 2.71. Invocation command line was
1.1 misho 1838:
1.1.1.3 ! misho 1839: $ $0$ac_configure_args_raw
1.1 misho 1840:
1841: _ACEOF
1842: exec 5>>config.log
1843: {
1844: cat <<_ASUNAME
1845: ## --------- ##
1846: ## Platform. ##
1847: ## --------- ##
1848:
1849: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1850: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1851: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1852: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1853: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1854:
1855: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1856: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1857:
1858: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1859: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1860: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1861: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1862: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1863: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1864: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1865:
1866: _ASUNAME
1867:
1868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869: for as_dir in $PATH
1870: do
1871: IFS=$as_save_IFS
1.1.1.3 ! misho 1872: case $as_dir in #(((
! 1873: '') as_dir=./ ;;
! 1874: */) ;;
! 1875: *) as_dir=$as_dir/ ;;
! 1876: esac
! 1877: printf "%s\n" "PATH: $as_dir"
1.1 misho 1878: done
1879: IFS=$as_save_IFS
1880:
1881: } >&5
1882:
1883: cat >&5 <<_ACEOF
1884:
1885:
1886: ## ----------- ##
1887: ## Core tests. ##
1888: ## ----------- ##
1889:
1890: _ACEOF
1891:
1892:
1893: # Keep a trace of the command line.
1894: # Strip out --no-create and --no-recursion so they do not pile up.
1895: # Strip out --silent because we don't want to record it for future runs.
1896: # Also quote any args containing shell meta-characters.
1897: # Make two passes to allow for proper duplicate-argument suppression.
1898: ac_configure_args=
1899: ac_configure_args0=
1900: ac_configure_args1=
1901: ac_must_keep_next=false
1902: for ac_pass in 1 2
1903: do
1904: for ac_arg
1905: do
1906: case $ac_arg in
1907: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909: | -silent | --silent | --silen | --sile | --sil)
1910: continue ;;
1911: *\'*)
1.1.1.3 ! misho 1912: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 1913: esac
1914: case $ac_pass in
1915: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1916: 2)
1917: as_fn_append ac_configure_args1 " '$ac_arg'"
1918: if test $ac_must_keep_next = true; then
1919: ac_must_keep_next=false # Got value, back to normal.
1920: else
1921: case $ac_arg in
1922: *=* | --config-cache | -C | -disable-* | --disable-* \
1923: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925: | -with-* | --with-* | -without-* | --without-* | --x)
1926: case "$ac_configure_args0 " in
1927: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928: esac
1929: ;;
1930: -* ) ac_must_keep_next=true ;;
1931: esac
1932: fi
1933: as_fn_append ac_configure_args " '$ac_arg'"
1934: ;;
1935: esac
1936: done
1937: done
1938: { ac_configure_args0=; unset ac_configure_args0;}
1939: { ac_configure_args1=; unset ac_configure_args1;}
1940:
1941: # When interrupted or exit'd, cleanup temporary files, and complete
1942: # config.log. We remove comments because anyway the quotes in there
1943: # would cause problems or look ugly.
1944: # WARNING: Use '\'' to represent an apostrophe within the trap.
1945: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946: trap 'exit_status=$?
1.1.1.3 ! misho 1947: # Sanitize IFS.
! 1948: IFS=" "" $as_nl"
1.1 misho 1949: # Save into config.log some information that might help in debugging.
1950: {
1951: echo
1952:
1.1.1.3 ! misho 1953: printf "%s\n" "## ---------------- ##
1.1 misho 1954: ## Cache variables. ##
1955: ## ---------------- ##"
1956: echo
1957: # The following way of writing the cache mishandles newlines in values,
1958: (
1959: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960: eval ac_val=\$$ac_var
1961: case $ac_val in #(
1962: *${as_nl}*)
1963: case $ac_var in #(
1.1.1.3 ! misho 1964: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 1965: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 misho 1966: esac
1967: case $ac_var in #(
1968: _ | IFS | as_nl) ;; #(
1969: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970: *) { eval $ac_var=; unset $ac_var;} ;;
1971: esac ;;
1972: esac
1973: done
1974: (set) 2>&1 |
1975: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976: *${as_nl}ac_space=\ *)
1977: sed -n \
1978: "s/'\''/'\''\\\\'\'''\''/g;
1979: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1980: ;; #(
1981: *)
1982: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1983: ;;
1984: esac |
1985: sort
1986: )
1987: echo
1988:
1.1.1.3 ! misho 1989: printf "%s\n" "## ----------------- ##
1.1 misho 1990: ## Output variables. ##
1991: ## ----------------- ##"
1992: echo
1993: for ac_var in $ac_subst_vars
1994: do
1995: eval ac_val=\$$ac_var
1996: case $ac_val in
1.1.1.3 ! misho 1997: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 1998: esac
1.1.1.3 ! misho 1999: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 misho 2000: done | sort
2001: echo
2002:
2003: if test -n "$ac_subst_files"; then
1.1.1.3 ! misho 2004: printf "%s\n" "## ------------------- ##
1.1 misho 2005: ## File substitutions. ##
2006: ## ------------------- ##"
2007: echo
2008: for ac_var in $ac_subst_files
2009: do
2010: eval ac_val=\$$ac_var
2011: case $ac_val in
1.1.1.3 ! misho 2012: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 2013: esac
1.1.1.3 ! misho 2014: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 misho 2015: done | sort
2016: echo
2017: fi
2018:
2019: if test -s confdefs.h; then
1.1.1.3 ! misho 2020: printf "%s\n" "## ----------- ##
1.1 misho 2021: ## confdefs.h. ##
2022: ## ----------- ##"
2023: echo
2024: cat confdefs.h
2025: echo
2026: fi
2027: test "$ac_signal" != 0 &&
1.1.1.3 ! misho 2028: printf "%s\n" "$as_me: caught signal $ac_signal"
! 2029: printf "%s\n" "$as_me: exit $exit_status"
1.1 misho 2030: } >&5
2031: rm -f core *.core core.conftest.* &&
2032: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2033: exit $exit_status
2034: ' 0
2035: for ac_signal in 1 2 13 15; do
2036: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2037: done
2038: ac_signal=0
2039:
2040: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2041: rm -f -r conftest* confdefs.h
2042:
1.1.1.3 ! misho 2043: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.1 misho 2044:
2045: # Predefined preprocessor variables.
2046:
1.1.1.3 ! misho 2047: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.1 misho 2048:
1.1.1.3 ! misho 2049: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.1 misho 2050:
1.1.1.3 ! misho 2051: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.1 misho 2052:
1.1.1.3 ! misho 2053: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.1 misho 2054:
1.1.1.3 ! misho 2055: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.1 misho 2056:
1.1.1.3 ! misho 2057: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.1 misho 2058:
2059:
2060: # Let the site file select an alternate cache file if it wants to.
2061: # Prefer an explicitly selected file to automatically selected ones.
2062: if test -n "$CONFIG_SITE"; then
1.1.1.3 ! misho 2063: ac_site_files="$CONFIG_SITE"
1.1 misho 2064: elif test "x$prefix" != xNONE; then
1.1.1.3 ! misho 2065: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.1 misho 2066: else
1.1.1.3 ! misho 2067: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1 misho 2068: fi
1.1.1.3 ! misho 2069:
! 2070: for ac_site_file in $ac_site_files
1.1 misho 2071: do
1.1.1.3 ! misho 2072: case $ac_site_file in #(
! 2073: */*) :
! 2074: ;; #(
! 2075: *) :
! 2076: ac_site_file=./$ac_site_file ;;
! 2077: esac
! 2078: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
! 2079: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
! 2080: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.1 misho 2081: sed 's/^/| /' "$ac_site_file" >&5
2082: . "$ac_site_file" \
1.1.1.3 ! misho 2083: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2084: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 misho 2085: as_fn_error $? "failed to load site script $ac_site_file
2086: See \`config.log' for more details" "$LINENO" 5; }
2087: fi
2088: done
2089:
2090: if test -r "$cache_file"; then
2091: # Some versions of bash will fail to source /dev/null (special files
2092: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2093: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.1.1.3 ! misho 2094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
! 2095: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.1 misho 2096: case $cache_file in
2097: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2098: *) . "./$cache_file";;
2099: esac
2100: fi
2101: else
1.1.1.3 ! misho 2102: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
! 2103: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.1 misho 2104: >$cache_file
2105: fi
2106:
1.1.1.3 ! misho 2107: # Test code for whether the C compiler supports C89 (global declarations)
! 2108: ac_c_conftest_c89_globals='
! 2109: /* Does the compiler advertise C89 conformance?
! 2110: Do not test the value of __STDC__, because some compilers set it to 0
! 2111: while being otherwise adequately conformant. */
! 2112: #if !defined __STDC__
! 2113: # error "Compiler does not advertise C89 conformance"
! 2114: #endif
1.1 misho 2115:
1.1.1.3 ! misho 2116: #include <stddef.h>
! 2117: #include <stdarg.h>
! 2118: struct stat;
! 2119: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
! 2120: struct buf { int x; };
! 2121: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
! 2122: static char *e (p, i)
! 2123: char **p;
! 2124: int i;
! 2125: {
! 2126: return p[i];
! 2127: }
! 2128: static char *f (char * (*g) (char **, int), char **p, ...)
! 2129: {
! 2130: char *s;
! 2131: va_list v;
! 2132: va_start (v,p);
! 2133: s = g (p, va_arg (v,int));
! 2134: va_end (v);
! 2135: return s;
! 2136: }
1.1 misho 2137:
1.1.1.3 ! misho 2138: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 2139: function prototypes and stuff, but not \xHH hex character constants.
! 2140: These do not provoke an error unfortunately, instead are silently treated
! 2141: as an "x". The following induces an error, until -std is added to get
! 2142: proper ANSI mode. Curiously \x00 != x always comes out true, for an
! 2143: array size at least. It is necessary to write \x00 == 0 to get something
! 2144: that is true only with -std. */
! 2145: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1.1 misho 2146:
1.1.1.3 ! misho 2147: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 2148: inside strings and character constants. */
! 2149: #define FOO(x) '\''x'\''
! 2150: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
! 2151:
! 2152: int test (int i, double x);
! 2153: struct s1 {int (*f) (int a);};
! 2154: struct s2 {int (*f) (double a);};
! 2155: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
! 2156: int, int);'
! 2157:
! 2158: # Test code for whether the C compiler supports C89 (body of main).
! 2159: ac_c_conftest_c89_main='
! 2160: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
! 2161: '
! 2162:
! 2163: # Test code for whether the C compiler supports C99 (global declarations)
! 2164: ac_c_conftest_c99_globals='
! 2165: // Does the compiler advertise C99 conformance?
! 2166: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
! 2167: # error "Compiler does not advertise C99 conformance"
! 2168: #endif
! 2169:
! 2170: #include <stdbool.h>
! 2171: extern int puts (const char *);
! 2172: extern int printf (const char *, ...);
! 2173: extern int dprintf (int, const char *, ...);
! 2174: extern void *malloc (size_t);
! 2175:
! 2176: // Check varargs macros. These examples are taken from C99 6.10.3.5.
! 2177: // dprintf is used instead of fprintf to avoid needing to declare
! 2178: // FILE and stderr.
! 2179: #define debug(...) dprintf (2, __VA_ARGS__)
! 2180: #define showlist(...) puts (#__VA_ARGS__)
! 2181: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
! 2182: static void
! 2183: test_varargs_macros (void)
! 2184: {
! 2185: int x = 1234;
! 2186: int y = 5678;
! 2187: debug ("Flag");
! 2188: debug ("X = %d\n", x);
! 2189: showlist (The first, second, and third items.);
! 2190: report (x>y, "x is %d but y is %d", x, y);
! 2191: }
! 2192:
! 2193: // Check long long types.
! 2194: #define BIG64 18446744073709551615ull
! 2195: #define BIG32 4294967295ul
! 2196: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
! 2197: #if !BIG_OK
! 2198: #error "your preprocessor is broken"
! 2199: #endif
! 2200: #if BIG_OK
! 2201: #else
! 2202: #error "your preprocessor is broken"
! 2203: #endif
! 2204: static long long int bignum = -9223372036854775807LL;
! 2205: static unsigned long long int ubignum = BIG64;
! 2206:
! 2207: struct incomplete_array
! 2208: {
! 2209: int datasize;
! 2210: double data[];
! 2211: };
! 2212:
! 2213: struct named_init {
! 2214: int number;
! 2215: const wchar_t *name;
! 2216: double average;
! 2217: };
! 2218:
! 2219: typedef const char *ccp;
! 2220:
! 2221: static inline int
! 2222: test_restrict (ccp restrict text)
! 2223: {
! 2224: // See if C++-style comments work.
! 2225: // Iterate through items via the restricted pointer.
! 2226: // Also check for declarations in for loops.
! 2227: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
! 2228: continue;
! 2229: return 0;
! 2230: }
! 2231:
! 2232: // Check varargs and va_copy.
! 2233: static bool
! 2234: test_varargs (const char *format, ...)
! 2235: {
! 2236: va_list args;
! 2237: va_start (args, format);
! 2238: va_list args_copy;
! 2239: va_copy (args_copy, args);
! 2240:
! 2241: const char *str = "";
! 2242: int number = 0;
! 2243: float fnumber = 0;
! 2244:
! 2245: while (*format)
! 2246: {
! 2247: switch (*format++)
! 2248: {
! 2249: case '\''s'\'': // string
! 2250: str = va_arg (args_copy, const char *);
! 2251: break;
! 2252: case '\''d'\'': // int
! 2253: number = va_arg (args_copy, int);
! 2254: break;
! 2255: case '\''f'\'': // float
! 2256: fnumber = va_arg (args_copy, double);
! 2257: break;
! 2258: default:
! 2259: break;
! 2260: }
! 2261: }
! 2262: va_end (args_copy);
! 2263: va_end (args);
! 2264:
! 2265: return *str && number && fnumber;
! 2266: }
! 2267: '
! 2268:
! 2269: # Test code for whether the C compiler supports C99 (body of main).
! 2270: ac_c_conftest_c99_main='
! 2271: // Check bool.
! 2272: _Bool success = false;
! 2273: success |= (argc != 0);
! 2274:
! 2275: // Check restrict.
! 2276: if (test_restrict ("String literal") == 0)
! 2277: success = true;
! 2278: char *restrict newvar = "Another string";
! 2279:
! 2280: // Check varargs.
! 2281: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
! 2282: test_varargs_macros ();
! 2283:
! 2284: // Check flexible array members.
! 2285: struct incomplete_array *ia =
! 2286: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
! 2287: ia->datasize = 10;
! 2288: for (int i = 0; i < ia->datasize; ++i)
! 2289: ia->data[i] = i * 1.234;
! 2290:
! 2291: // Check named initializers.
! 2292: struct named_init ni = {
! 2293: .number = 34,
! 2294: .name = L"Test wide string",
! 2295: .average = 543.34343,
! 2296: };
! 2297:
! 2298: ni.number = 58;
! 2299:
! 2300: int dynamic_array[ni.number];
! 2301: dynamic_array[0] = argv[0][0];
! 2302: dynamic_array[ni.number - 1] = 543;
! 2303:
! 2304: // work around unused variable warnings
! 2305: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
! 2306: || dynamic_array[ni.number - 1] != 543);
! 2307: '
! 2308:
! 2309: # Test code for whether the C compiler supports C11 (global declarations)
! 2310: ac_c_conftest_c11_globals='
! 2311: // Does the compiler advertise C11 conformance?
! 2312: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
! 2313: # error "Compiler does not advertise C11 conformance"
! 2314: #endif
! 2315:
! 2316: // Check _Alignas.
! 2317: char _Alignas (double) aligned_as_double;
! 2318: char _Alignas (0) no_special_alignment;
! 2319: extern char aligned_as_int;
! 2320: char _Alignas (0) _Alignas (int) aligned_as_int;
! 2321:
! 2322: // Check _Alignof.
! 2323: enum
! 2324: {
! 2325: int_alignment = _Alignof (int),
! 2326: int_array_alignment = _Alignof (int[100]),
! 2327: char_alignment = _Alignof (char)
! 2328: };
! 2329: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
! 2330:
! 2331: // Check _Noreturn.
! 2332: int _Noreturn does_not_return (void) { for (;;) continue; }
! 2333:
! 2334: // Check _Static_assert.
! 2335: struct test_static_assert
! 2336: {
! 2337: int x;
! 2338: _Static_assert (sizeof (int) <= sizeof (long int),
! 2339: "_Static_assert does not work in struct");
! 2340: long int y;
! 2341: };
! 2342:
! 2343: // Check UTF-8 literals.
! 2344: #define u8 syntax error!
! 2345: char const utf8_literal[] = u8"happens to be ASCII" "another string";
! 2346:
! 2347: // Check duplicate typedefs.
! 2348: typedef long *long_ptr;
! 2349: typedef long int *long_ptr;
! 2350: typedef long_ptr long_ptr;
! 2351:
! 2352: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
! 2353: struct anonymous
! 2354: {
! 2355: union {
! 2356: struct { int i; int j; };
! 2357: struct { int k; long int l; } w;
! 2358: };
! 2359: int m;
! 2360: } v1;
! 2361: '
! 2362:
! 2363: # Test code for whether the C compiler supports C11 (body of main).
! 2364: ac_c_conftest_c11_main='
! 2365: _Static_assert ((offsetof (struct anonymous, i)
! 2366: == offsetof (struct anonymous, w.k)),
! 2367: "Anonymous union alignment botch");
! 2368: v1.i = 2;
! 2369: v1.w.k = 5;
! 2370: ok |= v1.i != 5;
! 2371: '
! 2372:
! 2373: # Test code for whether the C compiler supports C11 (complete).
! 2374: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
! 2375: ${ac_c_conftest_c99_globals}
! 2376: ${ac_c_conftest_c11_globals}
! 2377:
! 2378: int
! 2379: main (int argc, char **argv)
! 2380: {
! 2381: int ok = 0;
! 2382: ${ac_c_conftest_c89_main}
! 2383: ${ac_c_conftest_c99_main}
! 2384: ${ac_c_conftest_c11_main}
! 2385: return ok;
! 2386: }
! 2387: "
! 2388:
! 2389: # Test code for whether the C compiler supports C99 (complete).
! 2390: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
! 2391: ${ac_c_conftest_c99_globals}
! 2392:
! 2393: int
! 2394: main (int argc, char **argv)
! 2395: {
! 2396: int ok = 0;
! 2397: ${ac_c_conftest_c89_main}
! 2398: ${ac_c_conftest_c99_main}
! 2399: return ok;
! 2400: }
! 2401: "
! 2402:
! 2403: # Test code for whether the C compiler supports C89 (complete).
! 2404: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
! 2405:
! 2406: int
! 2407: main (int argc, char **argv)
! 2408: {
! 2409: int ok = 0;
! 2410: ${ac_c_conftest_c89_main}
! 2411: return ok;
! 2412: }
! 2413: "
! 2414:
! 2415: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
! 2416: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
! 2417: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
! 2418: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
! 2419: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
! 2420: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
! 2421: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
! 2422: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
! 2423: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
! 2424:
! 2425: # Auxiliary files required by this configure script.
! 2426: ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
! 2427:
! 2428: # Locations in which to look for auxiliary files.
! 2429: ac_aux_dir_candidates="${srcdir}/config"
! 2430:
! 2431: # Search for a directory containing all of the required auxiliary files,
! 2432: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
! 2433: # If we don't find one directory that contains all the files we need,
! 2434: # we report the set of missing files from the *first* directory in
! 2435: # $ac_aux_dir_candidates and give up.
! 2436: ac_missing_aux_files=""
! 2437: ac_first_candidate=:
! 2438: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
! 2439: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2440: as_found=false
! 2441: for as_dir in $ac_aux_dir_candidates
! 2442: do
! 2443: IFS=$as_save_IFS
! 2444: case $as_dir in #(((
! 2445: '') as_dir=./ ;;
! 2446: */) ;;
! 2447: *) as_dir=$as_dir/ ;;
! 2448: esac
! 2449: as_found=:
! 2450:
! 2451: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
! 2452: ac_aux_dir_found=yes
! 2453: ac_install_sh=
! 2454: for ac_aux in $ac_aux_files
! 2455: do
! 2456: # As a special case, if "install-sh" is required, that requirement
! 2457: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
! 2458: # and $ac_install_sh is set appropriately for whichever one is found.
! 2459: if test x"$ac_aux" = x"install-sh"
! 2460: then
! 2461: if test -f "${as_dir}install-sh"; then
! 2462: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
! 2463: ac_install_sh="${as_dir}install-sh -c"
! 2464: elif test -f "${as_dir}install.sh"; then
! 2465: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
! 2466: ac_install_sh="${as_dir}install.sh -c"
! 2467: elif test -f "${as_dir}shtool"; then
! 2468: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
! 2469: ac_install_sh="${as_dir}shtool install -c"
! 2470: else
! 2471: ac_aux_dir_found=no
! 2472: if $ac_first_candidate; then
! 2473: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
! 2474: else
! 2475: break
! 2476: fi
! 2477: fi
! 2478: else
! 2479: if test -f "${as_dir}${ac_aux}"; then
! 2480: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
! 2481: else
! 2482: ac_aux_dir_found=no
! 2483: if $ac_first_candidate; then
! 2484: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
! 2485: else
! 2486: break
! 2487: fi
! 2488: fi
! 2489: fi
! 2490: done
! 2491: if test "$ac_aux_dir_found" = yes; then
! 2492: ac_aux_dir="$as_dir"
! 2493: break
! 2494: fi
! 2495: ac_first_candidate=false
! 2496:
! 2497: as_found=false
! 2498: done
! 2499: IFS=$as_save_IFS
! 2500: if $as_found
! 2501: then :
! 2502:
! 2503: else $as_nop
! 2504: as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
! 2505: fi
! 2506:
! 2507:
! 2508: # These three variables are undocumented and unsupported,
! 2509: # and are intended to be withdrawn in a future Autoconf release.
! 2510: # They can cause serious problems if a builder's source tree is in a directory
! 2511: # whose full name contains unusual characters.
! 2512: if test -f "${ac_aux_dir}config.guess"; then
! 2513: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
! 2514: fi
! 2515: if test -f "${ac_aux_dir}config.sub"; then
! 2516: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
! 2517: fi
! 2518: if test -f "$ac_aux_dir/configure"; then
! 2519: ac_configure="$SHELL ${ac_aux_dir}configure"
! 2520: fi
! 2521:
! 2522: # Check that the precious variables saved in the cache have kept the same
! 2523: # value.
! 2524: ac_cache_corrupted=false
! 2525: for ac_var in $ac_precious_vars; do
! 2526: eval ac_old_set=\$ac_cv_env_${ac_var}_set
! 2527: eval ac_new_set=\$ac_env_${ac_var}_set
! 2528: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 2529: eval ac_new_val=\$ac_env_${ac_var}_value
! 2530: case $ac_old_set,$ac_new_set in
! 2531: set,)
! 2532: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 2533: printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
! 2534: ac_cache_corrupted=: ;;
! 2535: ,set)
! 2536: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
! 2537: printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
! 2538: ac_cache_corrupted=: ;;
! 2539: ,);;
! 2540: *)
! 2541: if test "x$ac_old_val" != "x$ac_new_val"; then
! 2542: # differences in whitespace do not lead to failure.
! 2543: ac_old_val_w=`echo x $ac_old_val`
! 2544: ac_new_val_w=`echo x $ac_new_val`
! 2545: if test "$ac_old_val_w" != "$ac_new_val_w"; then
! 2546: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
! 2547: printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 2548: ac_cache_corrupted=:
! 2549: else
! 2550: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
! 2551: printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
! 2552: eval $ac_var=\$ac_old_val
! 2553: fi
! 2554: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
! 2555: printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
! 2556: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
! 2557: printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
! 2558: fi;;
! 2559: esac
! 2560: # Pass precious variables to config.status.
! 2561: if test "$ac_new_set" = set; then
! 2562: case $ac_new_val in
! 2563: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
! 2564: *) ac_arg=$ac_var=$ac_new_val ;;
! 2565: esac
! 2566: case " $ac_configure_args " in
! 2567: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
! 2568: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
! 2569: esac
! 2570: fi
! 2571: done
! 2572: if $ac_cache_corrupted; then
! 2573: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2574: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
! 2575: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
! 2576: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
! 2577: as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
! 2578: and start over" "$LINENO" 5
! 2579: fi
! 2580: ## -------------------- ##
! 2581: ## Main body of script. ##
! 2582: ## -------------------- ##
! 2583:
! 2584: ac_ext=c
! 2585: ac_cpp='$CPP $CPPFLAGS'
! 2586: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2587: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2588: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 2589:
! 2590:
! 2591: # ===========================================================================
! 2592: # https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
! 2593: # ===========================================================================
1.1.1.2 misho 2594: #
2595: # SYNOPSIS
2596: #
2597: # AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2598: #
2599: # DESCRIPTION
2600: #
2601: # Look for OpenSSL in a number of default spots, or in a user-selected
2602: # spot (via --with-openssl). Sets
2603: #
2604: # OPENSSL_INCLUDES to the include directives required
2605: # OPENSSL_LIBS to the -l directives required
2606: # OPENSSL_LDFLAGS to the -L or -R flags required
2607: #
2608: # and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2609: #
2610: # This macro sets OPENSSL_INCLUDES such that source files should use the
2611: # openssl/ directory in include directives:
2612: #
2613: # #include <openssl/hmac.h>
2614: #
2615: # LICENSE
2616: #
2617: # Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2618: # Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
2619: #
2620: # Copying and distribution of this file, with or without modification, are
2621: # permitted in any medium without royalty provided the copyright notice
2622: # and this notice are preserved. This file is offered as-is, without any
2623: # warranty.
2624:
2625: #serial 10
2626:
1.1.1.3 ! misho 2627: # This is what autoupdate's m4 run will expand. It fires the warning
! 2628: # (with _au_warn_XXX), outputs it into the updated configure.ac (with
! 2629: # m4_warn), and then outputs the replacement expansion. We need extra
! 2630: # quotation around the m4_warn and dnl so they will be written
! 2631: # unexpanded into the updated configure.ac.
1.1.1.2 misho 2632:
2633:
2634: # This is an auxiliary macro that is also run when
2635: # autoupdate runs m4. It simply calls m4_warning, but
2636: # we need a wrapper so that each warning is emitted only
2637: # once. We break the quoting in m4_warning's argument in
2638: # order to expand this macro's arguments, not AU_DEFUN's.
2639:
2640:
2641: # Finally, this is the expansion that is picked up by
1.1.1.3 ! misho 2642: # autoconf, causing NAME to expand to NEW-CODE, plus
! 2643: # (if SILENT is not "silent") a m4_warning telling the
! 2644: # maintainer to run autoupdate. We don't issue MESSAGE
! 2645: # from autoconf, because that's instructions for what
! 2646: # to do *after* running autoupdate.
1.1.1.2 misho 2647:
2648:
2649:
2650: # Also link binaries as static
2651: # Check whether --enable-static-bin was given.
1.1.1.3 ! misho 2652: if test ${enable_static_bin+y}
! 2653: then :
1.1.1.2 misho 2654: enableval=$enable_static_bin; enable_static=yes
2655: enable_shared=no
2656: enable_static_bin=yes
1.1.1.3 ! misho 2657: else $as_nop
1.1.1.2 misho 2658: :
2659: fi
2660:
2661: if test x$enable_static_bin = xno; then
2662: ENABLE_STATIC_BIN_TRUE=
2663: ENABLE_STATIC_BIN_FALSE='#'
2664: else
2665: ENABLE_STATIC_BIN_TRUE='#'
2666: ENABLE_STATIC_BIN_FALSE=
2667: fi
2668:
2669:
1.1.1.3 ! misho 2670: if test "x$enable_static_bin" = xyes
! 2671: then :
1.1.1.2 misho 2672: LDFLAGS="$LDFLAGS --static"
2673:
2674: fi
2675:
1.1 misho 2676: ac_ext=c
2677: ac_cpp='$CPP $CPPFLAGS'
2678: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681:
2682:
2683: # Specify where the auxiliary files created by configure should go. The config
2684: # directory is picked so that they don't clutter up more useful directories.
2685:
2686:
2687:
2688: # Initialize the automake system
1.1.1.2 misho 2689: am__api_version='1.16'
1.1 misho 2690:
1.1.1.3 ! misho 2691:
! 2692:
! 2693: # Find a good install program. We prefer a C program (faster),
1.1 misho 2694: # so one script is as good as another. But avoid the broken or
2695: # incompatible versions:
2696: # SysV /etc/install, /usr/sbin/install
2697: # SunOS /usr/etc/install
2698: # IRIX /sbin/install
2699: # AIX /bin/install
2700: # AmigaOS /C/install, which installs bootblocks on floppy discs
2701: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704: # OS/2's system install, which has a completely different semantic
2705: # ./install, which can be erroneously created by make from ./install.sh.
2706: # Reject install programs that cannot install multiple files.
1.1.1.3 ! misho 2707: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
! 2708: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 misho 2709: if test -z "$INSTALL"; then
1.1.1.3 ! misho 2710: if test ${ac_cv_path_install+y}
! 2711: then :
! 2712: printf %s "(cached) " >&6
! 2713: else $as_nop
1.1 misho 2714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715: for as_dir in $PATH
2716: do
2717: IFS=$as_save_IFS
1.1.1.3 ! misho 2718: case $as_dir in #(((
! 2719: '') as_dir=./ ;;
! 2720: */) ;;
! 2721: *) as_dir=$as_dir/ ;;
! 2722: esac
! 2723: # Account for fact that we put trailing slashes in our PATH walk.
! 2724: case $as_dir in #((
! 2725: ./ | /[cC]/* | \
1.1 misho 2726: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2727: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2728: /usr/ucb/* ) ;;
2729: *)
2730: # OSF1 and SCO ODT 3.0 have their own names for install.
2731: # Don't use installbsd from OSF since it installs stuff as root
2732: # by default.
2733: for ac_prog in ginstall scoinst install; do
2734: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2735: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.1 misho 2736: if test $ac_prog = install &&
1.1.1.3 ! misho 2737: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 misho 2738: # AIX install. It has an incompatible calling convention.
2739: :
2740: elif test $ac_prog = install &&
1.1.1.3 ! misho 2741: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 misho 2742: # program-specific install script used by HP pwplus--don't use.
2743: :
2744: else
2745: rm -rf conftest.one conftest.two conftest.dir
2746: echo one > conftest.one
2747: echo two > conftest.two
2748: mkdir conftest.dir
1.1.1.3 ! misho 2749: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.1 misho 2750: test -s conftest.one && test -s conftest.two &&
2751: test -s conftest.dir/conftest.one &&
2752: test -s conftest.dir/conftest.two
2753: then
1.1.1.3 ! misho 2754: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.1 misho 2755: break 3
2756: fi
2757: fi
2758: fi
2759: done
2760: done
2761: ;;
2762: esac
2763:
2764: done
2765: IFS=$as_save_IFS
2766:
2767: rm -rf conftest.one conftest.two conftest.dir
2768:
2769: fi
1.1.1.3 ! misho 2770: if test ${ac_cv_path_install+y}; then
1.1 misho 2771: INSTALL=$ac_cv_path_install
2772: else
2773: # As a last resort, use the slow shell script. Don't cache a
2774: # value for INSTALL within a source directory, because that will
2775: # break other packages using the cache if that directory is
2776: # removed, or if the value is a relative name.
2777: INSTALL=$ac_install_sh
2778: fi
2779: fi
1.1.1.3 ! misho 2780: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
! 2781: printf "%s\n" "$INSTALL" >&6; }
1.1 misho 2782:
2783: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2784: # It thinks the first close brace ends the variable substitution.
2785: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2786:
2787: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2788:
2789: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2790:
1.1.1.3 ! misho 2791: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
! 2792: printf %s "checking whether build environment is sane... " >&6; }
1.1 misho 2793: # Reject unsafe characters in $srcdir or the absolute working directory
2794: # name. Accept space and tab only in the latter.
2795: am_lf='
2796: '
2797: case `pwd` in
2798: *[\\\"\#\$\&\'\`$am_lf]*)
2799: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2800: esac
2801: case $srcdir in
2802: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2803: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2804: esac
2805:
2806: # Do 'set' in a subshell so we don't clobber the current shell's
2807: # arguments. Must try -L first in case configure is actually a
2808: # symlink; some systems play weird games with the mod time of symlinks
2809: # (eg FreeBSD returns the mod time of the symlink's containing
2810: # directory).
2811: if (
2812: am_has_slept=no
2813: for am_try in 1 2; do
2814: echo "timestamp, slept: $am_has_slept" > conftest.file
2815: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2816: if test "$*" = "X"; then
2817: # -L didn't work.
2818: set X `ls -t "$srcdir/configure" conftest.file`
2819: fi
2820: if test "$*" != "X $srcdir/configure conftest.file" \
2821: && test "$*" != "X conftest.file $srcdir/configure"; then
2822:
2823: # If neither matched, then we have a broken ls. This can happen
2824: # if, for instance, CONFIG_SHELL is bash and it inherits a
2825: # broken ls alias from the environment. This has actually
2826: # happened. Such a system could not be considered "sane".
2827: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2828: alias in your environment" "$LINENO" 5
2829: fi
2830: if test "$2" = conftest.file || test $am_try -eq 2; then
2831: break
2832: fi
2833: # Just in case.
2834: sleep 1
2835: am_has_slept=yes
2836: done
2837: test "$2" = conftest.file
2838: )
2839: then
2840: # Ok.
2841: :
2842: else
2843: as_fn_error $? "newly created file is older than distributed files!
2844: Check your system clock" "$LINENO" 5
2845: fi
1.1.1.3 ! misho 2846: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2847: printf "%s\n" "yes" >&6; }
1.1 misho 2848: # If we didn't sleep, we still need to ensure time stamps of config.status and
2849: # generated files are strictly newer.
2850: am_sleep_pid=
2851: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2852: ( sleep 1 ) &
2853: am_sleep_pid=$!
2854: fi
2855:
2856: rm -f conftest.file
2857:
2858: test "$program_prefix" != NONE &&
2859: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2860: # Use a double $ so make ignores it.
2861: test "$program_suffix" != NONE &&
2862: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2863: # Double any \ or $.
2864: # By default was `s,x,x', remove it if useless.
2865: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1.1.1.3 ! misho 2866: program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
! 2867:
1.1 misho 2868:
2869: # Expand $ac_aux_dir to an absolute path.
2870: am_aux_dir=`cd "$ac_aux_dir" && pwd`
2871:
1.1.1.3 ! misho 2872:
! 2873: if test x"${MISSING+set}" != xset; then
! 2874: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.1 misho 2875: fi
2876: # Use eval to expand $SHELL
2877: if eval "$MISSING --is-lightweight"; then
2878: am_missing_run="$MISSING "
2879: else
2880: am_missing_run=
1.1.1.3 ! misho 2881: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
! 2882: printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.1 misho 2883: fi
2884:
2885: if test x"${install_sh+set}" != xset; then
2886: case $am_aux_dir in
2887: *\ * | *\ *)
2888: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2889: *)
2890: install_sh="\${SHELL} $am_aux_dir/install-sh"
2891: esac
2892: fi
2893:
2894: # Installed binaries are usually stripped using 'strip' when the user
2895: # run "make install-strip". However 'strip' might not be the right
2896: # tool to use in cross-compilation environments, therefore Automake
2897: # will honor the 'STRIP' environment variable to overrule this program.
2898: if test "$cross_compiling" != no; then
2899: if test -n "$ac_tool_prefix"; then
2900: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2901: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.3 ! misho 2902: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2903: printf %s "checking for $ac_word... " >&6; }
! 2904: if test ${ac_cv_prog_STRIP+y}
! 2905: then :
! 2906: printf %s "(cached) " >&6
! 2907: else $as_nop
1.1 misho 2908: if test -n "$STRIP"; then
2909: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2910: else
2911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912: for as_dir in $PATH
2913: do
2914: IFS=$as_save_IFS
1.1.1.3 ! misho 2915: case $as_dir in #(((
! 2916: '') as_dir=./ ;;
! 2917: */) ;;
! 2918: *) as_dir=$as_dir/ ;;
! 2919: esac
1.1 misho 2920: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2921: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2922: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.1.1.3 ! misho 2923: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2924: break 2
2925: fi
2926: done
2927: done
2928: IFS=$as_save_IFS
2929:
2930: fi
2931: fi
2932: STRIP=$ac_cv_prog_STRIP
2933: if test -n "$STRIP"; then
1.1.1.3 ! misho 2934: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 2935: printf "%s\n" "$STRIP" >&6; }
1.1 misho 2936: else
1.1.1.3 ! misho 2937: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2938: printf "%s\n" "no" >&6; }
1.1 misho 2939: fi
2940:
2941:
2942: fi
2943: if test -z "$ac_cv_prog_STRIP"; then
2944: ac_ct_STRIP=$STRIP
2945: # Extract the first word of "strip", so it can be a program name with args.
2946: set dummy strip; ac_word=$2
1.1.1.3 ! misho 2947: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2948: printf %s "checking for $ac_word... " >&6; }
! 2949: if test ${ac_cv_prog_ac_ct_STRIP+y}
! 2950: then :
! 2951: printf %s "(cached) " >&6
! 2952: else $as_nop
1.1 misho 2953: if test -n "$ac_ct_STRIP"; then
2954: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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
1.1.1.3 ! misho 2960: case $as_dir in #(((
! 2961: '') as_dir=./ ;;
! 2962: */) ;;
! 2963: *) as_dir=$as_dir/ ;;
! 2964: esac
1.1 misho 2965: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2966: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2967: ac_cv_prog_ac_ct_STRIP="strip"
1.1.1.3 ! misho 2968: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2969: break 2
2970: fi
2971: done
2972: done
2973: IFS=$as_save_IFS
2974:
2975: fi
2976: fi
2977: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2978: if test -n "$ac_ct_STRIP"; then
1.1.1.3 ! misho 2979: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 2980: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.1 misho 2981: else
1.1.1.3 ! misho 2982: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2983: printf "%s\n" "no" >&6; }
1.1 misho 2984: fi
2985:
2986: if test "x$ac_ct_STRIP" = x; then
2987: STRIP=":"
2988: else
2989: case $cross_compiling:$ac_tool_warned in
2990: yes:)
1.1.1.3 ! misho 2991: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 2992: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 2993: ac_tool_warned=yes ;;
2994: esac
2995: STRIP=$ac_ct_STRIP
2996: fi
2997: else
2998: STRIP="$ac_cv_prog_STRIP"
2999: fi
3000:
3001: fi
3002: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3003:
1.1.1.3 ! misho 3004:
! 3005: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
! 3006: printf %s "checking for a race-free mkdir -p... " >&6; }
1.1 misho 3007: if test -z "$MKDIR_P"; then
1.1.1.3 ! misho 3008: if test ${ac_cv_path_mkdir+y}
! 3009: then :
! 3010: printf %s "(cached) " >&6
! 3011: else $as_nop
1.1 misho 3012: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3014: do
3015: IFS=$as_save_IFS
1.1.1.3 ! misho 3016: case $as_dir in #(((
! 3017: '') as_dir=./ ;;
! 3018: */) ;;
! 3019: *) as_dir=$as_dir/ ;;
! 3020: esac
1.1 misho 3021: for ac_prog in mkdir gmkdir; do
3022: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3023: as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
! 3024: case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
! 3025: 'mkdir ('*'coreutils) '* | \
! 3026: 'BusyBox '* | \
1.1 misho 3027: 'mkdir (fileutils) '4.1*)
1.1.1.3 ! misho 3028: ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
1.1 misho 3029: break 3;;
3030: esac
3031: done
3032: done
3033: done
3034: IFS=$as_save_IFS
3035:
3036: fi
3037:
3038: test -d ./--version && rmdir ./--version
1.1.1.3 ! misho 3039: if test ${ac_cv_path_mkdir+y}; then
1.1 misho 3040: MKDIR_P="$ac_cv_path_mkdir -p"
3041: else
3042: # As a last resort, use the slow shell script. Don't cache a
3043: # value for MKDIR_P within a source directory, because that will
3044: # break other packages using the cache if that directory is
3045: # removed, or if the value is a relative name.
3046: MKDIR_P="$ac_install_sh -d"
3047: fi
3048: fi
1.1.1.3 ! misho 3049: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
! 3050: printf "%s\n" "$MKDIR_P" >&6; }
1.1 misho 3051:
3052: for ac_prog in gawk mawk nawk awk
3053: do
3054: # Extract the first word of "$ac_prog", so it can be a program name with args.
3055: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 3056: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3057: printf %s "checking for $ac_word... " >&6; }
! 3058: if test ${ac_cv_prog_AWK+y}
! 3059: then :
! 3060: printf %s "(cached) " >&6
! 3061: else $as_nop
1.1 misho 3062: if test -n "$AWK"; then
3063: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3064: else
3065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066: for as_dir in $PATH
3067: do
3068: IFS=$as_save_IFS
1.1.1.3 ! misho 3069: case $as_dir in #(((
! 3070: '') as_dir=./ ;;
! 3071: */) ;;
! 3072: *) as_dir=$as_dir/ ;;
! 3073: esac
1.1 misho 3074: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3075: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 3076: ac_cv_prog_AWK="$ac_prog"
1.1.1.3 ! misho 3077: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 3078: break 2
3079: fi
3080: done
3081: done
3082: IFS=$as_save_IFS
3083:
3084: fi
3085: fi
3086: AWK=$ac_cv_prog_AWK
3087: if test -n "$AWK"; then
1.1.1.3 ! misho 3088: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 3089: printf "%s\n" "$AWK" >&6; }
1.1 misho 3090: else
1.1.1.3 ! misho 3091: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3092: printf "%s\n" "no" >&6; }
1.1 misho 3093: fi
3094:
3095:
3096: test -n "$AWK" && break
3097: done
3098:
1.1.1.3 ! misho 3099: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 3100: printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1.1 misho 3101: set x ${MAKE-make}
1.1.1.3 ! misho 3102: ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 3103: if eval test \${ac_cv_prog_make_${ac_make}_set+y}
! 3104: then :
! 3105: printf %s "(cached) " >&6
! 3106: else $as_nop
1.1 misho 3107: cat >conftest.make <<\_ACEOF
3108: SHELL = /bin/sh
3109: all:
3110: @echo '@@@%%%=$(MAKE)=@@@%%%'
3111: _ACEOF
3112: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3113: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3114: *@@@%%%=?*=@@@%%%*)
3115: eval ac_cv_prog_make_${ac_make}_set=yes;;
3116: *)
3117: eval ac_cv_prog_make_${ac_make}_set=no;;
3118: esac
3119: rm -f conftest.make
3120: fi
3121: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.1.1.3 ! misho 3122: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3123: printf "%s\n" "yes" >&6; }
1.1 misho 3124: SET_MAKE=
3125: else
1.1.1.3 ! misho 3126: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3127: printf "%s\n" "no" >&6; }
1.1 misho 3128: SET_MAKE="MAKE=${MAKE-make}"
3129: fi
3130:
3131: rm -rf .tst 2>/dev/null
3132: mkdir .tst 2>/dev/null
3133: if test -d .tst; then
3134: am__leading_dot=.
3135: else
3136: am__leading_dot=_
3137: fi
3138: rmdir .tst 2>/dev/null
3139:
3140: # Check whether --enable-silent-rules was given.
1.1.1.3 ! misho 3141: if test ${enable_silent_rules+y}
! 3142: then :
1.1 misho 3143: enableval=$enable_silent_rules;
3144: fi
3145:
3146: case $enable_silent_rules in # (((
3147: yes) AM_DEFAULT_VERBOSITY=0;;
3148: no) AM_DEFAULT_VERBOSITY=1;;
3149: *) AM_DEFAULT_VERBOSITY=1;;
3150: esac
3151: am_make=${MAKE-make}
1.1.1.3 ! misho 3152: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
! 3153: printf %s "checking whether $am_make supports nested variables... " >&6; }
! 3154: if test ${am_cv_make_support_nested_variables+y}
! 3155: then :
! 3156: printf %s "(cached) " >&6
! 3157: else $as_nop
! 3158: if printf "%s\n" 'TRUE=$(BAR$(V))
1.1 misho 3159: BAR0=false
3160: BAR1=true
3161: V=1
3162: am__doit:
3163: @$(TRUE)
3164: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3165: am_cv_make_support_nested_variables=yes
3166: else
3167: am_cv_make_support_nested_variables=no
3168: fi
3169: fi
1.1.1.3 ! misho 3170: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
! 3171: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
1.1 misho 3172: if test $am_cv_make_support_nested_variables = yes; then
3173: AM_V='$(V)'
3174: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3175: else
3176: AM_V=$AM_DEFAULT_VERBOSITY
3177: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3178: fi
3179: AM_BACKSLASH='\'
3180:
3181: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3182: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3183: # is not polluted with repeated "-I."
3184: am__isrc=' -I$(srcdir)'
3185: # test to see if srcdir already configured
3186: if test -f $srcdir/config.status; then
3187: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3188: fi
3189: fi
3190:
3191: # test whether we have cygpath
3192: if test -z "$CYGPATH_W"; then
3193: if (cygpath --version) >/dev/null 2>/dev/null; then
3194: CYGPATH_W='cygpath -w'
3195: else
3196: CYGPATH_W=echo
3197: fi
3198: fi
3199:
3200:
3201: # Define the identity of the package.
3202: PACKAGE='iperf'
1.1.1.3 ! misho 3203: VERSION='3.15'
1.1 misho 3204:
3205:
1.1.1.3 ! misho 3206: printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
1.1 misho 3207:
3208:
1.1.1.3 ! misho 3209: printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
1.1 misho 3210:
3211: # Some tools Automake needs.
3212:
3213: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3214:
3215:
3216: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3217:
3218:
3219: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3220:
3221:
3222: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3223:
3224:
3225: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3226:
3227: # For better backward compatibility. To be removed once Automake 1.9.x
3228: # dies out for good. For more background, see:
1.1.1.2 misho 3229: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3230: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.1 misho 3231: mkdir_p='$(MKDIR_P)'
3232:
3233: # We need awk for the "check" target (and possibly the TAP driver). The
3234: # system "awk" is bad on some platforms.
3235: # Always define AMTAR for backward compatibility. Yes, it's still used
3236: # in the wild :-( We should find a proper way to deprecate it ...
3237: AMTAR='$${TAR-tar}'
3238:
3239:
3240: # We'll loop over all known methods to create a tar archive until one works.
3241: _am_tools='gnutar pax cpio none'
3242:
3243: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3244:
3245:
3246:
3247:
3248:
1.1.1.3 ! misho 3249: # Variables for tags utilities; see am/tags.am
! 3250: if test -z "$CTAGS"; then
! 3251: CTAGS=ctags
! 3252: fi
! 3253:
! 3254: if test -z "$ETAGS"; then
! 3255: ETAGS=etags
! 3256: fi
! 3257:
! 3258: if test -z "$CSCOPE"; then
! 3259: CSCOPE=cscope
! 3260: fi
! 3261:
! 3262:
1.1 misho 3263:
3264: # POSIX will say in a future version that running "rm -f" with no argument
3265: # is OK; and we want to be able to make that assumption in our Makefile
3266: # recipes. So use an aggressive probe to check that the usage we want is
3267: # actually supported "in the wild" to an acceptable degree.
3268: # See automake bug#10828.
3269: # To make any issue more visible, cause the running configure to be aborted
3270: # by default if the 'rm' program in use doesn't match our expectations; the
3271: # user can still override this though.
3272: if rm -f && rm -fr && rm -rf; then : OK; else
3273: cat >&2 <<'END'
3274: Oops!
3275:
3276: Your 'rm' program seems unable to run without file operands specified
3277: on the command line, even when the '-f' option is present. This is contrary
3278: to the behaviour of most rm programs out there, and not conforming with
3279: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3280:
3281: Please tell bug-automake@gnu.org about your system, including the value
3282: of your $PATH and any error possibly output before this message. This
3283: can help us improve future automake versions.
3284:
3285: END
3286: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3287: echo 'Configuration will proceed anyway, since you have set the' >&2
3288: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3289: echo >&2
3290: else
3291: cat >&2 <<'END'
3292: Aborting the configuration process, to ensure you take notice of the issue.
3293:
3294: You can download and install GNU coreutils to get an 'rm' implementation
1.1.1.2 misho 3295: that behaves properly: <https://www.gnu.org/software/coreutils/>.
1.1 misho 3296:
3297: If you want to complete the configuration process using your problematic
3298: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3299: to "yes", and re-run configure.
3300:
3301: END
3302: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3303: fi
3304: fi
3305:
1.1.1.2 misho 3306: # Check whether --enable-silent-rules was given.
1.1.1.3 ! misho 3307: if test ${enable_silent_rules+y}
! 3308: then :
1.1.1.2 misho 3309: enableval=$enable_silent_rules;
3310: fi
1.1 misho 3311:
1.1.1.2 misho 3312: case $enable_silent_rules in # (((
3313: yes) AM_DEFAULT_VERBOSITY=0;;
3314: no) AM_DEFAULT_VERBOSITY=1;;
3315: *) AM_DEFAULT_VERBOSITY=0;;
3316: esac
3317: am_make=${MAKE-make}
1.1.1.3 ! misho 3318: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
! 3319: printf %s "checking whether $am_make supports nested variables... " >&6; }
! 3320: if test ${am_cv_make_support_nested_variables+y}
! 3321: then :
! 3322: printf %s "(cached) " >&6
! 3323: else $as_nop
! 3324: if printf "%s\n" 'TRUE=$(BAR$(V))
1.1.1.2 misho 3325: BAR0=false
3326: BAR1=true
3327: V=1
3328: am__doit:
3329: @$(TRUE)
3330: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3331: am_cv_make_support_nested_variables=yes
3332: else
3333: am_cv_make_support_nested_variables=no
1.1 misho 3334: fi
1.1.1.2 misho 3335: fi
1.1.1.3 ! misho 3336: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
! 3337: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
1.1.1.2 misho 3338: if test $am_cv_make_support_nested_variables = yes; then
3339: AM_V='$(V)'
3340: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1.1 misho 3341: else
1.1.1.2 misho 3342: AM_V=$AM_DEFAULT_VERBOSITY
3343: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1.1 misho 3344: fi
1.1.1.2 misho 3345: AM_BACKSLASH='\'
3346:
3347: case `pwd` in
3348: *\ * | *\ *)
1.1.1.3 ! misho 3349: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 3350: printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.1.1.2 misho 3351: esac
3352:
3353:
3354:
1.1.1.3 ! misho 3355: macro_version='2.4.7'
! 3356: macro_revision='2.4.7'
! 3357:
1.1.1.2 misho 3358:
3359:
3360:
3361:
3362:
3363:
3364:
3365:
1.1 misho 3366:
3367:
3368:
3369:
3370:
1.1.1.2 misho 3371: ltmain=$ac_aux_dir/ltmain.sh
3372:
1.1.1.3 ! misho 3373:
! 3374:
! 3375: # Make sure we can run config.sub.
! 3376: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
! 3377: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
! 3378:
! 3379: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
! 3380: printf %s "checking build system type... " >&6; }
! 3381: if test ${ac_cv_build+y}
! 3382: then :
! 3383: printf %s "(cached) " >&6
! 3384: else $as_nop
1.1 misho 3385: ac_build_alias=$build_alias
3386: test "x$ac_build_alias" = x &&
1.1.1.3 ! misho 3387: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.1 misho 3388: test "x$ac_build_alias" = x &&
3389: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.1.1.3 ! misho 3390: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
! 3391: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
1.1 misho 3392:
3393: fi
1.1.1.3 ! misho 3394: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
! 3395: printf "%s\n" "$ac_cv_build" >&6; }
1.1 misho 3396: case $ac_cv_build in
3397: *-*-*) ;;
3398: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3399: esac
3400: build=$ac_cv_build
3401: ac_save_IFS=$IFS; IFS='-'
3402: set x $ac_cv_build
3403: shift
3404: build_cpu=$1
3405: build_vendor=$2
3406: shift; shift
3407: # Remember, the first character of IFS is used to create $*,
3408: # except with old shells:
3409: build_os=$*
3410: IFS=$ac_save_IFS
3411: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3412:
3413:
1.1.1.3 ! misho 3414: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
! 3415: printf %s "checking host system type... " >&6; }
! 3416: if test ${ac_cv_host+y}
! 3417: then :
! 3418: printf %s "(cached) " >&6
! 3419: else $as_nop
1.1 misho 3420: if test "x$host_alias" = x; then
3421: ac_cv_host=$ac_cv_build
3422: else
1.1.1.3 ! misho 3423: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
! 3424: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.1 misho 3425: fi
3426:
3427: fi
1.1.1.3 ! misho 3428: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
! 3429: printf "%s\n" "$ac_cv_host" >&6; }
1.1 misho 3430: case $ac_cv_host in
3431: *-*-*) ;;
3432: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3433: esac
3434: host=$ac_cv_host
3435: ac_save_IFS=$IFS; IFS='-'
3436: set x $ac_cv_host
3437: shift
3438: host_cpu=$1
3439: host_vendor=$2
3440: shift; shift
3441: # Remember, the first character of IFS is used to create $*,
3442: # except with old shells:
3443: host_os=$*
3444: IFS=$ac_save_IFS
3445: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3446:
3447:
1.1.1.2 misho 3448: # Backslashify metacharacters that are still active within
3449: # double-quoted strings.
3450: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3451:
3452: # Same as above, but do not quote variable references.
3453: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3454:
3455: # Sed substitution to delay expansion of an escaped shell variable in a
3456: # double_quote_subst'ed string.
3457: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3458:
3459: # Sed substitution to delay expansion of an escaped single quote.
3460: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3461:
3462: # Sed substitution to avoid accidental globbing in evaled expressions
3463: no_glob_subst='s/\*/\\\*/g'
3464:
3465: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3466: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3467: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3468:
1.1.1.3 ! misho 3469: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
! 3470: printf %s "checking how to print strings... " >&6; }
1.1.1.2 misho 3471: # Test print first, because it will be a builtin if present.
3472: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3473: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3474: ECHO='print -r --'
3475: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3476: ECHO='printf %s\n'
3477: else
3478: # Use this function as a fallback that always works.
3479: func_fallback_echo ()
3480: {
3481: eval 'cat <<_LTECHO_EOF
3482: $1
3483: _LTECHO_EOF'
3484: }
3485: ECHO='func_fallback_echo'
3486: fi
3487:
3488: # func_echo_all arg...
3489: # Invoke $ECHO with all args, space-separated.
3490: func_echo_all ()
3491: {
3492: $ECHO ""
3493: }
3494:
3495: case $ECHO in
1.1.1.3 ! misho 3496: printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
! 3497: printf "%s\n" "printf" >&6; } ;;
! 3498: print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
! 3499: printf "%s\n" "print -r" >&6; } ;;
! 3500: *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
! 3501: printf "%s\n" "cat" >&6; } ;;
1.1.1.2 misho 3502: esac
3503:
3504:
3505:
3506:
3507:
3508:
3509:
3510:
3511:
3512:
3513:
3514:
3515:
3516:
1.1.1.3 ! misho 3517:
! 3518:
! 3519:
! 3520:
! 3521:
! 3522:
! 3523:
! 3524:
! 3525:
1.1.1.2 misho 3526: DEPDIR="${am__leading_dot}deps"
3527:
3528: ac_config_commands="$ac_config_commands depfiles"
3529:
1.1.1.3 ! misho 3530: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
! 3531: printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
1.1.1.2 misho 3532: cat > confinc.mk << 'END'
3533: am__doit:
3534: @echo this is the am__doit target >confinc.out
3535: .PHONY: am__doit
3536: END
3537: am__include="#"
3538: am__quote=
3539: # BSD make does it like this.
3540: echo '.include "confinc.mk" # ignored' > confmf.BSD
3541: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3542: echo 'include confinc.mk # ignored' > confmf.GNU
3543: _am_result=no
3544: for s in GNU BSD; do
3545: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3546: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3547: ac_status=$?
3548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549: (exit $ac_status); }
3550: case $?:`cat confinc.out 2>/dev/null` in #(
3551: '0:this is the am__doit target') :
3552: case $s in #(
3553: BSD) :
3554: am__include='.include' am__quote='"' ;; #(
3555: *) :
3556: am__include='include' am__quote='' ;;
3557: esac ;; #(
3558: *) :
3559: ;;
3560: esac
3561: if test "$am__include" != "#"; then
3562: _am_result="yes ($s style)"
3563: break
3564: fi
3565: done
3566: rm -f confinc.* confmf.*
1.1.1.3 ! misho 3567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
! 3568: printf "%s\n" "${_am_result}" >&6; }
1.1.1.2 misho 3569:
3570: # Check whether --enable-dependency-tracking was given.
1.1.1.3 ! misho 3571: if test ${enable_dependency_tracking+y}
! 3572: then :
1.1.1.2 misho 3573: enableval=$enable_dependency_tracking;
3574: fi
3575:
3576: if test "x$enable_dependency_tracking" != xno; then
3577: am_depcomp="$ac_aux_dir/depcomp"
3578: AMDEPBACKSLASH='\'
3579: am__nodep='_no'
3580: fi
3581: if test "x$enable_dependency_tracking" != xno; then
3582: AMDEP_TRUE=
3583: AMDEP_FALSE='#'
3584: else
3585: AMDEP_TRUE='#'
3586: AMDEP_FALSE=
3587: fi
3588:
1.1 misho 3589:
3590: ac_ext=c
3591: ac_cpp='$CPP $CPPFLAGS'
3592: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595: if test -n "$ac_tool_prefix"; then
3596: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3597: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.3 ! misho 3598: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3599: printf %s "checking for $ac_word... " >&6; }
! 3600: if test ${ac_cv_prog_CC+y}
! 3601: then :
! 3602: printf %s "(cached) " >&6
! 3603: else $as_nop
1.1 misho 3604: if test -n "$CC"; then
3605: ac_cv_prog_CC="$CC" # Let the user override the test.
3606: else
3607: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608: for as_dir in $PATH
3609: do
3610: IFS=$as_save_IFS
1.1.1.3 ! misho 3611: case $as_dir in #(((
! 3612: '') as_dir=./ ;;
! 3613: */) ;;
! 3614: *) as_dir=$as_dir/ ;;
! 3615: esac
1.1 misho 3616: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3617: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 3618: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1.1.3 ! misho 3619: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 3620: break 2
3621: fi
3622: done
3623: done
3624: IFS=$as_save_IFS
3625:
3626: fi
3627: fi
3628: CC=$ac_cv_prog_CC
3629: if test -n "$CC"; then
1.1.1.3 ! misho 3630: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3631: printf "%s\n" "$CC" >&6; }
1.1 misho 3632: else
1.1.1.3 ! misho 3633: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3634: printf "%s\n" "no" >&6; }
1.1 misho 3635: fi
3636:
3637:
3638: fi
3639: if test -z "$ac_cv_prog_CC"; then
3640: ac_ct_CC=$CC
3641: # Extract the first word of "gcc", so it can be a program name with args.
3642: set dummy gcc; ac_word=$2
1.1.1.3 ! misho 3643: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3644: printf %s "checking for $ac_word... " >&6; }
! 3645: if test ${ac_cv_prog_ac_ct_CC+y}
! 3646: then :
! 3647: printf %s "(cached) " >&6
! 3648: else $as_nop
1.1 misho 3649: if test -n "$ac_ct_CC"; then
3650: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651: else
3652: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653: for as_dir in $PATH
3654: do
3655: IFS=$as_save_IFS
1.1.1.3 ! misho 3656: case $as_dir in #(((
! 3657: '') as_dir=./ ;;
! 3658: */) ;;
! 3659: *) as_dir=$as_dir/ ;;
! 3660: esac
1.1 misho 3661: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3662: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 3663: ac_cv_prog_ac_ct_CC="gcc"
1.1.1.3 ! misho 3664: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 3665: break 2
3666: fi
3667: done
3668: done
3669: IFS=$as_save_IFS
3670:
3671: fi
3672: fi
3673: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674: if test -n "$ac_ct_CC"; then
1.1.1.3 ! misho 3675: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3676: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 misho 3677: else
1.1.1.3 ! misho 3678: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3679: printf "%s\n" "no" >&6; }
1.1 misho 3680: fi
3681:
3682: if test "x$ac_ct_CC" = x; then
3683: CC=""
3684: else
3685: case $cross_compiling:$ac_tool_warned in
3686: yes:)
1.1.1.3 ! misho 3687: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3688: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 3689: ac_tool_warned=yes ;;
3690: esac
3691: CC=$ac_ct_CC
3692: fi
3693: else
3694: CC="$ac_cv_prog_CC"
3695: fi
3696:
3697: if test -z "$CC"; then
3698: if test -n "$ac_tool_prefix"; then
3699: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3700: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.3 ! misho 3701: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3702: printf %s "checking for $ac_word... " >&6; }
! 3703: if test ${ac_cv_prog_CC+y}
! 3704: then :
! 3705: printf %s "(cached) " >&6
! 3706: else $as_nop
1.1 misho 3707: if test -n "$CC"; then
3708: ac_cv_prog_CC="$CC" # Let the user override the test.
3709: else
3710: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711: for as_dir in $PATH
3712: do
3713: IFS=$as_save_IFS
1.1.1.3 ! misho 3714: case $as_dir in #(((
! 3715: '') as_dir=./ ;;
! 3716: */) ;;
! 3717: *) as_dir=$as_dir/ ;;
! 3718: esac
1.1 misho 3719: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3720: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 3721: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1.1.3 ! misho 3722: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 3723: break 2
3724: fi
3725: done
3726: done
3727: IFS=$as_save_IFS
3728:
3729: fi
3730: fi
3731: CC=$ac_cv_prog_CC
3732: if test -n "$CC"; then
1.1.1.3 ! misho 3733: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3734: printf "%s\n" "$CC" >&6; }
1.1 misho 3735: else
1.1.1.3 ! misho 3736: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3737: printf "%s\n" "no" >&6; }
1.1 misho 3738: fi
3739:
3740:
3741: fi
3742: fi
3743: if test -z "$CC"; then
3744: # Extract the first word of "cc", so it can be a program name with args.
3745: set dummy cc; ac_word=$2
1.1.1.3 ! misho 3746: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3747: printf %s "checking for $ac_word... " >&6; }
! 3748: if test ${ac_cv_prog_CC+y}
! 3749: then :
! 3750: printf %s "(cached) " >&6
! 3751: else $as_nop
1.1 misho 3752: if test -n "$CC"; then
3753: ac_cv_prog_CC="$CC" # Let the user override the test.
3754: else
3755: ac_prog_rejected=no
3756: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757: for as_dir in $PATH
3758: do
3759: IFS=$as_save_IFS
1.1.1.3 ! misho 3760: case $as_dir in #(((
! 3761: '') as_dir=./ ;;
! 3762: */) ;;
! 3763: *) as_dir=$as_dir/ ;;
! 3764: esac
1.1 misho 3765: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3766: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 3767: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1 misho 3768: ac_prog_rejected=yes
3769: continue
3770: fi
3771: ac_cv_prog_CC="cc"
1.1.1.3 ! misho 3772: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 3773: break 2
3774: fi
3775: done
3776: done
3777: IFS=$as_save_IFS
3778:
3779: if test $ac_prog_rejected = yes; then
3780: # We found a bogon in the path, so make sure we never use it.
3781: set dummy $ac_cv_prog_CC
3782: shift
3783: if test $# != 0; then
3784: # We chose a different compiler from the bogus one.
3785: # However, it has the same basename, so the bogon will be chosen
3786: # first if we set CC to just the basename; use the full file name.
3787: shift
1.1.1.3 ! misho 3788: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.1 misho 3789: fi
3790: fi
3791: fi
3792: fi
3793: CC=$ac_cv_prog_CC
3794: if test -n "$CC"; then
1.1.1.3 ! misho 3795: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3796: printf "%s\n" "$CC" >&6; }
1.1 misho 3797: else
1.1.1.3 ! misho 3798: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3799: printf "%s\n" "no" >&6; }
1.1 misho 3800: fi
3801:
3802:
3803: fi
3804: if test -z "$CC"; then
3805: if test -n "$ac_tool_prefix"; then
3806: for ac_prog in cl.exe
3807: do
3808: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.3 ! misho 3810: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3811: printf %s "checking for $ac_word... " >&6; }
! 3812: if test ${ac_cv_prog_CC+y}
! 3813: then :
! 3814: printf %s "(cached) " >&6
! 3815: else $as_nop
1.1 misho 3816: if test -n "$CC"; then
3817: ac_cv_prog_CC="$CC" # Let the user override the test.
3818: else
3819: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820: for as_dir in $PATH
3821: do
3822: IFS=$as_save_IFS
1.1.1.3 ! misho 3823: case $as_dir in #(((
! 3824: '') as_dir=./ ;;
! 3825: */) ;;
! 3826: *) as_dir=$as_dir/ ;;
! 3827: esac
1.1 misho 3828: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3829: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 3830: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.1.3 ! misho 3831: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 3832: break 2
3833: fi
3834: done
3835: done
3836: IFS=$as_save_IFS
3837:
3838: fi
3839: fi
3840: CC=$ac_cv_prog_CC
3841: if test -n "$CC"; then
1.1.1.3 ! misho 3842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3843: printf "%s\n" "$CC" >&6; }
1.1 misho 3844: else
1.1.1.3 ! misho 3845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3846: printf "%s\n" "no" >&6; }
1.1 misho 3847: fi
3848:
3849:
3850: test -n "$CC" && break
3851: done
3852: fi
3853: if test -z "$CC"; then
3854: ac_ct_CC=$CC
3855: for ac_prog in cl.exe
3856: do
3857: # Extract the first word of "$ac_prog", so it can be a program name with args.
3858: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 3859: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3860: printf %s "checking for $ac_word... " >&6; }
! 3861: if test ${ac_cv_prog_ac_ct_CC+y}
! 3862: then :
! 3863: printf %s "(cached) " >&6
! 3864: else $as_nop
1.1 misho 3865: if test -n "$ac_ct_CC"; then
3866: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3867: else
3868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869: for as_dir in $PATH
3870: do
3871: IFS=$as_save_IFS
1.1.1.3 ! misho 3872: case $as_dir in #(((
! 3873: '') as_dir=./ ;;
! 3874: */) ;;
! 3875: *) as_dir=$as_dir/ ;;
! 3876: esac
1.1 misho 3877: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3878: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 3879: ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.1.3 ! misho 3880: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 3881: break 2
3882: fi
3883: done
3884: done
3885: IFS=$as_save_IFS
3886:
3887: fi
3888: fi
3889: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3890: if test -n "$ac_ct_CC"; then
1.1.1.3 ! misho 3891: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3892: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 misho 3893: else
1.1.1.3 ! misho 3894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3895: printf "%s\n" "no" >&6; }
1.1 misho 3896: fi
3897:
3898:
3899: test -n "$ac_ct_CC" && break
3900: done
3901:
3902: if test "x$ac_ct_CC" = x; then
3903: CC=""
3904: else
3905: case $cross_compiling:$ac_tool_warned in
3906: yes:)
1.1.1.3 ! misho 3907: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3908: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3909: ac_tool_warned=yes ;;
! 3910: esac
! 3911: CC=$ac_ct_CC
! 3912: fi
! 3913: fi
! 3914:
! 3915: fi
! 3916: if test -z "$CC"; then
! 3917: if test -n "$ac_tool_prefix"; then
! 3918: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
! 3919: set dummy ${ac_tool_prefix}clang; ac_word=$2
! 3920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3921: printf %s "checking for $ac_word... " >&6; }
! 3922: if test ${ac_cv_prog_CC+y}
! 3923: then :
! 3924: printf %s "(cached) " >&6
! 3925: else $as_nop
! 3926: if test -n "$CC"; then
! 3927: ac_cv_prog_CC="$CC" # Let the user override the test.
! 3928: else
! 3929: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3930: for as_dir in $PATH
! 3931: do
! 3932: IFS=$as_save_IFS
! 3933: case $as_dir in #(((
! 3934: '') as_dir=./ ;;
! 3935: */) ;;
! 3936: *) as_dir=$as_dir/ ;;
! 3937: esac
! 3938: for ac_exec_ext in '' $ac_executable_extensions; do
! 3939: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 3940: ac_cv_prog_CC="${ac_tool_prefix}clang"
! 3941: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 3942: break 2
! 3943: fi
! 3944: done
! 3945: done
! 3946: IFS=$as_save_IFS
! 3947:
! 3948: fi
! 3949: fi
! 3950: CC=$ac_cv_prog_CC
! 3951: if test -n "$CC"; then
! 3952: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3953: printf "%s\n" "$CC" >&6; }
! 3954: else
! 3955: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3956: printf "%s\n" "no" >&6; }
! 3957: fi
! 3958:
! 3959:
! 3960: fi
! 3961: if test -z "$ac_cv_prog_CC"; then
! 3962: ac_ct_CC=$CC
! 3963: # Extract the first word of "clang", so it can be a program name with args.
! 3964: set dummy clang; ac_word=$2
! 3965: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3966: printf %s "checking for $ac_word... " >&6; }
! 3967: if test ${ac_cv_prog_ac_ct_CC+y}
! 3968: then :
! 3969: printf %s "(cached) " >&6
! 3970: else $as_nop
! 3971: if test -n "$ac_ct_CC"; then
! 3972: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 3973: else
! 3974: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3975: for as_dir in $PATH
! 3976: do
! 3977: IFS=$as_save_IFS
! 3978: case $as_dir in #(((
! 3979: '') as_dir=./ ;;
! 3980: */) ;;
! 3981: *) as_dir=$as_dir/ ;;
! 3982: esac
! 3983: for ac_exec_ext in '' $ac_executable_extensions; do
! 3984: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 3985: ac_cv_prog_ac_ct_CC="clang"
! 3986: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 3987: break 2
! 3988: fi
! 3989: done
! 3990: done
! 3991: IFS=$as_save_IFS
! 3992:
! 3993: fi
! 3994: fi
! 3995: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 3996: if test -n "$ac_ct_CC"; then
! 3997: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3998: printf "%s\n" "$ac_ct_CC" >&6; }
! 3999: else
! 4000: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4001: printf "%s\n" "no" >&6; }
! 4002: fi
! 4003:
! 4004: if test "x$ac_ct_CC" = x; then
! 4005: CC=""
! 4006: else
! 4007: case $cross_compiling:$ac_tool_warned in
! 4008: yes:)
! 4009: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 4010: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 4011: ac_tool_warned=yes ;;
4012: esac
4013: CC=$ac_ct_CC
4014: fi
1.1.1.3 ! misho 4015: else
! 4016: CC="$ac_cv_prog_CC"
1.1 misho 4017: fi
4018:
4019: fi
4020:
4021:
1.1.1.3 ! misho 4022: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4023: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 misho 4024: as_fn_error $? "no acceptable C compiler found in \$PATH
4025: See \`config.log' for more details" "$LINENO" 5; }
4026:
4027: # Provide some information about the compiler.
1.1.1.3 ! misho 4028: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1 misho 4029: set X $ac_compile
4030: ac_compiler=$2
1.1.1.3 ! misho 4031: for ac_option in --version -v -V -qversion -version; do
1.1 misho 4032: { { ac_try="$ac_compiler $ac_option >&5"
4033: case "(($ac_try" in
4034: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035: *) ac_try_echo=$ac_try;;
4036: esac
4037: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 4038: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 4039: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4040: ac_status=$?
4041: if test -s conftest.err; then
4042: sed '10a\
4043: ... rest of stderr output deleted ...
4044: 10q' conftest.err >conftest.er1
4045: cat conftest.er1 >&5
4046: fi
4047: rm -f conftest.er1 conftest.err
1.1.1.3 ! misho 4048: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 4049: test $ac_status = 0; }
4050: done
4051:
4052: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053: /* end confdefs.h. */
4054:
4055: int
1.1.1.3 ! misho 4056: main (void)
1.1 misho 4057: {
4058:
4059: ;
4060: return 0;
4061: }
4062: _ACEOF
4063: ac_clean_files_save=$ac_clean_files
4064: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4065: # Try to create an executable without -o first, disregard a.out.
4066: # It will help us diagnose broken compilers, and finding out an intuition
4067: # of exeext.
1.1.1.3 ! misho 4068: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
! 4069: printf %s "checking whether the C compiler works... " >&6; }
! 4070: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1 misho 4071:
4072: # The possible output files:
4073: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4074:
4075: ac_rmfiles=
4076: for ac_file in $ac_files
4077: do
4078: case $ac_file in
4079: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4080: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4081: esac
4082: done
4083: rm -f $ac_rmfiles
4084:
4085: if { { ac_try="$ac_link_default"
4086: case "(($ac_try" in
4087: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088: *) ac_try_echo=$ac_try;;
4089: esac
4090: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 4091: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 4092: (eval "$ac_link_default") 2>&5
4093: ac_status=$?
1.1.1.3 ! misho 4094: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4095: test $ac_status = 0; }
! 4096: then :
1.1 misho 4097: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4098: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4099: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4100: # so that the user can short-circuit this test for compilers unknown to
4101: # Autoconf.
4102: for ac_file in $ac_files ''
4103: do
4104: test -f "$ac_file" || continue
4105: case $ac_file in
4106: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4107: ;;
4108: [ab].out )
4109: # We found the default executable, but exeext='' is most
4110: # certainly right.
4111: break;;
4112: *.* )
1.1.1.3 ! misho 4113: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.1 misho 4114: then :; else
4115: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4116: fi
4117: # We set ac_cv_exeext here because the later test for it is not
4118: # safe: cross compilers may not add the suffix if given an `-o'
4119: # argument, so we may need to know it at that point already.
4120: # Even if this section looks crufty: it has the advantage of
4121: # actually working.
4122: break;;
4123: * )
4124: break;;
4125: esac
4126: done
4127: test "$ac_cv_exeext" = no && ac_cv_exeext=
4128:
1.1.1.3 ! misho 4129: else $as_nop
1.1 misho 4130: ac_file=''
4131: fi
1.1.1.3 ! misho 4132: if test -z "$ac_file"
! 4133: then :
! 4134: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4135: printf "%s\n" "no" >&6; }
! 4136: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 4137: sed 's/^/| /' conftest.$ac_ext >&5
4138:
1.1.1.3 ! misho 4139: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4140: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 misho 4141: as_fn_error 77 "C compiler cannot create executables
4142: See \`config.log' for more details" "$LINENO" 5; }
1.1.1.3 ! misho 4143: else $as_nop
! 4144: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 4145: printf "%s\n" "yes" >&6; }
! 4146: fi
! 4147: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
! 4148: printf %s "checking for C compiler default output file name... " >&6; }
! 4149: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 4150: printf "%s\n" "$ac_file" >&6; }
1.1 misho 4151: ac_exeext=$ac_cv_exeext
4152:
4153: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4154: ac_clean_files=$ac_clean_files_save
1.1.1.3 ! misho 4155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
! 4156: printf %s "checking for suffix of executables... " >&6; }
1.1 misho 4157: if { { ac_try="$ac_link"
4158: case "(($ac_try" in
4159: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160: *) ac_try_echo=$ac_try;;
4161: esac
4162: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 4163: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 4164: (eval "$ac_link") 2>&5
4165: ac_status=$?
1.1.1.3 ! misho 4166: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4167: test $ac_status = 0; }
! 4168: then :
1.1 misho 4169: # If both `conftest.exe' and `conftest' are `present' (well, observable)
4170: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4171: # work properly (i.e., refer to `conftest.exe'), while it won't with
4172: # `rm'.
4173: for ac_file in conftest.exe conftest conftest.*; do
4174: test -f "$ac_file" || continue
4175: case $ac_file in
4176: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4177: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4178: break;;
4179: * ) break;;
4180: esac
4181: done
1.1.1.3 ! misho 4182: else $as_nop
! 4183: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4184: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 misho 4185: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4186: See \`config.log' for more details" "$LINENO" 5; }
4187: fi
4188: rm -f conftest conftest$ac_cv_exeext
1.1.1.3 ! misho 4189: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
! 4190: printf "%s\n" "$ac_cv_exeext" >&6; }
1.1 misho 4191:
4192: rm -f conftest.$ac_ext
4193: EXEEXT=$ac_cv_exeext
4194: ac_exeext=$EXEEXT
4195: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196: /* end confdefs.h. */
4197: #include <stdio.h>
4198: int
1.1.1.3 ! misho 4199: main (void)
1.1 misho 4200: {
4201: FILE *f = fopen ("conftest.out", "w");
4202: return ferror (f) || fclose (f) != 0;
4203:
4204: ;
4205: return 0;
4206: }
4207: _ACEOF
4208: ac_clean_files="$ac_clean_files conftest.out"
4209: # Check that the compiler produces executables we can run. If not, either
4210: # the compiler is broken, or we cross compile.
1.1.1.3 ! misho 4211: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 4212: printf %s "checking whether we are cross compiling... " >&6; }
1.1 misho 4213: if test "$cross_compiling" != yes; then
4214: { { ac_try="$ac_link"
4215: case "(($ac_try" in
4216: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217: *) ac_try_echo=$ac_try;;
4218: esac
4219: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 4220: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 4221: (eval "$ac_link") 2>&5
4222: ac_status=$?
1.1.1.3 ! misho 4223: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 4224: test $ac_status = 0; }
4225: if { ac_try='./conftest$ac_cv_exeext'
4226: { { case "(($ac_try" in
4227: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228: *) ac_try_echo=$ac_try;;
4229: esac
4230: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 4231: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 4232: (eval "$ac_try") 2>&5
4233: ac_status=$?
1.1.1.3 ! misho 4234: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 4235: test $ac_status = 0; }; }; then
4236: cross_compiling=no
4237: else
4238: if test "$cross_compiling" = maybe; then
4239: cross_compiling=yes
4240: else
1.1.1.3 ! misho 4241: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4242: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
! 4243: as_fn_error 77 "cannot run C compiled programs.
1.1 misho 4244: If you meant to cross compile, use \`--host'.
4245: See \`config.log' for more details" "$LINENO" 5; }
4246: fi
4247: fi
4248: fi
1.1.1.3 ! misho 4249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 4250: printf "%s\n" "$cross_compiling" >&6; }
1.1 misho 4251:
4252: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4253: ac_clean_files=$ac_clean_files_save
1.1.1.3 ! misho 4254: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
! 4255: printf %s "checking for suffix of object files... " >&6; }
! 4256: if test ${ac_cv_objext+y}
! 4257: then :
! 4258: printf %s "(cached) " >&6
! 4259: else $as_nop
1.1 misho 4260: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261: /* end confdefs.h. */
4262:
4263: int
1.1.1.3 ! misho 4264: main (void)
1.1 misho 4265: {
4266:
4267: ;
4268: return 0;
4269: }
4270: _ACEOF
4271: rm -f conftest.o conftest.obj
4272: if { { ac_try="$ac_compile"
4273: case "(($ac_try" in
4274: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275: *) ac_try_echo=$ac_try;;
4276: esac
4277: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 4278: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 4279: (eval "$ac_compile") 2>&5
4280: ac_status=$?
1.1.1.3 ! misho 4281: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4282: test $ac_status = 0; }
! 4283: then :
1.1 misho 4284: for ac_file in conftest.o conftest.obj conftest.*; do
4285: test -f "$ac_file" || continue;
4286: case $ac_file in
4287: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4288: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4289: break;;
4290: esac
4291: done
1.1.1.3 ! misho 4292: else $as_nop
! 4293: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 4294: sed 's/^/| /' conftest.$ac_ext >&5
4295:
1.1.1.3 ! misho 4296: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4297: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1 misho 4298: as_fn_error $? "cannot compute suffix of object files: cannot compile
4299: See \`config.log' for more details" "$LINENO" 5; }
4300: fi
4301: rm -f conftest.$ac_cv_objext conftest.$ac_ext
4302: fi
1.1.1.3 ! misho 4303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
! 4304: printf "%s\n" "$ac_cv_objext" >&6; }
1.1 misho 4305: OBJEXT=$ac_cv_objext
4306: ac_objext=$OBJEXT
1.1.1.3 ! misho 4307: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
! 4308: printf %s "checking whether the compiler supports GNU C... " >&6; }
! 4309: if test ${ac_cv_c_compiler_gnu+y}
! 4310: then :
! 4311: printf %s "(cached) " >&6
! 4312: else $as_nop
1.1 misho 4313: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314: /* end confdefs.h. */
4315:
4316: int
1.1.1.3 ! misho 4317: main (void)
1.1 misho 4318: {
4319: #ifndef __GNUC__
4320: choke me
4321: #endif
4322:
4323: ;
4324: return 0;
4325: }
4326: _ACEOF
1.1.1.3 ! misho 4327: if ac_fn_c_try_compile "$LINENO"
! 4328: then :
1.1 misho 4329: ac_compiler_gnu=yes
1.1.1.3 ! misho 4330: else $as_nop
1.1 misho 4331: ac_compiler_gnu=no
4332: fi
1.1.1.3 ! misho 4333: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4334: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4335:
4336: fi
1.1.1.3 ! misho 4337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 4338: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
! 4339: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4340:
1.1 misho 4341: if test $ac_compiler_gnu = yes; then
4342: GCC=yes
4343: else
4344: GCC=
4345: fi
1.1.1.3 ! misho 4346: ac_test_CFLAGS=${CFLAGS+y}
1.1 misho 4347: ac_save_CFLAGS=$CFLAGS
1.1.1.3 ! misho 4348: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 4349: printf %s "checking whether $CC accepts -g... " >&6; }
! 4350: if test ${ac_cv_prog_cc_g+y}
! 4351: then :
! 4352: printf %s "(cached) " >&6
! 4353: else $as_nop
1.1 misho 4354: ac_save_c_werror_flag=$ac_c_werror_flag
4355: ac_c_werror_flag=yes
4356: ac_cv_prog_cc_g=no
4357: CFLAGS="-g"
4358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359: /* end confdefs.h. */
4360:
4361: int
1.1.1.3 ! misho 4362: main (void)
1.1 misho 4363: {
4364:
4365: ;
4366: return 0;
4367: }
4368: _ACEOF
1.1.1.3 ! misho 4369: if ac_fn_c_try_compile "$LINENO"
! 4370: then :
1.1 misho 4371: ac_cv_prog_cc_g=yes
1.1.1.3 ! misho 4372: else $as_nop
1.1 misho 4373: CFLAGS=""
4374: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375: /* end confdefs.h. */
4376:
4377: int
1.1.1.3 ! misho 4378: main (void)
1.1 misho 4379: {
4380:
4381: ;
4382: return 0;
4383: }
4384: _ACEOF
1.1.1.3 ! misho 4385: if ac_fn_c_try_compile "$LINENO"
! 4386: then :
1.1 misho 4387:
1.1.1.3 ! misho 4388: else $as_nop
1.1 misho 4389: ac_c_werror_flag=$ac_save_c_werror_flag
4390: CFLAGS="-g"
4391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392: /* end confdefs.h. */
4393:
4394: int
1.1.1.3 ! misho 4395: main (void)
1.1 misho 4396: {
4397:
4398: ;
4399: return 0;
4400: }
4401: _ACEOF
1.1.1.3 ! misho 4402: if ac_fn_c_try_compile "$LINENO"
! 4403: then :
1.1 misho 4404: ac_cv_prog_cc_g=yes
4405: fi
1.1.1.3 ! misho 4406: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4407: fi
1.1.1.3 ! misho 4408: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4409: fi
1.1.1.3 ! misho 4410: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4411: ac_c_werror_flag=$ac_save_c_werror_flag
4412: fi
1.1.1.3 ! misho 4413: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 4414: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
! 4415: if test $ac_test_CFLAGS; then
1.1 misho 4416: CFLAGS=$ac_save_CFLAGS
4417: elif test $ac_cv_prog_cc_g = yes; then
4418: if test "$GCC" = yes; then
4419: CFLAGS="-g -O2"
4420: else
4421: CFLAGS="-g"
4422: fi
4423: else
4424: if test "$GCC" = yes; then
4425: CFLAGS="-O2"
4426: else
4427: CFLAGS=
4428: fi
4429: fi
1.1.1.3 ! misho 4430: ac_prog_cc_stdc=no
! 4431: if test x$ac_prog_cc_stdc = xno
! 4432: then :
! 4433: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
! 4434: printf %s "checking for $CC option to enable C11 features... " >&6; }
! 4435: if test ${ac_cv_prog_cc_c11+y}
! 4436: then :
! 4437: printf %s "(cached) " >&6
! 4438: else $as_nop
! 4439: ac_cv_prog_cc_c11=no
1.1 misho 4440: ac_save_CC=$CC
4441: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442: /* end confdefs.h. */
1.1.1.3 ! misho 4443: $ac_c_conftest_c11_program
! 4444: _ACEOF
! 4445: for ac_arg in '' -std=gnu11
! 4446: do
! 4447: CC="$ac_save_CC $ac_arg"
! 4448: if ac_fn_c_try_compile "$LINENO"
! 4449: then :
! 4450: ac_cv_prog_cc_c11=$ac_arg
! 4451: fi
! 4452: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 4453: test "x$ac_cv_prog_cc_c11" != "xno" && break
! 4454: done
! 4455: rm -f conftest.$ac_ext
! 4456: CC=$ac_save_CC
! 4457: fi
1.1 misho 4458:
1.1.1.3 ! misho 4459: if test "x$ac_cv_prog_cc_c11" = xno
! 4460: then :
! 4461: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4462: printf "%s\n" "unsupported" >&6; }
! 4463: else $as_nop
! 4464: if test "x$ac_cv_prog_cc_c11" = x
! 4465: then :
! 4466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4467: printf "%s\n" "none needed" >&6; }
! 4468: else $as_nop
! 4469: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
! 4470: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
! 4471: CC="$CC $ac_cv_prog_cc_c11"
! 4472: fi
! 4473: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
! 4474: ac_prog_cc_stdc=c11
! 4475: fi
! 4476: fi
! 4477: if test x$ac_prog_cc_stdc = xno
! 4478: then :
! 4479: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
! 4480: printf %s "checking for $CC option to enable C99 features... " >&6; }
! 4481: if test ${ac_cv_prog_cc_c99+y}
! 4482: then :
! 4483: printf %s "(cached) " >&6
! 4484: else $as_nop
! 4485: ac_cv_prog_cc_c99=no
! 4486: ac_save_CC=$CC
! 4487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4488: /* end confdefs.h. */
! 4489: $ac_c_conftest_c99_program
! 4490: _ACEOF
! 4491: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
! 4492: do
! 4493: CC="$ac_save_CC $ac_arg"
! 4494: if ac_fn_c_try_compile "$LINENO"
! 4495: then :
! 4496: ac_cv_prog_cc_c99=$ac_arg
! 4497: fi
! 4498: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 4499: test "x$ac_cv_prog_cc_c99" != "xno" && break
! 4500: done
! 4501: rm -f conftest.$ac_ext
! 4502: CC=$ac_save_CC
! 4503: fi
1.1 misho 4504:
1.1.1.3 ! misho 4505: if test "x$ac_cv_prog_cc_c99" = xno
! 4506: then :
! 4507: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4508: printf "%s\n" "unsupported" >&6; }
! 4509: else $as_nop
! 4510: if test "x$ac_cv_prog_cc_c99" = x
! 4511: then :
! 4512: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4513: printf "%s\n" "none needed" >&6; }
! 4514: else $as_nop
! 4515: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
! 4516: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
! 4517: CC="$CC $ac_cv_prog_cc_c99"
! 4518: fi
! 4519: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
! 4520: ac_prog_cc_stdc=c99
! 4521: fi
! 4522: fi
! 4523: if test x$ac_prog_cc_stdc = xno
! 4524: then :
! 4525: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
! 4526: printf %s "checking for $CC option to enable C89 features... " >&6; }
! 4527: if test ${ac_cv_prog_cc_c89+y}
! 4528: then :
! 4529: printf %s "(cached) " >&6
! 4530: else $as_nop
! 4531: ac_cv_prog_cc_c89=no
! 4532: ac_save_CC=$CC
! 4533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4534: /* end confdefs.h. */
! 4535: $ac_c_conftest_c89_program
1.1 misho 4536: _ACEOF
1.1.1.3 ! misho 4537: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misho 4538: do
4539: CC="$ac_save_CC $ac_arg"
1.1.1.3 ! misho 4540: if ac_fn_c_try_compile "$LINENO"
! 4541: then :
1.1 misho 4542: ac_cv_prog_cc_c89=$ac_arg
4543: fi
1.1.1.3 ! misho 4544: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.1 misho 4545: test "x$ac_cv_prog_cc_c89" != "xno" && break
4546: done
4547: rm -f conftest.$ac_ext
4548: CC=$ac_save_CC
4549: fi
4550:
1.1.1.3 ! misho 4551: if test "x$ac_cv_prog_cc_c89" = xno
! 4552: then :
! 4553: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4554: printf "%s\n" "unsupported" >&6; }
! 4555: else $as_nop
! 4556: if test "x$ac_cv_prog_cc_c89" = x
! 4557: then :
! 4558: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4559: printf "%s\n" "none needed" >&6; }
! 4560: else $as_nop
! 4561: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 4562: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
! 4563: CC="$CC $ac_cv_prog_cc_c89"
! 4564: fi
! 4565: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
! 4566: ac_prog_cc_stdc=c89
! 4567: fi
1.1 misho 4568: fi
4569:
4570: ac_ext=c
4571: ac_cpp='$CPP $CPPFLAGS'
4572: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575:
1.1.1.3 ! misho 4576:
! 4577: ac_ext=c
1.1 misho 4578: ac_cpp='$CPP $CPPFLAGS'
4579: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.3 ! misho 4582: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
! 4583: printf %s "checking whether $CC understands -c and -o together... " >&6; }
! 4584: if test ${am_cv_prog_cc_c_o+y}
! 4585: then :
! 4586: printf %s "(cached) " >&6
! 4587: else $as_nop
1.1 misho 4588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589: /* end confdefs.h. */
4590:
4591: int
1.1.1.3 ! misho 4592: main (void)
1.1 misho 4593: {
4594:
4595: ;
4596: return 0;
4597: }
4598: _ACEOF
4599: # Make sure it works both with $CC and with simple cc.
4600: # Following AC_PROG_CC_C_O, we do the test twice because some
4601: # compilers refuse to overwrite an existing .o file with -o,
4602: # though they will create one.
4603: am_cv_prog_cc_c_o=yes
4604: for am_i in 1 2; do
4605: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4606: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4607: ac_status=$?
4608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609: (exit $ac_status); } \
4610: && test -f conftest2.$ac_objext; then
4611: : OK
4612: else
4613: am_cv_prog_cc_c_o=no
4614: break
4615: fi
4616: done
4617: rm -f core conftest*
4618: unset am_i
4619: fi
1.1.1.3 ! misho 4620: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
! 4621: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.1 misho 4622: if test "$am_cv_prog_cc_c_o" != yes; then
4623: # Losing compiler, so override with the script.
4624: # FIXME: It is wrong to rewrite CC.
4625: # But if we don't then we get into trouble of one sort or another.
4626: # A longer-term fix would be to have automake use am__CC in this case,
4627: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4628: CC="$am_aux_dir/compile $CC"
4629: fi
4630: ac_ext=c
4631: ac_cpp='$CPP $CPPFLAGS'
4632: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635:
4636:
1.1.1.2 misho 4637: depcc="$CC" am_compiler_list=
1.1 misho 4638:
1.1.1.3 ! misho 4639: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 4640: printf %s "checking dependency style of $depcc... " >&6; }
! 4641: if test ${am_cv_CC_dependencies_compiler_type+y}
! 4642: then :
! 4643: printf %s "(cached) " >&6
! 4644: else $as_nop
1.1 misho 4645: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4646: # We make a subdir and do the tests there. Otherwise we can end up
4647: # making bogus files that we don't know about and never remove. For
4648: # instance it was reported that on HP-UX the gcc test will end up
4649: # making a dummy file named 'D' -- because '-MD' means "put the output
4650: # in D".
4651: rm -rf conftest.dir
4652: mkdir conftest.dir
4653: # Copy depcomp to subdir because otherwise we won't find it if we're
4654: # using a relative directory.
4655: cp "$am_depcomp" conftest.dir
4656: cd conftest.dir
4657: # We will build objects and dependencies in a subdirectory because
4658: # it helps to detect inapplicable dependency modes. For instance
4659: # both Tru64's cc and ICC support -MD to output dependencies as a
4660: # side effect of compilation, but ICC will put the dependencies in
4661: # the current directory while Tru64 will put them in the object
4662: # directory.
4663: mkdir sub
4664:
4665: am_cv_CC_dependencies_compiler_type=none
4666: if test "$am_compiler_list" = ""; then
4667: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4668: fi
4669: am__universal=false
4670: case " $depcc " in #(
4671: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4672: esac
4673:
4674: for depmode in $am_compiler_list; do
4675: # Setup a source with many dependencies, because some compilers
4676: # like to wrap large dependency lists on column 80 (with \), and
4677: # we should not choose a depcomp mode which is confused by this.
4678: #
4679: # We need to recreate these files for each test, as the compiler may
4680: # overwrite some of them when testing with obscure command lines.
4681: # This happens at least with the AIX C compiler.
4682: : > sub/conftest.c
4683: for i in 1 2 3 4 5 6; do
4684: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4685: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4686: # Solaris 10 /bin/sh.
4687: echo '/* dummy */' > sub/conftst$i.h
4688: done
4689: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4690:
4691: # We check with '-c' and '-o' for the sake of the "dashmstdout"
4692: # mode. It turns out that the SunPro C++ compiler does not properly
4693: # handle '-M -o', and we need to detect this. Also, some Intel
4694: # versions had trouble with output in subdirs.
4695: am__obj=sub/conftest.${OBJEXT-o}
4696: am__minus_obj="-o $am__obj"
4697: case $depmode in
4698: gcc)
4699: # This depmode causes a compiler race in universal mode.
4700: test "$am__universal" = false || continue
4701: ;;
4702: nosideeffect)
4703: # After this tag, mechanisms are not by side-effect, so they'll
4704: # only be used when explicitly requested.
4705: if test "x$enable_dependency_tracking" = xyes; then
4706: continue
4707: else
4708: break
4709: fi
4710: ;;
4711: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4712: # This compiler won't grok '-c -o', but also, the minuso test has
4713: # not run yet. These depmodes are late enough in the game, and
4714: # so weak that their functioning should not be impacted.
4715: am__obj=conftest.${OBJEXT-o}
4716: am__minus_obj=
4717: ;;
4718: none) break ;;
4719: esac
4720: if depmode=$depmode \
4721: source=sub/conftest.c object=$am__obj \
4722: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4723: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4724: >/dev/null 2>conftest.err &&
4725: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4726: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4727: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4728: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4729: # icc doesn't choke on unknown options, it will just issue warnings
4730: # or remarks (even with -Werror). So we grep stderr for any message
4731: # that says an option was ignored or not supported.
4732: # When given -MP, icc 7.0 and 7.1 complain thusly:
4733: # icc: Command line warning: ignoring option '-M'; no argument required
4734: # The diagnosis changed in icc 8.0:
4735: # icc: Command line remark: option '-MP' not supported
4736: if (grep 'ignoring option' conftest.err ||
4737: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4738: am_cv_CC_dependencies_compiler_type=$depmode
4739: break
4740: fi
4741: fi
4742: done
4743:
4744: cd ..
4745: rm -rf conftest.dir
4746: else
4747: am_cv_CC_dependencies_compiler_type=none
4748: fi
4749:
4750: fi
1.1.1.3 ! misho 4751: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 4752: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.1 misho 4753: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4754:
4755: if
4756: test "x$enable_dependency_tracking" != xno \
4757: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4758: am__fastdepCC_TRUE=
4759: am__fastdepCC_FALSE='#'
4760: else
4761: am__fastdepCC_TRUE='#'
4762: am__fastdepCC_FALSE=
4763: fi
4764:
4765:
1.1.1.3 ! misho 4766: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
! 4767: printf %s "checking for a sed that does not truncate output... " >&6; }
! 4768: if test ${ac_cv_path_SED+y}
! 4769: then :
! 4770: printf %s "(cached) " >&6
! 4771: else $as_nop
1.1 misho 4772: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4773: for ac_i in 1 2 3 4 5 6 7; do
4774: ac_script="$ac_script$as_nl$ac_script"
4775: done
4776: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777: { ac_script=; unset ac_script;}
4778: if test -z "$SED"; then
4779: ac_path_SED_found=false
4780: # Loop through the user's path and test for each of PROGNAME-LIST
4781: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782: for as_dir in $PATH
4783: do
4784: IFS=$as_save_IFS
1.1.1.3 ! misho 4785: case $as_dir in #(((
! 4786: '') as_dir=./ ;;
! 4787: */) ;;
! 4788: *) as_dir=$as_dir/ ;;
! 4789: esac
! 4790: for ac_prog in sed gsed
! 4791: do
1.1 misho 4792: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4793: ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
1.1 misho 4794: as_fn_executable_p "$ac_path_SED" || continue
4795: # Check for GNU ac_path_SED and select it if it is found.
4796: # Check for GNU $ac_path_SED
4797: case `"$ac_path_SED" --version 2>&1` in
4798: *GNU*)
4799: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4800: *)
4801: ac_count=0
1.1.1.3 ! misho 4802: printf %s 0123456789 >"conftest.in"
1.1 misho 4803: while :
4804: do
4805: cat "conftest.in" "conftest.in" >"conftest.tmp"
4806: mv "conftest.tmp" "conftest.in"
4807: cp "conftest.in" "conftest.nl"
1.1.1.3 ! misho 4808: printf "%s\n" '' >> "conftest.nl"
1.1 misho 4809: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4810: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4811: as_fn_arith $ac_count + 1 && ac_count=$as_val
4812: if test $ac_count -gt ${ac_path_SED_max-0}; then
4813: # Best one so far, save it but keep looking for a better one
4814: ac_cv_path_SED="$ac_path_SED"
4815: ac_path_SED_max=$ac_count
4816: fi
4817: # 10*(2^10) chars as input seems more than enough
4818: test $ac_count -gt 10 && break
4819: done
4820: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821: esac
4822:
4823: $ac_path_SED_found && break 3
4824: done
4825: done
4826: done
4827: IFS=$as_save_IFS
4828: if test -z "$ac_cv_path_SED"; then
4829: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4830: fi
4831: else
4832: ac_cv_path_SED=$SED
4833: fi
4834:
4835: fi
1.1.1.3 ! misho 4836: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
! 4837: printf "%s\n" "$ac_cv_path_SED" >&6; }
1.1 misho 4838: SED="$ac_cv_path_SED"
4839: rm -f conftest.sed
4840:
4841: test -z "$SED" && SED=sed
4842: Xsed="$SED -e 1s/^X//"
4843:
4844:
4845:
4846:
4847:
4848:
4849:
4850:
4851:
4852:
4853:
1.1.1.3 ! misho 4854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 4855: printf %s "checking for grep that handles long lines and -e... " >&6; }
! 4856: if test ${ac_cv_path_GREP+y}
! 4857: then :
! 4858: printf %s "(cached) " >&6
! 4859: else $as_nop
1.1 misho 4860: if test -z "$GREP"; then
4861: ac_path_GREP_found=false
4862: # Loop through the user's path and test for each of PROGNAME-LIST
4863: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4865: do
4866: IFS=$as_save_IFS
1.1.1.3 ! misho 4867: case $as_dir in #(((
! 4868: '') as_dir=./ ;;
! 4869: */) ;;
! 4870: *) as_dir=$as_dir/ ;;
! 4871: esac
! 4872: for ac_prog in grep ggrep
! 4873: do
1.1 misho 4874: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4875: ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
1.1 misho 4876: as_fn_executable_p "$ac_path_GREP" || continue
4877: # Check for GNU ac_path_GREP and select it if it is found.
4878: # Check for GNU $ac_path_GREP
4879: case `"$ac_path_GREP" --version 2>&1` in
4880: *GNU*)
4881: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4882: *)
4883: ac_count=0
1.1.1.3 ! misho 4884: printf %s 0123456789 >"conftest.in"
1.1 misho 4885: while :
4886: do
4887: cat "conftest.in" "conftest.in" >"conftest.tmp"
4888: mv "conftest.tmp" "conftest.in"
4889: cp "conftest.in" "conftest.nl"
1.1.1.3 ! misho 4890: printf "%s\n" 'GREP' >> "conftest.nl"
1.1 misho 4891: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893: as_fn_arith $ac_count + 1 && ac_count=$as_val
4894: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4895: # Best one so far, save it but keep looking for a better one
4896: ac_cv_path_GREP="$ac_path_GREP"
4897: ac_path_GREP_max=$ac_count
4898: fi
4899: # 10*(2^10) chars as input seems more than enough
4900: test $ac_count -gt 10 && break
4901: done
4902: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903: esac
4904:
4905: $ac_path_GREP_found && break 3
4906: done
4907: done
4908: done
4909: IFS=$as_save_IFS
4910: if test -z "$ac_cv_path_GREP"; then
4911: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4912: fi
4913: else
4914: ac_cv_path_GREP=$GREP
4915: fi
4916:
4917: fi
1.1.1.3 ! misho 4918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 4919: printf "%s\n" "$ac_cv_path_GREP" >&6; }
1.1 misho 4920: GREP="$ac_cv_path_GREP"
4921:
4922:
1.1.1.3 ! misho 4923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 4924: printf %s "checking for egrep... " >&6; }
! 4925: if test ${ac_cv_path_EGREP+y}
! 4926: then :
! 4927: printf %s "(cached) " >&6
! 4928: else $as_nop
1.1 misho 4929: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4930: then ac_cv_path_EGREP="$GREP -E"
4931: else
4932: if test -z "$EGREP"; then
4933: ac_path_EGREP_found=false
4934: # Loop through the user's path and test for each of PROGNAME-LIST
4935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4937: do
4938: IFS=$as_save_IFS
1.1.1.3 ! misho 4939: case $as_dir in #(((
! 4940: '') as_dir=./ ;;
! 4941: */) ;;
! 4942: *) as_dir=$as_dir/ ;;
! 4943: esac
! 4944: for ac_prog in egrep
! 4945: do
1.1 misho 4946: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4947: ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
1.1 misho 4948: as_fn_executable_p "$ac_path_EGREP" || continue
4949: # Check for GNU ac_path_EGREP and select it if it is found.
4950: # Check for GNU $ac_path_EGREP
4951: case `"$ac_path_EGREP" --version 2>&1` in
4952: *GNU*)
4953: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4954: *)
4955: ac_count=0
1.1.1.3 ! misho 4956: printf %s 0123456789 >"conftest.in"
1.1 misho 4957: while :
4958: do
4959: cat "conftest.in" "conftest.in" >"conftest.tmp"
4960: mv "conftest.tmp" "conftest.in"
4961: cp "conftest.in" "conftest.nl"
1.1.1.3 ! misho 4962: printf "%s\n" 'EGREP' >> "conftest.nl"
1.1 misho 4963: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965: as_fn_arith $ac_count + 1 && ac_count=$as_val
4966: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4967: # Best one so far, save it but keep looking for a better one
4968: ac_cv_path_EGREP="$ac_path_EGREP"
4969: ac_path_EGREP_max=$ac_count
4970: fi
4971: # 10*(2^10) chars as input seems more than enough
4972: test $ac_count -gt 10 && break
4973: done
4974: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975: esac
4976:
4977: $ac_path_EGREP_found && break 3
4978: done
4979: done
4980: done
4981: IFS=$as_save_IFS
4982: if test -z "$ac_cv_path_EGREP"; then
4983: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4984: fi
4985: else
4986: ac_cv_path_EGREP=$EGREP
4987: fi
4988:
4989: fi
4990: fi
1.1.1.3 ! misho 4991: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 4992: printf "%s\n" "$ac_cv_path_EGREP" >&6; }
1.1 misho 4993: EGREP="$ac_cv_path_EGREP"
4994:
4995:
1.1.1.3 ! misho 4996: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
! 4997: printf %s "checking for fgrep... " >&6; }
! 4998: if test ${ac_cv_path_FGREP+y}
! 4999: then :
! 5000: printf %s "(cached) " >&6
! 5001: else $as_nop
1.1 misho 5002: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5003: then ac_cv_path_FGREP="$GREP -F"
5004: else
5005: if test -z "$FGREP"; then
5006: ac_path_FGREP_found=false
5007: # Loop through the user's path and test for each of PROGNAME-LIST
5008: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5010: do
5011: IFS=$as_save_IFS
1.1.1.3 ! misho 5012: case $as_dir in #(((
! 5013: '') as_dir=./ ;;
! 5014: */) ;;
! 5015: *) as_dir=$as_dir/ ;;
! 5016: esac
! 5017: for ac_prog in fgrep
! 5018: do
1.1 misho 5019: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5020: ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
1.1 misho 5021: as_fn_executable_p "$ac_path_FGREP" || continue
5022: # Check for GNU ac_path_FGREP and select it if it is found.
5023: # Check for GNU $ac_path_FGREP
5024: case `"$ac_path_FGREP" --version 2>&1` in
5025: *GNU*)
5026: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5027: *)
5028: ac_count=0
1.1.1.3 ! misho 5029: printf %s 0123456789 >"conftest.in"
1.1 misho 5030: while :
5031: do
5032: cat "conftest.in" "conftest.in" >"conftest.tmp"
5033: mv "conftest.tmp" "conftest.in"
5034: cp "conftest.in" "conftest.nl"
1.1.1.3 ! misho 5035: printf "%s\n" 'FGREP' >> "conftest.nl"
1.1 misho 5036: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5037: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5038: as_fn_arith $ac_count + 1 && ac_count=$as_val
5039: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5040: # Best one so far, save it but keep looking for a better one
5041: ac_cv_path_FGREP="$ac_path_FGREP"
5042: ac_path_FGREP_max=$ac_count
5043: fi
5044: # 10*(2^10) chars as input seems more than enough
5045: test $ac_count -gt 10 && break
5046: done
5047: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5048: esac
5049:
5050: $ac_path_FGREP_found && break 3
5051: done
5052: done
5053: done
5054: IFS=$as_save_IFS
5055: if test -z "$ac_cv_path_FGREP"; then
5056: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5057: fi
5058: else
5059: ac_cv_path_FGREP=$FGREP
5060: fi
5061:
5062: fi
5063: fi
1.1.1.3 ! misho 5064: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
! 5065: printf "%s\n" "$ac_cv_path_FGREP" >&6; }
1.1 misho 5066: FGREP="$ac_cv_path_FGREP"
5067:
5068:
5069: test -z "$GREP" && GREP=grep
5070:
5071:
5072:
5073:
5074:
5075:
5076:
5077:
5078:
5079:
5080:
5081:
5082:
5083:
5084:
5085:
5086:
5087:
5088:
5089: # Check whether --with-gnu-ld was given.
1.1.1.3 ! misho 5090: if test ${with_gnu_ld+y}
! 5091: then :
1.1 misho 5092: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
1.1.1.3 ! misho 5093: else $as_nop
1.1 misho 5094: with_gnu_ld=no
5095: fi
5096:
5097: ac_prog=ld
5098: if test yes = "$GCC"; then
5099: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.3 ! misho 5100: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 5101: printf %s "checking for ld used by $CC... " >&6; }
1.1 misho 5102: case $host in
5103: *-*-mingw*)
5104: # gcc leaves a trailing carriage return, which upsets mingw
5105: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5106: *)
5107: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5108: esac
5109: case $ac_prog in
5110: # Accept absolute paths.
5111: [\\/]* | ?:[\\/]*)
5112: re_direlt='/[^/][^/]*/\.\./'
5113: # Canonicalize the pathname of ld
5114: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5115: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5116: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5117: done
5118: test -z "$LD" && LD=$ac_prog
5119: ;;
5120: "")
5121: # If it fails, then pretend we aren't using GCC.
5122: ac_prog=ld
5123: ;;
5124: *)
5125: # If it is relative, then search for the first ld in PATH.
5126: with_gnu_ld=unknown
5127: ;;
5128: esac
5129: elif test yes = "$with_gnu_ld"; then
1.1.1.3 ! misho 5130: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 5131: printf %s "checking for GNU ld... " >&6; }
1.1 misho 5132: else
1.1.1.3 ! misho 5133: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 5134: printf %s "checking for non-GNU ld... " >&6; }
1.1 misho 5135: fi
1.1.1.3 ! misho 5136: if test ${lt_cv_path_LD+y}
! 5137: then :
! 5138: printf %s "(cached) " >&6
! 5139: else $as_nop
1.1 misho 5140: if test -z "$LD"; then
5141: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5142: for ac_dir in $PATH; do
5143: IFS=$lt_save_ifs
5144: test -z "$ac_dir" && ac_dir=.
5145: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5146: lt_cv_path_LD=$ac_dir/$ac_prog
5147: # Check to see if the program is GNU ld. I'd rather use --version,
5148: # but apparently some variants of GNU ld only accept -v.
5149: # Break only if it was the GNU/non-GNU ld that we prefer.
5150: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5151: *GNU* | *'with BFD'*)
5152: test no != "$with_gnu_ld" && break
5153: ;;
5154: *)
5155: test yes != "$with_gnu_ld" && break
5156: ;;
5157: esac
5158: fi
5159: done
5160: IFS=$lt_save_ifs
5161: else
5162: lt_cv_path_LD=$LD # Let the user override the test with a path.
5163: fi
5164: fi
5165:
5166: LD=$lt_cv_path_LD
5167: if test -n "$LD"; then
1.1.1.3 ! misho 5168: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 5169: printf "%s\n" "$LD" >&6; }
1.1 misho 5170: else
1.1.1.3 ! misho 5171: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5172: printf "%s\n" "no" >&6; }
1.1 misho 5173: fi
5174: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.1.1.3 ! misho 5175: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 5176: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
! 5177: if test ${lt_cv_prog_gnu_ld+y}
! 5178: then :
! 5179: printf %s "(cached) " >&6
! 5180: else $as_nop
1.1 misho 5181: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5182: case `$LD -v 2>&1 </dev/null` in
5183: *GNU* | *'with BFD'*)
5184: lt_cv_prog_gnu_ld=yes
5185: ;;
5186: *)
5187: lt_cv_prog_gnu_ld=no
5188: ;;
5189: esac
5190: fi
1.1.1.3 ! misho 5191: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 5192: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.1 misho 5193: with_gnu_ld=$lt_cv_prog_gnu_ld
5194:
5195:
5196:
5197:
5198:
5199:
5200:
5201:
5202:
1.1.1.3 ! misho 5203: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
! 5204: printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
! 5205: if test ${lt_cv_path_NM+y}
! 5206: then :
! 5207: printf %s "(cached) " >&6
! 5208: else $as_nop
1.1 misho 5209: if test -n "$NM"; then
5210: # Let the user override the test.
5211: lt_cv_path_NM=$NM
5212: else
5213: lt_nm_to_check=${ac_tool_prefix}nm
5214: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5215: lt_nm_to_check="$lt_nm_to_check nm"
5216: fi
5217: for lt_tmp_nm in $lt_nm_to_check; do
5218: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5219: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5220: IFS=$lt_save_ifs
5221: test -z "$ac_dir" && ac_dir=.
5222: tmp_nm=$ac_dir/$lt_tmp_nm
5223: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5224: # Check to see if the nm accepts a BSD-compat flag.
5225: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5226: # nm: unknown option "B" ignored
5227: # Tru64's nm complains that /dev/null is an invalid object file
5228: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5229: case $build_os in
5230: mingw*) lt_bad_file=conftest.nm/nofile ;;
5231: *) lt_bad_file=/dev/null ;;
5232: esac
1.1.1.3 ! misho 5233: case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
1.1 misho 5234: *$lt_bad_file* | *'Invalid file or object type'*)
5235: lt_cv_path_NM="$tmp_nm -B"
5236: break 2
5237: ;;
5238: *)
1.1.1.3 ! misho 5239: case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
1.1 misho 5240: */dev/null*)
5241: lt_cv_path_NM="$tmp_nm -p"
5242: break 2
5243: ;;
5244: *)
5245: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5246: continue # so that we can try to find one that supports BSD flags
5247: ;;
5248: esac
5249: ;;
5250: esac
5251: fi
5252: done
5253: IFS=$lt_save_ifs
5254: done
5255: : ${lt_cv_path_NM=no}
5256: fi
5257: fi
1.1.1.3 ! misho 5258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
! 5259: printf "%s\n" "$lt_cv_path_NM" >&6; }
1.1 misho 5260: if test no != "$lt_cv_path_NM"; then
5261: NM=$lt_cv_path_NM
5262: else
5263: # Didn't find any BSD compatible name lister, look for dumpbin.
5264: if test -n "$DUMPBIN"; then :
5265: # Let the user override the test.
5266: else
5267: if test -n "$ac_tool_prefix"; then
5268: for ac_prog in dumpbin "link -dump"
5269: do
5270: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5271: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.3 ! misho 5272: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5273: printf %s "checking for $ac_word... " >&6; }
! 5274: if test ${ac_cv_prog_DUMPBIN+y}
! 5275: then :
! 5276: printf %s "(cached) " >&6
! 5277: else $as_nop
1.1 misho 5278: if test -n "$DUMPBIN"; then
5279: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5280: else
5281: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282: for as_dir in $PATH
5283: do
5284: IFS=$as_save_IFS
1.1.1.3 ! misho 5285: case $as_dir in #(((
! 5286: '') as_dir=./ ;;
! 5287: */) ;;
! 5288: *) as_dir=$as_dir/ ;;
! 5289: esac
1.1 misho 5290: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5291: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 5292: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.1.1.3 ! misho 5293: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 5294: break 2
5295: fi
5296: done
5297: done
5298: IFS=$as_save_IFS
5299:
5300: fi
5301: fi
5302: DUMPBIN=$ac_cv_prog_DUMPBIN
5303: if test -n "$DUMPBIN"; then
1.1.1.3 ! misho 5304: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
! 5305: printf "%s\n" "$DUMPBIN" >&6; }
1.1 misho 5306: else
1.1.1.3 ! misho 5307: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5308: printf "%s\n" "no" >&6; }
1.1 misho 5309: fi
5310:
5311:
5312: test -n "$DUMPBIN" && break
5313: done
5314: fi
5315: if test -z "$DUMPBIN"; then
5316: ac_ct_DUMPBIN=$DUMPBIN
5317: for ac_prog in dumpbin "link -dump"
5318: do
5319: # Extract the first word of "$ac_prog", so it can be a program name with args.
5320: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 5321: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5322: printf %s "checking for $ac_word... " >&6; }
! 5323: if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
! 5324: then :
! 5325: printf %s "(cached) " >&6
! 5326: else $as_nop
1.1 misho 5327: if test -n "$ac_ct_DUMPBIN"; then
5328: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5329: else
5330: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331: for as_dir in $PATH
5332: do
5333: IFS=$as_save_IFS
1.1.1.3 ! misho 5334: case $as_dir in #(((
! 5335: '') as_dir=./ ;;
! 5336: */) ;;
! 5337: *) as_dir=$as_dir/ ;;
! 5338: esac
1.1 misho 5339: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5340: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 5341: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.1.1.3 ! misho 5342: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 5343: break 2
5344: fi
5345: done
5346: done
5347: IFS=$as_save_IFS
5348:
5349: fi
5350: fi
5351: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5352: if test -n "$ac_ct_DUMPBIN"; then
1.1.1.3 ! misho 5353: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
! 5354: printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
1.1 misho 5355: else
1.1.1.3 ! misho 5356: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5357: printf "%s\n" "no" >&6; }
1.1 misho 5358: fi
5359:
5360:
5361: test -n "$ac_ct_DUMPBIN" && break
5362: done
5363:
5364: if test "x$ac_ct_DUMPBIN" = x; then
5365: DUMPBIN=":"
5366: else
5367: case $cross_compiling:$ac_tool_warned in
5368: yes:)
1.1.1.3 ! misho 5369: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5370: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 5371: ac_tool_warned=yes ;;
5372: esac
5373: DUMPBIN=$ac_ct_DUMPBIN
5374: fi
5375: fi
5376:
1.1.1.3 ! misho 5377: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
1.1 misho 5378: *COFF*)
5379: DUMPBIN="$DUMPBIN -symbols -headers"
5380: ;;
5381: *)
5382: DUMPBIN=:
5383: ;;
5384: esac
5385: fi
5386:
5387: if test : != "$DUMPBIN"; then
5388: NM=$DUMPBIN
5389: fi
5390: fi
5391: test -z "$NM" && NM=nm
5392:
5393:
5394:
5395:
5396:
5397:
1.1.1.3 ! misho 5398: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
! 5399: printf %s "checking the name lister ($NM) interface... " >&6; }
! 5400: if test ${lt_cv_nm_interface+y}
! 5401: then :
! 5402: printf %s "(cached) " >&6
! 5403: else $as_nop
1.1 misho 5404: lt_cv_nm_interface="BSD nm"
5405: echo "int some_variable = 0;" > conftest.$ac_ext
5406: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5407: (eval "$ac_compile" 2>conftest.err)
5408: cat conftest.err >&5
5409: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5410: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5411: cat conftest.err >&5
5412: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5413: cat conftest.out >&5
5414: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5415: lt_cv_nm_interface="MS dumpbin"
5416: fi
5417: rm -f conftest*
5418: fi
1.1.1.3 ! misho 5419: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
! 5420: printf "%s\n" "$lt_cv_nm_interface" >&6; }
1.1 misho 5421:
1.1.1.3 ! misho 5422: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 5423: printf %s "checking whether ln -s works... " >&6; }
1.1.1.2 misho 5424: LN_S=$as_ln_s
5425: if test "$LN_S" = "ln -s"; then
1.1.1.3 ! misho 5426: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5427: printf "%s\n" "yes" >&6; }
1.1.1.2 misho 5428: else
1.1.1.3 ! misho 5429: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 5430: printf "%s\n" "no, using $LN_S" >&6; }
1.1.1.2 misho 5431: fi
5432:
1.1 misho 5433: # find the maximum length of command line arguments
1.1.1.3 ! misho 5434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
! 5435: printf %s "checking the maximum length of command line arguments... " >&6; }
! 5436: if test ${lt_cv_sys_max_cmd_len+y}
! 5437: then :
! 5438: printf %s "(cached) " >&6
! 5439: else $as_nop
1.1 misho 5440: i=0
5441: teststring=ABCD
5442:
5443: case $build_os in
5444: msdosdjgpp*)
5445: # On DJGPP, this test can blow up pretty badly due to problems in libc
5446: # (any single argument exceeding 2000 bytes causes a buffer overrun
5447: # during glob expansion). Even if it were fixed, the result of this
5448: # check would be larger than it should be.
5449: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5450: ;;
5451:
5452: gnu*)
5453: # Under GNU Hurd, this test is not required because there is
5454: # no limit to the length of command line arguments.
5455: # Libtool will interpret -1 as no limit whatsoever
5456: lt_cv_sys_max_cmd_len=-1;
5457: ;;
5458:
5459: cygwin* | mingw* | cegcc*)
5460: # On Win9x/ME, this test blows up -- it succeeds, but takes
5461: # about 5 minutes as the teststring grows exponentially.
5462: # Worse, since 9x/ME are not pre-emptively multitasking,
5463: # you end up with a "frozen" computer, even though with patience
5464: # the test eventually succeeds (with a max line length of 256k).
5465: # Instead, let's just punt: use the minimum linelength reported by
5466: # all of the supported platforms: 8192 (on NT/2K/XP).
5467: lt_cv_sys_max_cmd_len=8192;
5468: ;;
5469:
5470: mint*)
5471: # On MiNT this can take a long time and run out of memory.
5472: lt_cv_sys_max_cmd_len=8192;
5473: ;;
5474:
5475: amigaos*)
5476: # On AmigaOS with pdksh, this test takes hours, literally.
5477: # So we just punt and use a minimum line length of 8192.
5478: lt_cv_sys_max_cmd_len=8192;
5479: ;;
5480:
1.1.1.3 ! misho 5481: bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1.1 misho 5482: # This has been around since 386BSD, at least. Likely further.
5483: if test -x /sbin/sysctl; then
5484: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5485: elif test -x /usr/sbin/sysctl; then
5486: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5487: else
5488: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5489: fi
5490: # And add a safety zone
5491: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5492: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5493: ;;
5494:
5495: interix*)
5496: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5497: lt_cv_sys_max_cmd_len=196608
5498: ;;
5499:
5500: os2*)
5501: # The test takes a long time on OS/2.
5502: lt_cv_sys_max_cmd_len=8192
5503: ;;
5504:
5505: osf*)
5506: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5507: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5508: # nice to cause kernel panics so lets avoid the loop below.
5509: # First set a reasonable default.
5510: lt_cv_sys_max_cmd_len=16384
5511: #
5512: if test -x /sbin/sysconfig; then
5513: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5514: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5515: esac
5516: fi
5517: ;;
5518: sco3.2v5*)
5519: lt_cv_sys_max_cmd_len=102400
5520: ;;
5521: sysv5* | sco5v6* | sysv4.2uw2*)
5522: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5523: if test -n "$kargmax"; then
1.1.1.3 ! misho 5524: lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
1.1 misho 5525: else
5526: lt_cv_sys_max_cmd_len=32768
5527: fi
5528: ;;
5529: *)
5530: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5531: if test -n "$lt_cv_sys_max_cmd_len" && \
5532: test undefined != "$lt_cv_sys_max_cmd_len"; then
5533: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5534: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5535: else
5536: # Make teststring a little bigger before we do anything with it.
5537: # a 1K string should be a reasonable start.
5538: for i in 1 2 3 4 5 6 7 8; do
5539: teststring=$teststring$teststring
5540: done
5541: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5542: # If test is not a shell built-in, we'll probably end up computing a
5543: # maximum length that is only half of the actual maximum length, but
5544: # we can't tell.
5545: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5546: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5547: test 17 != "$i" # 1/2 MB should be enough
5548: do
5549: i=`expr $i + 1`
5550: teststring=$teststring$teststring
5551: done
5552: # Only check the string length outside the loop.
5553: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5554: teststring=
5555: # Add a significant safety factor because C++ compilers can tack on
5556: # massive amounts of additional arguments before passing them to the
5557: # linker. It appears as though 1/2 is a usable value.
5558: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5559: fi
5560: ;;
5561: esac
5562:
5563: fi
5564:
5565: if test -n "$lt_cv_sys_max_cmd_len"; then
1.1.1.3 ! misho 5566: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
! 5567: printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
1.1 misho 5568: else
1.1.1.3 ! misho 5569: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
! 5570: printf "%s\n" "none" >&6; }
1.1 misho 5571: fi
5572: max_cmd_len=$lt_cv_sys_max_cmd_len
5573:
5574:
5575:
5576:
5577:
5578:
5579: : ${CP="cp -f"}
5580: : ${MV="mv -f"}
5581: : ${RM="rm -f"}
5582:
5583: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5584: lt_unset=unset
5585: else
5586: lt_unset=false
5587: fi
5588:
5589:
5590:
5591:
5592:
5593: # test EBCDIC or ASCII
5594: case `echo X|tr X '\101'` in
5595: A) # ASCII based system
5596: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5597: lt_SP2NL='tr \040 \012'
5598: lt_NL2SP='tr \015\012 \040\040'
5599: ;;
5600: *) # EBCDIC based system
5601: lt_SP2NL='tr \100 \n'
5602: lt_NL2SP='tr \r\n \100\100'
5603: ;;
5604: esac
5605:
5606:
5607:
5608:
5609:
5610:
5611:
5612:
5613:
1.1.1.3 ! misho 5614: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
! 5615: printf %s "checking how to convert $build file names to $host format... " >&6; }
! 5616: if test ${lt_cv_to_host_file_cmd+y}
! 5617: then :
! 5618: printf %s "(cached) " >&6
! 5619: else $as_nop
1.1 misho 5620: case $host in
5621: *-*-mingw* )
5622: case $build in
5623: *-*-mingw* ) # actually msys
5624: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5625: ;;
5626: *-*-cygwin* )
5627: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5628: ;;
5629: * ) # otherwise, assume *nix
5630: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5631: ;;
5632: esac
5633: ;;
5634: *-*-cygwin* )
5635: case $build in
5636: *-*-mingw* ) # actually msys
5637: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5638: ;;
5639: *-*-cygwin* )
5640: lt_cv_to_host_file_cmd=func_convert_file_noop
5641: ;;
5642: * ) # otherwise, assume *nix
5643: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5644: ;;
5645: esac
5646: ;;
5647: * ) # unhandled hosts (and "normal" native builds)
5648: lt_cv_to_host_file_cmd=func_convert_file_noop
5649: ;;
5650: esac
5651:
5652: fi
5653:
5654: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.1.1.3 ! misho 5655: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
! 5656: printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
1.1 misho 5657:
5658:
5659:
5660:
5661:
1.1.1.3 ! misho 5662: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
! 5663: printf %s "checking how to convert $build file names to toolchain format... " >&6; }
! 5664: if test ${lt_cv_to_tool_file_cmd+y}
! 5665: then :
! 5666: printf %s "(cached) " >&6
! 5667: else $as_nop
1.1 misho 5668: #assume ordinary cross tools, or native build.
5669: lt_cv_to_tool_file_cmd=func_convert_file_noop
5670: case $host in
5671: *-*-mingw* )
5672: case $build in
5673: *-*-mingw* ) # actually msys
5674: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5675: ;;
5676: esac
5677: ;;
5678: esac
5679:
5680: fi
5681:
5682: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1.1.3 ! misho 5683: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
! 5684: printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
1.1 misho 5685:
5686:
5687:
5688:
5689:
1.1.1.3 ! misho 5690: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
! 5691: printf %s "checking for $LD option to reload object files... " >&6; }
! 5692: if test ${lt_cv_ld_reload_flag+y}
! 5693: then :
! 5694: printf %s "(cached) " >&6
! 5695: else $as_nop
1.1 misho 5696: lt_cv_ld_reload_flag='-r'
5697: fi
1.1.1.3 ! misho 5698: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
! 5699: printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
1.1 misho 5700: reload_flag=$lt_cv_ld_reload_flag
5701: case $reload_flag in
5702: "" | " "*) ;;
5703: *) reload_flag=" $reload_flag" ;;
5704: esac
5705: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5706: case $host_os in
5707: cygwin* | mingw* | pw32* | cegcc*)
5708: if test yes != "$GCC"; then
5709: reload_cmds=false
5710: fi
5711: ;;
5712: darwin*)
5713: if test yes = "$GCC"; then
5714: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5715: else
5716: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5717: fi
5718: ;;
5719: esac
5720:
5721:
5722:
5723:
5724:
5725:
5726:
5727:
5728:
5729: if test -n "$ac_tool_prefix"; then
1.1.1.3 ! misho 5730: # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
! 5731: set dummy ${ac_tool_prefix}file; ac_word=$2
! 5732: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5733: printf %s "checking for $ac_word... " >&6; }
! 5734: if test ${ac_cv_prog_FILECMD+y}
! 5735: then :
! 5736: printf %s "(cached) " >&6
! 5737: else $as_nop
! 5738: if test -n "$FILECMD"; then
! 5739: ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
! 5740: else
! 5741: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5742: for as_dir in $PATH
! 5743: do
! 5744: IFS=$as_save_IFS
! 5745: case $as_dir in #(((
! 5746: '') as_dir=./ ;;
! 5747: */) ;;
! 5748: *) as_dir=$as_dir/ ;;
! 5749: esac
! 5750: for ac_exec_ext in '' $ac_executable_extensions; do
! 5751: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 5752: ac_cv_prog_FILECMD="${ac_tool_prefix}file"
! 5753: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 5754: break 2
! 5755: fi
! 5756: done
! 5757: done
! 5758: IFS=$as_save_IFS
! 5759:
! 5760: fi
! 5761: fi
! 5762: FILECMD=$ac_cv_prog_FILECMD
! 5763: if test -n "$FILECMD"; then
! 5764: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
! 5765: printf "%s\n" "$FILECMD" >&6; }
! 5766: else
! 5767: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5768: printf "%s\n" "no" >&6; }
! 5769: fi
! 5770:
! 5771:
! 5772: fi
! 5773: if test -z "$ac_cv_prog_FILECMD"; then
! 5774: ac_ct_FILECMD=$FILECMD
! 5775: # Extract the first word of "file", so it can be a program name with args.
! 5776: set dummy file; ac_word=$2
! 5777: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5778: printf %s "checking for $ac_word... " >&6; }
! 5779: if test ${ac_cv_prog_ac_ct_FILECMD+y}
! 5780: then :
! 5781: printf %s "(cached) " >&6
! 5782: else $as_nop
! 5783: if test -n "$ac_ct_FILECMD"; then
! 5784: ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
! 5785: else
! 5786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5787: for as_dir in $PATH
! 5788: do
! 5789: IFS=$as_save_IFS
! 5790: case $as_dir in #(((
! 5791: '') as_dir=./ ;;
! 5792: */) ;;
! 5793: *) as_dir=$as_dir/ ;;
! 5794: esac
! 5795: for ac_exec_ext in '' $ac_executable_extensions; do
! 5796: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 5797: ac_cv_prog_ac_ct_FILECMD="file"
! 5798: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 5799: break 2
! 5800: fi
! 5801: done
! 5802: done
! 5803: IFS=$as_save_IFS
! 5804:
! 5805: fi
! 5806: fi
! 5807: ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
! 5808: if test -n "$ac_ct_FILECMD"; then
! 5809: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
! 5810: printf "%s\n" "$ac_ct_FILECMD" >&6; }
! 5811: else
! 5812: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5813: printf "%s\n" "no" >&6; }
! 5814: fi
! 5815:
! 5816: if test "x$ac_ct_FILECMD" = x; then
! 5817: FILECMD=":"
! 5818: else
! 5819: case $cross_compiling:$ac_tool_warned in
! 5820: yes:)
! 5821: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5822: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5823: ac_tool_warned=yes ;;
! 5824: esac
! 5825: FILECMD=$ac_ct_FILECMD
! 5826: fi
! 5827: else
! 5828: FILECMD="$ac_cv_prog_FILECMD"
! 5829: fi
! 5830:
! 5831:
! 5832:
! 5833:
! 5834:
! 5835:
! 5836:
! 5837: if test -n "$ac_tool_prefix"; then
1.1 misho 5838: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5839: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.1.1.3 ! misho 5840: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5841: printf %s "checking for $ac_word... " >&6; }
! 5842: if test ${ac_cv_prog_OBJDUMP+y}
! 5843: then :
! 5844: printf %s "(cached) " >&6
! 5845: else $as_nop
1.1 misho 5846: if test -n "$OBJDUMP"; then
5847: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5848: else
5849: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850: for as_dir in $PATH
5851: do
5852: IFS=$as_save_IFS
1.1.1.3 ! misho 5853: case $as_dir in #(((
! 5854: '') as_dir=./ ;;
! 5855: */) ;;
! 5856: *) as_dir=$as_dir/ ;;
! 5857: esac
1.1 misho 5858: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5859: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 5860: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.1.1.3 ! misho 5861: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 5862: break 2
5863: fi
5864: done
5865: done
5866: IFS=$as_save_IFS
5867:
5868: fi
5869: fi
5870: OBJDUMP=$ac_cv_prog_OBJDUMP
5871: if test -n "$OBJDUMP"; then
1.1.1.3 ! misho 5872: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 5873: printf "%s\n" "$OBJDUMP" >&6; }
1.1 misho 5874: else
1.1.1.3 ! misho 5875: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5876: printf "%s\n" "no" >&6; }
1.1 misho 5877: fi
5878:
5879:
5880: fi
5881: if test -z "$ac_cv_prog_OBJDUMP"; then
5882: ac_ct_OBJDUMP=$OBJDUMP
5883: # Extract the first word of "objdump", so it can be a program name with args.
5884: set dummy objdump; ac_word=$2
1.1.1.3 ! misho 5885: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5886: printf %s "checking for $ac_word... " >&6; }
! 5887: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
! 5888: then :
! 5889: printf %s "(cached) " >&6
! 5890: else $as_nop
1.1 misho 5891: if test -n "$ac_ct_OBJDUMP"; then
5892: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5893: else
5894: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895: for as_dir in $PATH
5896: do
5897: IFS=$as_save_IFS
1.1.1.3 ! misho 5898: case $as_dir in #(((
! 5899: '') as_dir=./ ;;
! 5900: */) ;;
! 5901: *) as_dir=$as_dir/ ;;
! 5902: esac
1.1 misho 5903: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5904: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 5905: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.1.1.3 ! misho 5906: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 5907: break 2
5908: fi
5909: done
5910: done
5911: IFS=$as_save_IFS
5912:
5913: fi
5914: fi
5915: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5916: if test -n "$ac_ct_OBJDUMP"; then
1.1.1.3 ! misho 5917: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 5918: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.1 misho 5919: else
1.1.1.3 ! misho 5920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5921: printf "%s\n" "no" >&6; }
1.1 misho 5922: fi
5923:
5924: if test "x$ac_ct_OBJDUMP" = x; then
5925: OBJDUMP="false"
5926: else
5927: case $cross_compiling:$ac_tool_warned in
5928: yes:)
1.1.1.3 ! misho 5929: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5930: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 5931: ac_tool_warned=yes ;;
5932: esac
5933: OBJDUMP=$ac_ct_OBJDUMP
5934: fi
5935: else
5936: OBJDUMP="$ac_cv_prog_OBJDUMP"
5937: fi
5938:
5939: test -z "$OBJDUMP" && OBJDUMP=objdump
5940:
5941:
5942:
5943:
5944:
5945:
5946:
5947:
5948:
1.1.1.3 ! misho 5949: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
! 5950: printf %s "checking how to recognize dependent libraries... " >&6; }
! 5951: if test ${lt_cv_deplibs_check_method+y}
! 5952: then :
! 5953: printf %s "(cached) " >&6
! 5954: else $as_nop
1.1 misho 5955: lt_cv_file_magic_cmd='$MAGIC_CMD'
5956: lt_cv_file_magic_test_file=
5957: lt_cv_deplibs_check_method='unknown'
5958: # Need to set the preceding variable on all platforms that support
5959: # interlibrary dependencies.
5960: # 'none' -- dependencies not supported.
5961: # 'unknown' -- same as none, but documents that we really don't know.
5962: # 'pass_all' -- all dependencies passed with no checks.
5963: # 'test_compile' -- check by making test program.
5964: # 'file_magic [[regex]]' -- check by looking for files in library path
5965: # that responds to the $file_magic_cmd with a given extended regex.
5966: # If you have 'file' or equivalent on your system and you're not sure
5967: # whether 'pass_all' will *always* work, you probably want this one.
5968:
5969: case $host_os in
5970: aix[4-9]*)
5971: lt_cv_deplibs_check_method=pass_all
5972: ;;
5973:
5974: beos*)
5975: lt_cv_deplibs_check_method=pass_all
5976: ;;
5977:
5978: bsdi[45]*)
5979: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1.1.1.3 ! misho 5980: lt_cv_file_magic_cmd='$FILECMD -L'
1.1 misho 5981: lt_cv_file_magic_test_file=/shlib/libc.so
5982: ;;
5983:
5984: cygwin*)
5985: # func_win32_libid is a shell function defined in ltmain.sh
5986: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5987: lt_cv_file_magic_cmd='func_win32_libid'
5988: ;;
5989:
5990: mingw* | pw32*)
5991: # Base MSYS/MinGW do not provide the 'file' command needed by
5992: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5993: # unless we find 'file', for example because we are cross-compiling.
5994: if ( file / ) >/dev/null 2>&1; then
5995: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5996: lt_cv_file_magic_cmd='func_win32_libid'
5997: else
5998: # Keep this pattern in sync with the one in func_win32_libid.
5999: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6000: lt_cv_file_magic_cmd='$OBJDUMP -f'
6001: fi
6002: ;;
6003:
6004: cegcc*)
6005: # use the weaker test based on 'objdump'. See mingw*.
6006: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6007: lt_cv_file_magic_cmd='$OBJDUMP -f'
6008: ;;
6009:
6010: darwin* | rhapsody*)
6011: lt_cv_deplibs_check_method=pass_all
6012: ;;
6013:
1.1.1.3 ! misho 6014: freebsd* | dragonfly* | midnightbsd*)
1.1 misho 6015: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6016: case $host_cpu in
6017: i*86 )
6018: # Not sure whether the presence of OpenBSD here was a mistake.
6019: # Let's accept both of them until this is cleared up.
6020: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1.1.3 ! misho 6021: lt_cv_file_magic_cmd=$FILECMD
1.1 misho 6022: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6023: ;;
6024: esac
6025: else
6026: lt_cv_deplibs_check_method=pass_all
6027: fi
6028: ;;
6029:
6030: haiku*)
6031: lt_cv_deplibs_check_method=pass_all
6032: ;;
6033:
6034: hpux10.20* | hpux11*)
1.1.1.3 ! misho 6035: lt_cv_file_magic_cmd=$FILECMD
1.1 misho 6036: case $host_cpu in
6037: ia64*)
6038: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6039: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6040: ;;
6041: hppa*64*)
6042: 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]'
6043: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6044: ;;
6045: *)
6046: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6047: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6048: ;;
6049: esac
6050: ;;
6051:
6052: interix[3-9]*)
6053: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6054: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6055: ;;
6056:
6057: irix5* | irix6* | nonstopux*)
6058: case $LD in
6059: *-32|*"-32 ") libmagic=32-bit;;
6060: *-n32|*"-n32 ") libmagic=N32;;
6061: *-64|*"-64 ") libmagic=64-bit;;
6062: *) libmagic=never-match;;
6063: esac
6064: lt_cv_deplibs_check_method=pass_all
6065: ;;
6066:
6067: # This must be glibc/ELF.
6068: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6069: lt_cv_deplibs_check_method=pass_all
6070: ;;
6071:
6072: netbsd*)
6073: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6074: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6075: else
6076: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6077: fi
6078: ;;
6079:
6080: newos6*)
6081: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1.1.1.3 ! misho 6082: lt_cv_file_magic_cmd=$FILECMD
1.1 misho 6083: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6084: ;;
6085:
6086: *nto* | *qnx*)
6087: lt_cv_deplibs_check_method=pass_all
6088: ;;
6089:
6090: openbsd* | bitrig*)
6091: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6092: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6093: else
6094: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6095: fi
6096: ;;
6097:
6098: osf3* | osf4* | osf5*)
6099: lt_cv_deplibs_check_method=pass_all
6100: ;;
6101:
6102: rdos*)
6103: lt_cv_deplibs_check_method=pass_all
6104: ;;
6105:
6106: solaris*)
6107: lt_cv_deplibs_check_method=pass_all
6108: ;;
6109:
6110: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6111: lt_cv_deplibs_check_method=pass_all
6112: ;;
6113:
6114: sysv4 | sysv4.3*)
6115: case $host_vendor in
6116: motorola)
6117: 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]'
6118: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6119: ;;
6120: ncr)
6121: lt_cv_deplibs_check_method=pass_all
6122: ;;
6123: sequent)
6124: lt_cv_file_magic_cmd='/bin/file'
6125: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6126: ;;
6127: sni)
6128: lt_cv_file_magic_cmd='/bin/file'
6129: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6130: lt_cv_file_magic_test_file=/lib/libc.so
6131: ;;
6132: siemens)
6133: lt_cv_deplibs_check_method=pass_all
6134: ;;
6135: pc)
6136: lt_cv_deplibs_check_method=pass_all
6137: ;;
6138: esac
6139: ;;
6140:
6141: tpf*)
6142: lt_cv_deplibs_check_method=pass_all
6143: ;;
6144: os2*)
6145: lt_cv_deplibs_check_method=pass_all
6146: ;;
6147: esac
6148:
6149: fi
1.1.1.3 ! misho 6150: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
! 6151: printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
1.1 misho 6152:
6153: file_magic_glob=
6154: want_nocaseglob=no
6155: if test "$build" = "$host"; then
6156: case $host_os in
6157: mingw* | pw32*)
6158: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6159: want_nocaseglob=yes
6160: else
6161: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6162: fi
6163: ;;
6164: esac
6165: fi
6166:
6167: file_magic_cmd=$lt_cv_file_magic_cmd
6168: deplibs_check_method=$lt_cv_deplibs_check_method
6169: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6170:
6171:
6172:
6173:
6174:
6175:
6176:
6177:
6178:
6179:
6180:
6181:
6182:
6183:
6184:
6185:
6186:
6187:
6188:
6189:
6190:
6191:
6192: if test -n "$ac_tool_prefix"; then
6193: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6194: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.1.1.3 ! misho 6195: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6196: printf %s "checking for $ac_word... " >&6; }
! 6197: if test ${ac_cv_prog_DLLTOOL+y}
! 6198: then :
! 6199: printf %s "(cached) " >&6
! 6200: else $as_nop
1.1 misho 6201: if test -n "$DLLTOOL"; then
6202: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6203: else
6204: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205: for as_dir in $PATH
6206: do
6207: IFS=$as_save_IFS
1.1.1.3 ! misho 6208: case $as_dir in #(((
! 6209: '') as_dir=./ ;;
! 6210: */) ;;
! 6211: *) as_dir=$as_dir/ ;;
! 6212: esac
1.1 misho 6213: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6214: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6215: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.1.1.3 ! misho 6216: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6217: break 2
6218: fi
6219: done
6220: done
6221: IFS=$as_save_IFS
6222:
6223: fi
6224: fi
6225: DLLTOOL=$ac_cv_prog_DLLTOOL
6226: if test -n "$DLLTOOL"; then
1.1.1.3 ! misho 6227: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 6228: printf "%s\n" "$DLLTOOL" >&6; }
1.1 misho 6229: else
1.1.1.3 ! misho 6230: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6231: printf "%s\n" "no" >&6; }
1.1 misho 6232: fi
6233:
6234:
6235: fi
6236: if test -z "$ac_cv_prog_DLLTOOL"; then
6237: ac_ct_DLLTOOL=$DLLTOOL
6238: # Extract the first word of "dlltool", so it can be a program name with args.
6239: set dummy dlltool; ac_word=$2
1.1.1.3 ! misho 6240: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6241: printf %s "checking for $ac_word... " >&6; }
! 6242: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
! 6243: then :
! 6244: printf %s "(cached) " >&6
! 6245: else $as_nop
1.1 misho 6246: if test -n "$ac_ct_DLLTOOL"; then
6247: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6248: else
6249: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250: for as_dir in $PATH
6251: do
6252: IFS=$as_save_IFS
1.1.1.3 ! misho 6253: case $as_dir in #(((
! 6254: '') as_dir=./ ;;
! 6255: */) ;;
! 6256: *) as_dir=$as_dir/ ;;
! 6257: esac
1.1 misho 6258: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6259: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6260: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.1.1.3 ! misho 6261: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6262: break 2
6263: fi
6264: done
6265: done
6266: IFS=$as_save_IFS
6267:
6268: fi
6269: fi
6270: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6271: if test -n "$ac_ct_DLLTOOL"; then
1.1.1.3 ! misho 6272: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 6273: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.1 misho 6274: else
1.1.1.3 ! misho 6275: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6276: printf "%s\n" "no" >&6; }
1.1 misho 6277: fi
6278:
6279: if test "x$ac_ct_DLLTOOL" = x; then
6280: DLLTOOL="false"
6281: else
6282: case $cross_compiling:$ac_tool_warned in
6283: yes:)
1.1.1.3 ! misho 6284: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6285: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 6286: ac_tool_warned=yes ;;
6287: esac
6288: DLLTOOL=$ac_ct_DLLTOOL
6289: fi
6290: else
6291: DLLTOOL="$ac_cv_prog_DLLTOOL"
6292: fi
6293:
6294: test -z "$DLLTOOL" && DLLTOOL=dlltool
6295:
6296:
6297:
6298:
6299:
6300:
6301:
6302:
6303:
6304:
1.1.1.3 ! misho 6305: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
! 6306: printf %s "checking how to associate runtime and link libraries... " >&6; }
! 6307: if test ${lt_cv_sharedlib_from_linklib_cmd+y}
! 6308: then :
! 6309: printf %s "(cached) " >&6
! 6310: else $as_nop
1.1 misho 6311: lt_cv_sharedlib_from_linklib_cmd='unknown'
6312:
6313: case $host_os in
6314: cygwin* | mingw* | pw32* | cegcc*)
6315: # two different shell functions defined in ltmain.sh;
6316: # decide which one to use based on capabilities of $DLLTOOL
6317: case `$DLLTOOL --help 2>&1` in
6318: *--identify-strict*)
6319: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6320: ;;
6321: *)
6322: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6323: ;;
6324: esac
6325: ;;
6326: *)
6327: # fallback: assume linklib IS sharedlib
6328: lt_cv_sharedlib_from_linklib_cmd=$ECHO
6329: ;;
6330: esac
6331:
6332: fi
1.1.1.3 ! misho 6333: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 6334: printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.1 misho 6335: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6336: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6337:
6338:
6339:
6340:
6341:
6342:
6343:
6344:
6345: if test -n "$ac_tool_prefix"; then
6346: for ac_prog in ar
6347: do
6348: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6349: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.3 ! misho 6350: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6351: printf %s "checking for $ac_word... " >&6; }
! 6352: if test ${ac_cv_prog_AR+y}
! 6353: then :
! 6354: printf %s "(cached) " >&6
! 6355: else $as_nop
1.1 misho 6356: if test -n "$AR"; then
6357: ac_cv_prog_AR="$AR" # Let the user override the test.
6358: else
6359: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360: for as_dir in $PATH
6361: do
6362: IFS=$as_save_IFS
1.1.1.3 ! misho 6363: case $as_dir in #(((
! 6364: '') as_dir=./ ;;
! 6365: */) ;;
! 6366: *) as_dir=$as_dir/ ;;
! 6367: esac
1.1 misho 6368: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6369: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6370: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.1.1.3 ! misho 6371: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6372: break 2
6373: fi
6374: done
6375: done
6376: IFS=$as_save_IFS
6377:
6378: fi
6379: fi
6380: AR=$ac_cv_prog_AR
6381: if test -n "$AR"; then
1.1.1.3 ! misho 6382: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
! 6383: printf "%s\n" "$AR" >&6; }
1.1 misho 6384: else
1.1.1.3 ! misho 6385: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6386: printf "%s\n" "no" >&6; }
1.1 misho 6387: fi
6388:
6389:
6390: test -n "$AR" && break
6391: done
6392: fi
6393: if test -z "$AR"; then
6394: ac_ct_AR=$AR
6395: for ac_prog in ar
6396: do
6397: # Extract the first word of "$ac_prog", so it can be a program name with args.
6398: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 6399: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6400: printf %s "checking for $ac_word... " >&6; }
! 6401: if test ${ac_cv_prog_ac_ct_AR+y}
! 6402: then :
! 6403: printf %s "(cached) " >&6
! 6404: else $as_nop
1.1 misho 6405: if test -n "$ac_ct_AR"; then
6406: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6407: else
6408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409: for as_dir in $PATH
6410: do
6411: IFS=$as_save_IFS
1.1.1.3 ! misho 6412: case $as_dir in #(((
! 6413: '') as_dir=./ ;;
! 6414: */) ;;
! 6415: *) as_dir=$as_dir/ ;;
! 6416: esac
1.1 misho 6417: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6418: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6419: ac_cv_prog_ac_ct_AR="$ac_prog"
1.1.1.3 ! misho 6420: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6421: break 2
6422: fi
6423: done
6424: done
6425: IFS=$as_save_IFS
6426:
6427: fi
6428: fi
6429: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6430: if test -n "$ac_ct_AR"; then
1.1.1.3 ! misho 6431: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
! 6432: printf "%s\n" "$ac_ct_AR" >&6; }
1.1 misho 6433: else
1.1.1.3 ! misho 6434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6435: printf "%s\n" "no" >&6; }
1.1 misho 6436: fi
6437:
6438:
6439: test -n "$ac_ct_AR" && break
6440: done
6441:
6442: if test "x$ac_ct_AR" = x; then
6443: AR="false"
6444: else
6445: case $cross_compiling:$ac_tool_warned in
6446: yes:)
1.1.1.3 ! misho 6447: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6448: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 6449: ac_tool_warned=yes ;;
6450: esac
6451: AR=$ac_ct_AR
6452: fi
6453: fi
6454:
6455: : ${AR=ar}
6456:
6457:
6458:
6459:
6460:
6461:
1.1.1.3 ! misho 6462: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
! 6463: # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
! 6464: # higher priority because thats what people were doing historically (setting
! 6465: # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
! 6466: # variable obsoleted/removed.
1.1 misho 6467:
1.1.1.3 ! misho 6468: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
! 6469: lt_ar_flags=$AR_FLAGS
1.1 misho 6470:
6471:
6472:
6473:
1.1.1.3 ! misho 6474:
! 6475:
! 6476: # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
! 6477: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
! 6478:
! 6479:
! 6480:
! 6481:
! 6482:
! 6483:
! 6484: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
! 6485: printf %s "checking for archiver @FILE support... " >&6; }
! 6486: if test ${lt_cv_ar_at_file+y}
! 6487: then :
! 6488: printf %s "(cached) " >&6
! 6489: else $as_nop
1.1 misho 6490: lt_cv_ar_at_file=no
6491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492: /* end confdefs.h. */
6493:
6494: int
1.1.1.3 ! misho 6495: main (void)
1.1 misho 6496: {
6497:
6498: ;
6499: return 0;
6500: }
6501: _ACEOF
1.1.1.3 ! misho 6502: if ac_fn_c_try_compile "$LINENO"
! 6503: then :
1.1 misho 6504: echo conftest.$ac_objext > conftest.lst
6505: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6506: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6507: (eval $lt_ar_try) 2>&5
6508: ac_status=$?
1.1.1.3 ! misho 6509: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 6510: test $ac_status = 0; }
6511: if test 0 -eq "$ac_status"; then
6512: # Ensure the archiver fails upon bogus file names.
6513: rm -f conftest.$ac_objext libconftest.a
6514: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6515: (eval $lt_ar_try) 2>&5
6516: ac_status=$?
1.1.1.3 ! misho 6517: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 6518: test $ac_status = 0; }
6519: if test 0 -ne "$ac_status"; then
6520: lt_cv_ar_at_file=@
6521: fi
6522: fi
6523: rm -f conftest.* libconftest.a
6524:
6525: fi
1.1.1.3 ! misho 6526: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 6527:
6528: fi
1.1.1.3 ! misho 6529: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
! 6530: printf "%s\n" "$lt_cv_ar_at_file" >&6; }
1.1 misho 6531:
6532: if test no = "$lt_cv_ar_at_file"; then
6533: archiver_list_spec=
6534: else
6535: archiver_list_spec=$lt_cv_ar_at_file
6536: fi
6537:
6538:
6539:
6540:
6541:
6542:
6543:
6544: if test -n "$ac_tool_prefix"; then
6545: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6546: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.3 ! misho 6547: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6548: printf %s "checking for $ac_word... " >&6; }
! 6549: if test ${ac_cv_prog_STRIP+y}
! 6550: then :
! 6551: printf %s "(cached) " >&6
! 6552: else $as_nop
1.1 misho 6553: if test -n "$STRIP"; then
6554: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6555: else
6556: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557: for as_dir in $PATH
6558: do
6559: IFS=$as_save_IFS
1.1.1.3 ! misho 6560: case $as_dir in #(((
! 6561: '') as_dir=./ ;;
! 6562: */) ;;
! 6563: *) as_dir=$as_dir/ ;;
! 6564: esac
1.1 misho 6565: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6566: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6567: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.1.1.3 ! misho 6568: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6569: break 2
6570: fi
6571: done
6572: done
6573: IFS=$as_save_IFS
6574:
6575: fi
6576: fi
6577: STRIP=$ac_cv_prog_STRIP
6578: if test -n "$STRIP"; then
1.1.1.3 ! misho 6579: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 6580: printf "%s\n" "$STRIP" >&6; }
1.1 misho 6581: else
1.1.1.3 ! misho 6582: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6583: printf "%s\n" "no" >&6; }
1.1 misho 6584: fi
6585:
6586:
6587: fi
6588: if test -z "$ac_cv_prog_STRIP"; then
6589: ac_ct_STRIP=$STRIP
6590: # Extract the first word of "strip", so it can be a program name with args.
6591: set dummy strip; ac_word=$2
1.1.1.3 ! misho 6592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6593: printf %s "checking for $ac_word... " >&6; }
! 6594: if test ${ac_cv_prog_ac_ct_STRIP+y}
! 6595: then :
! 6596: printf %s "(cached) " >&6
! 6597: else $as_nop
1.1 misho 6598: if test -n "$ac_ct_STRIP"; then
6599: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6600: else
6601: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602: for as_dir in $PATH
6603: do
6604: IFS=$as_save_IFS
1.1.1.3 ! misho 6605: case $as_dir in #(((
! 6606: '') as_dir=./ ;;
! 6607: */) ;;
! 6608: *) as_dir=$as_dir/ ;;
! 6609: esac
1.1 misho 6610: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6611: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6612: ac_cv_prog_ac_ct_STRIP="strip"
1.1.1.3 ! misho 6613: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6614: break 2
6615: fi
6616: done
6617: done
6618: IFS=$as_save_IFS
6619:
6620: fi
6621: fi
6622: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6623: if test -n "$ac_ct_STRIP"; then
1.1.1.3 ! misho 6624: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 6625: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.1 misho 6626: else
1.1.1.3 ! misho 6627: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6628: printf "%s\n" "no" >&6; }
1.1 misho 6629: fi
6630:
6631: if test "x$ac_ct_STRIP" = x; then
6632: STRIP=":"
6633: else
6634: case $cross_compiling:$ac_tool_warned in
6635: yes:)
1.1.1.3 ! misho 6636: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6637: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 6638: ac_tool_warned=yes ;;
6639: esac
6640: STRIP=$ac_ct_STRIP
6641: fi
6642: else
6643: STRIP="$ac_cv_prog_STRIP"
6644: fi
6645:
6646: test -z "$STRIP" && STRIP=:
6647:
6648:
6649:
6650:
6651:
6652:
6653: if test -n "$ac_tool_prefix"; then
6654: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.3 ! misho 6656: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6657: printf %s "checking for $ac_word... " >&6; }
! 6658: if test ${ac_cv_prog_RANLIB+y}
! 6659: then :
! 6660: printf %s "(cached) " >&6
! 6661: else $as_nop
1.1 misho 6662: if test -n "$RANLIB"; then
6663: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6664: else
6665: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666: for as_dir in $PATH
6667: do
6668: IFS=$as_save_IFS
1.1.1.3 ! misho 6669: case $as_dir in #(((
! 6670: '') as_dir=./ ;;
! 6671: */) ;;
! 6672: *) as_dir=$as_dir/ ;;
! 6673: esac
1.1 misho 6674: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6675: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6676: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1.1.3 ! misho 6677: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6678: break 2
6679: fi
6680: done
6681: done
6682: IFS=$as_save_IFS
6683:
6684: fi
6685: fi
6686: RANLIB=$ac_cv_prog_RANLIB
6687: if test -n "$RANLIB"; then
1.1.1.3 ! misho 6688: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 6689: printf "%s\n" "$RANLIB" >&6; }
1.1 misho 6690: else
1.1.1.3 ! misho 6691: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6692: printf "%s\n" "no" >&6; }
1.1 misho 6693: fi
6694:
6695:
6696: fi
6697: if test -z "$ac_cv_prog_RANLIB"; then
6698: ac_ct_RANLIB=$RANLIB
6699: # Extract the first word of "ranlib", so it can be a program name with args.
6700: set dummy ranlib; ac_word=$2
1.1.1.3 ! misho 6701: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6702: printf %s "checking for $ac_word... " >&6; }
! 6703: if test ${ac_cv_prog_ac_ct_RANLIB+y}
! 6704: then :
! 6705: printf %s "(cached) " >&6
! 6706: else $as_nop
1.1 misho 6707: if test -n "$ac_ct_RANLIB"; then
6708: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6709: else
6710: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711: for as_dir in $PATH
6712: do
6713: IFS=$as_save_IFS
1.1.1.3 ! misho 6714: case $as_dir in #(((
! 6715: '') as_dir=./ ;;
! 6716: */) ;;
! 6717: *) as_dir=$as_dir/ ;;
! 6718: esac
1.1 misho 6719: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6720: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 6721: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.1.1.3 ! misho 6722: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 6723: break 2
6724: fi
6725: done
6726: done
6727: IFS=$as_save_IFS
6728:
6729: fi
6730: fi
6731: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6732: if test -n "$ac_ct_RANLIB"; then
1.1.1.3 ! misho 6733: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 6734: printf "%s\n" "$ac_ct_RANLIB" >&6; }
1.1 misho 6735: else
1.1.1.3 ! misho 6736: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6737: printf "%s\n" "no" >&6; }
1.1 misho 6738: fi
6739:
6740: if test "x$ac_ct_RANLIB" = x; then
6741: RANLIB=":"
6742: else
6743: case $cross_compiling:$ac_tool_warned in
6744: yes:)
1.1.1.3 ! misho 6745: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6746: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 6747: ac_tool_warned=yes ;;
6748: esac
6749: RANLIB=$ac_ct_RANLIB
6750: fi
6751: else
6752: RANLIB="$ac_cv_prog_RANLIB"
6753: fi
6754:
6755: test -z "$RANLIB" && RANLIB=:
6756:
6757:
6758:
6759:
6760:
6761:
6762: # Determine commands to create old-style static archives.
6763: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6764: old_postinstall_cmds='chmod 644 $oldlib'
6765: old_postuninstall_cmds=
6766:
6767: if test -n "$RANLIB"; then
6768: case $host_os in
6769: bitrig* | openbsd*)
6770: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6771: ;;
6772: *)
6773: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6774: ;;
6775: esac
6776: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6777: fi
6778:
6779: case $host_os in
6780: darwin*)
6781: lock_old_archive_extraction=yes ;;
6782: *)
6783: lock_old_archive_extraction=no ;;
6784: esac
6785:
6786:
6787:
6788:
6789:
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
6799:
6800:
6801:
6802:
6803:
6804:
6805:
6806:
6807:
6808:
6809:
6810:
6811:
6812:
6813:
6814:
6815:
6816:
6817:
6818:
6819:
6820:
6821:
6822:
6823:
6824: # If no C compiler was specified, use CC.
6825: LTCC=${LTCC-"$CC"}
6826:
6827: # If no C compiler flags were specified, use CFLAGS.
6828: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6829:
6830: # Allow CC to be a program name with arguments.
6831: compiler=$CC
6832:
6833:
6834: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.1.1.3 ! misho 6835: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
! 6836: printf %s "checking command to parse $NM output from $compiler object... " >&6; }
! 6837: if test ${lt_cv_sys_global_symbol_pipe+y}
! 6838: then :
! 6839: printf %s "(cached) " >&6
! 6840: else $as_nop
1.1 misho 6841:
6842: # These are sane defaults that work on at least a few old systems.
6843: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6844:
6845: # Character class describing NM global symbol codes.
6846: symcode='[BCDEGRST]'
6847:
6848: # Regexp to match symbols that can be accessed directly from C.
6849: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6850:
6851: # Define system-specific variables.
6852: case $host_os in
6853: aix*)
6854: symcode='[BCDT]'
6855: ;;
6856: cygwin* | mingw* | pw32* | cegcc*)
6857: symcode='[ABCDGISTW]'
6858: ;;
6859: hpux*)
6860: if test ia64 = "$host_cpu"; then
6861: symcode='[ABCDEGRST]'
6862: fi
6863: ;;
6864: irix* | nonstopux*)
6865: symcode='[BCDEGRST]'
6866: ;;
6867: osf*)
6868: symcode='[BCDEGQRST]'
6869: ;;
6870: solaris*)
6871: symcode='[BDRT]'
6872: ;;
6873: sco3.2v5*)
6874: symcode='[DT]'
6875: ;;
6876: sysv4.2uw2*)
6877: symcode='[DT]'
6878: ;;
6879: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6880: symcode='[ABDT]'
6881: ;;
6882: sysv4)
6883: symcode='[DFNSTU]'
6884: ;;
6885: esac
6886:
6887: # If we're using GNU nm, then use its standard symbol codes.
6888: case `$NM -V 2>&1` in
6889: *GNU* | *'with BFD'*)
6890: symcode='[ABCDGIRSTW]' ;;
6891: esac
6892:
6893: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6894: # Gets list of data symbols to import.
1.1.1.3 ! misho 6895: lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
1.1 misho 6896: # Adjust the below global symbol transforms to fixup imported variables.
6897: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6898: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6899: lt_c_name_lib_hook="\
6900: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6901: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6902: else
6903: # Disable hooks by default.
6904: lt_cv_sys_global_symbol_to_import=
6905: lt_cdecl_hook=
6906: lt_c_name_hook=
6907: lt_c_name_lib_hook=
6908: fi
6909:
6910: # Transform an extracted symbol line into a proper C declaration.
6911: # Some systems (esp. on ia64) link data and code symbols differently,
6912: # so use this general approach.
1.1.1.3 ! misho 6913: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
1.1 misho 6914: $lt_cdecl_hook\
6915: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6916: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6917:
6918: # Transform an extracted symbol line into symbol name and symbol address
1.1.1.3 ! misho 6919: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
1.1 misho 6920: $lt_c_name_hook\
6921: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6922: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6923:
6924: # Transform an extracted symbol line into symbol name with lib prefix and
6925: # symbol address.
1.1.1.3 ! misho 6926: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
1.1 misho 6927: $lt_c_name_lib_hook\
6928: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6929: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6930: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6931:
6932: # Handle CRLF in mingw tool chain
6933: opt_cr=
6934: case $build_os in
6935: mingw*)
6936: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6937: ;;
6938: esac
6939:
6940: # Try without a prefix underscore, then with it.
6941: for ac_symprfx in "" "_"; do
6942:
6943: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6944: symxfrm="\\1 $ac_symprfx\\2 \\2"
6945:
6946: # Write the raw and C identifiers.
6947: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6948: # Fake it for dumpbin and say T for any non-static function,
6949: # D for any global variable and I for any imported variable.
1.1.1.3 ! misho 6950: # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.1 misho 6951: # which start with @ or ?.
6952: lt_cv_sys_global_symbol_pipe="$AWK '"\
6953: " {last_section=section; section=\$ 3};"\
6954: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6955: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6956: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6957: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6958: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6959: " \$ 0!~/External *\|/{next};"\
6960: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6961: " {if(hide[section]) next};"\
6962: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6963: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6964: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6965: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6966: " ' prfx=^$ac_symprfx"
6967: else
1.1.1.3 ! misho 6968: lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.1 misho 6969: fi
1.1.1.3 ! misho 6970: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.1 misho 6971:
6972: # Check to see that the pipe works correctly.
6973: pipe_works=no
6974:
6975: rm -f conftest*
6976: cat > conftest.$ac_ext <<_LT_EOF
6977: #ifdef __cplusplus
6978: extern "C" {
6979: #endif
6980: char nm_test_var;
6981: void nm_test_func(void);
6982: void nm_test_func(void){}
6983: #ifdef __cplusplus
6984: }
6985: #endif
6986: int main(){nm_test_var='a';nm_test_func();return(0);}
6987: _LT_EOF
6988:
6989: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6990: (eval $ac_compile) 2>&5
6991: ac_status=$?
1.1.1.3 ! misho 6992: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 6993: test $ac_status = 0; }; then
6994: # Now try to grab the symbols.
6995: nlist=conftest.nm
6996: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6997: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6998: ac_status=$?
1.1.1.3 ! misho 6999: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 7000: test $ac_status = 0; } && test -s "$nlist"; then
7001: # Try sorting and uniquifying the output.
7002: if sort "$nlist" | uniq > "$nlist"T; then
7003: mv -f "$nlist"T "$nlist"
7004: else
7005: rm -f "$nlist"T
7006: fi
7007:
7008: # Make sure that we snagged all the symbols we need.
7009: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7010: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7011: cat <<_LT_EOF > conftest.$ac_ext
7012: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7013: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7014: /* DATA imports from DLLs on WIN32 can't be const, because runtime
7015: relocations are performed -- see ld's documentation on pseudo-relocs. */
7016: # define LT_DLSYM_CONST
7017: #elif defined __osf__
7018: /* This system does not cope well with relocations in const data. */
7019: # define LT_DLSYM_CONST
7020: #else
7021: # define LT_DLSYM_CONST const
7022: #endif
7023:
7024: #ifdef __cplusplus
7025: extern "C" {
7026: #endif
7027:
7028: _LT_EOF
7029: # Now generate the symbol file.
7030: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031:
7032: cat <<_LT_EOF >> conftest.$ac_ext
7033:
7034: /* The mapping between symbol names and symbols. */
7035: LT_DLSYM_CONST struct {
7036: const char *name;
7037: void *address;
7038: }
7039: lt__PROGRAM__LTX_preloaded_symbols[] =
7040: {
7041: { "@PROGRAM@", (void *) 0 },
7042: _LT_EOF
7043: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7044: cat <<\_LT_EOF >> conftest.$ac_ext
7045: {0, (void *) 0}
7046: };
7047:
7048: /* This works around a problem in FreeBSD linker */
7049: #ifdef FREEBSD_WORKAROUND
7050: static const void *lt_preloaded_setup() {
7051: return lt__PROGRAM__LTX_preloaded_symbols;
7052: }
7053: #endif
7054:
7055: #ifdef __cplusplus
7056: }
7057: #endif
7058: _LT_EOF
7059: # Now try linking the two files.
7060: mv conftest.$ac_objext conftstm.$ac_objext
7061: lt_globsym_save_LIBS=$LIBS
7062: lt_globsym_save_CFLAGS=$CFLAGS
7063: LIBS=conftstm.$ac_objext
7064: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7065: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7066: (eval $ac_link) 2>&5
7067: ac_status=$?
1.1.1.3 ! misho 7068: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 7069: test $ac_status = 0; } && test -s conftest$ac_exeext; then
7070: pipe_works=yes
7071: fi
7072: LIBS=$lt_globsym_save_LIBS
7073: CFLAGS=$lt_globsym_save_CFLAGS
7074: else
7075: echo "cannot find nm_test_func in $nlist" >&5
7076: fi
7077: else
7078: echo "cannot find nm_test_var in $nlist" >&5
7079: fi
7080: else
7081: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7082: fi
7083: else
7084: echo "$progname: failed program was:" >&5
7085: cat conftest.$ac_ext >&5
7086: fi
7087: rm -rf conftest* conftst*
7088:
7089: # Do not use the global_symbol_pipe unless it works.
7090: if test yes = "$pipe_works"; then
7091: break
7092: else
7093: lt_cv_sys_global_symbol_pipe=
7094: fi
7095: done
7096:
7097: fi
7098:
7099: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7100: lt_cv_sys_global_symbol_to_cdecl=
7101: fi
7102: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.1.1.3 ! misho 7103: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
! 7104: printf "%s\n" "failed" >&6; }
1.1 misho 7105: else
1.1.1.3 ! misho 7106: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
! 7107: printf "%s\n" "ok" >&6; }
1.1 misho 7108: fi
7109:
7110: # Response file support.
7111: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7112: nm_file_list_spec='@'
7113: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7114: nm_file_list_spec='@'
7115: fi
7116:
7117:
7118:
7119:
7120:
7121:
7122:
7123:
7124:
7125:
7126:
7127:
7128:
7129:
7130:
7131:
7132:
7133:
7134:
7135:
7136:
7137:
7138:
7139:
7140:
7141:
7142:
7143:
7144:
7145:
7146:
7147:
7148:
7149:
7150:
7151:
7152:
1.1.1.3 ! misho 7153: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
! 7154: printf %s "checking for sysroot... " >&6; }
1.1 misho 7155:
7156: # Check whether --with-sysroot was given.
1.1.1.3 ! misho 7157: if test ${with_sysroot+y}
! 7158: then :
1.1 misho 7159: withval=$with_sysroot;
1.1.1.3 ! misho 7160: else $as_nop
1.1 misho 7161: with_sysroot=no
7162: fi
7163:
7164:
7165: lt_sysroot=
7166: case $with_sysroot in #(
7167: yes)
7168: if test yes = "$GCC"; then
7169: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7170: fi
7171: ;; #(
7172: /*)
1.1.1.3 ! misho 7173: lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.1 misho 7174: ;; #(
7175: no|'')
7176: ;; #(
7177: *)
1.1.1.3 ! misho 7178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
! 7179: printf "%s\n" "$with_sysroot" >&6; }
1.1 misho 7180: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7181: ;;
7182: esac
7183:
1.1.1.3 ! misho 7184: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
! 7185: printf "%s\n" "${lt_sysroot:-no}" >&6; }
1.1 misho 7186:
7187:
7188:
7189:
7190:
1.1.1.3 ! misho 7191: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
! 7192: printf %s "checking for a working dd... " >&6; }
! 7193: if test ${ac_cv_path_lt_DD+y}
! 7194: then :
! 7195: printf %s "(cached) " >&6
! 7196: else $as_nop
1.1 misho 7197: printf 0123456789abcdef0123456789abcdef >conftest.i
7198: cat conftest.i conftest.i >conftest2.i
7199: : ${lt_DD:=$DD}
7200: if test -z "$lt_DD"; then
7201: ac_path_lt_DD_found=false
7202: # Loop through the user's path and test for each of PROGNAME-LIST
7203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204: for as_dir in $PATH
7205: do
7206: IFS=$as_save_IFS
1.1.1.3 ! misho 7207: case $as_dir in #(((
! 7208: '') as_dir=./ ;;
! 7209: */) ;;
! 7210: *) as_dir=$as_dir/ ;;
! 7211: esac
! 7212: for ac_prog in dd
! 7213: do
1.1 misho 7214: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7215: ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
1.1 misho 7216: as_fn_executable_p "$ac_path_lt_DD" || continue
7217: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7218: cmp -s conftest.i conftest.out \
7219: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7220: fi
7221: $ac_path_lt_DD_found && break 3
7222: done
7223: done
7224: done
7225: IFS=$as_save_IFS
7226: if test -z "$ac_cv_path_lt_DD"; then
7227: :
7228: fi
7229: else
7230: ac_cv_path_lt_DD=$lt_DD
7231: fi
7232:
7233: rm -f conftest.i conftest2.i conftest.out
7234: fi
1.1.1.3 ! misho 7235: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
! 7236: printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
1.1 misho 7237:
7238:
1.1.1.3 ! misho 7239: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
! 7240: printf %s "checking how to truncate binary pipes... " >&6; }
! 7241: if test ${lt_cv_truncate_bin+y}
! 7242: then :
! 7243: printf %s "(cached) " >&6
! 7244: else $as_nop
1.1 misho 7245: printf 0123456789abcdef0123456789abcdef >conftest.i
7246: cat conftest.i conftest.i >conftest2.i
7247: lt_cv_truncate_bin=
7248: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7249: cmp -s conftest.i conftest.out \
7250: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7251: fi
7252: rm -f conftest.i conftest2.i conftest.out
7253: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7254: fi
1.1.1.3 ! misho 7255: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
! 7256: printf "%s\n" "$lt_cv_truncate_bin" >&6; }
1.1 misho 7257:
7258:
7259:
7260:
7261:
7262:
7263:
7264: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7265: func_cc_basename ()
7266: {
7267: for cc_temp in $*""; do
7268: case $cc_temp in
7269: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7270: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7271: \-*) ;;
7272: *) break;;
7273: esac
7274: done
7275: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7276: }
7277:
7278: # Check whether --enable-libtool-lock was given.
1.1.1.3 ! misho 7279: if test ${enable_libtool_lock+y}
! 7280: then :
1.1 misho 7281: enableval=$enable_libtool_lock;
7282: fi
7283:
7284: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7285:
7286: # Some flags need to be propagated to the compiler or linker for good
7287: # libtool support.
7288: case $host in
7289: ia64-*-hpux*)
7290: # Find out what ABI is being produced by ac_compile, and set mode
7291: # options accordingly.
7292: echo 'int i;' > conftest.$ac_ext
7293: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7294: (eval $ac_compile) 2>&5
7295: ac_status=$?
1.1.1.3 ! misho 7296: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 7297: test $ac_status = 0; }; then
1.1.1.3 ! misho 7298: case `$FILECMD conftest.$ac_objext` in
1.1 misho 7299: *ELF-32*)
7300: HPUX_IA64_MODE=32
7301: ;;
7302: *ELF-64*)
7303: HPUX_IA64_MODE=64
7304: ;;
7305: esac
7306: fi
7307: rm -rf conftest*
7308: ;;
7309: *-*-irix6*)
7310: # Find out what ABI is being produced by ac_compile, and set linker
7311: # options accordingly.
7312: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7313: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7314: (eval $ac_compile) 2>&5
7315: ac_status=$?
1.1.1.3 ! misho 7316: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 7317: test $ac_status = 0; }; then
7318: if test yes = "$lt_cv_prog_gnu_ld"; then
1.1.1.3 ! misho 7319: case `$FILECMD conftest.$ac_objext` in
1.1 misho 7320: *32-bit*)
7321: LD="${LD-ld} -melf32bsmip"
7322: ;;
7323: *N32*)
7324: LD="${LD-ld} -melf32bmipn32"
7325: ;;
7326: *64-bit*)
7327: LD="${LD-ld} -melf64bmip"
7328: ;;
7329: esac
7330: else
1.1.1.3 ! misho 7331: case `$FILECMD conftest.$ac_objext` in
1.1 misho 7332: *32-bit*)
7333: LD="${LD-ld} -32"
7334: ;;
7335: *N32*)
7336: LD="${LD-ld} -n32"
7337: ;;
7338: *64-bit*)
7339: LD="${LD-ld} -64"
7340: ;;
7341: esac
7342: fi
7343: fi
7344: rm -rf conftest*
7345: ;;
7346:
7347: mips64*-*linux*)
7348: # Find out what ABI is being produced by ac_compile, and set linker
7349: # options accordingly.
7350: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7351: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352: (eval $ac_compile) 2>&5
7353: ac_status=$?
1.1.1.3 ! misho 7354: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 7355: test $ac_status = 0; }; then
7356: emul=elf
1.1.1.3 ! misho 7357: case `$FILECMD conftest.$ac_objext` in
1.1 misho 7358: *32-bit*)
7359: emul="${emul}32"
7360: ;;
7361: *64-bit*)
7362: emul="${emul}64"
7363: ;;
7364: esac
1.1.1.3 ! misho 7365: case `$FILECMD conftest.$ac_objext` in
1.1 misho 7366: *MSB*)
7367: emul="${emul}btsmip"
7368: ;;
7369: *LSB*)
7370: emul="${emul}ltsmip"
7371: ;;
7372: esac
1.1.1.3 ! misho 7373: case `$FILECMD conftest.$ac_objext` in
1.1 misho 7374: *N32*)
7375: emul="${emul}n32"
7376: ;;
7377: esac
7378: LD="${LD-ld} -m $emul"
7379: fi
7380: rm -rf conftest*
7381: ;;
7382:
7383: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7384: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7385: # Find out what ABI is being produced by ac_compile, and set linker
7386: # options accordingly. Note that the listed cases only cover the
7387: # situations where additional linker options are needed (such as when
7388: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7389: # vice versa); the common cases where no linker options are needed do
7390: # not appear in the list.
7391: echo 'int i;' > conftest.$ac_ext
7392: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393: (eval $ac_compile) 2>&5
7394: ac_status=$?
1.1.1.3 ! misho 7395: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 7396: test $ac_status = 0; }; then
1.1.1.3 ! misho 7397: case `$FILECMD conftest.o` in
1.1 misho 7398: *32-bit*)
7399: case $host in
7400: x86_64-*kfreebsd*-gnu)
7401: LD="${LD-ld} -m elf_i386_fbsd"
7402: ;;
7403: x86_64-*linux*)
1.1.1.3 ! misho 7404: case `$FILECMD conftest.o` in
1.1 misho 7405: *x86-64*)
7406: LD="${LD-ld} -m elf32_x86_64"
7407: ;;
7408: *)
7409: LD="${LD-ld} -m elf_i386"
7410: ;;
7411: esac
7412: ;;
7413: powerpc64le-*linux*)
7414: LD="${LD-ld} -m elf32lppclinux"
7415: ;;
7416: powerpc64-*linux*)
7417: LD="${LD-ld} -m elf32ppclinux"
7418: ;;
7419: s390x-*linux*)
7420: LD="${LD-ld} -m elf_s390"
7421: ;;
7422: sparc64-*linux*)
7423: LD="${LD-ld} -m elf32_sparc"
7424: ;;
7425: esac
7426: ;;
7427: *64-bit*)
7428: case $host in
7429: x86_64-*kfreebsd*-gnu)
7430: LD="${LD-ld} -m elf_x86_64_fbsd"
7431: ;;
7432: x86_64-*linux*)
7433: LD="${LD-ld} -m elf_x86_64"
7434: ;;
7435: powerpcle-*linux*)
7436: LD="${LD-ld} -m elf64lppc"
7437: ;;
7438: powerpc-*linux*)
7439: LD="${LD-ld} -m elf64ppc"
7440: ;;
7441: s390*-*linux*|s390*-*tpf*)
7442: LD="${LD-ld} -m elf64_s390"
7443: ;;
7444: sparc*-*linux*)
7445: LD="${LD-ld} -m elf64_sparc"
7446: ;;
7447: esac
7448: ;;
7449: esac
7450: fi
7451: rm -rf conftest*
7452: ;;
7453:
7454: *-*-sco3.2v5*)
7455: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7456: SAVE_CFLAGS=$CFLAGS
7457: CFLAGS="$CFLAGS -belf"
1.1.1.3 ! misho 7458: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
! 7459: printf %s "checking whether the C compiler needs -belf... " >&6; }
! 7460: if test ${lt_cv_cc_needs_belf+y}
! 7461: then :
! 7462: printf %s "(cached) " >&6
! 7463: else $as_nop
1.1 misho 7464: ac_ext=c
7465: ac_cpp='$CPP $CPPFLAGS'
7466: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469:
7470: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471: /* end confdefs.h. */
7472:
7473: int
1.1.1.3 ! misho 7474: main (void)
1.1 misho 7475: {
7476:
7477: ;
7478: return 0;
7479: }
7480: _ACEOF
1.1.1.3 ! misho 7481: if ac_fn_c_try_link "$LINENO"
! 7482: then :
1.1 misho 7483: lt_cv_cc_needs_belf=yes
1.1.1.3 ! misho 7484: else $as_nop
1.1 misho 7485: lt_cv_cc_needs_belf=no
7486: fi
1.1.1.3 ! misho 7487: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 7488: conftest$ac_exeext conftest.$ac_ext
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:
7495: fi
1.1.1.3 ! misho 7496: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
! 7497: printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
1.1 misho 7498: if test yes != "$lt_cv_cc_needs_belf"; then
7499: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7500: CFLAGS=$SAVE_CFLAGS
7501: fi
7502: ;;
7503: *-*solaris*)
7504: # Find out what ABI is being produced by ac_compile, and set linker
7505: # options accordingly.
7506: echo 'int i;' > conftest.$ac_ext
7507: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508: (eval $ac_compile) 2>&5
7509: ac_status=$?
1.1.1.3 ! misho 7510: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 7511: test $ac_status = 0; }; then
1.1.1.3 ! misho 7512: case `$FILECMD conftest.o` in
1.1 misho 7513: *64-bit*)
7514: case $lt_cv_prog_gnu_ld in
7515: yes*)
7516: case $host in
7517: i?86-*-solaris*|x86_64-*-solaris*)
7518: LD="${LD-ld} -m elf_x86_64"
7519: ;;
7520: sparc*-*-solaris*)
7521: LD="${LD-ld} -m elf64_sparc"
7522: ;;
7523: esac
7524: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7525: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7526: LD=${LD-ld}_sol2
7527: fi
7528: ;;
7529: *)
7530: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7531: LD="${LD-ld} -64"
7532: fi
7533: ;;
7534: esac
7535: ;;
7536: esac
7537: fi
7538: rm -rf conftest*
7539: ;;
7540: esac
7541:
7542: need_locks=$enable_libtool_lock
7543:
7544: if test -n "$ac_tool_prefix"; then
7545: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7546: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.1.1.3 ! misho 7547: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7548: printf %s "checking for $ac_word... " >&6; }
! 7549: if test ${ac_cv_prog_MANIFEST_TOOL+y}
! 7550: then :
! 7551: printf %s "(cached) " >&6
! 7552: else $as_nop
1.1 misho 7553: if test -n "$MANIFEST_TOOL"; then
7554: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7555: else
7556: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557: for as_dir in $PATH
7558: do
7559: IFS=$as_save_IFS
1.1.1.3 ! misho 7560: case $as_dir in #(((
! 7561: '') as_dir=./ ;;
! 7562: */) ;;
! 7563: *) as_dir=$as_dir/ ;;
! 7564: esac
1.1 misho 7565: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7566: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7567: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.1.1.3 ! misho 7568: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7569: break 2
7570: fi
7571: done
7572: done
7573: IFS=$as_save_IFS
7574:
7575: fi
7576: fi
7577: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7578: if test -n "$MANIFEST_TOOL"; then
1.1.1.3 ! misho 7579: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
! 7580: printf "%s\n" "$MANIFEST_TOOL" >&6; }
1.1 misho 7581: else
1.1.1.3 ! misho 7582: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7583: printf "%s\n" "no" >&6; }
1.1 misho 7584: fi
7585:
7586:
7587: fi
7588: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7589: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7590: # Extract the first word of "mt", so it can be a program name with args.
7591: set dummy mt; ac_word=$2
1.1.1.3 ! misho 7592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7593: printf %s "checking for $ac_word... " >&6; }
! 7594: if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
! 7595: then :
! 7596: printf %s "(cached) " >&6
! 7597: else $as_nop
1.1 misho 7598: if test -n "$ac_ct_MANIFEST_TOOL"; then
7599: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7600: else
7601: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602: for as_dir in $PATH
7603: do
7604: IFS=$as_save_IFS
1.1.1.3 ! misho 7605: case $as_dir in #(((
! 7606: '') as_dir=./ ;;
! 7607: */) ;;
! 7608: *) as_dir=$as_dir/ ;;
! 7609: esac
1.1 misho 7610: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7611: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7612: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.1.1.3 ! misho 7613: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7614: break 2
7615: fi
7616: done
7617: done
7618: IFS=$as_save_IFS
7619:
7620: fi
7621: fi
7622: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7623: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.1.1.3 ! misho 7624: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
! 7625: printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
1.1 misho 7626: else
1.1.1.3 ! misho 7627: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7628: printf "%s\n" "no" >&6; }
1.1 misho 7629: fi
7630:
7631: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7632: MANIFEST_TOOL=":"
7633: else
7634: case $cross_compiling:$ac_tool_warned in
7635: yes:)
1.1.1.3 ! misho 7636: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7637: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 7638: ac_tool_warned=yes ;;
7639: esac
7640: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7641: fi
7642: else
7643: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7644: fi
7645:
7646: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.1.1.3 ! misho 7647: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 7648: printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
! 7649: if test ${lt_cv_path_mainfest_tool+y}
! 7650: then :
! 7651: printf %s "(cached) " >&6
! 7652: else $as_nop
1.1 misho 7653: lt_cv_path_mainfest_tool=no
7654: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7655: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7656: cat conftest.err >&5
7657: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7658: lt_cv_path_mainfest_tool=yes
7659: fi
7660: rm -f conftest*
7661: fi
1.1.1.3 ! misho 7662: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
! 7663: printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
1.1 misho 7664: if test yes != "$lt_cv_path_mainfest_tool"; then
7665: MANIFEST_TOOL=:
7666: fi
7667:
7668:
7669:
7670:
7671:
7672:
7673: case $host_os in
7674: rhapsody* | darwin*)
7675: if test -n "$ac_tool_prefix"; then
7676: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7677: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.1.1.3 ! misho 7678: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7679: printf %s "checking for $ac_word... " >&6; }
! 7680: if test ${ac_cv_prog_DSYMUTIL+y}
! 7681: then :
! 7682: printf %s "(cached) " >&6
! 7683: else $as_nop
1.1 misho 7684: if test -n "$DSYMUTIL"; then
7685: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7686: else
7687: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688: for as_dir in $PATH
7689: do
7690: IFS=$as_save_IFS
1.1.1.3 ! misho 7691: case $as_dir in #(((
! 7692: '') as_dir=./ ;;
! 7693: */) ;;
! 7694: *) as_dir=$as_dir/ ;;
! 7695: esac
1.1 misho 7696: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7697: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7698: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.1.1.3 ! misho 7699: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7700: break 2
7701: fi
7702: done
7703: done
7704: IFS=$as_save_IFS
7705:
7706: fi
7707: fi
7708: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7709: if test -n "$DSYMUTIL"; then
1.1.1.3 ! misho 7710: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
! 7711: printf "%s\n" "$DSYMUTIL" >&6; }
1.1 misho 7712: else
1.1.1.3 ! misho 7713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7714: printf "%s\n" "no" >&6; }
1.1 misho 7715: fi
7716:
7717:
7718: fi
7719: if test -z "$ac_cv_prog_DSYMUTIL"; then
7720: ac_ct_DSYMUTIL=$DSYMUTIL
7721: # Extract the first word of "dsymutil", so it can be a program name with args.
7722: set dummy dsymutil; ac_word=$2
1.1.1.3 ! misho 7723: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7724: printf %s "checking for $ac_word... " >&6; }
! 7725: if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
! 7726: then :
! 7727: printf %s "(cached) " >&6
! 7728: else $as_nop
1.1 misho 7729: if test -n "$ac_ct_DSYMUTIL"; then
7730: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7731: else
7732: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733: for as_dir in $PATH
7734: do
7735: IFS=$as_save_IFS
1.1.1.3 ! misho 7736: case $as_dir in #(((
! 7737: '') as_dir=./ ;;
! 7738: */) ;;
! 7739: *) as_dir=$as_dir/ ;;
! 7740: esac
1.1 misho 7741: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7742: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7743: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.1.1.3 ! misho 7744: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7745: break 2
7746: fi
7747: done
7748: done
7749: IFS=$as_save_IFS
7750:
7751: fi
7752: fi
7753: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7754: if test -n "$ac_ct_DSYMUTIL"; then
1.1.1.3 ! misho 7755: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
! 7756: printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
1.1 misho 7757: else
1.1.1.3 ! misho 7758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7759: printf "%s\n" "no" >&6; }
1.1 misho 7760: fi
7761:
7762: if test "x$ac_ct_DSYMUTIL" = x; then
7763: DSYMUTIL=":"
7764: else
7765: case $cross_compiling:$ac_tool_warned in
7766: yes:)
1.1.1.3 ! misho 7767: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7768: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 7769: ac_tool_warned=yes ;;
7770: esac
7771: DSYMUTIL=$ac_ct_DSYMUTIL
7772: fi
7773: else
7774: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7775: fi
7776:
7777: if test -n "$ac_tool_prefix"; then
7778: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7779: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.1.1.3 ! misho 7780: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7781: printf %s "checking for $ac_word... " >&6; }
! 7782: if test ${ac_cv_prog_NMEDIT+y}
! 7783: then :
! 7784: printf %s "(cached) " >&6
! 7785: else $as_nop
1.1 misho 7786: if test -n "$NMEDIT"; then
7787: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7788: else
7789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790: for as_dir in $PATH
7791: do
7792: IFS=$as_save_IFS
1.1.1.3 ! misho 7793: case $as_dir in #(((
! 7794: '') as_dir=./ ;;
! 7795: */) ;;
! 7796: *) as_dir=$as_dir/ ;;
! 7797: esac
1.1 misho 7798: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7799: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7800: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.1.1.3 ! misho 7801: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7802: break 2
7803: fi
7804: done
7805: done
7806: IFS=$as_save_IFS
7807:
7808: fi
7809: fi
7810: NMEDIT=$ac_cv_prog_NMEDIT
7811: if test -n "$NMEDIT"; then
1.1.1.3 ! misho 7812: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
! 7813: printf "%s\n" "$NMEDIT" >&6; }
1.1 misho 7814: else
1.1.1.3 ! misho 7815: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7816: printf "%s\n" "no" >&6; }
1.1 misho 7817: fi
7818:
7819:
7820: fi
7821: if test -z "$ac_cv_prog_NMEDIT"; then
7822: ac_ct_NMEDIT=$NMEDIT
7823: # Extract the first word of "nmedit", so it can be a program name with args.
7824: set dummy nmedit; ac_word=$2
1.1.1.3 ! misho 7825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7826: printf %s "checking for $ac_word... " >&6; }
! 7827: if test ${ac_cv_prog_ac_ct_NMEDIT+y}
! 7828: then :
! 7829: printf %s "(cached) " >&6
! 7830: else $as_nop
1.1 misho 7831: if test -n "$ac_ct_NMEDIT"; then
7832: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7833: else
7834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835: for as_dir in $PATH
7836: do
7837: IFS=$as_save_IFS
1.1.1.3 ! misho 7838: case $as_dir in #(((
! 7839: '') as_dir=./ ;;
! 7840: */) ;;
! 7841: *) as_dir=$as_dir/ ;;
! 7842: esac
1.1 misho 7843: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7844: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7845: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.1.1.3 ! misho 7846: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7847: break 2
7848: fi
7849: done
7850: done
7851: IFS=$as_save_IFS
7852:
7853: fi
7854: fi
7855: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7856: if test -n "$ac_ct_NMEDIT"; then
1.1.1.3 ! misho 7857: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
! 7858: printf "%s\n" "$ac_ct_NMEDIT" >&6; }
1.1 misho 7859: else
1.1.1.3 ! misho 7860: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7861: printf "%s\n" "no" >&6; }
1.1 misho 7862: fi
7863:
7864: if test "x$ac_ct_NMEDIT" = x; then
7865: NMEDIT=":"
7866: else
7867: case $cross_compiling:$ac_tool_warned in
7868: yes:)
1.1.1.3 ! misho 7869: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7870: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 7871: ac_tool_warned=yes ;;
7872: esac
7873: NMEDIT=$ac_ct_NMEDIT
7874: fi
7875: else
7876: NMEDIT="$ac_cv_prog_NMEDIT"
7877: fi
7878:
7879: if test -n "$ac_tool_prefix"; then
7880: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7881: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.1.1.3 ! misho 7882: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7883: printf %s "checking for $ac_word... " >&6; }
! 7884: if test ${ac_cv_prog_LIPO+y}
! 7885: then :
! 7886: printf %s "(cached) " >&6
! 7887: else $as_nop
1.1 misho 7888: if test -n "$LIPO"; then
7889: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7890: else
7891: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892: for as_dir in $PATH
7893: do
7894: IFS=$as_save_IFS
1.1.1.3 ! misho 7895: case $as_dir in #(((
! 7896: '') as_dir=./ ;;
! 7897: */) ;;
! 7898: *) as_dir=$as_dir/ ;;
! 7899: esac
1.1 misho 7900: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7901: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7902: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.1.1.3 ! misho 7903: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7904: break 2
7905: fi
7906: done
7907: done
7908: IFS=$as_save_IFS
7909:
7910: fi
7911: fi
7912: LIPO=$ac_cv_prog_LIPO
7913: if test -n "$LIPO"; then
1.1.1.3 ! misho 7914: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
! 7915: printf "%s\n" "$LIPO" >&6; }
1.1 misho 7916: else
1.1.1.3 ! misho 7917: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7918: printf "%s\n" "no" >&6; }
1.1 misho 7919: fi
7920:
7921:
7922: fi
7923: if test -z "$ac_cv_prog_LIPO"; then
7924: ac_ct_LIPO=$LIPO
7925: # Extract the first word of "lipo", so it can be a program name with args.
7926: set dummy lipo; ac_word=$2
1.1.1.3 ! misho 7927: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7928: printf %s "checking for $ac_word... " >&6; }
! 7929: if test ${ac_cv_prog_ac_ct_LIPO+y}
! 7930: then :
! 7931: printf %s "(cached) " >&6
! 7932: else $as_nop
1.1 misho 7933: if test -n "$ac_ct_LIPO"; then
7934: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7935: else
7936: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937: for as_dir in $PATH
7938: do
7939: IFS=$as_save_IFS
1.1.1.3 ! misho 7940: case $as_dir in #(((
! 7941: '') as_dir=./ ;;
! 7942: */) ;;
! 7943: *) as_dir=$as_dir/ ;;
! 7944: esac
1.1 misho 7945: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7946: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 7947: ac_cv_prog_ac_ct_LIPO="lipo"
1.1.1.3 ! misho 7948: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 7949: break 2
7950: fi
7951: done
7952: done
7953: IFS=$as_save_IFS
7954:
7955: fi
7956: fi
7957: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7958: if test -n "$ac_ct_LIPO"; then
1.1.1.3 ! misho 7959: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
! 7960: printf "%s\n" "$ac_ct_LIPO" >&6; }
1.1 misho 7961: else
1.1.1.3 ! misho 7962: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7963: printf "%s\n" "no" >&6; }
1.1 misho 7964: fi
7965:
7966: if test "x$ac_ct_LIPO" = x; then
7967: LIPO=":"
7968: else
7969: case $cross_compiling:$ac_tool_warned in
7970: yes:)
1.1.1.3 ! misho 7971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7972: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 7973: ac_tool_warned=yes ;;
7974: esac
7975: LIPO=$ac_ct_LIPO
7976: fi
7977: else
7978: LIPO="$ac_cv_prog_LIPO"
7979: fi
7980:
7981: if test -n "$ac_tool_prefix"; then
7982: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7983: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.1.1.3 ! misho 7984: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7985: printf %s "checking for $ac_word... " >&6; }
! 7986: if test ${ac_cv_prog_OTOOL+y}
! 7987: then :
! 7988: printf %s "(cached) " >&6
! 7989: else $as_nop
1.1 misho 7990: if test -n "$OTOOL"; then
7991: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7992: else
7993: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994: for as_dir in $PATH
7995: do
7996: IFS=$as_save_IFS
1.1.1.3 ! misho 7997: case $as_dir in #(((
! 7998: '') as_dir=./ ;;
! 7999: */) ;;
! 8000: *) as_dir=$as_dir/ ;;
! 8001: esac
1.1 misho 8002: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 8003: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 8004: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.1.1.3 ! misho 8005: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 8006: break 2
8007: fi
8008: done
8009: done
8010: IFS=$as_save_IFS
8011:
8012: fi
8013: fi
8014: OTOOL=$ac_cv_prog_OTOOL
8015: if test -n "$OTOOL"; then
1.1.1.3 ! misho 8016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
! 8017: printf "%s\n" "$OTOOL" >&6; }
1.1 misho 8018: else
1.1.1.3 ! misho 8019: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8020: printf "%s\n" "no" >&6; }
1.1 misho 8021: fi
8022:
8023:
8024: fi
8025: if test -z "$ac_cv_prog_OTOOL"; then
8026: ac_ct_OTOOL=$OTOOL
8027: # Extract the first word of "otool", so it can be a program name with args.
8028: set dummy otool; ac_word=$2
1.1.1.3 ! misho 8029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8030: printf %s "checking for $ac_word... " >&6; }
! 8031: if test ${ac_cv_prog_ac_ct_OTOOL+y}
! 8032: then :
! 8033: printf %s "(cached) " >&6
! 8034: else $as_nop
1.1 misho 8035: if test -n "$ac_ct_OTOOL"; then
8036: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8037: else
8038: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039: for as_dir in $PATH
8040: do
8041: IFS=$as_save_IFS
1.1.1.3 ! misho 8042: case $as_dir in #(((
! 8043: '') as_dir=./ ;;
! 8044: */) ;;
! 8045: *) as_dir=$as_dir/ ;;
! 8046: esac
1.1 misho 8047: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 8048: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 8049: ac_cv_prog_ac_ct_OTOOL="otool"
1.1.1.3 ! misho 8050: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 8051: break 2
8052: fi
8053: done
8054: done
8055: IFS=$as_save_IFS
8056:
8057: fi
8058: fi
8059: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8060: if test -n "$ac_ct_OTOOL"; then
1.1.1.3 ! misho 8061: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
! 8062: printf "%s\n" "$ac_ct_OTOOL" >&6; }
1.1 misho 8063: else
1.1.1.3 ! misho 8064: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8065: printf "%s\n" "no" >&6; }
1.1 misho 8066: fi
8067:
8068: if test "x$ac_ct_OTOOL" = x; then
8069: OTOOL=":"
8070: else
8071: case $cross_compiling:$ac_tool_warned in
8072: yes:)
1.1.1.3 ! misho 8073: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8074: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 8075: ac_tool_warned=yes ;;
8076: esac
8077: OTOOL=$ac_ct_OTOOL
8078: fi
8079: else
8080: OTOOL="$ac_cv_prog_OTOOL"
8081: fi
8082:
8083: if test -n "$ac_tool_prefix"; then
8084: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8085: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.1.1.3 ! misho 8086: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8087: printf %s "checking for $ac_word... " >&6; }
! 8088: if test ${ac_cv_prog_OTOOL64+y}
! 8089: then :
! 8090: printf %s "(cached) " >&6
! 8091: else $as_nop
1.1 misho 8092: if test -n "$OTOOL64"; then
8093: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8094: else
8095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096: for as_dir in $PATH
8097: do
8098: IFS=$as_save_IFS
1.1.1.3 ! misho 8099: case $as_dir in #(((
! 8100: '') as_dir=./ ;;
! 8101: */) ;;
! 8102: *) as_dir=$as_dir/ ;;
! 8103: esac
1.1 misho 8104: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 8105: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 8106: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.1.1.3 ! misho 8107: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 8108: break 2
8109: fi
8110: done
8111: done
8112: IFS=$as_save_IFS
8113:
8114: fi
8115: fi
8116: OTOOL64=$ac_cv_prog_OTOOL64
8117: if test -n "$OTOOL64"; then
1.1.1.3 ! misho 8118: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
! 8119: printf "%s\n" "$OTOOL64" >&6; }
1.1 misho 8120: else
1.1.1.3 ! misho 8121: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8122: printf "%s\n" "no" >&6; }
1.1 misho 8123: fi
8124:
8125:
8126: fi
8127: if test -z "$ac_cv_prog_OTOOL64"; then
8128: ac_ct_OTOOL64=$OTOOL64
8129: # Extract the first word of "otool64", so it can be a program name with args.
8130: set dummy otool64; ac_word=$2
1.1.1.3 ! misho 8131: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8132: printf %s "checking for $ac_word... " >&6; }
! 8133: if test ${ac_cv_prog_ac_ct_OTOOL64+y}
! 8134: then :
! 8135: printf %s "(cached) " >&6
! 8136: else $as_nop
1.1 misho 8137: if test -n "$ac_ct_OTOOL64"; then
8138: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8139: else
8140: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141: for as_dir in $PATH
8142: do
8143: IFS=$as_save_IFS
1.1.1.3 ! misho 8144: case $as_dir in #(((
! 8145: '') as_dir=./ ;;
! 8146: */) ;;
! 8147: *) as_dir=$as_dir/ ;;
! 8148: esac
1.1 misho 8149: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 8150: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 8151: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.1.1.3 ! misho 8152: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 8153: break 2
8154: fi
8155: done
8156: done
8157: IFS=$as_save_IFS
8158:
8159: fi
8160: fi
8161: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8162: if test -n "$ac_ct_OTOOL64"; then
1.1.1.3 ! misho 8163: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
! 8164: printf "%s\n" "$ac_ct_OTOOL64" >&6; }
1.1 misho 8165: else
1.1.1.3 ! misho 8166: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8167: printf "%s\n" "no" >&6; }
1.1 misho 8168: fi
8169:
8170: if test "x$ac_ct_OTOOL64" = x; then
8171: OTOOL64=":"
8172: else
8173: case $cross_compiling:$ac_tool_warned in
8174: yes:)
1.1.1.3 ! misho 8175: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8176: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 8177: ac_tool_warned=yes ;;
8178: esac
8179: OTOOL64=$ac_ct_OTOOL64
8180: fi
8181: else
8182: OTOOL64="$ac_cv_prog_OTOOL64"
8183: fi
8184:
8185:
8186:
8187:
8188:
8189:
8190:
8191:
8192:
8193:
8194:
8195:
8196:
8197:
8198:
8199:
8200:
8201:
8202:
8203:
8204:
8205:
8206:
8207:
8208:
8209:
8210:
1.1.1.3 ! misho 8211: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
! 8212: printf %s "checking for -single_module linker flag... " >&6; }
! 8213: if test ${lt_cv_apple_cc_single_mod+y}
! 8214: then :
! 8215: printf %s "(cached) " >&6
! 8216: else $as_nop
1.1 misho 8217: lt_cv_apple_cc_single_mod=no
8218: if test -z "$LT_MULTI_MODULE"; then
8219: # By default we will add the -single_module flag. You can override
8220: # by either setting the environment variable LT_MULTI_MODULE
8221: # non-empty at configure time, or by adding -multi_module to the
8222: # link flags.
8223: rm -rf libconftest.dylib*
8224: echo "int foo(void){return 1;}" > conftest.c
8225: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8226: -dynamiclib -Wl,-single_module conftest.c" >&5
8227: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8228: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8229: _lt_result=$?
8230: # If there is a non-empty error log, and "single_module"
8231: # appears in it, assume the flag caused a linker warning
8232: if test -s conftest.err && $GREP single_module conftest.err; then
8233: cat conftest.err >&5
8234: # Otherwise, if the output was created with a 0 exit code from
8235: # the compiler, it worked.
8236: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8237: lt_cv_apple_cc_single_mod=yes
8238: else
8239: cat conftest.err >&5
8240: fi
8241: rm -rf libconftest.dylib*
8242: rm -f conftest.*
8243: fi
8244: fi
1.1.1.3 ! misho 8245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
! 8246: printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
1.1 misho 8247:
1.1.1.3 ! misho 8248: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
! 8249: printf %s "checking for -exported_symbols_list linker flag... " >&6; }
! 8250: if test ${lt_cv_ld_exported_symbols_list+y}
! 8251: then :
! 8252: printf %s "(cached) " >&6
! 8253: else $as_nop
1.1 misho 8254: lt_cv_ld_exported_symbols_list=no
8255: save_LDFLAGS=$LDFLAGS
8256: echo "_main" > conftest.sym
8257: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259: /* end confdefs.h. */
8260:
8261: int
1.1.1.3 ! misho 8262: main (void)
1.1 misho 8263: {
8264:
8265: ;
8266: return 0;
8267: }
8268: _ACEOF
1.1.1.3 ! misho 8269: if ac_fn_c_try_link "$LINENO"
! 8270: then :
1.1 misho 8271: lt_cv_ld_exported_symbols_list=yes
1.1.1.3 ! misho 8272: else $as_nop
1.1 misho 8273: lt_cv_ld_exported_symbols_list=no
8274: fi
1.1.1.3 ! misho 8275: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 8276: conftest$ac_exeext conftest.$ac_ext
8277: LDFLAGS=$save_LDFLAGS
8278:
8279: fi
1.1.1.3 ! misho 8280: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
! 8281: printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
1.1 misho 8282:
1.1.1.3 ! misho 8283: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
! 8284: printf %s "checking for -force_load linker flag... " >&6; }
! 8285: if test ${lt_cv_ld_force_load+y}
! 8286: then :
! 8287: printf %s "(cached) " >&6
! 8288: else $as_nop
1.1 misho 8289: lt_cv_ld_force_load=no
8290: cat > conftest.c << _LT_EOF
8291: int forced_loaded() { return 2;}
8292: _LT_EOF
8293: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8294: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
1.1.1.3 ! misho 8295: echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
! 8296: $AR $AR_FLAGS libconftest.a conftest.o 2>&5
1.1 misho 8297: echo "$RANLIB libconftest.a" >&5
8298: $RANLIB libconftest.a 2>&5
8299: cat > conftest.c << _LT_EOF
8300: int main() { return 0;}
8301: _LT_EOF
8302: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8303: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8304: _lt_result=$?
8305: if test -s conftest.err && $GREP force_load conftest.err; then
8306: cat conftest.err >&5
8307: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8308: lt_cv_ld_force_load=yes
8309: else
8310: cat conftest.err >&5
8311: fi
8312: rm -f conftest.err libconftest.a conftest conftest.c
8313: rm -rf conftest.dSYM
8314:
8315: fi
1.1.1.3 ! misho 8316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
! 8317: printf "%s\n" "$lt_cv_ld_force_load" >&6; }
1.1 misho 8318: case $host_os in
8319: rhapsody* | darwin1.[012])
8320: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8321: darwin1.*)
8322: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1.1.1.2 misho 8323: darwin*)
1.1.1.3 ! misho 8324: case $MACOSX_DEPLOYMENT_TARGET,$host in
! 8325: 10.[012],*|,*powerpc*-darwin[5-8]*)
! 8326: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
! 8327: *)
! 8328: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1.1 misho 8329: esac
8330: ;;
8331: esac
8332: if test yes = "$lt_cv_apple_cc_single_mod"; then
8333: _lt_dar_single_mod='$single_module'
8334: fi
8335: if test yes = "$lt_cv_ld_exported_symbols_list"; then
8336: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8337: else
8338: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8339: fi
8340: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8341: _lt_dsymutil='~$DSYMUTIL $lib || :'
8342: else
8343: _lt_dsymutil=
8344: fi
8345: ;;
8346: esac
8347:
8348: # func_munge_path_list VARIABLE PATH
8349: # -----------------------------------
8350: # VARIABLE is name of variable containing _space_ separated list of
8351: # directories to be munged by the contents of PATH, which is string
8352: # having a format:
8353: # "DIR[:DIR]:"
8354: # string "DIR[ DIR]" will be prepended to VARIABLE
8355: # ":DIR[:DIR]"
8356: # string "DIR[ DIR]" will be appended to VARIABLE
8357: # "DIRP[:DIRP]::[DIRA:]DIRA"
8358: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8359: # "DIRA[ DIRA]" will be appended to VARIABLE
8360: # "DIR[:DIR]"
8361: # VARIABLE will be replaced by "DIR[ DIR]"
8362: func_munge_path_list ()
8363: {
8364: case x$2 in
8365: x)
8366: ;;
8367: *:)
8368: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8369: ;;
8370: x:*)
8371: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8372: ;;
8373: *::*)
8374: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8375: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8376: ;;
8377: *)
8378: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8379: ;;
8380: esac
8381: }
8382:
1.1.1.3 ! misho 8383: ac_header= ac_cache=
! 8384: for ac_item in $ac_header_c_list
1.1 misho 8385: do
1.1.1.3 ! misho 8386: if test $ac_cache; then
! 8387: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
! 8388: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
! 8389: printf "%s\n" "#define $ac_item 1" >> confdefs.h
! 8390: fi
! 8391: ac_header= ac_cache=
! 8392: elif test $ac_header; then
! 8393: ac_cache=$ac_item
! 8394: else
! 8395: ac_header=$ac_item
! 8396: fi
1.1 misho 8397: done
8398:
8399:
8400:
8401:
8402:
8403:
8404:
8405:
1.1.1.3 ! misho 8406: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
! 8407: then :
1.1 misho 8408:
1.1.1.3 ! misho 8409: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.1 misho 8410:
8411: fi
1.1.1.3 ! misho 8412: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
1.1 misho 8413: "
1.1.1.3 ! misho 8414: if test "x$ac_cv_header_dlfcn_h" = xyes
! 8415: then :
! 8416: printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
1.1 misho 8417:
8418: fi
8419:
8420:
8421:
8422:
8423:
8424: # Set options
8425:
8426:
8427:
8428: enable_dlopen=no
8429:
8430:
8431: enable_win32_dll=no
8432:
8433:
8434: # Check whether --enable-shared was given.
1.1.1.3 ! misho 8435: if test ${enable_shared+y}
! 8436: then :
1.1 misho 8437: enableval=$enable_shared; p=${PACKAGE-default}
8438: case $enableval in
8439: yes) enable_shared=yes ;;
8440: no) enable_shared=no ;;
8441: *)
8442: enable_shared=no
8443: # Look at the argument we got. We use all the common list separators.
8444: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8445: for pkg in $enableval; do
8446: IFS=$lt_save_ifs
8447: if test "X$pkg" = "X$p"; then
8448: enable_shared=yes
8449: fi
8450: done
8451: IFS=$lt_save_ifs
8452: ;;
8453: esac
1.1.1.3 ! misho 8454: else $as_nop
1.1 misho 8455: enable_shared=yes
8456: fi
8457:
8458:
8459:
8460:
8461:
8462:
8463:
8464:
8465:
8466: # Check whether --enable-static was given.
1.1.1.3 ! misho 8467: if test ${enable_static+y}
! 8468: then :
1.1 misho 8469: enableval=$enable_static; p=${PACKAGE-default}
8470: case $enableval in
8471: yes) enable_static=yes ;;
8472: no) enable_static=no ;;
8473: *)
8474: enable_static=no
8475: # Look at the argument we got. We use all the common list separators.
8476: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8477: for pkg in $enableval; do
8478: IFS=$lt_save_ifs
8479: if test "X$pkg" = "X$p"; then
8480: enable_static=yes
8481: fi
8482: done
8483: IFS=$lt_save_ifs
8484: ;;
8485: esac
1.1.1.3 ! misho 8486: else $as_nop
1.1 misho 8487: enable_static=yes
8488: fi
8489:
8490:
8491:
8492:
8493:
8494:
8495:
8496:
8497:
8498:
8499: # Check whether --with-pic was given.
1.1.1.3 ! misho 8500: if test ${with_pic+y}
! 8501: then :
1.1 misho 8502: withval=$with_pic; lt_p=${PACKAGE-default}
8503: case $withval in
8504: yes|no) pic_mode=$withval ;;
8505: *)
8506: pic_mode=default
8507: # Look at the argument we got. We use all the common list separators.
8508: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8509: for lt_pkg in $withval; do
8510: IFS=$lt_save_ifs
8511: if test "X$lt_pkg" = "X$lt_p"; then
8512: pic_mode=yes
8513: fi
8514: done
8515: IFS=$lt_save_ifs
8516: ;;
8517: esac
1.1.1.3 ! misho 8518: else $as_nop
1.1 misho 8519: pic_mode=default
8520: fi
8521:
8522:
8523:
8524:
8525:
8526:
8527:
8528:
8529: # Check whether --enable-fast-install was given.
1.1.1.3 ! misho 8530: if test ${enable_fast_install+y}
! 8531: then :
1.1 misho 8532: enableval=$enable_fast_install; p=${PACKAGE-default}
8533: case $enableval in
8534: yes) enable_fast_install=yes ;;
8535: no) enable_fast_install=no ;;
8536: *)
8537: enable_fast_install=no
8538: # Look at the argument we got. We use all the common list separators.
8539: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8540: for pkg in $enableval; do
8541: IFS=$lt_save_ifs
8542: if test "X$pkg" = "X$p"; then
8543: enable_fast_install=yes
8544: fi
8545: done
8546: IFS=$lt_save_ifs
8547: ;;
8548: esac
1.1.1.3 ! misho 8549: else $as_nop
1.1 misho 8550: enable_fast_install=yes
8551: fi
8552:
8553:
8554:
8555:
8556:
8557:
8558:
8559:
8560: shared_archive_member_spec=
8561: case $host,$enable_shared in
8562: power*-*-aix[5-9]*,yes)
1.1.1.3 ! misho 8563: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
! 8564: printf %s "checking which variant of shared library versioning to provide... " >&6; }
1.1 misho 8565:
8566: # Check whether --with-aix-soname was given.
1.1.1.3 ! misho 8567: if test ${with_aix_soname+y}
! 8568: then :
1.1 misho 8569: withval=$with_aix_soname; case $withval in
8570: aix|svr4|both)
8571: ;;
8572: *)
8573: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8574: ;;
8575: esac
8576: lt_cv_with_aix_soname=$with_aix_soname
1.1.1.3 ! misho 8577: else $as_nop
! 8578: if test ${lt_cv_with_aix_soname+y}
! 8579: then :
! 8580: printf %s "(cached) " >&6
! 8581: else $as_nop
1.1 misho 8582: lt_cv_with_aix_soname=aix
8583: fi
8584:
8585: with_aix_soname=$lt_cv_with_aix_soname
8586: fi
8587:
1.1.1.3 ! misho 8588: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
! 8589: printf "%s\n" "$with_aix_soname" >&6; }
1.1 misho 8590: if test aix != "$with_aix_soname"; then
8591: # For the AIX way of multilib, we name the shared archive member
8592: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8593: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8594: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8595: # the AIX toolchain works better with OBJECT_MODE set (default 32).
8596: if test 64 = "${OBJECT_MODE-32}"; then
8597: shared_archive_member_spec=shr_64
8598: else
8599: shared_archive_member_spec=shr
8600: fi
8601: fi
8602: ;;
8603: *)
8604: with_aix_soname=aix
8605: ;;
8606: esac
8607:
8608:
8609:
8610:
8611:
8612:
8613:
8614:
8615:
8616:
8617: # This can be used to rebuild libtool when needed
8618: LIBTOOL_DEPS=$ltmain
8619:
8620: # Always use our own libtool.
8621: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8622:
8623:
8624:
8625:
8626:
8627:
8628:
8629:
8630:
8631:
8632:
8633:
8634:
8635:
8636:
8637:
8638:
8639:
8640:
8641:
8642:
8643:
8644:
8645:
8646:
8647:
8648:
8649:
8650:
8651:
8652: test -z "$LN_S" && LN_S="ln -s"
8653:
8654:
8655:
8656:
8657:
8658:
8659:
8660:
8661:
8662:
8663:
8664:
8665:
8666:
8667: if test -n "${ZSH_VERSION+set}"; then
8668: setopt NO_GLOB_SUBST
8669: fi
8670:
1.1.1.3 ! misho 8671: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
! 8672: printf %s "checking for objdir... " >&6; }
! 8673: if test ${lt_cv_objdir+y}
! 8674: then :
! 8675: printf %s "(cached) " >&6
! 8676: else $as_nop
1.1 misho 8677: rm -f .libs 2>/dev/null
8678: mkdir .libs 2>/dev/null
8679: if test -d .libs; then
8680: lt_cv_objdir=.libs
8681: else
8682: # MS-DOS does not allow filenames that begin with a dot.
8683: lt_cv_objdir=_libs
8684: fi
8685: rmdir .libs 2>/dev/null
8686: fi
1.1.1.3 ! misho 8687: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
! 8688: printf "%s\n" "$lt_cv_objdir" >&6; }
1.1 misho 8689: objdir=$lt_cv_objdir
8690:
8691:
8692:
8693:
8694:
1.1.1.3 ! misho 8695: printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1.1 misho 8696:
8697:
8698:
8699:
8700: case $host_os in
8701: aix3*)
8702: # AIX sometimes has problems with the GCC collect2 program. For some
8703: # reason, if we set the COLLECT_NAMES environment variable, the problems
8704: # vanish in a puff of smoke.
8705: if test set != "${COLLECT_NAMES+set}"; then
8706: COLLECT_NAMES=
8707: export COLLECT_NAMES
8708: fi
8709: ;;
8710: esac
8711:
8712: # Global variables:
8713: ofile=libtool
8714: can_build_shared=yes
8715:
1.1.1.3 ! misho 8716: # All known linkers require a '.a' archive for static linking (except MSVC and
! 8717: # ICC, which need '.lib').
1.1 misho 8718: libext=a
8719:
8720: with_gnu_ld=$lt_cv_prog_gnu_ld
8721:
8722: old_CC=$CC
8723: old_CFLAGS=$CFLAGS
8724:
8725: # Set sane defaults for various variables
8726: test -z "$CC" && CC=cc
8727: test -z "$LTCC" && LTCC=$CC
8728: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8729: test -z "$LD" && LD=ld
8730: test -z "$ac_objext" && ac_objext=o
8731:
8732: func_cc_basename $compiler
8733: cc_basename=$func_cc_basename_result
8734:
8735:
8736: # Only perform the check for file, if the check method requires it
8737: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8738: case $deplibs_check_method in
8739: file_magic*)
8740: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.1.3 ! misho 8741: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
! 8742: printf %s "checking for ${ac_tool_prefix}file... " >&6; }
! 8743: if test ${lt_cv_path_MAGIC_CMD+y}
! 8744: then :
! 8745: printf %s "(cached) " >&6
! 8746: else $as_nop
1.1 misho 8747: case $MAGIC_CMD in
8748: [\\/*] | ?:[\\/]*)
8749: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8750: ;;
8751: *)
8752: lt_save_MAGIC_CMD=$MAGIC_CMD
8753: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8754: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8755: for ac_dir in $ac_dummy; do
8756: IFS=$lt_save_ifs
8757: test -z "$ac_dir" && ac_dir=.
8758: if test -f "$ac_dir/${ac_tool_prefix}file"; then
8759: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8760: if test -n "$file_magic_test_file"; then
8761: case $deplibs_check_method in
8762: "file_magic "*)
8763: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8764: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8765: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8766: $EGREP "$file_magic_regex" > /dev/null; then
8767: :
8768: else
8769: cat <<_LT_EOF 1>&2
8770:
8771: *** Warning: the command libtool uses to detect shared libraries,
8772: *** $file_magic_cmd, produces output that libtool cannot recognize.
8773: *** The result is that libtool may fail to recognize shared libraries
8774: *** as such. This will affect the creation of libtool libraries that
8775: *** depend on shared libraries, but programs linked with such libtool
8776: *** libraries will work regardless of this problem. Nevertheless, you
8777: *** may want to report the problem to your system manager and/or to
8778: *** bug-libtool@gnu.org
8779:
8780: _LT_EOF
8781: fi ;;
8782: esac
8783: fi
8784: break
8785: fi
8786: done
8787: IFS=$lt_save_ifs
8788: MAGIC_CMD=$lt_save_MAGIC_CMD
8789: ;;
8790: esac
8791: fi
8792:
8793: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8794: if test -n "$MAGIC_CMD"; then
1.1.1.3 ! misho 8795: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8796: printf "%s\n" "$MAGIC_CMD" >&6; }
1.1 misho 8797: else
1.1.1.3 ! misho 8798: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8799: printf "%s\n" "no" >&6; }
1.1 misho 8800: fi
8801:
8802:
8803:
8804:
8805:
8806: if test -z "$lt_cv_path_MAGIC_CMD"; then
8807: if test -n "$ac_tool_prefix"; then
1.1.1.3 ! misho 8808: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
! 8809: printf %s "checking for file... " >&6; }
! 8810: if test ${lt_cv_path_MAGIC_CMD+y}
! 8811: then :
! 8812: printf %s "(cached) " >&6
! 8813: else $as_nop
1.1 misho 8814: case $MAGIC_CMD in
8815: [\\/*] | ?:[\\/]*)
8816: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8817: ;;
8818: *)
8819: lt_save_MAGIC_CMD=$MAGIC_CMD
8820: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8821: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8822: for ac_dir in $ac_dummy; do
8823: IFS=$lt_save_ifs
8824: test -z "$ac_dir" && ac_dir=.
8825: if test -f "$ac_dir/file"; then
8826: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8827: if test -n "$file_magic_test_file"; then
8828: case $deplibs_check_method in
8829: "file_magic "*)
8830: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8831: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8832: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8833: $EGREP "$file_magic_regex" > /dev/null; then
8834: :
8835: else
8836: cat <<_LT_EOF 1>&2
8837:
8838: *** Warning: the command libtool uses to detect shared libraries,
8839: *** $file_magic_cmd, produces output that libtool cannot recognize.
8840: *** The result is that libtool may fail to recognize shared libraries
8841: *** as such. This will affect the creation of libtool libraries that
8842: *** depend on shared libraries, but programs linked with such libtool
8843: *** libraries will work regardless of this problem. Nevertheless, you
8844: *** may want to report the problem to your system manager and/or to
8845: *** bug-libtool@gnu.org
8846:
8847: _LT_EOF
8848: fi ;;
8849: esac
8850: fi
8851: break
8852: fi
8853: done
8854: IFS=$lt_save_ifs
8855: MAGIC_CMD=$lt_save_MAGIC_CMD
8856: ;;
8857: esac
8858: fi
8859:
8860: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8861: if test -n "$MAGIC_CMD"; then
1.1.1.3 ! misho 8862: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8863: printf "%s\n" "$MAGIC_CMD" >&6; }
1.1 misho 8864: else
1.1.1.3 ! misho 8865: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8866: printf "%s\n" "no" >&6; }
1.1 misho 8867: fi
8868:
8869:
8870: else
8871: MAGIC_CMD=:
8872: fi
8873: fi
8874:
8875: fi
8876: ;;
8877: esac
8878:
8879: # Use C for the default configuration in the libtool script
8880:
8881: lt_save_CC=$CC
8882: ac_ext=c
8883: ac_cpp='$CPP $CPPFLAGS'
8884: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8885: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8886: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8887:
8888:
8889: # Source file extension for C test sources.
8890: ac_ext=c
8891:
8892: # Object file extension for compiled C test sources.
8893: objext=o
8894: objext=$objext
8895:
8896: # Code to be used in simple compile tests
8897: lt_simple_compile_test_code="int some_variable = 0;"
8898:
8899: # Code to be used in simple link tests
8900: lt_simple_link_test_code='int main(){return(0);}'
8901:
8902:
8903:
8904:
8905:
8906:
8907:
8908: # If no C compiler was specified, use CC.
8909: LTCC=${LTCC-"$CC"}
8910:
8911: # If no C compiler flags were specified, use CFLAGS.
8912: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8913:
8914: # Allow CC to be a program name with arguments.
8915: compiler=$CC
8916:
8917: # Save the default compiler, since it gets overwritten when the other
8918: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8919: compiler_DEFAULT=$CC
8920:
8921: # save warnings/boilerplate of simple test code
8922: ac_outfile=conftest.$ac_objext
8923: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8924: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8925: _lt_compiler_boilerplate=`cat conftest.err`
8926: $RM conftest*
8927:
8928: ac_outfile=conftest.$ac_objext
8929: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8930: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8931: _lt_linker_boilerplate=`cat conftest.err`
8932: $RM -r conftest*
8933:
8934:
8935: if test -n "$compiler"; then
8936:
8937: lt_prog_compiler_no_builtin_flag=
8938:
8939: if test yes = "$GCC"; then
8940: case $cc_basename in
8941: nvcc*)
8942: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8943: *)
8944: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8945: esac
8946:
1.1.1.3 ! misho 8947: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 8948: printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
! 8949: if test ${lt_cv_prog_compiler_rtti_exceptions+y}
! 8950: then :
! 8951: printf %s "(cached) " >&6
! 8952: else $as_nop
1.1 misho 8953: lt_cv_prog_compiler_rtti_exceptions=no
8954: ac_outfile=conftest.$ac_objext
8955: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8956: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8957: # Insert the option either (1) after the last *FLAGS variable, or
8958: # (2) before a word containing "conftest.", or (3) at the end.
8959: # Note that $ac_compile itself does not contain backslashes and begins
8960: # with a dollar sign (not a hyphen), so the echo should work correctly.
8961: # The option is referenced via a variable to avoid confusing sed.
8962: lt_compile=`echo "$ac_compile" | $SED \
8963: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8964: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8965: -e 's:$: $lt_compiler_flag:'`
8966: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8967: (eval "$lt_compile" 2>conftest.err)
8968: ac_status=$?
8969: cat conftest.err >&5
8970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971: if (exit $ac_status) && test -s "$ac_outfile"; then
8972: # The compiler can only warn and ignore the option if not recognized
8973: # So say no if there are warnings other than the usual output.
8974: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8975: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8976: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8977: lt_cv_prog_compiler_rtti_exceptions=yes
8978: fi
8979: fi
8980: $RM conftest*
8981:
8982: fi
1.1.1.3 ! misho 8983: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 8984: printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 misho 8985:
8986: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8987: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8988: else
8989: :
8990: fi
8991:
8992: fi
8993:
8994:
8995:
8996:
8997:
8998:
8999: lt_prog_compiler_wl=
9000: lt_prog_compiler_pic=
9001: lt_prog_compiler_static=
9002:
9003:
9004: if test yes = "$GCC"; then
9005: lt_prog_compiler_wl='-Wl,'
9006: lt_prog_compiler_static='-static'
9007:
9008: case $host_os in
9009: aix*)
9010: # All AIX code is PIC.
9011: if test ia64 = "$host_cpu"; then
9012: # AIX 5 now supports IA64 processor
9013: lt_prog_compiler_static='-Bstatic'
9014: fi
9015: lt_prog_compiler_pic='-fPIC'
9016: ;;
9017:
9018: amigaos*)
9019: case $host_cpu in
9020: powerpc)
9021: # see comment about AmigaOS4 .so support
9022: lt_prog_compiler_pic='-fPIC'
9023: ;;
9024: m68k)
9025: # FIXME: we need at least 68020 code to build shared libraries, but
9026: # adding the '-m68020' flag to GCC prevents building anything better,
9027: # like '-m68040'.
9028: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9029: ;;
9030: esac
9031: ;;
9032:
9033: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9034: # PIC is the default for these OSes.
9035: ;;
9036:
9037: mingw* | cygwin* | pw32* | os2* | cegcc*)
9038: # This hack is so that the source file can tell whether it is being
9039: # built for inclusion in a dll (and should export symbols for example).
9040: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9041: # (--disable-auto-import) libraries
9042: lt_prog_compiler_pic='-DDLL_EXPORT'
9043: case $host_os in
9044: os2*)
9045: lt_prog_compiler_static='$wl-static'
9046: ;;
9047: esac
9048: ;;
9049:
9050: darwin* | rhapsody*)
9051: # PIC is the default on this platform
9052: # Common symbols not allowed in MH_DYLIB files
9053: lt_prog_compiler_pic='-fno-common'
9054: ;;
9055:
9056: haiku*)
9057: # PIC is the default for Haiku.
9058: # The "-static" flag exists, but is broken.
9059: lt_prog_compiler_static=
9060: ;;
9061:
9062: hpux*)
9063: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9064: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9065: # sets the default TLS model and affects inlining.
9066: case $host_cpu in
9067: hppa*64*)
9068: # +Z the default
9069: ;;
9070: *)
9071: lt_prog_compiler_pic='-fPIC'
9072: ;;
9073: esac
9074: ;;
9075:
9076: interix[3-9]*)
9077: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9078: # Instead, we relocate shared libraries at runtime.
9079: ;;
9080:
9081: msdosdjgpp*)
9082: # Just because we use GCC doesn't mean we suddenly get shared libraries
9083: # on systems that don't support them.
9084: lt_prog_compiler_can_build_shared=no
9085: enable_shared=no
9086: ;;
9087:
9088: *nto* | *qnx*)
9089: # QNX uses GNU C++, but need to define -shared option too, otherwise
9090: # it will coredump.
9091: lt_prog_compiler_pic='-fPIC -shared'
9092: ;;
9093:
9094: sysv4*MP*)
9095: if test -d /usr/nec; then
9096: lt_prog_compiler_pic=-Kconform_pic
9097: fi
9098: ;;
9099:
9100: *)
9101: lt_prog_compiler_pic='-fPIC'
9102: ;;
9103: esac
9104:
9105: case $cc_basename in
9106: nvcc*) # Cuda Compiler Driver 2.2
9107: lt_prog_compiler_wl='-Xlinker '
9108: if test -n "$lt_prog_compiler_pic"; then
9109: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9110: fi
9111: ;;
9112: esac
9113: else
9114: # PORTME Check for flag to pass linker flags through the system compiler.
9115: case $host_os in
9116: aix*)
9117: lt_prog_compiler_wl='-Wl,'
9118: if test ia64 = "$host_cpu"; then
9119: # AIX 5 now supports IA64 processor
9120: lt_prog_compiler_static='-Bstatic'
9121: else
9122: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9123: fi
9124: ;;
9125:
9126: darwin* | rhapsody*)
9127: # PIC is the default on this platform
9128: # Common symbols not allowed in MH_DYLIB files
9129: lt_prog_compiler_pic='-fno-common'
9130: case $cc_basename in
9131: nagfor*)
9132: # NAG Fortran compiler
9133: lt_prog_compiler_wl='-Wl,-Wl,,'
9134: lt_prog_compiler_pic='-PIC'
9135: lt_prog_compiler_static='-Bstatic'
9136: ;;
9137: esac
9138: ;;
9139:
9140: mingw* | cygwin* | pw32* | os2* | cegcc*)
9141: # This hack is so that the source file can tell whether it is being
9142: # built for inclusion in a dll (and should export symbols for example).
9143: lt_prog_compiler_pic='-DDLL_EXPORT'
9144: case $host_os in
9145: os2*)
9146: lt_prog_compiler_static='$wl-static'
9147: ;;
9148: esac
9149: ;;
9150:
9151: hpux9* | hpux10* | hpux11*)
9152: lt_prog_compiler_wl='-Wl,'
9153: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9154: # not for PA HP-UX.
9155: case $host_cpu in
9156: hppa*64*|ia64*)
9157: # +Z the default
9158: ;;
9159: *)
9160: lt_prog_compiler_pic='+Z'
9161: ;;
9162: esac
9163: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9164: lt_prog_compiler_static='$wl-a ${wl}archive'
9165: ;;
9166:
9167: irix5* | irix6* | nonstopux*)
9168: lt_prog_compiler_wl='-Wl,'
9169: # PIC (with -KPIC) is the default.
9170: lt_prog_compiler_static='-non_shared'
9171: ;;
9172:
9173: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9174: case $cc_basename in
9175: # old Intel for x86_64, which still supported -KPIC.
9176: ecc*)
9177: lt_prog_compiler_wl='-Wl,'
9178: lt_prog_compiler_pic='-KPIC'
9179: lt_prog_compiler_static='-static'
9180: ;;
9181: # icc used to be incompatible with GCC.
9182: # ICC 10 doesn't accept -KPIC any more.
9183: icc* | ifort*)
9184: lt_prog_compiler_wl='-Wl,'
9185: lt_prog_compiler_pic='-fPIC'
9186: lt_prog_compiler_static='-static'
9187: ;;
9188: # Lahey Fortran 8.1.
9189: lf95*)
9190: lt_prog_compiler_wl='-Wl,'
9191: lt_prog_compiler_pic='--shared'
9192: lt_prog_compiler_static='--static'
9193: ;;
9194: nagfor*)
9195: # NAG Fortran compiler
9196: lt_prog_compiler_wl='-Wl,-Wl,,'
9197: lt_prog_compiler_pic='-PIC'
9198: lt_prog_compiler_static='-Bstatic'
9199: ;;
9200: tcc*)
9201: # Fabrice Bellard et al's Tiny C Compiler
9202: lt_prog_compiler_wl='-Wl,'
9203: lt_prog_compiler_pic='-fPIC'
9204: lt_prog_compiler_static='-static'
9205: ;;
9206: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9207: # Portland Group compilers (*not* the Pentium gcc compiler,
9208: # which looks to be a dead project)
9209: lt_prog_compiler_wl='-Wl,'
9210: lt_prog_compiler_pic='-fpic'
9211: lt_prog_compiler_static='-Bstatic'
9212: ;;
9213: ccc*)
9214: lt_prog_compiler_wl='-Wl,'
9215: # All Alpha code is PIC.
9216: lt_prog_compiler_static='-non_shared'
9217: ;;
9218: xl* | bgxl* | bgf* | mpixl*)
9219: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9220: lt_prog_compiler_wl='-Wl,'
9221: lt_prog_compiler_pic='-qpic'
9222: lt_prog_compiler_static='-qstaticlink'
9223: ;;
9224: *)
1.1.1.3 ! misho 9225: case `$CC -V 2>&1 | $SED 5q` in
1.1 misho 9226: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9227: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9228: lt_prog_compiler_pic='-KPIC'
9229: lt_prog_compiler_static='-Bstatic'
9230: lt_prog_compiler_wl=''
9231: ;;
9232: *Sun\ F* | *Sun*Fortran*)
9233: lt_prog_compiler_pic='-KPIC'
9234: lt_prog_compiler_static='-Bstatic'
9235: lt_prog_compiler_wl='-Qoption ld '
9236: ;;
9237: *Sun\ C*)
9238: # Sun C 5.9
9239: lt_prog_compiler_pic='-KPIC'
9240: lt_prog_compiler_static='-Bstatic'
9241: lt_prog_compiler_wl='-Wl,'
9242: ;;
9243: *Intel*\ [CF]*Compiler*)
9244: lt_prog_compiler_wl='-Wl,'
9245: lt_prog_compiler_pic='-fPIC'
9246: lt_prog_compiler_static='-static'
9247: ;;
9248: *Portland\ Group*)
9249: lt_prog_compiler_wl='-Wl,'
9250: lt_prog_compiler_pic='-fpic'
9251: lt_prog_compiler_static='-Bstatic'
9252: ;;
9253: esac
9254: ;;
9255: esac
9256: ;;
9257:
9258: newsos6)
9259: lt_prog_compiler_pic='-KPIC'
9260: lt_prog_compiler_static='-Bstatic'
9261: ;;
9262:
9263: *nto* | *qnx*)
9264: # QNX uses GNU C++, but need to define -shared option too, otherwise
9265: # it will coredump.
9266: lt_prog_compiler_pic='-fPIC -shared'
9267: ;;
9268:
9269: osf3* | osf4* | osf5*)
9270: lt_prog_compiler_wl='-Wl,'
9271: # All OSF/1 code is PIC.
9272: lt_prog_compiler_static='-non_shared'
9273: ;;
9274:
9275: rdos*)
9276: lt_prog_compiler_static='-non_shared'
9277: ;;
9278:
9279: solaris*)
9280: lt_prog_compiler_pic='-KPIC'
9281: lt_prog_compiler_static='-Bstatic'
9282: case $cc_basename in
9283: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9284: lt_prog_compiler_wl='-Qoption ld ';;
9285: *)
9286: lt_prog_compiler_wl='-Wl,';;
9287: esac
9288: ;;
9289:
9290: sunos4*)
9291: lt_prog_compiler_wl='-Qoption ld '
9292: lt_prog_compiler_pic='-PIC'
9293: lt_prog_compiler_static='-Bstatic'
9294: ;;
9295:
9296: sysv4 | sysv4.2uw2* | sysv4.3*)
9297: lt_prog_compiler_wl='-Wl,'
9298: lt_prog_compiler_pic='-KPIC'
9299: lt_prog_compiler_static='-Bstatic'
9300: ;;
9301:
9302: sysv4*MP*)
9303: if test -d /usr/nec; then
9304: lt_prog_compiler_pic='-Kconform_pic'
9305: lt_prog_compiler_static='-Bstatic'
9306: fi
9307: ;;
9308:
9309: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9310: lt_prog_compiler_wl='-Wl,'
9311: lt_prog_compiler_pic='-KPIC'
9312: lt_prog_compiler_static='-Bstatic'
9313: ;;
9314:
9315: unicos*)
9316: lt_prog_compiler_wl='-Wl,'
9317: lt_prog_compiler_can_build_shared=no
9318: ;;
9319:
9320: uts4*)
9321: lt_prog_compiler_pic='-pic'
9322: lt_prog_compiler_static='-Bstatic'
9323: ;;
9324:
9325: *)
9326: lt_prog_compiler_can_build_shared=no
9327: ;;
9328: esac
9329: fi
9330:
9331: case $host_os in
9332: # For platforms that do not support PIC, -DPIC is meaningless:
9333: *djgpp*)
9334: lt_prog_compiler_pic=
9335: ;;
9336: *)
9337: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9338: ;;
9339: esac
9340:
1.1.1.3 ! misho 9341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 9342: printf %s "checking for $compiler option to produce PIC... " >&6; }
! 9343: if test ${lt_cv_prog_compiler_pic+y}
! 9344: then :
! 9345: printf %s "(cached) " >&6
! 9346: else $as_nop
1.1 misho 9347: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9348: fi
1.1.1.3 ! misho 9349: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 9350: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
1.1 misho 9351: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9352:
9353: #
9354: # Check to make sure the PIC flag actually works.
9355: #
9356: if test -n "$lt_prog_compiler_pic"; then
1.1.1.3 ! misho 9357: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 9358: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
! 9359: if test ${lt_cv_prog_compiler_pic_works+y}
! 9360: then :
! 9361: printf %s "(cached) " >&6
! 9362: else $as_nop
1.1 misho 9363: lt_cv_prog_compiler_pic_works=no
9364: ac_outfile=conftest.$ac_objext
9365: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9367: # Insert the option either (1) after the last *FLAGS variable, or
9368: # (2) before a word containing "conftest.", or (3) at the end.
9369: # Note that $ac_compile itself does not contain backslashes and begins
9370: # with a dollar sign (not a hyphen), so the echo should work correctly.
9371: # The option is referenced via a variable to avoid confusing sed.
9372: lt_compile=`echo "$ac_compile" | $SED \
9373: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375: -e 's:$: $lt_compiler_flag:'`
9376: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9377: (eval "$lt_compile" 2>conftest.err)
9378: ac_status=$?
9379: cat conftest.err >&5
9380: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381: if (exit $ac_status) && test -s "$ac_outfile"; then
9382: # The compiler can only warn and ignore the option if not recognized
9383: # So say no if there are warnings other than the usual output.
9384: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9385: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387: lt_cv_prog_compiler_pic_works=yes
9388: fi
9389: fi
9390: $RM conftest*
9391:
9392: fi
1.1.1.3 ! misho 9393: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
! 9394: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
1.1 misho 9395:
9396: if test yes = "$lt_cv_prog_compiler_pic_works"; then
9397: case $lt_prog_compiler_pic in
9398: "" | " "*) ;;
9399: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9400: esac
9401: else
9402: lt_prog_compiler_pic=
9403: lt_prog_compiler_can_build_shared=no
9404: fi
9405:
9406: fi
9407:
9408:
9409:
9410:
9411:
9412:
9413:
9414:
9415:
9416:
9417:
9418: #
9419: # Check to make sure the static flag actually works.
9420: #
9421: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.1.1.3 ! misho 9422: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 9423: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 9424: if test ${lt_cv_prog_compiler_static_works+y}
! 9425: then :
! 9426: printf %s "(cached) " >&6
! 9427: else $as_nop
1.1 misho 9428: lt_cv_prog_compiler_static_works=no
9429: save_LDFLAGS=$LDFLAGS
9430: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9431: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9432: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9433: # The linker can only warn and ignore the option if not recognized
9434: # So say no if there are warnings
9435: if test -s conftest.err; then
9436: # Append any errors to the config.log.
9437: cat conftest.err 1>&5
9438: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9439: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440: if diff conftest.exp conftest.er2 >/dev/null; then
9441: lt_cv_prog_compiler_static_works=yes
9442: fi
9443: else
9444: lt_cv_prog_compiler_static_works=yes
9445: fi
9446: fi
9447: $RM -r conftest*
9448: LDFLAGS=$save_LDFLAGS
9449:
9450: fi
1.1.1.3 ! misho 9451: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
! 9452: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.1 misho 9453:
9454: if test yes = "$lt_cv_prog_compiler_static_works"; then
9455: :
9456: else
9457: lt_prog_compiler_static=
9458: fi
9459:
9460:
9461:
9462:
9463:
9464:
9465:
1.1.1.3 ! misho 9466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9467: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9468: if test ${lt_cv_prog_compiler_c_o+y}
! 9469: then :
! 9470: printf %s "(cached) " >&6
! 9471: else $as_nop
1.1 misho 9472: lt_cv_prog_compiler_c_o=no
9473: $RM -r conftest 2>/dev/null
9474: mkdir conftest
9475: cd conftest
9476: mkdir out
9477: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478:
9479: lt_compiler_flag="-o out/conftest2.$ac_objext"
9480: # Insert the option either (1) after the last *FLAGS variable, or
9481: # (2) before a word containing "conftest.", or (3) at the end.
9482: # Note that $ac_compile itself does not contain backslashes and begins
9483: # with a dollar sign (not a hyphen), so the echo should work correctly.
9484: lt_compile=`echo "$ac_compile" | $SED \
9485: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9486: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9487: -e 's:$: $lt_compiler_flag:'`
9488: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9489: (eval "$lt_compile" 2>out/conftest.err)
9490: ac_status=$?
9491: cat out/conftest.err >&5
9492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9494: then
9495: # The compiler can only warn and ignore the option if not recognized
9496: # So say no if there are warnings
9497: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9498: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9499: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9500: lt_cv_prog_compiler_c_o=yes
9501: fi
9502: fi
9503: chmod u+w . 2>&5
9504: $RM conftest*
9505: # SGI C++ compiler will create directory out/ii_files/ for
9506: # template instantiation
9507: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9508: $RM out/* && rmdir out
9509: cd ..
9510: $RM -r conftest
9511: $RM conftest*
9512:
9513: fi
1.1.1.3 ! misho 9514: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9515: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misho 9516:
9517:
9518:
9519:
9520:
9521:
1.1.1.3 ! misho 9522: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 9523: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 9524: if test ${lt_cv_prog_compiler_c_o+y}
! 9525: then :
! 9526: printf %s "(cached) " >&6
! 9527: else $as_nop
1.1 misho 9528: lt_cv_prog_compiler_c_o=no
9529: $RM -r conftest 2>/dev/null
9530: mkdir conftest
9531: cd conftest
9532: mkdir out
9533: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9534:
9535: lt_compiler_flag="-o out/conftest2.$ac_objext"
9536: # Insert the option either (1) after the last *FLAGS variable, or
9537: # (2) before a word containing "conftest.", or (3) at the end.
9538: # Note that $ac_compile itself does not contain backslashes and begins
9539: # with a dollar sign (not a hyphen), so the echo should work correctly.
9540: lt_compile=`echo "$ac_compile" | $SED \
9541: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9542: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9543: -e 's:$: $lt_compiler_flag:'`
9544: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9545: (eval "$lt_compile" 2>out/conftest.err)
9546: ac_status=$?
9547: cat out/conftest.err >&5
9548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9550: then
9551: # The compiler can only warn and ignore the option if not recognized
9552: # So say no if there are warnings
9553: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9554: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9555: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9556: lt_cv_prog_compiler_c_o=yes
9557: fi
9558: fi
9559: chmod u+w . 2>&5
9560: $RM conftest*
9561: # SGI C++ compiler will create directory out/ii_files/ for
9562: # template instantiation
9563: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9564: $RM out/* && rmdir out
9565: cd ..
9566: $RM -r conftest
9567: $RM conftest*
9568:
9569: fi
1.1.1.3 ! misho 9570: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 9571: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misho 9572:
9573:
9574:
9575:
9576: hard_links=nottested
9577: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9578: # do not overwrite the value of need_locks provided by the user
1.1.1.3 ! misho 9579: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 9580: printf %s "checking if we can lock with hard links... " >&6; }
1.1 misho 9581: hard_links=yes
9582: $RM conftest*
9583: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9584: touch conftest.a
9585: ln conftest.a conftest.b 2>&5 || hard_links=no
9586: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.3 ! misho 9587: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 9588: printf "%s\n" "$hard_links" >&6; }
1.1 misho 9589: if test no = "$hard_links"; then
1.1.1.3 ! misho 9590: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
! 9591: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.1 misho 9592: need_locks=warn
9593: fi
9594: else
9595: need_locks=no
9596: fi
9597:
9598:
9599:
9600:
9601:
9602:
1.1.1.3 ! misho 9603: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 9604: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1 misho 9605:
9606: runpath_var=
9607: allow_undefined_flag=
9608: always_export_symbols=no
9609: archive_cmds=
9610: archive_expsym_cmds=
9611: compiler_needs_object=no
9612: enable_shared_with_static_runtimes=no
9613: export_dynamic_flag_spec=
9614: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9615: hardcode_automatic=no
9616: hardcode_direct=no
9617: hardcode_direct_absolute=no
9618: hardcode_libdir_flag_spec=
9619: hardcode_libdir_separator=
9620: hardcode_minus_L=no
9621: hardcode_shlibpath_var=unsupported
9622: inherit_rpath=no
9623: link_all_deplibs=unknown
9624: module_cmds=
9625: module_expsym_cmds=
9626: old_archive_from_new_cmds=
9627: old_archive_from_expsyms_cmds=
9628: thread_safe_flag_spec=
9629: whole_archive_flag_spec=
9630: # include_expsyms should be a list of space-separated symbols to be *always*
9631: # included in the symbol list
9632: include_expsyms=
9633: # exclude_expsyms can be an extended regexp of symbols to exclude
9634: # it will be wrapped by ' (' and ')$', so one must not match beginning or
9635: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9636: # as well as any symbol that contains 'd'.
9637: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9638: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9639: # platforms (ab)use it in PIC code, but their linkers get confused if
9640: # the symbol is explicitly referenced. Since portable code cannot
9641: # rely on this symbol name, it's probably fine to never include it in
9642: # preloaded symbol tables.
9643: # Exclude shared library initialization/finalization symbols.
9644: extract_expsyms_cmds=
9645:
9646: case $host_os in
9647: cygwin* | mingw* | pw32* | cegcc*)
1.1.1.3 ! misho 9648: # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.1 misho 9649: # When not using gcc, we currently assume that we are using
1.1.1.3 ! misho 9650: # Microsoft Visual C++ or Intel C++ Compiler.
1.1 misho 9651: if test yes != "$GCC"; then
9652: with_gnu_ld=no
9653: fi
9654: ;;
9655: interix*)
1.1.1.3 ! misho 9656: # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.1 misho 9657: with_gnu_ld=yes
9658: ;;
9659: openbsd* | bitrig*)
9660: with_gnu_ld=no
9661: ;;
9662: esac
9663:
9664: ld_shlibs=yes
9665:
9666: # On some targets, GNU ld is compatible enough with the native linker
9667: # that we're better off using the native interface for both.
9668: lt_use_gnu_ld_interface=no
9669: if test yes = "$with_gnu_ld"; then
9670: case $host_os in
9671: aix*)
9672: # The AIX port of GNU ld has always aspired to compatibility
9673: # with the native linker. However, as the warning in the GNU ld
9674: # block says, versions before 2.19.5* couldn't really create working
9675: # shared libraries, regardless of the interface used.
9676: case `$LD -v 2>&1` in
9677: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9678: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9679: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9680: *)
9681: lt_use_gnu_ld_interface=yes
9682: ;;
9683: esac
9684: ;;
9685: *)
9686: lt_use_gnu_ld_interface=yes
9687: ;;
9688: esac
9689: fi
9690:
9691: if test yes = "$lt_use_gnu_ld_interface"; then
9692: # If archive_cmds runs LD, not CC, wlarc should be empty
9693: wlarc='$wl'
9694:
9695: # Set some defaults for GNU ld with shared library support. These
9696: # are reset later if shared libraries are not supported. Putting them
9697: # here allows them to be overridden if necessary.
9698: runpath_var=LD_RUN_PATH
9699: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9700: export_dynamic_flag_spec='$wl--export-dynamic'
9701: # ancient GNU ld didn't support --whole-archive et. al.
9702: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9703: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9704: else
9705: whole_archive_flag_spec=
9706: fi
9707: supports_anon_versioning=no
1.1.1.3 ! misho 9708: case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1.1 misho 9709: *GNU\ gold*) supports_anon_versioning=yes ;;
9710: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9711: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9712: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9713: *\ 2.11.*) ;; # other 2.11 versions
9714: *) supports_anon_versioning=yes ;;
9715: esac
9716:
9717: # See if GNU ld supports shared libraries.
9718: case $host_os in
9719: aix[3-9]*)
9720: # On AIX/PPC, the GNU linker is very broken
9721: if test ia64 != "$host_cpu"; then
9722: ld_shlibs=no
9723: cat <<_LT_EOF 1>&2
9724:
9725: *** Warning: the GNU linker, at least up to release 2.19, is reported
9726: *** to be unable to reliably create shared libraries on AIX.
9727: *** Therefore, libtool is disabling shared libraries support. If you
9728: *** really care for shared libraries, you may want to install binutils
9729: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9730: *** You will then need to restart the configuration process.
9731:
9732: _LT_EOF
9733: fi
9734: ;;
9735:
9736: amigaos*)
9737: case $host_cpu in
9738: powerpc)
9739: # see comment about AmigaOS4 .so support
9740: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9741: archive_expsym_cmds=''
9742: ;;
9743: m68k)
9744: 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)'
9745: hardcode_libdir_flag_spec='-L$libdir'
9746: hardcode_minus_L=yes
9747: ;;
9748: esac
9749: ;;
9750:
9751: beos*)
9752: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753: allow_undefined_flag=unsupported
9754: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9755: # support --undefined. This deserves some investigation. FIXME
9756: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9757: else
9758: ld_shlibs=no
9759: fi
9760: ;;
9761:
9762: cygwin* | mingw* | pw32* | cegcc*)
9763: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9764: # as there is no search path for DLLs.
9765: hardcode_libdir_flag_spec='-L$libdir'
9766: export_dynamic_flag_spec='$wl--export-all-symbols'
9767: allow_undefined_flag=unsupported
9768: always_export_symbols=no
9769: enable_shared_with_static_runtimes=yes
9770: 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'
9771: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9772:
9773: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9774: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9775: # If the export-symbols file already is a .def file, use it as
9776: # is; otherwise, prepend EXPORTS...
9777: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9778: cp $export_symbols $output_objdir/$soname.def;
9779: else
9780: echo EXPORTS > $output_objdir/$soname.def;
9781: cat $export_symbols >> $output_objdir/$soname.def;
9782: fi~
9783: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9784: else
9785: ld_shlibs=no
9786: fi
9787: ;;
9788:
9789: haiku*)
9790: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9791: link_all_deplibs=yes
9792: ;;
9793:
9794: os2*)
9795: hardcode_libdir_flag_spec='-L$libdir'
9796: hardcode_minus_L=yes
9797: allow_undefined_flag=unsupported
9798: shrext_cmds=.dll
9799: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9800: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9801: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9802: $ECHO EXPORTS >> $output_objdir/$libname.def~
9803: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9804: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9805: emximp -o $lib $output_objdir/$libname.def'
9806: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9807: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9808: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9809: $ECHO EXPORTS >> $output_objdir/$libname.def~
9810: prefix_cmds="$SED"~
9811: if test EXPORTS = "`$SED 1q $export_symbols`"; then
9812: prefix_cmds="$prefix_cmds -e 1d";
9813: fi~
9814: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9815: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9816: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9817: emximp -o $lib $output_objdir/$libname.def'
9818: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9819: enable_shared_with_static_runtimes=yes
1.1.1.3 ! misho 9820: file_list_spec='@'
1.1 misho 9821: ;;
9822:
9823: interix[3-9]*)
9824: hardcode_direct=no
9825: hardcode_shlibpath_var=no
9826: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9827: export_dynamic_flag_spec='$wl-E'
9828: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9829: # Instead, shared libraries are loaded at an image base (0x10000000 by
9830: # default) and relocated if they conflict, which is a slow very memory
9831: # consuming and fragmenting process. To avoid this, we pick a random,
9832: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9833: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9834: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.1.1.3 ! misho 9835: 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'
1.1 misho 9836: ;;
9837:
9838: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9839: tmp_diet=no
9840: if test linux-dietlibc = "$host_os"; then
9841: case $cc_basename in
9842: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9843: esac
9844: fi
9845: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9846: && test no = "$tmp_diet"
9847: then
9848: tmp_addflag=' $pic_flag'
9849: tmp_sharedflag='-shared'
9850: case $cc_basename,$host_cpu in
9851: pgcc*) # Portland Group C compiler
9852: 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'
9853: tmp_addflag=' $pic_flag'
9854: ;;
9855: pgf77* | pgf90* | pgf95* | pgfortran*)
9856: # Portland Group f77 and f90 compilers
9857: 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'
9858: tmp_addflag=' $pic_flag -Mnomain' ;;
9859: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9860: tmp_addflag=' -i_dynamic' ;;
9861: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9862: tmp_addflag=' -i_dynamic -nofor_main' ;;
9863: ifc* | ifort*) # Intel Fortran compiler
9864: tmp_addflag=' -nofor_main' ;;
9865: lf95*) # Lahey Fortran 8.1
9866: whole_archive_flag_spec=
9867: tmp_sharedflag='--shared' ;;
9868: nagfor*) # NAGFOR 5.3
9869: tmp_sharedflag='-Wl,-shared' ;;
9870: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9871: tmp_sharedflag='-qmkshrobj'
9872: tmp_addflag= ;;
9873: nvcc*) # Cuda Compiler Driver 2.2
9874: 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'
9875: compiler_needs_object=yes
9876: ;;
9877: esac
1.1.1.3 ! misho 9878: case `$CC -V 2>&1 | $SED 5q` in
1.1 misho 9879: *Sun\ C*) # Sun C 5.9
9880: 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'
9881: compiler_needs_object=yes
9882: tmp_sharedflag='-G' ;;
9883: *Sun\ F*) # Sun Fortran 8.3
9884: tmp_sharedflag='-G' ;;
9885: esac
9886: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9887:
9888: if test yes = "$supports_anon_versioning"; then
9889: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.1.1.3 ! misho 9890: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.1 misho 9891: echo "local: *; };" >> $output_objdir/$libname.ver~
9892: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9893: fi
9894:
9895: case $cc_basename in
9896: tcc*)
9897: export_dynamic_flag_spec='-rdynamic'
9898: ;;
9899: xlf* | bgf* | bgxlf* | mpixlf*)
9900: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9901: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9902: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9903: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9904: if test yes = "$supports_anon_versioning"; then
9905: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.1.1.3 ! misho 9906: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.1 misho 9907: echo "local: *; };" >> $output_objdir/$libname.ver~
9908: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9909: fi
9910: ;;
9911: esac
9912: else
9913: ld_shlibs=no
9914: fi
9915: ;;
9916:
9917: netbsd*)
9918: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9919: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9920: wlarc=
9921: else
9922: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9923: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9924: fi
9925: ;;
9926:
9927: solaris*)
9928: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9929: ld_shlibs=no
9930: cat <<_LT_EOF 1>&2
9931:
9932: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9933: *** create shared libraries on Solaris systems. Therefore, libtool
9934: *** is disabling shared libraries support. We urge you to upgrade GNU
9935: *** binutils to release 2.9.1 or newer. Another option is to modify
9936: *** your PATH or compiler configuration so that the native linker is
9937: *** used, and then restart.
9938:
9939: _LT_EOF
9940: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9941: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9942: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9943: else
9944: ld_shlibs=no
9945: fi
9946: ;;
9947:
9948: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9949: case `$LD -v 2>&1` in
9950: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9951: ld_shlibs=no
9952: cat <<_LT_EOF 1>&2
9953:
9954: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9955: *** reliably create shared libraries on SCO systems. Therefore, libtool
9956: *** is disabling shared libraries support. We urge you to upgrade GNU
9957: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9958: *** your PATH or compiler configuration so that the native linker is
9959: *** used, and then restart.
9960:
9961: _LT_EOF
9962: ;;
9963: *)
9964: # For security reasons, it is highly recommended that you always
9965: # use absolute paths for naming shared libraries, and exclude the
9966: # DT_RUNPATH tag from executables and libraries. But doing so
9967: # requires that you compile everything twice, which is a pain.
9968: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9969: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9970: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9971: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9972: else
9973: ld_shlibs=no
9974: fi
9975: ;;
9976: esac
9977: ;;
9978:
9979: sunos4*)
9980: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9981: wlarc=
9982: hardcode_direct=yes
9983: hardcode_shlibpath_var=no
9984: ;;
9985:
9986: *)
9987: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9988: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9989: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9990: else
9991: ld_shlibs=no
9992: fi
9993: ;;
9994: esac
9995:
9996: if test no = "$ld_shlibs"; then
9997: runpath_var=
9998: hardcode_libdir_flag_spec=
9999: export_dynamic_flag_spec=
10000: whole_archive_flag_spec=
10001: fi
10002: else
10003: # PORTME fill in a description of your system's linker (not GNU ld)
10004: case $host_os in
10005: aix3*)
10006: allow_undefined_flag=unsupported
10007: always_export_symbols=yes
10008: 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'
10009: # Note: this linker hardcodes the directories in LIBPATH if there
10010: # are no directories specified by -L.
10011: hardcode_minus_L=yes
10012: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10013: # Neither direct hardcoding nor static linking is supported with a
10014: # broken collect2.
10015: hardcode_direct=unsupported
10016: fi
10017: ;;
10018:
10019: aix[4-9]*)
10020: if test ia64 = "$host_cpu"; then
10021: # On IA64, the linker does run time linking by default, so we don't
10022: # have to do anything special.
10023: aix_use_runtimelinking=no
10024: exp_sym_flag='-Bexport'
10025: no_entry_flag=
10026: else
10027: # If we're using GNU nm, then we don't want the "-C" option.
10028: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10029: # Without the "-l" option, or with the "-B" option, AIX nm treats
10030: # weak defined symbols like other global defined symbols, whereas
10031: # GNU nm marks them as "W".
10032: # While the 'weak' keyword is ignored in the Export File, we need
10033: # it in the Import File for the 'aix-soname' feature, so we have
10034: # to replace the "-B" option with "-P" for AIX nm.
10035: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10036: 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'
10037: else
1.1.1.3 ! misho 10038: 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 == "L") || (\$ 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'
1.1 misho 10039: fi
10040: aix_use_runtimelinking=no
10041:
10042: # Test if we are trying to use run time linking or normal
10043: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10044: # have runtime linking enabled, and use it for executables.
10045: # For shared libraries, we enable/disable runtime linking
10046: # depending on the kind of the shared library created -
10047: # when "with_aix_soname,aix_use_runtimelinking" is:
10048: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10049: # "aix,yes" lib.so shared, rtl:yes, for executables
10050: # lib.a static archive
10051: # "both,no" lib.so.V(shr.o) shared, rtl:yes
10052: # lib.a(lib.so.V) shared, rtl:no, for executables
10053: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10054: # lib.a(lib.so.V) shared, rtl:no
10055: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10056: # lib.a static archive
10057: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10058: for ld_flag in $LDFLAGS; do
10059: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10060: aix_use_runtimelinking=yes
10061: break
10062: fi
10063: done
10064: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10065: # With aix-soname=svr4, we create the lib.so.V shared archives only,
10066: # so we don't have lib.a shared libs to link our executables.
10067: # We have to force runtime linking in this case.
10068: aix_use_runtimelinking=yes
10069: LDFLAGS="$LDFLAGS -Wl,-brtl"
10070: fi
10071: ;;
10072: esac
10073:
10074: exp_sym_flag='-bexport'
10075: no_entry_flag='-bnoentry'
10076: fi
10077:
10078: # When large executables or shared objects are built, AIX ld can
10079: # have problems creating the table of contents. If linking a library
10080: # or program results in "error TOC overflow" add -mminimal-toc to
10081: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10082: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10083:
10084: archive_cmds=''
10085: hardcode_direct=yes
10086: hardcode_direct_absolute=yes
10087: hardcode_libdir_separator=':'
10088: link_all_deplibs=yes
10089: file_list_spec='$wl-f,'
10090: case $with_aix_soname,$aix_use_runtimelinking in
10091: aix,*) ;; # traditional, no import file
10092: svr4,* | *,yes) # use import file
10093: # The Import File defines what to hardcode.
10094: hardcode_direct=no
10095: hardcode_direct_absolute=no
10096: ;;
10097: esac
10098:
10099: if test yes = "$GCC"; then
10100: case $host_os in aix4.[012]|aix4.[012].*)
10101: # We only want to do this on AIX 4.2 and lower, the check
10102: # below for broken collect2 doesn't work under 4.3+
10103: collect2name=`$CC -print-prog-name=collect2`
10104: if test -f "$collect2name" &&
10105: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10106: then
10107: # We have reworked collect2
10108: :
10109: else
10110: # We have old collect2
10111: hardcode_direct=unsupported
10112: # It fails to find uninstalled libraries when the uninstalled
10113: # path is not listed in the libpath. Setting hardcode_minus_L
10114: # to unsupported forces relinking
10115: hardcode_minus_L=yes
10116: hardcode_libdir_flag_spec='-L$libdir'
10117: hardcode_libdir_separator=
10118: fi
10119: ;;
10120: esac
10121: shared_flag='-shared'
10122: if test yes = "$aix_use_runtimelinking"; then
10123: shared_flag="$shared_flag "'$wl-G'
10124: fi
10125: # Need to ensure runtime linking is disabled for the traditional
10126: # shared library, or the linker may eventually find shared libraries
10127: # /with/ Import File - we do not want to mix them.
10128: shared_flag_aix='-shared'
10129: shared_flag_svr4='-shared $wl-G'
10130: else
10131: # not using gcc
10132: if test ia64 = "$host_cpu"; then
10133: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10134: # chokes on -Wl,-G. The following line is correct:
10135: shared_flag='-G'
10136: else
10137: if test yes = "$aix_use_runtimelinking"; then
10138: shared_flag='$wl-G'
10139: else
10140: shared_flag='$wl-bM:SRE'
10141: fi
10142: shared_flag_aix='$wl-bM:SRE'
10143: shared_flag_svr4='$wl-G'
10144: fi
10145: fi
10146:
10147: export_dynamic_flag_spec='$wl-bexpall'
10148: # It seems that -bexpall does not export symbols beginning with
10149: # underscore (_), so it is better to generate a list of symbols to export.
10150: always_export_symbols=yes
10151: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10152: # Warning - without using the other runtime loading flags (-brtl),
10153: # -berok will link without error, but may produce a broken library.
10154: allow_undefined_flag='-berok'
10155: # Determine the default libpath from the value encoded in an
10156: # empty executable.
10157: if test set = "${lt_cv_aix_libpath+set}"; then
10158: aix_libpath=$lt_cv_aix_libpath
10159: else
1.1.1.3 ! misho 10160: if test ${lt_cv_aix_libpath_+y}
! 10161: then :
! 10162: printf %s "(cached) " >&6
! 10163: else $as_nop
1.1 misho 10164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165: /* end confdefs.h. */
10166:
10167: int
1.1.1.3 ! misho 10168: main (void)
1.1 misho 10169: {
10170:
10171: ;
10172: return 0;
10173: }
10174: _ACEOF
1.1.1.3 ! misho 10175: if ac_fn_c_try_link "$LINENO"
! 10176: then :
1.1 misho 10177:
10178: lt_aix_libpath_sed='
10179: /Import File Strings/,/^$/ {
10180: /^0/ {
10181: s/^0 *\([^ ]*\) *$/\1/
10182: p
10183: }
10184: }'
10185: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186: # Check for a 64-bit object if we didn't find anything.
10187: if test -z "$lt_cv_aix_libpath_"; then
10188: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189: fi
10190: fi
1.1.1.3 ! misho 10191: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 10192: conftest$ac_exeext conftest.$ac_ext
10193: if test -z "$lt_cv_aix_libpath_"; then
10194: lt_cv_aix_libpath_=/usr/lib:/lib
10195: fi
10196:
10197: fi
10198:
10199: aix_libpath=$lt_cv_aix_libpath_
10200: fi
10201:
10202: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10203: 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
10204: else
10205: if test ia64 = "$host_cpu"; then
10206: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10207: allow_undefined_flag="-z nodefs"
10208: 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"
10209: else
10210: # Determine the default libpath from the value encoded in an
10211: # empty executable.
10212: if test set = "${lt_cv_aix_libpath+set}"; then
10213: aix_libpath=$lt_cv_aix_libpath
10214: else
1.1.1.3 ! misho 10215: if test ${lt_cv_aix_libpath_+y}
! 10216: then :
! 10217: printf %s "(cached) " >&6
! 10218: else $as_nop
1.1 misho 10219: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220: /* end confdefs.h. */
10221:
10222: int
1.1.1.3 ! misho 10223: main (void)
1.1 misho 10224: {
10225:
10226: ;
10227: return 0;
10228: }
10229: _ACEOF
1.1.1.3 ! misho 10230: if ac_fn_c_try_link "$LINENO"
! 10231: then :
1.1 misho 10232:
10233: lt_aix_libpath_sed='
10234: /Import File Strings/,/^$/ {
10235: /^0/ {
10236: s/^0 *\([^ ]*\) *$/\1/
10237: p
10238: }
10239: }'
10240: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241: # Check for a 64-bit object if we didn't find anything.
10242: if test -z "$lt_cv_aix_libpath_"; then
10243: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10244: fi
10245: fi
1.1.1.3 ! misho 10246: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 10247: conftest$ac_exeext conftest.$ac_ext
10248: if test -z "$lt_cv_aix_libpath_"; then
10249: lt_cv_aix_libpath_=/usr/lib:/lib
10250: fi
10251:
10252: fi
10253:
10254: aix_libpath=$lt_cv_aix_libpath_
10255: fi
10256:
10257: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10258: # Warning - without using the other run time loading flags,
10259: # -berok will link without error, but may produce a broken library.
10260: no_undefined_flag=' $wl-bernotok'
10261: allow_undefined_flag=' $wl-berok'
10262: if test yes = "$with_gnu_ld"; then
10263: # We only use this code for GNU lds that support --whole-archive.
10264: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10265: else
10266: # Exported symbols can be pulled into shared objects from archives
10267: whole_archive_flag_spec='$convenience'
10268: fi
10269: archive_cmds_need_lc=yes
10270: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10271: # -brtl affects multiple linker settings, -berok does not and is overridden later
10272: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10273: if test svr4 != "$with_aix_soname"; then
10274: # This is similar to how AIX traditionally builds its shared libraries.
10275: 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'
10276: fi
10277: if test aix != "$with_aix_soname"; then
10278: 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'
10279: else
10280: # used by -dlpreopen to get the symbols
10281: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10282: fi
10283: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10284: fi
10285: fi
10286: ;;
10287:
10288: amigaos*)
10289: case $host_cpu in
10290: powerpc)
10291: # see comment about AmigaOS4 .so support
10292: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293: archive_expsym_cmds=''
10294: ;;
10295: m68k)
10296: 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)'
10297: hardcode_libdir_flag_spec='-L$libdir'
10298: hardcode_minus_L=yes
10299: ;;
10300: esac
10301: ;;
10302:
10303: bsdi[45]*)
10304: export_dynamic_flag_spec=-rdynamic
10305: ;;
10306:
10307: cygwin* | mingw* | pw32* | cegcc*)
10308: # When not using gcc, we currently assume that we are using
1.1.1.3 ! misho 10309: # Microsoft Visual C++ or Intel C++ Compiler.
1.1 misho 10310: # hardcode_libdir_flag_spec is actually meaningless, as there is
10311: # no search path for DLLs.
10312: case $cc_basename in
1.1.1.3 ! misho 10313: cl* | icl*)
! 10314: # Native MSVC or ICC
1.1 misho 10315: hardcode_libdir_flag_spec=' '
10316: allow_undefined_flag=unsupported
10317: always_export_symbols=yes
10318: file_list_spec='@'
10319: # Tell ltmain to make .lib files, not .a files.
10320: libext=lib
10321: # Tell ltmain to make .dll files, not .so files.
10322: shrext_cmds=.dll
10323: # FIXME: Setting linknames here is a bad hack.
10324: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10325: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10326: cp "$export_symbols" "$output_objdir/$soname.def";
10327: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10328: else
10329: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10330: fi~
10331: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10332: linknames='
10333: # The linker will not automatically build a static lib if we build a DLL.
10334: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10335: enable_shared_with_static_runtimes=yes
10336: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10337: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10338: # Don't use ranlib
10339: old_postinstall_cmds='chmod 644 $oldlib'
10340: postlink_cmds='lt_outputfile="@OUTPUT@"~
10341: lt_tool_outputfile="@TOOL_OUTPUT@"~
10342: case $lt_outputfile in
10343: *.exe|*.EXE) ;;
10344: *)
10345: lt_outputfile=$lt_outputfile.exe
10346: lt_tool_outputfile=$lt_tool_outputfile.exe
10347: ;;
10348: esac~
10349: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10350: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10351: $RM "$lt_outputfile.manifest";
10352: fi'
10353: ;;
10354: *)
1.1.1.3 ! misho 10355: # Assume MSVC and ICC wrapper
1.1 misho 10356: hardcode_libdir_flag_spec=' '
10357: allow_undefined_flag=unsupported
10358: # Tell ltmain to make .lib files, not .a files.
10359: libext=lib
10360: # Tell ltmain to make .dll files, not .so files.
10361: shrext_cmds=.dll
10362: # FIXME: Setting linknames here is a bad hack.
10363: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10364: # The linker will automatically build a .lib file if we build a DLL.
10365: old_archive_from_new_cmds='true'
10366: # FIXME: Should let the user specify the lib program.
10367: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10368: enable_shared_with_static_runtimes=yes
10369: ;;
10370: esac
10371: ;;
10372:
10373: darwin* | rhapsody*)
10374:
10375:
10376: archive_cmds_need_lc=no
10377: hardcode_direct=no
10378: hardcode_automatic=yes
10379: hardcode_shlibpath_var=unsupported
10380: if test yes = "$lt_cv_ld_force_load"; then
10381: 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\"`'
10382:
10383: else
10384: whole_archive_flag_spec=''
10385: fi
10386: link_all_deplibs=yes
10387: allow_undefined_flag=$_lt_dar_allow_undefined
10388: case $cc_basename in
10389: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10390: *) _lt_dar_can_shared=$GCC ;;
10391: esac
10392: if test yes = "$_lt_dar_can_shared"; then
10393: output_verbose_link_cmd=func_echo_all
10394: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10395: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1.1.1.3 ! misho 10396: 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"
! 10397: 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"
1.1 misho 10398:
10399: else
10400: ld_shlibs=no
10401: fi
10402:
10403: ;;
10404:
10405: dgux*)
10406: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407: hardcode_libdir_flag_spec='-L$libdir'
10408: hardcode_shlibpath_var=no
10409: ;;
10410:
10411: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10412: # support. Future versions do this automatically, but an explicit c++rt0.o
10413: # does not break anything, and helps significantly (at the cost of a little
10414: # extra space).
10415: freebsd2.2*)
10416: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10417: hardcode_libdir_flag_spec='-R$libdir'
10418: hardcode_direct=yes
10419: hardcode_shlibpath_var=no
10420: ;;
10421:
10422: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10423: freebsd2.*)
10424: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10425: hardcode_direct=yes
10426: hardcode_minus_L=yes
10427: hardcode_shlibpath_var=no
10428: ;;
10429:
10430: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.1.3 ! misho 10431: freebsd* | dragonfly* | midnightbsd*)
1.1 misho 10432: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10433: hardcode_libdir_flag_spec='-R$libdir'
10434: hardcode_direct=yes
10435: hardcode_shlibpath_var=no
10436: ;;
10437:
10438: hpux9*)
10439: if test yes = "$GCC"; then
10440: 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'
10441: else
10442: 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'
10443: fi
10444: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10445: hardcode_libdir_separator=:
10446: hardcode_direct=yes
10447:
10448: # hardcode_minus_L: Not really in the search PATH,
10449: # but as the default location of the library.
10450: hardcode_minus_L=yes
10451: export_dynamic_flag_spec='$wl-E'
10452: ;;
10453:
10454: hpux10*)
10455: if test yes,no = "$GCC,$with_gnu_ld"; then
10456: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10457: else
10458: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10459: fi
10460: if test no = "$with_gnu_ld"; then
10461: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10462: hardcode_libdir_separator=:
10463: hardcode_direct=yes
10464: hardcode_direct_absolute=yes
10465: export_dynamic_flag_spec='$wl-E'
10466: # hardcode_minus_L: Not really in the search PATH,
10467: # but as the default location of the library.
10468: hardcode_minus_L=yes
10469: fi
10470: ;;
10471:
10472: hpux11*)
10473: if test yes,no = "$GCC,$with_gnu_ld"; then
10474: case $host_cpu in
10475: hppa*64*)
10476: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10477: ;;
10478: ia64*)
10479: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10480: ;;
10481: *)
10482: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10483: ;;
10484: esac
10485: else
10486: case $host_cpu in
10487: hppa*64*)
10488: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10489: ;;
10490: ia64*)
10491: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10492: ;;
10493: *)
10494:
10495: # Older versions of the 11.00 compiler do not understand -b yet
10496: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.1.1.3 ! misho 10497: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
! 10498: printf %s "checking if $CC understands -b... " >&6; }
! 10499: if test ${lt_cv_prog_compiler__b+y}
! 10500: then :
! 10501: printf %s "(cached) " >&6
! 10502: else $as_nop
1.1 misho 10503: lt_cv_prog_compiler__b=no
10504: save_LDFLAGS=$LDFLAGS
10505: LDFLAGS="$LDFLAGS -b"
10506: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10507: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10508: # The linker can only warn and ignore the option if not recognized
10509: # So say no if there are warnings
10510: if test -s conftest.err; then
10511: # Append any errors to the config.log.
10512: cat conftest.err 1>&5
10513: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10514: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10515: if diff conftest.exp conftest.er2 >/dev/null; then
10516: lt_cv_prog_compiler__b=yes
10517: fi
10518: else
10519: lt_cv_prog_compiler__b=yes
10520: fi
10521: fi
10522: $RM -r conftest*
10523: LDFLAGS=$save_LDFLAGS
10524:
10525: fi
1.1.1.3 ! misho 10526: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
! 10527: printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1.1 misho 10528:
10529: if test yes = "$lt_cv_prog_compiler__b"; then
10530: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10531: else
10532: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10533: fi
10534:
10535: ;;
10536: esac
10537: fi
10538: if test no = "$with_gnu_ld"; then
10539: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10540: hardcode_libdir_separator=:
10541:
10542: case $host_cpu in
10543: hppa*64*|ia64*)
10544: hardcode_direct=no
10545: hardcode_shlibpath_var=no
10546: ;;
10547: *)
10548: hardcode_direct=yes
10549: hardcode_direct_absolute=yes
10550: export_dynamic_flag_spec='$wl-E'
10551:
10552: # hardcode_minus_L: Not really in the search PATH,
10553: # but as the default location of the library.
10554: hardcode_minus_L=yes
10555: ;;
10556: esac
10557: fi
10558: ;;
10559:
10560: irix5* | irix6* | nonstopux*)
10561: if test yes = "$GCC"; then
10562: 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'
10563: # Try to use the -exported_symbol ld option, if it does not
10564: # work, assume that -exports_file does not work either and
10565: # implicitly export all symbols.
10566: # This should be the same for all languages, so no per-tag cache variable.
1.1.1.3 ! misho 10567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
! 10568: printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
! 10569: if test ${lt_cv_irix_exported_symbol+y}
! 10570: then :
! 10571: printf %s "(cached) " >&6
! 10572: else $as_nop
1.1 misho 10573: save_LDFLAGS=$LDFLAGS
10574: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576: /* end confdefs.h. */
10577: int foo (void) { return 0; }
10578: _ACEOF
1.1.1.3 ! misho 10579: if ac_fn_c_try_link "$LINENO"
! 10580: then :
1.1 misho 10581: lt_cv_irix_exported_symbol=yes
1.1.1.3 ! misho 10582: else $as_nop
1.1 misho 10583: lt_cv_irix_exported_symbol=no
10584: fi
1.1.1.3 ! misho 10585: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 10586: conftest$ac_exeext conftest.$ac_ext
10587: LDFLAGS=$save_LDFLAGS
10588: fi
1.1.1.3 ! misho 10589: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
! 10590: printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
1.1 misho 10591: if test yes = "$lt_cv_irix_exported_symbol"; then
10592: 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'
10593: fi
10594: else
10595: 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'
10596: 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'
10597: fi
10598: archive_cmds_need_lc='no'
10599: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10600: hardcode_libdir_separator=:
10601: inherit_rpath=yes
10602: link_all_deplibs=yes
10603: ;;
10604:
10605: linux*)
10606: case $cc_basename in
10607: tcc*)
10608: # Fabrice Bellard et al's Tiny C Compiler
10609: ld_shlibs=yes
10610: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10611: ;;
10612: esac
10613: ;;
10614:
10615: netbsd*)
10616: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10617: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10618: else
10619: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10620: fi
10621: hardcode_libdir_flag_spec='-R$libdir'
10622: hardcode_direct=yes
10623: hardcode_shlibpath_var=no
10624: ;;
10625:
10626: newsos6)
10627: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10628: hardcode_direct=yes
10629: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10630: hardcode_libdir_separator=:
10631: hardcode_shlibpath_var=no
10632: ;;
10633:
10634: *nto* | *qnx*)
10635: ;;
10636:
10637: openbsd* | bitrig*)
10638: if test -f /usr/libexec/ld.so; then
10639: hardcode_direct=yes
10640: hardcode_shlibpath_var=no
10641: hardcode_direct_absolute=yes
10642: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10643: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10644: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10645: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10646: export_dynamic_flag_spec='$wl-E'
10647: else
10648: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10649: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10650: fi
10651: else
10652: ld_shlibs=no
10653: fi
10654: ;;
10655:
10656: os2*)
10657: hardcode_libdir_flag_spec='-L$libdir'
10658: hardcode_minus_L=yes
10659: allow_undefined_flag=unsupported
10660: shrext_cmds=.dll
10661: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10662: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10663: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10664: $ECHO EXPORTS >> $output_objdir/$libname.def~
10665: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10666: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10667: emximp -o $lib $output_objdir/$libname.def'
10668: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10669: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10670: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10671: $ECHO EXPORTS >> $output_objdir/$libname.def~
10672: prefix_cmds="$SED"~
10673: if test EXPORTS = "`$SED 1q $export_symbols`"; then
10674: prefix_cmds="$prefix_cmds -e 1d";
10675: fi~
10676: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10677: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10678: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10679: emximp -o $lib $output_objdir/$libname.def'
10680: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10681: enable_shared_with_static_runtimes=yes
1.1.1.3 ! misho 10682: file_list_spec='@'
1.1 misho 10683: ;;
10684:
10685: osf3*)
10686: if test yes = "$GCC"; then
10687: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10688: 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'
10689: else
10690: allow_undefined_flag=' -expect_unresolved \*'
10691: 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'
10692: fi
10693: archive_cmds_need_lc='no'
10694: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10695: hardcode_libdir_separator=:
10696: ;;
10697:
10698: osf4* | osf5*) # as osf3* with the addition of -msym flag
10699: if test yes = "$GCC"; then
10700: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10701: 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'
10702: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10703: else
10704: allow_undefined_flag=' -expect_unresolved \*'
10705: 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'
10706: 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~
10707: $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'
10708:
10709: # Both c and cxx compiler support -rpath directly
10710: hardcode_libdir_flag_spec='-rpath $libdir'
10711: fi
10712: archive_cmds_need_lc='no'
10713: hardcode_libdir_separator=:
10714: ;;
10715:
10716: solaris*)
10717: no_undefined_flag=' -z defs'
10718: if test yes = "$GCC"; then
10719: wlarc='$wl'
10720: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10721: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10722: $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'
10723: else
10724: case `$CC -V 2>&1` in
10725: *"Compilers 5.0"*)
10726: wlarc=''
10727: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10729: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10730: ;;
10731: *)
10732: wlarc='$wl'
10733: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10734: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10735: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10736: ;;
10737: esac
10738: fi
10739: hardcode_libdir_flag_spec='-R$libdir'
10740: hardcode_shlibpath_var=no
10741: case $host_os in
10742: solaris2.[0-5] | solaris2.[0-5].*) ;;
10743: *)
10744: # The compiler driver will combine and reorder linker options,
10745: # but understands '-z linker_flag'. GCC discards it without '$wl',
10746: # but is careful enough not to reorder.
10747: # Supported since Solaris 2.6 (maybe 2.5.1?)
10748: if test yes = "$GCC"; then
10749: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10750: else
10751: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10752: fi
10753: ;;
10754: esac
10755: link_all_deplibs=yes
10756: ;;
10757:
10758: sunos4*)
10759: if test sequent = "$host_vendor"; then
10760: # Use $CC to link under sequent, because it throws in some extra .o
10761: # files that make .init and .fini sections work.
10762: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10763: else
10764: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10765: fi
10766: hardcode_libdir_flag_spec='-L$libdir'
10767: hardcode_direct=yes
10768: hardcode_minus_L=yes
10769: hardcode_shlibpath_var=no
10770: ;;
10771:
10772: sysv4)
10773: case $host_vendor in
10774: sni)
10775: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776: hardcode_direct=yes # is this really true???
10777: ;;
10778: siemens)
10779: ## LD is ld it makes a PLAMLIB
10780: ## CC just makes a GrossModule.
10781: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10782: reload_cmds='$CC -r -o $output$reload_objs'
10783: hardcode_direct=no
10784: ;;
10785: motorola)
10786: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10788: ;;
10789: esac
10790: runpath_var='LD_RUN_PATH'
10791: hardcode_shlibpath_var=no
10792: ;;
10793:
10794: sysv4.3*)
10795: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10796: hardcode_shlibpath_var=no
10797: export_dynamic_flag_spec='-Bexport'
10798: ;;
10799:
10800: sysv4*MP*)
10801: if test -d /usr/nec; then
10802: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803: hardcode_shlibpath_var=no
10804: runpath_var=LD_RUN_PATH
10805: hardcode_runpath_var=yes
10806: ld_shlibs=yes
10807: fi
10808: ;;
10809:
10810: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10811: no_undefined_flag='$wl-z,text'
10812: archive_cmds_need_lc=no
10813: hardcode_shlibpath_var=no
10814: runpath_var='LD_RUN_PATH'
10815:
10816: if test yes = "$GCC"; then
10817: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819: else
10820: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10822: fi
10823: ;;
10824:
10825: sysv5* | sco3.2v5* | sco5v6*)
10826: # Note: We CANNOT use -z defs as we might desire, because we do not
10827: # link with -lc, and that would cause any symbols used from libc to
10828: # always be unresolved, which means just about no library would
10829: # ever link correctly. If we're not using GNU ld we use -z text
10830: # though, which does catch some bad symbols but isn't as heavy-handed
10831: # as -z defs.
10832: no_undefined_flag='$wl-z,text'
10833: allow_undefined_flag='$wl-z,nodefs'
10834: archive_cmds_need_lc=no
10835: hardcode_shlibpath_var=no
10836: hardcode_libdir_flag_spec='$wl-R,$libdir'
10837: hardcode_libdir_separator=':'
10838: link_all_deplibs=yes
10839: export_dynamic_flag_spec='$wl-Bexport'
10840: runpath_var='LD_RUN_PATH'
10841:
10842: if test yes = "$GCC"; then
10843: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10845: else
10846: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10847: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848: fi
10849: ;;
10850:
10851: uts4*)
10852: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853: hardcode_libdir_flag_spec='-L$libdir'
10854: hardcode_shlibpath_var=no
10855: ;;
10856:
10857: *)
10858: ld_shlibs=no
10859: ;;
10860: esac
10861:
10862: if test sni = "$host_vendor"; then
10863: case $host in
10864: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10865: export_dynamic_flag_spec='$wl-Blargedynsym'
10866: ;;
10867: esac
10868: fi
10869: fi
10870:
1.1.1.3 ! misho 10871: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
! 10872: printf "%s\n" "$ld_shlibs" >&6; }
1.1 misho 10873: test no = "$ld_shlibs" && can_build_shared=no
10874:
10875: with_gnu_ld=$with_gnu_ld
10876:
10877:
10878:
10879:
10880:
10881:
10882:
10883:
10884:
10885:
10886:
10887:
10888:
10889:
10890:
10891: #
10892: # Do we need to explicitly link libc?
10893: #
10894: case "x$archive_cmds_need_lc" in
10895: x|xyes)
10896: # Assume -lc should be added
10897: archive_cmds_need_lc=yes
10898:
10899: if test yes,yes = "$GCC,$enable_shared"; then
10900: case $archive_cmds in
10901: *'~'*)
10902: # FIXME: we may have to deal with multi-command sequences.
10903: ;;
10904: '$CC '*)
10905: # Test whether the compiler implicitly links with -lc since on some
10906: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10907: # to ld, don't add -lc before -lgcc.
1.1.1.3 ! misho 10908: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 10909: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
! 10910: if test ${lt_cv_archive_cmds_need_lc+y}
! 10911: then :
! 10912: printf %s "(cached) " >&6
! 10913: else $as_nop
1.1 misho 10914: $RM conftest*
10915: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10916:
10917: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10918: (eval $ac_compile) 2>&5
10919: ac_status=$?
1.1.1.3 ! misho 10920: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 10921: test $ac_status = 0; } 2>conftest.err; then
10922: soname=conftest
10923: lib=conftest
10924: libobjs=conftest.$ac_objext
10925: deplibs=
10926: wl=$lt_prog_compiler_wl
10927: pic_flag=$lt_prog_compiler_pic
10928: compiler_flags=-v
10929: linker_flags=-v
10930: verstring=
10931: output_objdir=.
10932: libname=conftest
10933: lt_save_allow_undefined_flag=$allow_undefined_flag
10934: allow_undefined_flag=
10935: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10936: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10937: ac_status=$?
1.1.1.3 ! misho 10938: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 10939: test $ac_status = 0; }
10940: then
10941: lt_cv_archive_cmds_need_lc=no
10942: else
10943: lt_cv_archive_cmds_need_lc=yes
10944: fi
10945: allow_undefined_flag=$lt_save_allow_undefined_flag
10946: else
10947: cat conftest.err 1>&5
10948: fi
10949: $RM conftest*
10950:
10951: fi
1.1.1.3 ! misho 10952: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
! 10953: printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1.1 misho 10954: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10955: ;;
10956: esac
10957: fi
10958: ;;
10959: esac
10960:
10961:
10962:
10963:
10964:
10965:
10966:
10967:
10968:
10969:
10970:
10971:
10972:
10973:
10974:
10975:
10976:
10977:
10978:
10979:
10980:
10981:
10982:
10983:
10984:
10985:
10986:
10987:
10988:
10989:
10990:
10991:
10992:
10993:
10994:
10995:
10996:
10997:
10998:
10999:
11000:
11001:
11002:
11003:
11004:
11005:
11006:
11007:
11008:
11009:
11010:
11011:
11012:
11013:
11014:
11015:
11016:
11017:
11018:
11019:
11020:
11021:
11022:
11023:
11024:
11025:
11026:
11027:
11028:
11029:
11030:
11031:
11032:
11033:
11034:
11035:
11036:
11037:
11038:
11039:
11040:
11041:
11042:
11043:
11044:
11045:
11046:
11047:
11048:
11049:
11050:
11051:
11052:
11053:
11054:
11055:
11056:
11057:
11058:
11059:
11060:
11061:
11062:
11063:
11064:
11065:
11066:
11067:
11068:
11069:
11070:
11071:
11072:
11073:
11074:
11075:
11076:
11077:
11078:
11079:
11080:
11081:
11082:
11083:
11084:
11085:
11086:
11087:
11088:
11089:
11090:
11091:
11092:
11093:
11094:
11095:
11096:
11097:
11098:
11099:
11100:
11101:
11102:
11103:
11104:
11105:
11106:
11107:
11108:
11109:
11110:
11111:
1.1.1.3 ! misho 11112: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 11113: printf %s "checking dynamic linker characteristics... " >&6; }
1.1 misho 11114:
11115: if test yes = "$GCC"; then
11116: case $host_os in
11117: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11118: *) lt_awk_arg='/^libraries:/' ;;
11119: esac
11120: case $host_os in
11121: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11122: *) lt_sed_strip_eq='s|=/|/|g' ;;
11123: esac
11124: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11125: case $lt_search_path_spec in
11126: *\;*)
11127: # if the path contains ";" then we assume it to be the separator
11128: # otherwise default to the standard path separator (i.e. ":") - it is
11129: # assumed that no part of a normal pathname contains ";" but that should
11130: # okay in the real world where ";" in dirpaths is itself problematic.
11131: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11132: ;;
11133: *)
11134: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11135: ;;
11136: esac
11137: # Ok, now we have the path, separated by spaces, we can step through it
11138: # and add multilib dir if necessary...
11139: lt_tmp_lt_search_path_spec=
11140: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11141: # ...but if some path component already ends with the multilib dir we assume
11142: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11143: case "$lt_multi_os_dir; $lt_search_path_spec " in
11144: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11145: lt_multi_os_dir=
11146: ;;
11147: esac
11148: for lt_sys_path in $lt_search_path_spec; do
11149: if test -d "$lt_sys_path$lt_multi_os_dir"; then
11150: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11151: elif test -n "$lt_multi_os_dir"; then
11152: test -d "$lt_sys_path" && \
11153: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11154: fi
11155: done
11156: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11157: BEGIN {RS = " "; FS = "/|\n";} {
11158: lt_foo = "";
11159: lt_count = 0;
11160: for (lt_i = NF; lt_i > 0; lt_i--) {
11161: if ($lt_i != "" && $lt_i != ".") {
11162: if ($lt_i == "..") {
11163: lt_count++;
11164: } else {
11165: if (lt_count == 0) {
11166: lt_foo = "/" $lt_i lt_foo;
11167: } else {
11168: lt_count--;
11169: }
11170: }
11171: }
11172: }
11173: if (lt_foo != "") { lt_freq[lt_foo]++; }
11174: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11175: }'`
11176: # AWK program above erroneously prepends '/' to C:/dos/paths
11177: # for these hosts.
11178: case $host_os in
11179: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11180: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11181: esac
11182: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11183: else
11184: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11185: fi
11186: library_names_spec=
11187: libname_spec='lib$name'
11188: soname_spec=
11189: shrext_cmds=.so
11190: postinstall_cmds=
11191: postuninstall_cmds=
11192: finish_cmds=
11193: finish_eval=
11194: shlibpath_var=
11195: shlibpath_overrides_runpath=unknown
11196: version_type=none
11197: dynamic_linker="$host_os ld.so"
11198: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11199: need_lib_prefix=unknown
11200: hardcode_into_libs=no
11201:
11202: # when you set need_version to no, make sure it does not cause -set_version
11203: # flags to be left without arguments
11204: need_version=unknown
11205:
11206:
11207:
11208: case $host_os in
11209: aix3*)
11210: version_type=linux # correct to gnu/linux during the next big refactor
11211: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11212: shlibpath_var=LIBPATH
11213:
11214: # AIX 3 has no versioning support, so we append a major version to the name.
11215: soname_spec='$libname$release$shared_ext$major'
11216: ;;
11217:
11218: aix[4-9]*)
11219: version_type=linux # correct to gnu/linux during the next big refactor
11220: need_lib_prefix=no
11221: need_version=no
11222: hardcode_into_libs=yes
11223: if test ia64 = "$host_cpu"; then
11224: # AIX 5 supports IA64
11225: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11226: shlibpath_var=LD_LIBRARY_PATH
11227: else
11228: # With GCC up to 2.95.x, collect2 would create an import file
11229: # for dependence libraries. The import file would start with
11230: # the line '#! .'. This would cause the generated library to
11231: # depend on '.', always an invalid library. This was fixed in
11232: # development snapshots of GCC prior to 3.0.
11233: case $host_os in
11234: aix4 | aix4.[01] | aix4.[01].*)
11235: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11236: echo ' yes '
11237: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11238: :
11239: else
11240: can_build_shared=no
11241: fi
11242: ;;
11243: esac
11244: # Using Import Files as archive members, it is possible to support
11245: # filename-based versioning of shared library archives on AIX. While
11246: # this would work for both with and without runtime linking, it will
11247: # prevent static linking of such archives. So we do filename-based
11248: # shared library versioning with .so extension only, which is used
11249: # when both runtime linking and shared linking is enabled.
11250: # Unfortunately, runtime linking may impact performance, so we do
11251: # not want this to be the default eventually. Also, we use the
11252: # versioned .so libs for executables only if there is the -brtl
11253: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11254: # To allow for filename-based versioning support, we need to create
11255: # libNAME.so.V as an archive file, containing:
11256: # *) an Import File, referring to the versioned filename of the
11257: # archive as well as the shared archive member, telling the
11258: # bitwidth (32 or 64) of that shared object, and providing the
11259: # list of exported symbols of that shared object, eventually
11260: # decorated with the 'weak' keyword
11261: # *) the shared object with the F_LOADONLY flag set, to really avoid
11262: # it being seen by the linker.
11263: # At run time we better use the real file rather than another symlink,
11264: # but for link time we create the symlink libNAME.so -> libNAME.so.V
11265:
11266: case $with_aix_soname,$aix_use_runtimelinking in
11267: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11268: # soname into executable. Probably we can add versioning support to
11269: # collect2, so additional links can be useful in future.
11270: aix,yes) # traditional libtool
11271: dynamic_linker='AIX unversionable lib.so'
11272: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11273: # instead of lib<name>.a to let people know that these are not
11274: # typical AIX shared libraries.
11275: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11276: ;;
11277: aix,no) # traditional AIX only
11278: dynamic_linker='AIX lib.a(lib.so.V)'
11279: # We preserve .a as extension for shared libraries through AIX4.2
11280: # and later when we are not doing run time linking.
11281: library_names_spec='$libname$release.a $libname.a'
11282: soname_spec='$libname$release$shared_ext$major'
11283: ;;
11284: svr4,*) # full svr4 only
11285: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11286: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11287: # We do not specify a path in Import Files, so LIBPATH fires.
11288: shlibpath_overrides_runpath=yes
11289: ;;
11290: *,yes) # both, prefer svr4
11291: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11292: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11293: # unpreferred sharedlib libNAME.a needs extra handling
11294: 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"'
11295: 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"'
11296: # We do not specify a path in Import Files, so LIBPATH fires.
11297: shlibpath_overrides_runpath=yes
11298: ;;
11299: *,no) # both, prefer aix
11300: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11301: library_names_spec='$libname$release.a $libname.a'
11302: soname_spec='$libname$release$shared_ext$major'
11303: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11304: 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)'
11305: 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"'
11306: ;;
11307: esac
11308: shlibpath_var=LIBPATH
11309: fi
11310: ;;
11311:
11312: amigaos*)
11313: case $host_cpu in
11314: powerpc)
11315: # Since July 2007 AmigaOS4 officially supports .so libraries.
11316: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11317: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11318: ;;
11319: m68k)
11320: library_names_spec='$libname.ixlibrary $libname.a'
11321: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11322: 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'
11323: ;;
11324: esac
11325: ;;
11326:
11327: beos*)
11328: library_names_spec='$libname$shared_ext'
11329: dynamic_linker="$host_os ld.so"
11330: shlibpath_var=LIBRARY_PATH
11331: ;;
11332:
11333: bsdi[45]*)
11334: version_type=linux # correct to gnu/linux during the next big refactor
11335: need_version=no
11336: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11337: soname_spec='$libname$release$shared_ext$major'
11338: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11339: shlibpath_var=LD_LIBRARY_PATH
11340: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11341: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11342: # the default ld.so.conf also contains /usr/contrib/lib and
11343: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11344: # libtool to hard-code these into programs
11345: ;;
11346:
11347: cygwin* | mingw* | pw32* | cegcc*)
11348: version_type=windows
11349: shrext_cmds=.dll
11350: need_version=no
11351: need_lib_prefix=no
11352:
11353: case $GCC,$cc_basename in
11354: yes,*)
11355: # gcc
11356: library_names_spec='$libname.dll.a'
11357: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11358: postinstall_cmds='base_file=`basename \$file`~
11359: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11360: dldir=$destdir/`dirname \$dlpath`~
11361: test -d \$dldir || mkdir -p \$dldir~
11362: $install_prog $dir/$dlname \$dldir/$dlname~
11363: chmod a+x \$dldir/$dlname~
11364: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11365: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11366: fi'
11367: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11368: dlpath=$dir/\$dldll~
11369: $RM \$dlpath'
11370: shlibpath_overrides_runpath=yes
11371:
11372: case $host_os in
11373: cygwin*)
11374: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.1.1.3 ! misho 11375: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1 misho 11376:
11377: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11378: ;;
11379: mingw* | cegcc*)
11380: # MinGW DLLs use traditional 'lib' prefix
11381: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11382: ;;
11383: pw32*)
11384: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.3 ! misho 11385: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1 misho 11386: ;;
11387: esac
11388: dynamic_linker='Win32 ld.exe'
11389: ;;
11390:
1.1.1.3 ! misho 11391: *,cl* | *,icl*)
! 11392: # Native MSVC or ICC
1.1 misho 11393: libname_spec='$name'
11394: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11395: library_names_spec='$libname.dll.lib'
11396:
11397: case $build_os in
11398: mingw*)
11399: sys_lib_search_path_spec=
11400: lt_save_ifs=$IFS
11401: IFS=';'
11402: for lt_path in $LIB
11403: do
11404: IFS=$lt_save_ifs
11405: # Let DOS variable expansion print the short 8.3 style file name.
11406: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11407: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11408: done
11409: IFS=$lt_save_ifs
11410: # Convert to MSYS style.
1.1.1.3 ! misho 11411: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.1 misho 11412: ;;
11413: cygwin*)
11414: # Convert to unix form, then to dos form, then back to unix form
11415: # but this time dos style (no spaces!) so that the unix form looks
11416: # like /cygdrive/c/PROGRA~1:/cygdr...
11417: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11418: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11419: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11420: ;;
11421: *)
11422: sys_lib_search_path_spec=$LIB
11423: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11424: # It is most probably a Windows format PATH.
11425: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11426: else
11427: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11428: fi
11429: # FIXME: find the short name or the path components, as spaces are
11430: # common. (e.g. "Program Files" -> "PROGRA~1")
11431: ;;
11432: esac
11433:
11434: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11435: postinstall_cmds='base_file=`basename \$file`~
11436: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11437: dldir=$destdir/`dirname \$dlpath`~
11438: test -d \$dldir || mkdir -p \$dldir~
11439: $install_prog $dir/$dlname \$dldir/$dlname'
11440: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11441: dlpath=$dir/\$dldll~
11442: $RM \$dlpath'
11443: shlibpath_overrides_runpath=yes
11444: dynamic_linker='Win32 link.exe'
11445: ;;
11446:
11447: *)
1.1.1.3 ! misho 11448: # Assume MSVC and ICC wrapper
1.1 misho 11449: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11450: dynamic_linker='Win32 ld.exe'
11451: ;;
11452: esac
11453: # FIXME: first we should search . and the directory the executable is in
11454: shlibpath_var=PATH
11455: ;;
11456:
11457: darwin* | rhapsody*)
11458: dynamic_linker="$host_os dyld"
11459: version_type=darwin
11460: need_lib_prefix=no
11461: need_version=no
11462: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11463: soname_spec='$libname$release$major$shared_ext'
11464: shlibpath_overrides_runpath=yes
11465: shlibpath_var=DYLD_LIBRARY_PATH
11466: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11467:
11468: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11469: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11470: ;;
11471:
11472: dgux*)
11473: version_type=linux # correct to gnu/linux during the next big refactor
11474: need_lib_prefix=no
11475: need_version=no
11476: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11477: soname_spec='$libname$release$shared_ext$major'
11478: shlibpath_var=LD_LIBRARY_PATH
11479: ;;
11480:
1.1.1.3 ! misho 11481: freebsd* | dragonfly* | midnightbsd*)
1.1 misho 11482: # DragonFly does not have aout. When/if they implement a new
11483: # versioning mechanism, adjust this.
11484: if test -x /usr/bin/objformat; then
11485: objformat=`/usr/bin/objformat`
11486: else
11487: case $host_os in
11488: freebsd[23].*) objformat=aout ;;
11489: *) objformat=elf ;;
11490: esac
11491: fi
11492: version_type=freebsd-$objformat
11493: case $version_type in
11494: freebsd-elf*)
11495: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496: soname_spec='$libname$release$shared_ext$major'
11497: need_version=no
11498: need_lib_prefix=no
11499: ;;
11500: freebsd-*)
11501: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11502: need_version=yes
11503: ;;
11504: esac
11505: shlibpath_var=LD_LIBRARY_PATH
11506: case $host_os in
11507: freebsd2.*)
11508: shlibpath_overrides_runpath=yes
11509: ;;
11510: freebsd3.[01]* | freebsdelf3.[01]*)
11511: shlibpath_overrides_runpath=yes
11512: hardcode_into_libs=yes
11513: ;;
11514: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11515: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11516: shlibpath_overrides_runpath=no
11517: hardcode_into_libs=yes
11518: ;;
11519: *) # from 4.6 on, and DragonFly
11520: shlibpath_overrides_runpath=yes
11521: hardcode_into_libs=yes
11522: ;;
11523: esac
11524: ;;
11525:
11526: haiku*)
11527: version_type=linux # correct to gnu/linux during the next big refactor
11528: need_lib_prefix=no
11529: need_version=no
11530: dynamic_linker="$host_os runtime_loader"
11531: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532: soname_spec='$libname$release$shared_ext$major'
11533: shlibpath_var=LIBRARY_PATH
11534: shlibpath_overrides_runpath=no
11535: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11536: hardcode_into_libs=yes
11537: ;;
11538:
11539: hpux9* | hpux10* | hpux11*)
11540: # Give a soname corresponding to the major version so that dld.sl refuses to
11541: # link against other versions.
11542: version_type=sunos
11543: need_lib_prefix=no
11544: need_version=no
11545: case $host_cpu in
11546: ia64*)
11547: shrext_cmds='.so'
11548: hardcode_into_libs=yes
11549: dynamic_linker="$host_os dld.so"
11550: shlibpath_var=LD_LIBRARY_PATH
11551: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11552: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553: soname_spec='$libname$release$shared_ext$major'
11554: if test 32 = "$HPUX_IA64_MODE"; then
11555: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11556: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11557: else
11558: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11559: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11560: fi
11561: ;;
11562: hppa*64*)
11563: shrext_cmds='.sl'
11564: hardcode_into_libs=yes
11565: dynamic_linker="$host_os dld.sl"
11566: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11567: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11568: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11569: soname_spec='$libname$release$shared_ext$major'
11570: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11571: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572: ;;
11573: *)
11574: shrext_cmds='.sl'
11575: dynamic_linker="$host_os dld.sl"
11576: shlibpath_var=SHLIB_PATH
11577: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11578: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11579: soname_spec='$libname$release$shared_ext$major'
11580: ;;
11581: esac
11582: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11583: postinstall_cmds='chmod 555 $lib'
11584: # or fails outright, so override atomically:
11585: install_override_mode=555
11586: ;;
11587:
11588: interix[3-9]*)
11589: version_type=linux # correct to gnu/linux during the next big refactor
11590: need_lib_prefix=no
11591: need_version=no
11592: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11593: soname_spec='$libname$release$shared_ext$major'
11594: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595: shlibpath_var=LD_LIBRARY_PATH
11596: shlibpath_overrides_runpath=no
11597: hardcode_into_libs=yes
11598: ;;
11599:
11600: irix5* | irix6* | nonstopux*)
11601: case $host_os in
11602: nonstopux*) version_type=nonstopux ;;
11603: *)
11604: if test yes = "$lt_cv_prog_gnu_ld"; then
11605: version_type=linux # correct to gnu/linux during the next big refactor
11606: else
11607: version_type=irix
11608: fi ;;
11609: esac
11610: need_lib_prefix=no
11611: need_version=no
11612: soname_spec='$libname$release$shared_ext$major'
11613: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11614: case $host_os in
11615: irix5* | nonstopux*)
11616: libsuff= shlibsuff=
11617: ;;
11618: *)
11619: case $LD in # libtool.m4 will add one of these switches to LD
11620: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621: libsuff= shlibsuff= libmagic=32-bit;;
11622: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623: libsuff=32 shlibsuff=N32 libmagic=N32;;
11624: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626: *) libsuff= shlibsuff= libmagic=never-match;;
11627: esac
11628: ;;
11629: esac
11630: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631: shlibpath_overrides_runpath=no
11632: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11633: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11634: hardcode_into_libs=yes
11635: ;;
11636:
11637: # No shared lib support for Linux oldld, aout, or coff.
11638: linux*oldld* | linux*aout* | linux*coff*)
11639: dynamic_linker=no
11640: ;;
11641:
11642: linux*android*)
11643: version_type=none # Android doesn't support versioned libraries.
11644: need_lib_prefix=no
11645: need_version=no
11646: library_names_spec='$libname$release$shared_ext'
11647: soname_spec='$libname$release$shared_ext'
11648: finish_cmds=
11649: shlibpath_var=LD_LIBRARY_PATH
11650: shlibpath_overrides_runpath=yes
11651:
11652: # This implies no fast_install, which is unacceptable.
11653: # Some rework will be needed to allow for fast_install
11654: # before this can be enabled.
11655: hardcode_into_libs=yes
11656:
11657: dynamic_linker='Android linker'
11658: # Don't embed -rpath directories since the linker doesn't support them.
11659: hardcode_libdir_flag_spec='-L$libdir'
11660: ;;
11661:
11662: # This must be glibc/ELF.
11663: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11664: version_type=linux # correct to gnu/linux during the next big refactor
11665: need_lib_prefix=no
11666: need_version=no
11667: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11668: soname_spec='$libname$release$shared_ext$major'
11669: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11670: shlibpath_var=LD_LIBRARY_PATH
11671: shlibpath_overrides_runpath=no
11672:
11673: # Some binutils ld are patched to set DT_RUNPATH
1.1.1.3 ! misho 11674: if test ${lt_cv_shlibpath_overrides_runpath+y}
! 11675: then :
! 11676: printf %s "(cached) " >&6
! 11677: else $as_nop
1.1 misho 11678: lt_cv_shlibpath_overrides_runpath=no
11679: save_LDFLAGS=$LDFLAGS
11680: save_libdir=$libdir
11681: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11682: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11683: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684: /* end confdefs.h. */
11685:
11686: int
1.1.1.3 ! misho 11687: main (void)
1.1 misho 11688: {
11689:
11690: ;
11691: return 0;
11692: }
11693: _ACEOF
1.1.1.3 ! misho 11694: if ac_fn_c_try_link "$LINENO"
! 11695: then :
! 11696: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
! 11697: then :
1.1 misho 11698: lt_cv_shlibpath_overrides_runpath=yes
11699: fi
11700: fi
1.1.1.3 ! misho 11701: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 11702: conftest$ac_exeext conftest.$ac_ext
11703: LDFLAGS=$save_LDFLAGS
11704: libdir=$save_libdir
11705:
11706: fi
11707:
11708: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11709:
11710: # This implies no fast_install, which is unacceptable.
11711: # Some rework will be needed to allow for fast_install
11712: # before this can be enabled.
11713: hardcode_into_libs=yes
11714:
11715: # Ideally, we could use ldconfig to report *all* directores which are
11716: # searched for libraries, however this is still not possible. Aside from not
11717: # being certain /sbin/ldconfig is available, command
11718: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11719: # even though it is searched at run-time. Try to do the best guess by
11720: # appending ld.so.conf contents (and includes) to the search path.
11721: if test -f /etc/ld.so.conf; then
11722: 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' ' '`
11723: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11724: fi
11725:
11726: # We used to test for /lib/ld.so.1 and disable shared libraries on
11727: # powerpc, because MkLinux only supported shared libraries with the
11728: # GNU dynamic linker. Since this was broken with cross compilers,
11729: # most powerpc-linux boxes support dynamic linking these days and
11730: # people can always --disable-shared, the test was removed, and we
11731: # assume the GNU/Linux dynamic linker is in use.
11732: dynamic_linker='GNU/Linux ld.so'
11733: ;;
11734:
11735: netbsd*)
11736: version_type=sunos
11737: need_lib_prefix=no
11738: need_version=no
11739: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11740: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11741: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11742: dynamic_linker='NetBSD (a.out) ld.so'
11743: else
11744: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745: soname_spec='$libname$release$shared_ext$major'
11746: dynamic_linker='NetBSD ld.elf_so'
11747: fi
11748: shlibpath_var=LD_LIBRARY_PATH
11749: shlibpath_overrides_runpath=yes
11750: hardcode_into_libs=yes
11751: ;;
11752:
11753: newsos6)
11754: version_type=linux # correct to gnu/linux during the next big refactor
11755: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756: shlibpath_var=LD_LIBRARY_PATH
11757: shlibpath_overrides_runpath=yes
11758: ;;
11759:
11760: *nto* | *qnx*)
11761: version_type=qnx
11762: need_lib_prefix=no
11763: need_version=no
11764: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765: soname_spec='$libname$release$shared_ext$major'
11766: shlibpath_var=LD_LIBRARY_PATH
11767: shlibpath_overrides_runpath=no
11768: hardcode_into_libs=yes
11769: dynamic_linker='ldqnx.so'
11770: ;;
11771:
11772: openbsd* | bitrig*)
11773: version_type=sunos
11774: sys_lib_dlsearch_path_spec=/usr/lib
11775: need_lib_prefix=no
11776: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11777: need_version=no
11778: else
11779: need_version=yes
11780: fi
11781: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11782: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11783: shlibpath_var=LD_LIBRARY_PATH
11784: shlibpath_overrides_runpath=yes
11785: ;;
11786:
11787: os2*)
11788: libname_spec='$name'
11789: version_type=windows
11790: shrext_cmds=.dll
11791: need_version=no
11792: need_lib_prefix=no
11793: # OS/2 can only load a DLL with a base name of 8 characters or less.
11794: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11795: v=$($ECHO $release$versuffix | tr -d .-);
11796: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11797: $ECHO $n$v`$shared_ext'
11798: library_names_spec='${libname}_dll.$libext'
11799: dynamic_linker='OS/2 ld.exe'
11800: shlibpath_var=BEGINLIBPATH
11801: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11802: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11803: postinstall_cmds='base_file=`basename \$file`~
11804: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11805: dldir=$destdir/`dirname \$dlpath`~
11806: test -d \$dldir || mkdir -p \$dldir~
11807: $install_prog $dir/$dlname \$dldir/$dlname~
11808: chmod a+x \$dldir/$dlname~
11809: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11810: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11811: fi'
11812: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11813: dlpath=$dir/\$dldll~
11814: $RM \$dlpath'
11815: ;;
11816:
11817: osf3* | osf4* | osf5*)
11818: version_type=osf
11819: need_lib_prefix=no
11820: need_version=no
11821: soname_spec='$libname$release$shared_ext$major'
11822: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823: shlibpath_var=LD_LIBRARY_PATH
11824: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11825: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11826: ;;
11827:
11828: rdos*)
11829: dynamic_linker=no
11830: ;;
11831:
11832: solaris*)
11833: version_type=linux # correct to gnu/linux during the next big refactor
11834: need_lib_prefix=no
11835: need_version=no
11836: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11837: soname_spec='$libname$release$shared_ext$major'
11838: shlibpath_var=LD_LIBRARY_PATH
11839: shlibpath_overrides_runpath=yes
11840: hardcode_into_libs=yes
11841: # ldd complains unless libraries are executable
11842: postinstall_cmds='chmod +x $lib'
11843: ;;
11844:
11845: sunos4*)
11846: version_type=sunos
11847: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11848: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11849: shlibpath_var=LD_LIBRARY_PATH
11850: shlibpath_overrides_runpath=yes
11851: if test yes = "$with_gnu_ld"; then
11852: need_lib_prefix=no
11853: fi
11854: need_version=yes
11855: ;;
11856:
11857: sysv4 | sysv4.3*)
11858: version_type=linux # correct to gnu/linux during the next big refactor
11859: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11860: soname_spec='$libname$release$shared_ext$major'
11861: shlibpath_var=LD_LIBRARY_PATH
11862: case $host_vendor in
11863: sni)
11864: shlibpath_overrides_runpath=no
11865: need_lib_prefix=no
11866: runpath_var=LD_RUN_PATH
11867: ;;
11868: siemens)
11869: need_lib_prefix=no
11870: ;;
11871: motorola)
11872: need_lib_prefix=no
11873: need_version=no
11874: shlibpath_overrides_runpath=no
11875: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11876: ;;
11877: esac
11878: ;;
11879:
11880: sysv4*MP*)
11881: if test -d /usr/nec; then
11882: version_type=linux # correct to gnu/linux during the next big refactor
11883: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11884: soname_spec='$libname$shared_ext.$major'
11885: shlibpath_var=LD_LIBRARY_PATH
11886: fi
11887: ;;
11888:
11889: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11890: version_type=sco
11891: need_lib_prefix=no
11892: need_version=no
11893: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11894: soname_spec='$libname$release$shared_ext$major'
11895: shlibpath_var=LD_LIBRARY_PATH
11896: shlibpath_overrides_runpath=yes
11897: hardcode_into_libs=yes
11898: if test yes = "$with_gnu_ld"; then
11899: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11900: else
11901: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11902: case $host_os in
11903: sco3.2v5*)
11904: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11905: ;;
11906: esac
11907: fi
11908: sys_lib_dlsearch_path_spec='/usr/lib'
11909: ;;
11910:
11911: tpf*)
11912: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11913: version_type=linux # correct to gnu/linux during the next big refactor
11914: need_lib_prefix=no
11915: need_version=no
11916: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11917: shlibpath_var=LD_LIBRARY_PATH
11918: shlibpath_overrides_runpath=no
11919: hardcode_into_libs=yes
11920: ;;
11921:
11922: uts4*)
11923: version_type=linux # correct to gnu/linux during the next big refactor
11924: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11925: soname_spec='$libname$release$shared_ext$major'
11926: shlibpath_var=LD_LIBRARY_PATH
11927: ;;
11928:
11929: *)
11930: dynamic_linker=no
11931: ;;
11932: esac
1.1.1.3 ! misho 11933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 11934: printf "%s\n" "$dynamic_linker" >&6; }
1.1 misho 11935: test no = "$dynamic_linker" && can_build_shared=no
11936:
11937: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11938: if test yes = "$GCC"; then
11939: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11940: fi
11941:
11942: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11943: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11944: fi
11945:
11946: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11947: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11948: fi
11949:
11950: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11951: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11952:
11953: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11954: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11955:
11956: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11957: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11958:
11959:
11960:
11961:
11962:
11963:
11964:
11965:
11966:
11967:
11968:
11969:
11970:
11971:
11972:
11973:
11974:
11975:
11976:
11977:
11978:
11979:
11980:
11981:
11982:
11983:
11984:
11985:
11986:
11987:
11988:
11989:
11990:
11991:
11992:
11993:
11994:
11995:
11996:
11997:
11998:
11999:
12000:
12001:
12002:
12003:
12004:
12005:
12006:
12007:
12008:
12009:
12010:
12011:
12012:
12013:
12014:
12015:
12016:
12017:
12018:
12019:
12020:
12021:
12022:
12023:
12024:
12025:
12026:
12027:
12028:
12029:
12030:
12031:
12032:
12033:
12034:
12035:
12036:
12037:
12038:
12039:
12040:
12041:
12042:
12043:
12044:
12045:
12046:
12047:
12048:
12049:
12050:
12051:
12052:
12053:
12054:
1.1.1.3 ! misho 12055: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 12056: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.1 misho 12057: hardcode_action=
12058: if test -n "$hardcode_libdir_flag_spec" ||
12059: test -n "$runpath_var" ||
12060: test yes = "$hardcode_automatic"; then
12061:
12062: # We can hardcode non-existent directories.
12063: if test no != "$hardcode_direct" &&
12064: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12065: # have to relink, otherwise we might link with an installed library
12066: # when we should be linking with a yet-to-be-installed one
12067: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12068: test no != "$hardcode_minus_L"; then
12069: # Linking always hardcodes the temporary library directory.
12070: hardcode_action=relink
12071: else
12072: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12073: hardcode_action=immediate
12074: fi
12075: else
12076: # We cannot hardcode anything, or else we can only hardcode existing
12077: # directories.
12078: hardcode_action=unsupported
12079: fi
1.1.1.3 ! misho 12080: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
! 12081: printf "%s\n" "$hardcode_action" >&6; }
1.1 misho 12082:
12083: if test relink = "$hardcode_action" ||
12084: test yes = "$inherit_rpath"; then
12085: # Fast installation is not supported
12086: enable_fast_install=no
12087: elif test yes = "$shlibpath_overrides_runpath" ||
12088: test no = "$enable_shared"; then
12089: # Fast installation is not necessary
12090: enable_fast_install=needless
12091: fi
12092:
12093:
12094:
12095:
12096:
12097:
12098: if test yes != "$enable_dlopen"; then
12099: enable_dlopen=unknown
12100: enable_dlopen_self=unknown
12101: enable_dlopen_self_static=unknown
12102: else
12103: lt_cv_dlopen=no
12104: lt_cv_dlopen_libs=
12105:
12106: case $host_os in
12107: beos*)
12108: lt_cv_dlopen=load_add_on
12109: lt_cv_dlopen_libs=
12110: lt_cv_dlopen_self=yes
12111: ;;
12112:
12113: mingw* | pw32* | cegcc*)
12114: lt_cv_dlopen=LoadLibrary
12115: lt_cv_dlopen_libs=
12116: ;;
12117:
12118: cygwin*)
12119: lt_cv_dlopen=dlopen
12120: lt_cv_dlopen_libs=
12121: ;;
12122:
12123: darwin*)
12124: # if libdl is installed we need to link against it
1.1.1.3 ! misho 12125: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 12126: printf %s "checking for dlopen in -ldl... " >&6; }
! 12127: if test ${ac_cv_lib_dl_dlopen+y}
! 12128: then :
! 12129: printf %s "(cached) " >&6
! 12130: else $as_nop
1.1 misho 12131: ac_check_lib_save_LIBS=$LIBS
12132: LIBS="-ldl $LIBS"
12133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134: /* end confdefs.h. */
12135:
12136: /* Override any GCC internal prototype to avoid an error.
12137: Use char because int might match the return type of a GCC
12138: builtin and then its argument prototype would still apply. */
12139: char dlopen ();
12140: int
1.1.1.3 ! misho 12141: main (void)
1.1 misho 12142: {
12143: return dlopen ();
12144: ;
12145: return 0;
12146: }
12147: _ACEOF
1.1.1.3 ! misho 12148: if ac_fn_c_try_link "$LINENO"
! 12149: then :
1.1 misho 12150: ac_cv_lib_dl_dlopen=yes
1.1.1.3 ! misho 12151: else $as_nop
1.1 misho 12152: ac_cv_lib_dl_dlopen=no
12153: fi
1.1.1.3 ! misho 12154: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 12155: conftest$ac_exeext conftest.$ac_ext
12156: LIBS=$ac_check_lib_save_LIBS
12157: fi
1.1.1.3 ! misho 12158: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 12159: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
! 12160: if test "x$ac_cv_lib_dl_dlopen" = xyes
! 12161: then :
1.1 misho 12162: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.1.1.3 ! misho 12163: else $as_nop
1.1 misho 12164:
12165: lt_cv_dlopen=dyld
12166: lt_cv_dlopen_libs=
12167: lt_cv_dlopen_self=yes
12168:
12169: fi
12170:
12171: ;;
12172:
12173: tpf*)
12174: # Don't try to run any link tests for TPF. We know it's impossible
12175: # because TPF is a cross-compiler, and we know how we open DSOs.
12176: lt_cv_dlopen=dlopen
12177: lt_cv_dlopen_libs=
12178: lt_cv_dlopen_self=no
12179: ;;
12180:
12181: *)
12182: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.1.1.3 ! misho 12183: if test "x$ac_cv_func_shl_load" = xyes
! 12184: then :
1.1 misho 12185: lt_cv_dlopen=shl_load
1.1.1.3 ! misho 12186: else $as_nop
! 12187: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 12188: printf %s "checking for shl_load in -ldld... " >&6; }
! 12189: if test ${ac_cv_lib_dld_shl_load+y}
! 12190: then :
! 12191: printf %s "(cached) " >&6
! 12192: else $as_nop
1.1 misho 12193: ac_check_lib_save_LIBS=$LIBS
12194: LIBS="-ldld $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: char shl_load ();
12202: int
1.1.1.3 ! misho 12203: main (void)
1.1 misho 12204: {
12205: return shl_load ();
12206: ;
12207: return 0;
12208: }
12209: _ACEOF
1.1.1.3 ! misho 12210: if ac_fn_c_try_link "$LINENO"
! 12211: then :
1.1 misho 12212: ac_cv_lib_dld_shl_load=yes
1.1.1.3 ! misho 12213: else $as_nop
1.1 misho 12214: ac_cv_lib_dld_shl_load=no
12215: fi
1.1.1.3 ! misho 12216: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 12217: conftest$ac_exeext conftest.$ac_ext
12218: LIBS=$ac_check_lib_save_LIBS
12219: fi
1.1.1.3 ! misho 12220: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 12221: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
! 12222: if test "x$ac_cv_lib_dld_shl_load" = xyes
! 12223: then :
1.1 misho 12224: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1.1.1.3 ! misho 12225: else $as_nop
1.1 misho 12226: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1.1.1.3 ! misho 12227: if test "x$ac_cv_func_dlopen" = xyes
! 12228: then :
1.1 misho 12229: lt_cv_dlopen=dlopen
1.1.1.3 ! misho 12230: else $as_nop
! 12231: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 12232: printf %s "checking for dlopen in -ldl... " >&6; }
! 12233: if test ${ac_cv_lib_dl_dlopen+y}
! 12234: then :
! 12235: printf %s "(cached) " >&6
! 12236: else $as_nop
1.1 misho 12237: ac_check_lib_save_LIBS=$LIBS
12238: LIBS="-ldl $LIBS"
12239: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240: /* end confdefs.h. */
12241:
12242: /* Override any GCC internal prototype to avoid an error.
12243: Use char because int might match the return type of a GCC
12244: builtin and then its argument prototype would still apply. */
12245: char dlopen ();
12246: int
1.1.1.3 ! misho 12247: main (void)
1.1 misho 12248: {
12249: return dlopen ();
12250: ;
12251: return 0;
12252: }
12253: _ACEOF
1.1.1.3 ! misho 12254: if ac_fn_c_try_link "$LINENO"
! 12255: then :
1.1 misho 12256: ac_cv_lib_dl_dlopen=yes
1.1.1.3 ! misho 12257: else $as_nop
1.1 misho 12258: ac_cv_lib_dl_dlopen=no
12259: fi
1.1.1.3 ! misho 12260: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 12261: conftest$ac_exeext conftest.$ac_ext
12262: LIBS=$ac_check_lib_save_LIBS
12263: fi
1.1.1.3 ! misho 12264: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 12265: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
! 12266: if test "x$ac_cv_lib_dl_dlopen" = xyes
! 12267: then :
1.1 misho 12268: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.1.1.3 ! misho 12269: else $as_nop
! 12270: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 12271: printf %s "checking for dlopen in -lsvld... " >&6; }
! 12272: if test ${ac_cv_lib_svld_dlopen+y}
! 12273: then :
! 12274: printf %s "(cached) " >&6
! 12275: else $as_nop
1.1 misho 12276: ac_check_lib_save_LIBS=$LIBS
12277: LIBS="-lsvld $LIBS"
12278: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279: /* end confdefs.h. */
12280:
12281: /* Override any GCC internal prototype to avoid an error.
12282: Use char because int might match the return type of a GCC
12283: builtin and then its argument prototype would still apply. */
12284: char dlopen ();
12285: int
1.1.1.3 ! misho 12286: main (void)
1.1 misho 12287: {
12288: return dlopen ();
12289: ;
12290: return 0;
12291: }
12292: _ACEOF
1.1.1.3 ! misho 12293: if ac_fn_c_try_link "$LINENO"
! 12294: then :
1.1 misho 12295: ac_cv_lib_svld_dlopen=yes
1.1.1.3 ! misho 12296: else $as_nop
1.1 misho 12297: ac_cv_lib_svld_dlopen=no
12298: fi
1.1.1.3 ! misho 12299: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 12300: conftest$ac_exeext conftest.$ac_ext
12301: LIBS=$ac_check_lib_save_LIBS
12302: fi
1.1.1.3 ! misho 12303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 12304: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
! 12305: if test "x$ac_cv_lib_svld_dlopen" = xyes
! 12306: then :
1.1 misho 12307: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1.1.1.3 ! misho 12308: else $as_nop
! 12309: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 12310: printf %s "checking for dld_link in -ldld... " >&6; }
! 12311: if test ${ac_cv_lib_dld_dld_link+y}
! 12312: then :
! 12313: printf %s "(cached) " >&6
! 12314: else $as_nop
1.1 misho 12315: ac_check_lib_save_LIBS=$LIBS
12316: LIBS="-ldld $LIBS"
12317: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318: /* end confdefs.h. */
12319:
12320: /* Override any GCC internal prototype to avoid an error.
12321: Use char because int might match the return type of a GCC
12322: builtin and then its argument prototype would still apply. */
12323: char dld_link ();
12324: int
1.1.1.3 ! misho 12325: main (void)
1.1 misho 12326: {
12327: return dld_link ();
12328: ;
12329: return 0;
12330: }
12331: _ACEOF
1.1.1.3 ! misho 12332: if ac_fn_c_try_link "$LINENO"
! 12333: then :
1.1 misho 12334: ac_cv_lib_dld_dld_link=yes
1.1.1.3 ! misho 12335: else $as_nop
1.1 misho 12336: ac_cv_lib_dld_dld_link=no
12337: fi
1.1.1.3 ! misho 12338: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 12339: conftest$ac_exeext conftest.$ac_ext
12340: LIBS=$ac_check_lib_save_LIBS
12341: fi
1.1.1.3 ! misho 12342: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 12343: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
! 12344: if test "x$ac_cv_lib_dld_dld_link" = xyes
! 12345: then :
1.1 misho 12346: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12347: fi
12348:
12349:
12350: fi
12351:
12352:
12353: fi
12354:
12355:
12356: fi
12357:
12358:
12359: fi
12360:
12361:
12362: fi
12363:
12364: ;;
12365: esac
12366:
12367: if test no = "$lt_cv_dlopen"; then
12368: enable_dlopen=no
12369: else
12370: enable_dlopen=yes
12371: fi
12372:
12373: case $lt_cv_dlopen in
12374: dlopen)
12375: save_CPPFLAGS=$CPPFLAGS
12376: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12377:
12378: save_LDFLAGS=$LDFLAGS
12379: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12380:
12381: save_LIBS=$LIBS
12382: LIBS="$lt_cv_dlopen_libs $LIBS"
12383:
1.1.1.3 ! misho 12384: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
! 12385: printf %s "checking whether a program can dlopen itself... " >&6; }
! 12386: if test ${lt_cv_dlopen_self+y}
! 12387: then :
! 12388: printf %s "(cached) " >&6
! 12389: else $as_nop
1.1 misho 12390: if test yes = "$cross_compiling"; then :
12391: lt_cv_dlopen_self=cross
12392: else
12393: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394: lt_status=$lt_dlunknown
12395: cat > conftest.$ac_ext <<_LT_EOF
12396: #line $LINENO "configure"
12397: #include "confdefs.h"
12398:
12399: #if HAVE_DLFCN_H
12400: #include <dlfcn.h>
12401: #endif
12402:
12403: #include <stdio.h>
12404:
12405: #ifdef RTLD_GLOBAL
12406: # define LT_DLGLOBAL RTLD_GLOBAL
12407: #else
12408: # ifdef DL_GLOBAL
12409: # define LT_DLGLOBAL DL_GLOBAL
12410: # else
12411: # define LT_DLGLOBAL 0
12412: # endif
12413: #endif
12414:
12415: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416: find out it does not work in some platform. */
12417: #ifndef LT_DLLAZY_OR_NOW
12418: # ifdef RTLD_LAZY
12419: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12420: # else
12421: # ifdef DL_LAZY
12422: # define LT_DLLAZY_OR_NOW DL_LAZY
12423: # else
12424: # ifdef RTLD_NOW
12425: # define LT_DLLAZY_OR_NOW RTLD_NOW
12426: # else
12427: # ifdef DL_NOW
12428: # define LT_DLLAZY_OR_NOW DL_NOW
12429: # else
12430: # define LT_DLLAZY_OR_NOW 0
12431: # endif
12432: # endif
12433: # endif
12434: # endif
12435: #endif
12436:
12437: /* When -fvisibility=hidden is used, assume the code has been annotated
12438: correspondingly for the symbols needed. */
12439: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12440: int fnord () __attribute__((visibility("default")));
12441: #endif
12442:
12443: int fnord () { return 42; }
12444: int main ()
12445: {
12446: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12447: int status = $lt_dlunknown;
12448:
12449: if (self)
12450: {
12451: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12452: else
12453: {
12454: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12455: else puts (dlerror ());
12456: }
12457: /* dlclose (self); */
12458: }
12459: else
12460: puts (dlerror ());
12461:
12462: return status;
12463: }
12464: _LT_EOF
12465: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12466: (eval $ac_link) 2>&5
12467: ac_status=$?
1.1.1.3 ! misho 12468: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 12469: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12470: (./conftest; exit; ) >&5 2>/dev/null
12471: lt_status=$?
12472: case x$lt_status in
12473: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12474: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12475: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12476: esac
12477: else :
12478: # compilation failed
12479: lt_cv_dlopen_self=no
12480: fi
12481: fi
12482: rm -fr conftest*
12483:
12484:
12485: fi
1.1.1.3 ! misho 12486: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
! 12487: printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1.1 misho 12488:
12489: if test yes = "$lt_cv_dlopen_self"; then
12490: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.1.1.3 ! misho 12491: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
! 12492: printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
! 12493: if test ${lt_cv_dlopen_self_static+y}
! 12494: then :
! 12495: printf %s "(cached) " >&6
! 12496: else $as_nop
1.1 misho 12497: if test yes = "$cross_compiling"; then :
12498: lt_cv_dlopen_self_static=cross
12499: else
12500: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12501: lt_status=$lt_dlunknown
12502: cat > conftest.$ac_ext <<_LT_EOF
12503: #line $LINENO "configure"
12504: #include "confdefs.h"
12505:
12506: #if HAVE_DLFCN_H
12507: #include <dlfcn.h>
12508: #endif
12509:
12510: #include <stdio.h>
12511:
12512: #ifdef RTLD_GLOBAL
12513: # define LT_DLGLOBAL RTLD_GLOBAL
12514: #else
12515: # ifdef DL_GLOBAL
12516: # define LT_DLGLOBAL DL_GLOBAL
12517: # else
12518: # define LT_DLGLOBAL 0
12519: # endif
12520: #endif
12521:
12522: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12523: find out it does not work in some platform. */
12524: #ifndef LT_DLLAZY_OR_NOW
12525: # ifdef RTLD_LAZY
12526: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12527: # else
12528: # ifdef DL_LAZY
12529: # define LT_DLLAZY_OR_NOW DL_LAZY
12530: # else
12531: # ifdef RTLD_NOW
12532: # define LT_DLLAZY_OR_NOW RTLD_NOW
12533: # else
12534: # ifdef DL_NOW
12535: # define LT_DLLAZY_OR_NOW DL_NOW
12536: # else
12537: # define LT_DLLAZY_OR_NOW 0
12538: # endif
12539: # endif
12540: # endif
12541: # endif
12542: #endif
12543:
12544: /* When -fvisibility=hidden is used, assume the code has been annotated
12545: correspondingly for the symbols needed. */
12546: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12547: int fnord () __attribute__((visibility("default")));
12548: #endif
12549:
12550: int fnord () { return 42; }
12551: int main ()
12552: {
12553: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12554: int status = $lt_dlunknown;
12555:
12556: if (self)
12557: {
12558: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12559: else
12560: {
12561: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12562: else puts (dlerror ());
12563: }
12564: /* dlclose (self); */
12565: }
12566: else
12567: puts (dlerror ());
12568:
12569: return status;
12570: }
12571: _LT_EOF
12572: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12573: (eval $ac_link) 2>&5
12574: ac_status=$?
1.1.1.3 ! misho 12575: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 12576: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12577: (./conftest; exit; ) >&5 2>/dev/null
12578: lt_status=$?
12579: case x$lt_status in
12580: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12581: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12582: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12583: esac
12584: else :
12585: # compilation failed
12586: lt_cv_dlopen_self_static=no
12587: fi
12588: fi
12589: rm -fr conftest*
12590:
12591:
12592: fi
1.1.1.3 ! misho 12593: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
! 12594: printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1.1 misho 12595: fi
12596:
12597: CPPFLAGS=$save_CPPFLAGS
12598: LDFLAGS=$save_LDFLAGS
12599: LIBS=$save_LIBS
12600: ;;
12601: esac
12602:
12603: case $lt_cv_dlopen_self in
12604: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12605: *) enable_dlopen_self=unknown ;;
12606: esac
12607:
12608: case $lt_cv_dlopen_self_static in
12609: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12610: *) enable_dlopen_self_static=unknown ;;
12611: esac
12612: fi
12613:
12614:
12615:
12616:
12617:
12618:
12619:
12620:
12621:
12622:
12623:
12624:
12625:
12626:
12627:
12628:
12629:
12630: striplib=
12631: old_striplib=
1.1.1.3 ! misho 12632: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
! 12633: printf %s "checking whether stripping libraries is possible... " >&6; }
! 12634: if test -z "$STRIP"; then
! 12635: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12636: printf "%s\n" "no" >&6; }
! 12637: else
! 12638: if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
! 12639: old_striplib="$STRIP --strip-debug"
! 12640: striplib="$STRIP --strip-unneeded"
! 12641: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12642: printf "%s\n" "yes" >&6; }
! 12643: else
! 12644: case $host_os in
! 12645: darwin*)
! 12646: # FIXME - insert some real tests, host_os isn't really good enough
1.1 misho 12647: striplib="$STRIP -x"
12648: old_striplib="$STRIP -S"
1.1.1.3 ! misho 12649: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12650: printf "%s\n" "yes" >&6; }
! 12651: ;;
! 12652: freebsd*)
! 12653: if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
! 12654: old_striplib="$STRIP --strip-debug"
! 12655: striplib="$STRIP --strip-unneeded"
! 12656: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 12657: printf "%s\n" "yes" >&6; }
! 12658: else
! 12659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12660: printf "%s\n" "no" >&6; }
! 12661: fi
! 12662: ;;
! 12663: *)
! 12664: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12665: printf "%s\n" "no" >&6; }
! 12666: ;;
! 12667: esac
! 12668: fi
1.1 misho 12669: fi
12670:
12671:
12672:
12673:
12674:
12675:
12676:
12677:
12678:
12679:
12680:
12681:
12682: # Report what library types will actually be built
1.1.1.3 ! misho 12683: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
! 12684: printf %s "checking if libtool supports shared libraries... " >&6; }
! 12685: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
! 12686: printf "%s\n" "$can_build_shared" >&6; }
1.1 misho 12687:
1.1.1.3 ! misho 12688: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
! 12689: printf %s "checking whether to build shared libraries... " >&6; }
1.1 misho 12690: test no = "$can_build_shared" && enable_shared=no
12691:
12692: # On AIX, shared libraries and static libraries use the same namespace, and
12693: # are all built from PIC.
12694: case $host_os in
12695: aix3*)
12696: test yes = "$enable_shared" && enable_static=no
12697: if test -n "$RANLIB"; then
12698: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12699: postinstall_cmds='$RANLIB $lib'
12700: fi
12701: ;;
12702:
12703: aix[4-9]*)
12704: if test ia64 != "$host_cpu"; then
12705: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12706: yes,aix,yes) ;; # shared object as lib.so file only
12707: yes,svr4,*) ;; # shared object as lib.so archive member only
12708: yes,*) enable_static=no ;; # shared object in lib.a archive as well
12709: esac
12710: fi
12711: ;;
12712: esac
1.1.1.3 ! misho 12713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
! 12714: printf "%s\n" "$enable_shared" >&6; }
1.1 misho 12715:
1.1.1.3 ! misho 12716: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
! 12717: printf %s "checking whether to build static libraries... " >&6; }
1.1 misho 12718: # Make sure either enable_shared or enable_static is yes.
12719: test yes = "$enable_shared" || enable_static=yes
1.1.1.3 ! misho 12720: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
! 12721: printf "%s\n" "$enable_static" >&6; }
1.1 misho 12722:
12723:
12724:
12725:
12726: fi
12727: ac_ext=c
12728: ac_cpp='$CPP $CPPFLAGS'
12729: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12730: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12731: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732:
12733: CC=$lt_save_CC
12734:
12735:
12736:
12737:
12738:
12739:
12740:
12741:
12742:
12743:
12744:
12745:
12746:
12747:
12748:
12749: ac_config_commands="$ac_config_commands libtool"
12750:
12751:
12752:
12753:
12754: # Only expand once:
12755:
12756:
12757:
12758:
1.1.1.3 ! misho 12759: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
! 12760: printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1.1.1.2 misho 12761: # Check whether --enable-maintainer-mode was given.
1.1.1.3 ! misho 12762: if test ${enable_maintainer_mode+y}
! 12763: then :
1.1.1.2 misho 12764: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1.1.1.3 ! misho 12765: else $as_nop
1.1.1.2 misho 12766: USE_MAINTAINER_MODE=no
12767: fi
12768:
1.1.1.3 ! misho 12769: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
! 12770: printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
1.1.1.2 misho 12771: if test $USE_MAINTAINER_MODE = yes; then
12772: MAINTAINER_MODE_TRUE=
12773: MAINTAINER_MODE_FALSE='#'
12774: else
12775: MAINTAINER_MODE_TRUE='#'
12776: MAINTAINER_MODE_FALSE=
12777: fi
12778:
12779: MAINT=$MAINTAINER_MODE_TRUE
12780:
12781:
12782: ac_config_headers="$ac_config_headers src/iperf_config.h"
12783:
12784:
12785:
12786:
12787: # Checks for tools: c compiler, ranlib (used for creating static libraries),
12788: # symlinks and libtool
12789: ac_ext=c
12790: ac_cpp='$CPP $CPPFLAGS'
12791: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12792: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12793: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12794: if test -n "$ac_tool_prefix"; then
12795: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12796: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.3 ! misho 12797: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 12798: printf %s "checking for $ac_word... " >&6; }
! 12799: if test ${ac_cv_prog_CC+y}
! 12800: then :
! 12801: printf %s "(cached) " >&6
! 12802: else $as_nop
1.1.1.2 misho 12803: if test -n "$CC"; then
12804: ac_cv_prog_CC="$CC" # Let the user override the test.
12805: else
12806: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807: for as_dir in $PATH
12808: do
12809: IFS=$as_save_IFS
1.1.1.3 ! misho 12810: case $as_dir in #(((
! 12811: '') as_dir=./ ;;
! 12812: */) ;;
! 12813: *) as_dir=$as_dir/ ;;
! 12814: esac
1.1.1.2 misho 12815: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 12816: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 12817: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1.1.3 ! misho 12818: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 12819: break 2
12820: fi
12821: done
12822: done
12823: IFS=$as_save_IFS
12824:
12825: fi
12826: fi
12827: CC=$ac_cv_prog_CC
12828: if test -n "$CC"; then
1.1.1.3 ! misho 12829: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 12830: printf "%s\n" "$CC" >&6; }
1.1.1.2 misho 12831: else
1.1.1.3 ! misho 12832: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12833: printf "%s\n" "no" >&6; }
1.1.1.2 misho 12834: fi
12835:
12836:
12837: fi
12838: if test -z "$ac_cv_prog_CC"; then
12839: ac_ct_CC=$CC
12840: # Extract the first word of "gcc", so it can be a program name with args.
12841: set dummy gcc; ac_word=$2
1.1.1.3 ! misho 12842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 12843: printf %s "checking for $ac_word... " >&6; }
! 12844: if test ${ac_cv_prog_ac_ct_CC+y}
! 12845: then :
! 12846: printf %s "(cached) " >&6
! 12847: else $as_nop
1.1.1.2 misho 12848: if test -n "$ac_ct_CC"; then
12849: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12850: else
12851: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852: for as_dir in $PATH
12853: do
12854: IFS=$as_save_IFS
1.1.1.3 ! misho 12855: case $as_dir in #(((
! 12856: '') as_dir=./ ;;
! 12857: */) ;;
! 12858: *) as_dir=$as_dir/ ;;
! 12859: esac
1.1.1.2 misho 12860: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 12861: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 12862: ac_cv_prog_ac_ct_CC="gcc"
1.1.1.3 ! misho 12863: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 12864: break 2
12865: fi
12866: done
12867: done
12868: IFS=$as_save_IFS
12869:
12870: fi
12871: fi
12872: ac_ct_CC=$ac_cv_prog_ac_ct_CC
12873: if test -n "$ac_ct_CC"; then
1.1.1.3 ! misho 12874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 12875: printf "%s\n" "$ac_ct_CC" >&6; }
1.1.1.2 misho 12876: else
1.1.1.3 ! misho 12877: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12878: printf "%s\n" "no" >&6; }
1.1.1.2 misho 12879: fi
12880:
12881: if test "x$ac_ct_CC" = x; then
12882: CC=""
12883: else
12884: case $cross_compiling:$ac_tool_warned in
12885: yes:)
1.1.1.3 ! misho 12886: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 12887: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.2 misho 12888: ac_tool_warned=yes ;;
12889: esac
12890: CC=$ac_ct_CC
12891: fi
12892: else
12893: CC="$ac_cv_prog_CC"
12894: fi
12895:
12896: if test -z "$CC"; then
12897: if test -n "$ac_tool_prefix"; then
12898: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12899: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.3 ! misho 12900: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 12901: printf %s "checking for $ac_word... " >&6; }
! 12902: if test ${ac_cv_prog_CC+y}
! 12903: then :
! 12904: printf %s "(cached) " >&6
! 12905: else $as_nop
1.1.1.2 misho 12906: if test -n "$CC"; then
12907: ac_cv_prog_CC="$CC" # Let the user override the test.
12908: else
12909: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910: for as_dir in $PATH
12911: do
12912: IFS=$as_save_IFS
1.1.1.3 ! misho 12913: case $as_dir in #(((
! 12914: '') as_dir=./ ;;
! 12915: */) ;;
! 12916: *) as_dir=$as_dir/ ;;
! 12917: esac
1.1.1.2 misho 12918: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 12919: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 12920: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1.1.3 ! misho 12921: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 12922: break 2
12923: fi
12924: done
12925: done
12926: IFS=$as_save_IFS
12927:
12928: fi
12929: fi
12930: CC=$ac_cv_prog_CC
12931: if test -n "$CC"; then
1.1.1.3 ! misho 12932: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 12933: printf "%s\n" "$CC" >&6; }
1.1.1.2 misho 12934: else
1.1.1.3 ! misho 12935: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12936: printf "%s\n" "no" >&6; }
1.1.1.2 misho 12937: fi
12938:
12939:
12940: fi
12941: fi
12942: if test -z "$CC"; then
12943: # Extract the first word of "cc", so it can be a program name with args.
12944: set dummy cc; ac_word=$2
1.1.1.3 ! misho 12945: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 12946: printf %s "checking for $ac_word... " >&6; }
! 12947: if test ${ac_cv_prog_CC+y}
! 12948: then :
! 12949: printf %s "(cached) " >&6
! 12950: else $as_nop
1.1.1.2 misho 12951: if test -n "$CC"; then
12952: ac_cv_prog_CC="$CC" # Let the user override the test.
12953: else
12954: ac_prog_rejected=no
12955: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956: for as_dir in $PATH
12957: do
12958: IFS=$as_save_IFS
1.1.1.3 ! misho 12959: case $as_dir in #(((
! 12960: '') as_dir=./ ;;
! 12961: */) ;;
! 12962: *) as_dir=$as_dir/ ;;
! 12963: esac
1.1.1.2 misho 12964: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 12965: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 12966: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1.1.2 misho 12967: ac_prog_rejected=yes
12968: continue
12969: fi
12970: ac_cv_prog_CC="cc"
1.1.1.3 ! misho 12971: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 12972: break 2
12973: fi
12974: done
12975: done
12976: IFS=$as_save_IFS
12977:
12978: if test $ac_prog_rejected = yes; then
12979: # We found a bogon in the path, so make sure we never use it.
12980: set dummy $ac_cv_prog_CC
12981: shift
12982: if test $# != 0; then
12983: # We chose a different compiler from the bogus one.
12984: # However, it has the same basename, so the bogon will be chosen
12985: # first if we set CC to just the basename; use the full file name.
12986: shift
1.1.1.3 ! misho 12987: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.1.1.2 misho 12988: fi
12989: fi
12990: fi
12991: fi
12992: CC=$ac_cv_prog_CC
12993: if test -n "$CC"; then
1.1.1.3 ! misho 12994: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 12995: printf "%s\n" "$CC" >&6; }
1.1.1.2 misho 12996: else
1.1.1.3 ! misho 12997: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12998: printf "%s\n" "no" >&6; }
1.1.1.2 misho 12999: fi
13000:
13001:
13002: fi
13003: if test -z "$CC"; then
13004: if test -n "$ac_tool_prefix"; then
13005: for ac_prog in cl.exe
13006: do
13007: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13008: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.3 ! misho 13009: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13010: printf %s "checking for $ac_word... " >&6; }
! 13011: if test ${ac_cv_prog_CC+y}
! 13012: then :
! 13013: printf %s "(cached) " >&6
! 13014: else $as_nop
1.1.1.2 misho 13015: if test -n "$CC"; then
13016: ac_cv_prog_CC="$CC" # Let the user override the test.
13017: else
13018: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019: for as_dir in $PATH
13020: do
13021: IFS=$as_save_IFS
1.1.1.3 ! misho 13022: case $as_dir in #(((
! 13023: '') as_dir=./ ;;
! 13024: */) ;;
! 13025: *) as_dir=$as_dir/ ;;
! 13026: esac
1.1.1.2 misho 13027: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 13028: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 13029: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.1.3 ! misho 13030: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 13031: break 2
13032: fi
13033: done
13034: done
13035: IFS=$as_save_IFS
13036:
13037: fi
13038: fi
13039: CC=$ac_cv_prog_CC
13040: if test -n "$CC"; then
1.1.1.3 ! misho 13041: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 13042: printf "%s\n" "$CC" >&6; }
1.1.1.2 misho 13043: else
1.1.1.3 ! misho 13044: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13045: printf "%s\n" "no" >&6; }
1.1.1.2 misho 13046: fi
13047:
13048:
13049: test -n "$CC" && break
13050: done
13051: fi
13052: if test -z "$CC"; then
13053: ac_ct_CC=$CC
13054: for ac_prog in cl.exe
13055: do
13056: # Extract the first word of "$ac_prog", so it can be a program name with args.
13057: set dummy $ac_prog; ac_word=$2
1.1.1.3 ! misho 13058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13059: printf %s "checking for $ac_word... " >&6; }
! 13060: if test ${ac_cv_prog_ac_ct_CC+y}
! 13061: then :
! 13062: printf %s "(cached) " >&6
! 13063: else $as_nop
1.1.1.2 misho 13064: if test -n "$ac_ct_CC"; then
13065: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13066: else
13067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068: for as_dir in $PATH
13069: do
13070: IFS=$as_save_IFS
1.1.1.3 ! misho 13071: case $as_dir in #(((
! 13072: '') as_dir=./ ;;
! 13073: */) ;;
! 13074: *) as_dir=$as_dir/ ;;
! 13075: esac
1.1.1.2 misho 13076: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 13077: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 13078: ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.1.3 ! misho 13079: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 13080: break 2
13081: fi
13082: done
13083: done
13084: IFS=$as_save_IFS
13085:
13086: fi
13087: fi
13088: ac_ct_CC=$ac_cv_prog_ac_ct_CC
13089: if test -n "$ac_ct_CC"; then
1.1.1.3 ! misho 13090: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 13091: printf "%s\n" "$ac_ct_CC" >&6; }
1.1.1.2 misho 13092: else
1.1.1.3 ! misho 13093: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13094: printf "%s\n" "no" >&6; }
1.1.1.2 misho 13095: fi
13096:
13097:
13098: test -n "$ac_ct_CC" && break
13099: done
13100:
13101: if test "x$ac_ct_CC" = x; then
13102: CC=""
13103: else
13104: case $cross_compiling:$ac_tool_warned in
13105: yes:)
1.1.1.3 ! misho 13106: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 13107: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 13108: ac_tool_warned=yes ;;
! 13109: esac
! 13110: CC=$ac_ct_CC
! 13111: fi
! 13112: fi
! 13113:
! 13114: fi
! 13115: if test -z "$CC"; then
! 13116: if test -n "$ac_tool_prefix"; then
! 13117: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
! 13118: set dummy ${ac_tool_prefix}clang; ac_word=$2
! 13119: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13120: printf %s "checking for $ac_word... " >&6; }
! 13121: if test ${ac_cv_prog_CC+y}
! 13122: then :
! 13123: printf %s "(cached) " >&6
! 13124: else $as_nop
! 13125: if test -n "$CC"; then
! 13126: ac_cv_prog_CC="$CC" # Let the user override the test.
! 13127: else
! 13128: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 13129: for as_dir in $PATH
! 13130: do
! 13131: IFS=$as_save_IFS
! 13132: case $as_dir in #(((
! 13133: '') as_dir=./ ;;
! 13134: */) ;;
! 13135: *) as_dir=$as_dir/ ;;
! 13136: esac
! 13137: for ac_exec_ext in '' $ac_executable_extensions; do
! 13138: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 13139: ac_cv_prog_CC="${ac_tool_prefix}clang"
! 13140: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 13141: break 2
! 13142: fi
! 13143: done
! 13144: done
! 13145: IFS=$as_save_IFS
! 13146:
! 13147: fi
! 13148: fi
! 13149: CC=$ac_cv_prog_CC
! 13150: if test -n "$CC"; then
! 13151: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 13152: printf "%s\n" "$CC" >&6; }
! 13153: else
! 13154: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13155: printf "%s\n" "no" >&6; }
! 13156: fi
! 13157:
! 13158:
! 13159: fi
! 13160: if test -z "$ac_cv_prog_CC"; then
! 13161: ac_ct_CC=$CC
! 13162: # Extract the first word of "clang", so it can be a program name with args.
! 13163: set dummy clang; ac_word=$2
! 13164: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13165: printf %s "checking for $ac_word... " >&6; }
! 13166: if test ${ac_cv_prog_ac_ct_CC+y}
! 13167: then :
! 13168: printf %s "(cached) " >&6
! 13169: else $as_nop
! 13170: if test -n "$ac_ct_CC"; then
! 13171: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 13172: else
! 13173: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 13174: for as_dir in $PATH
! 13175: do
! 13176: IFS=$as_save_IFS
! 13177: case $as_dir in #(((
! 13178: '') as_dir=./ ;;
! 13179: */) ;;
! 13180: *) as_dir=$as_dir/ ;;
! 13181: esac
! 13182: for ac_exec_ext in '' $ac_executable_extensions; do
! 13183: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 13184: ac_cv_prog_ac_ct_CC="clang"
! 13185: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 13186: break 2
! 13187: fi
! 13188: done
! 13189: done
! 13190: IFS=$as_save_IFS
! 13191:
! 13192: fi
! 13193: fi
! 13194: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 13195: if test -n "$ac_ct_CC"; then
! 13196: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 13197: printf "%s\n" "$ac_ct_CC" >&6; }
! 13198: else
! 13199: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13200: printf "%s\n" "no" >&6; }
! 13201: fi
! 13202:
! 13203: if test "x$ac_ct_CC" = x; then
! 13204: CC=""
! 13205: else
! 13206: case $cross_compiling:$ac_tool_warned in
! 13207: yes:)
! 13208: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 13209: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.2 misho 13210: ac_tool_warned=yes ;;
13211: esac
13212: CC=$ac_ct_CC
13213: fi
1.1.1.3 ! misho 13214: else
! 13215: CC="$ac_cv_prog_CC"
1.1.1.2 misho 13216: fi
13217:
13218: fi
13219:
13220:
1.1.1.3 ! misho 13221: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 13222: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 13223: as_fn_error $? "no acceptable C compiler found in \$PATH
13224: See \`config.log' for more details" "$LINENO" 5; }
13225:
13226: # Provide some information about the compiler.
1.1.1.3 ! misho 13227: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1.1.2 misho 13228: set X $ac_compile
13229: ac_compiler=$2
1.1.1.3 ! misho 13230: for ac_option in --version -v -V -qversion -version; do
1.1.1.2 misho 13231: { { ac_try="$ac_compiler $ac_option >&5"
13232: case "(($ac_try" in
13233: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234: *) ac_try_echo=$ac_try;;
13235: esac
13236: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.3 ! misho 13237: printf "%s\n" "$ac_try_echo"; } >&5
1.1.1.2 misho 13238: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13239: ac_status=$?
13240: if test -s conftest.err; then
13241: sed '10a\
13242: ... rest of stderr output deleted ...
13243: 10q' conftest.err >conftest.er1
13244: cat conftest.er1 >&5
13245: fi
13246: rm -f conftest.er1 conftest.err
1.1.1.3 ! misho 13247: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.2 misho 13248: test $ac_status = 0; }
13249: done
13250:
1.1.1.3 ! misho 13251: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
! 13252: printf %s "checking whether the compiler supports GNU C... " >&6; }
! 13253: if test ${ac_cv_c_compiler_gnu+y}
! 13254: then :
! 13255: printf %s "(cached) " >&6
! 13256: else $as_nop
1.1.1.2 misho 13257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258: /* end confdefs.h. */
13259:
13260: int
1.1.1.3 ! misho 13261: main (void)
1.1.1.2 misho 13262: {
13263: #ifndef __GNUC__
13264: choke me
13265: #endif
13266:
13267: ;
13268: return 0;
13269: }
13270: _ACEOF
1.1.1.3 ! misho 13271: if ac_fn_c_try_compile "$LINENO"
! 13272: then :
1.1.1.2 misho 13273: ac_compiler_gnu=yes
1.1.1.3 ! misho 13274: else $as_nop
1.1.1.2 misho 13275: ac_compiler_gnu=no
13276: fi
1.1.1.3 ! misho 13277: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.2 misho 13278: ac_cv_c_compiler_gnu=$ac_compiler_gnu
13279:
13280: fi
1.1.1.3 ! misho 13281: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 13282: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
! 13283: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 13284:
1.1.1.2 misho 13285: if test $ac_compiler_gnu = yes; then
13286: GCC=yes
13287: else
13288: GCC=
13289: fi
1.1.1.3 ! misho 13290: ac_test_CFLAGS=${CFLAGS+y}
1.1.1.2 misho 13291: ac_save_CFLAGS=$CFLAGS
1.1.1.3 ! misho 13292: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 13293: printf %s "checking whether $CC accepts -g... " >&6; }
! 13294: if test ${ac_cv_prog_cc_g+y}
! 13295: then :
! 13296: printf %s "(cached) " >&6
! 13297: else $as_nop
1.1.1.2 misho 13298: ac_save_c_werror_flag=$ac_c_werror_flag
13299: ac_c_werror_flag=yes
13300: ac_cv_prog_cc_g=no
13301: CFLAGS="-g"
13302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303: /* end confdefs.h. */
13304:
13305: int
1.1.1.3 ! misho 13306: main (void)
1.1.1.2 misho 13307: {
13308:
13309: ;
13310: return 0;
13311: }
13312: _ACEOF
1.1.1.3 ! misho 13313: if ac_fn_c_try_compile "$LINENO"
! 13314: then :
1.1.1.2 misho 13315: ac_cv_prog_cc_g=yes
1.1.1.3 ! misho 13316: else $as_nop
1.1.1.2 misho 13317: CFLAGS=""
13318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319: /* end confdefs.h. */
13320:
13321: int
1.1.1.3 ! misho 13322: main (void)
1.1.1.2 misho 13323: {
13324:
13325: ;
13326: return 0;
13327: }
13328: _ACEOF
1.1.1.3 ! misho 13329: if ac_fn_c_try_compile "$LINENO"
! 13330: then :
1.1.1.2 misho 13331:
1.1.1.3 ! misho 13332: else $as_nop
1.1.1.2 misho 13333: ac_c_werror_flag=$ac_save_c_werror_flag
13334: CFLAGS="-g"
13335: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336: /* end confdefs.h. */
13337:
13338: int
1.1.1.3 ! misho 13339: main (void)
1.1.1.2 misho 13340: {
13341:
13342: ;
13343: return 0;
13344: }
13345: _ACEOF
1.1.1.3 ! misho 13346: if ac_fn_c_try_compile "$LINENO"
! 13347: then :
1.1.1.2 misho 13348: ac_cv_prog_cc_g=yes
13349: fi
1.1.1.3 ! misho 13350: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.2 misho 13351: fi
1.1.1.3 ! misho 13352: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.2 misho 13353: fi
1.1.1.3 ! misho 13354: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.2 misho 13355: ac_c_werror_flag=$ac_save_c_werror_flag
13356: fi
1.1.1.3 ! misho 13357: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 13358: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
! 13359: if test $ac_test_CFLAGS; then
1.1.1.2 misho 13360: CFLAGS=$ac_save_CFLAGS
13361: elif test $ac_cv_prog_cc_g = yes; then
13362: if test "$GCC" = yes; then
13363: CFLAGS="-g -O2"
13364: else
13365: CFLAGS="-g"
13366: fi
13367: else
13368: if test "$GCC" = yes; then
13369: CFLAGS="-O2"
13370: else
13371: CFLAGS=
13372: fi
13373: fi
1.1.1.3 ! misho 13374: ac_prog_cc_stdc=no
! 13375: if test x$ac_prog_cc_stdc = xno
! 13376: then :
! 13377: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
! 13378: printf %s "checking for $CC option to enable C11 features... " >&6; }
! 13379: if test ${ac_cv_prog_cc_c11+y}
! 13380: then :
! 13381: printf %s "(cached) " >&6
! 13382: else $as_nop
! 13383: ac_cv_prog_cc_c11=no
1.1.1.2 misho 13384: ac_save_CC=$CC
13385: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386: /* end confdefs.h. */
1.1.1.3 ! misho 13387: $ac_c_conftest_c11_program
! 13388: _ACEOF
! 13389: for ac_arg in '' -std=gnu11
! 13390: do
! 13391: CC="$ac_save_CC $ac_arg"
! 13392: if ac_fn_c_try_compile "$LINENO"
! 13393: then :
! 13394: ac_cv_prog_cc_c11=$ac_arg
! 13395: fi
! 13396: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 13397: test "x$ac_cv_prog_cc_c11" != "xno" && break
! 13398: done
! 13399: rm -f conftest.$ac_ext
! 13400: CC=$ac_save_CC
! 13401: fi
1.1.1.2 misho 13402:
1.1.1.3 ! misho 13403: if test "x$ac_cv_prog_cc_c11" = xno
! 13404: then :
! 13405: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 13406: printf "%s\n" "unsupported" >&6; }
! 13407: else $as_nop
! 13408: if test "x$ac_cv_prog_cc_c11" = x
! 13409: then :
! 13410: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 13411: printf "%s\n" "none needed" >&6; }
! 13412: else $as_nop
! 13413: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
! 13414: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
! 13415: CC="$CC $ac_cv_prog_cc_c11"
! 13416: fi
! 13417: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
! 13418: ac_prog_cc_stdc=c11
! 13419: fi
! 13420: fi
! 13421: if test x$ac_prog_cc_stdc = xno
! 13422: then :
! 13423: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
! 13424: printf %s "checking for $CC option to enable C99 features... " >&6; }
! 13425: if test ${ac_cv_prog_cc_c99+y}
! 13426: then :
! 13427: printf %s "(cached) " >&6
! 13428: else $as_nop
! 13429: ac_cv_prog_cc_c99=no
! 13430: ac_save_CC=$CC
! 13431: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 13432: /* end confdefs.h. */
! 13433: $ac_c_conftest_c99_program
! 13434: _ACEOF
! 13435: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
! 13436: do
! 13437: CC="$ac_save_CC $ac_arg"
! 13438: if ac_fn_c_try_compile "$LINENO"
! 13439: then :
! 13440: ac_cv_prog_cc_c99=$ac_arg
! 13441: fi
! 13442: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 13443: test "x$ac_cv_prog_cc_c99" != "xno" && break
! 13444: done
! 13445: rm -f conftest.$ac_ext
! 13446: CC=$ac_save_CC
! 13447: fi
1.1.1.2 misho 13448:
1.1.1.3 ! misho 13449: if test "x$ac_cv_prog_cc_c99" = xno
! 13450: then :
! 13451: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 13452: printf "%s\n" "unsupported" >&6; }
! 13453: else $as_nop
! 13454: if test "x$ac_cv_prog_cc_c99" = x
! 13455: then :
! 13456: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 13457: printf "%s\n" "none needed" >&6; }
! 13458: else $as_nop
! 13459: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
! 13460: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
! 13461: CC="$CC $ac_cv_prog_cc_c99"
! 13462: fi
! 13463: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
! 13464: ac_prog_cc_stdc=c99
! 13465: fi
! 13466: fi
! 13467: if test x$ac_prog_cc_stdc = xno
! 13468: then :
! 13469: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
! 13470: printf %s "checking for $CC option to enable C89 features... " >&6; }
! 13471: if test ${ac_cv_prog_cc_c89+y}
! 13472: then :
! 13473: printf %s "(cached) " >&6
! 13474: else $as_nop
! 13475: ac_cv_prog_cc_c89=no
! 13476: ac_save_CC=$CC
! 13477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 13478: /* end confdefs.h. */
! 13479: $ac_c_conftest_c89_program
1.1.1.2 misho 13480: _ACEOF
1.1.1.3 ! misho 13481: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.1.2 misho 13482: do
13483: CC="$ac_save_CC $ac_arg"
1.1.1.3 ! misho 13484: if ac_fn_c_try_compile "$LINENO"
! 13485: then :
1.1.1.2 misho 13486: ac_cv_prog_cc_c89=$ac_arg
13487: fi
1.1.1.3 ! misho 13488: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.1.1.2 misho 13489: test "x$ac_cv_prog_cc_c89" != "xno" && break
13490: done
13491: rm -f conftest.$ac_ext
13492: CC=$ac_save_CC
13493: fi
13494:
1.1.1.3 ! misho 13495: if test "x$ac_cv_prog_cc_c89" = xno
! 13496: then :
! 13497: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 13498: printf "%s\n" "unsupported" >&6; }
! 13499: else $as_nop
! 13500: if test "x$ac_cv_prog_cc_c89" = x
! 13501: then :
! 13502: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 13503: printf "%s\n" "none needed" >&6; }
! 13504: else $as_nop
! 13505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 13506: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
! 13507: CC="$CC $ac_cv_prog_cc_c89"
! 13508: fi
! 13509: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
! 13510: ac_prog_cc_stdc=c89
! 13511: fi
1.1.1.2 misho 13512: fi
13513:
13514: ac_ext=c
13515: ac_cpp='$CPP $CPPFLAGS'
13516: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13519:
1.1.1.3 ! misho 13520:
! 13521: ac_ext=c
1.1.1.2 misho 13522: ac_cpp='$CPP $CPPFLAGS'
13523: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13524: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.3 ! misho 13526: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
! 13527: printf %s "checking whether $CC understands -c and -o together... " >&6; }
! 13528: if test ${am_cv_prog_cc_c_o+y}
! 13529: then :
! 13530: printf %s "(cached) " >&6
! 13531: else $as_nop
1.1.1.2 misho 13532: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533: /* end confdefs.h. */
13534:
13535: int
1.1.1.3 ! misho 13536: main (void)
1.1.1.2 misho 13537: {
13538:
13539: ;
13540: return 0;
13541: }
13542: _ACEOF
13543: # Make sure it works both with $CC and with simple cc.
13544: # Following AC_PROG_CC_C_O, we do the test twice because some
13545: # compilers refuse to overwrite an existing .o file with -o,
13546: # though they will create one.
13547: am_cv_prog_cc_c_o=yes
13548: for am_i in 1 2; do
13549: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13550: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13551: ac_status=$?
13552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553: (exit $ac_status); } \
13554: && test -f conftest2.$ac_objext; then
13555: : OK
13556: else
13557: am_cv_prog_cc_c_o=no
13558: break
13559: fi
13560: done
13561: rm -f core conftest*
13562: unset am_i
13563: fi
1.1.1.3 ! misho 13564: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
! 13565: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.1.1.2 misho 13566: if test "$am_cv_prog_cc_c_o" != yes; then
13567: # Losing compiler, so override with the script.
13568: # FIXME: It is wrong to rewrite CC.
13569: # But if we don't then we get into trouble of one sort or another.
13570: # A longer-term fix would be to have automake use am__CC in this case,
13571: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13572: CC="$am_aux_dir/compile $CC"
13573: fi
13574: ac_ext=c
13575: ac_cpp='$CPP $CPPFLAGS'
13576: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13577: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13578: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13579:
13580:
13581: depcc="$CC" am_compiler_list=
13582:
1.1.1.3 ! misho 13583: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 13584: printf %s "checking dependency style of $depcc... " >&6; }
! 13585: if test ${am_cv_CC_dependencies_compiler_type+y}
! 13586: then :
! 13587: printf %s "(cached) " >&6
! 13588: else $as_nop
1.1.1.2 misho 13589: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13590: # We make a subdir and do the tests there. Otherwise we can end up
13591: # making bogus files that we don't know about and never remove. For
13592: # instance it was reported that on HP-UX the gcc test will end up
13593: # making a dummy file named 'D' -- because '-MD' means "put the output
13594: # in D".
13595: rm -rf conftest.dir
13596: mkdir conftest.dir
13597: # Copy depcomp to subdir because otherwise we won't find it if we're
13598: # using a relative directory.
13599: cp "$am_depcomp" conftest.dir
13600: cd conftest.dir
13601: # We will build objects and dependencies in a subdirectory because
13602: # it helps to detect inapplicable dependency modes. For instance
13603: # both Tru64's cc and ICC support -MD to output dependencies as a
13604: # side effect of compilation, but ICC will put the dependencies in
13605: # the current directory while Tru64 will put them in the object
13606: # directory.
13607: mkdir sub
13608:
13609: am_cv_CC_dependencies_compiler_type=none
13610: if test "$am_compiler_list" = ""; then
13611: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13612: fi
13613: am__universal=false
13614: case " $depcc " in #(
13615: *\ -arch\ *\ -arch\ *) am__universal=true ;;
13616: esac
13617:
13618: for depmode in $am_compiler_list; do
13619: # Setup a source with many dependencies, because some compilers
13620: # like to wrap large dependency lists on column 80 (with \), and
13621: # we should not choose a depcomp mode which is confused by this.
13622: #
13623: # We need to recreate these files for each test, as the compiler may
13624: # overwrite some of them when testing with obscure command lines.
13625: # This happens at least with the AIX C compiler.
13626: : > sub/conftest.c
13627: for i in 1 2 3 4 5 6; do
13628: echo '#include "conftst'$i'.h"' >> sub/conftest.c
13629: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13630: # Solaris 10 /bin/sh.
13631: echo '/* dummy */' > sub/conftst$i.h
13632: done
13633: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13634:
13635: # We check with '-c' and '-o' for the sake of the "dashmstdout"
13636: # mode. It turns out that the SunPro C++ compiler does not properly
13637: # handle '-M -o', and we need to detect this. Also, some Intel
13638: # versions had trouble with output in subdirs.
13639: am__obj=sub/conftest.${OBJEXT-o}
13640: am__minus_obj="-o $am__obj"
13641: case $depmode in
13642: gcc)
13643: # This depmode causes a compiler race in universal mode.
13644: test "$am__universal" = false || continue
13645: ;;
13646: nosideeffect)
13647: # After this tag, mechanisms are not by side-effect, so they'll
13648: # only be used when explicitly requested.
13649: if test "x$enable_dependency_tracking" = xyes; then
13650: continue
13651: else
13652: break
13653: fi
13654: ;;
13655: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13656: # This compiler won't grok '-c -o', but also, the minuso test has
13657: # not run yet. These depmodes are late enough in the game, and
13658: # so weak that their functioning should not be impacted.
13659: am__obj=conftest.${OBJEXT-o}
13660: am__minus_obj=
13661: ;;
13662: none) break ;;
13663: esac
13664: if depmode=$depmode \
13665: source=sub/conftest.c object=$am__obj \
13666: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13667: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13668: >/dev/null 2>conftest.err &&
13669: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13670: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13671: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13672: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13673: # icc doesn't choke on unknown options, it will just issue warnings
13674: # or remarks (even with -Werror). So we grep stderr for any message
13675: # that says an option was ignored or not supported.
13676: # When given -MP, icc 7.0 and 7.1 complain thusly:
13677: # icc: Command line warning: ignoring option '-M'; no argument required
13678: # The diagnosis changed in icc 8.0:
13679: # icc: Command line remark: option '-MP' not supported
13680: if (grep 'ignoring option' conftest.err ||
13681: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13682: am_cv_CC_dependencies_compiler_type=$depmode
13683: break
13684: fi
13685: fi
13686: done
13687:
13688: cd ..
13689: rm -rf conftest.dir
13690: else
13691: am_cv_CC_dependencies_compiler_type=none
13692: fi
13693:
13694: fi
1.1.1.3 ! misho 13695: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 13696: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.1.1.2 misho 13697: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13698:
13699: if
13700: test "x$enable_dependency_tracking" != xno \
13701: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13702: am__fastdepCC_TRUE=
13703: am__fastdepCC_FALSE='#'
13704: else
13705: am__fastdepCC_TRUE='#'
13706: am__fastdepCC_FALSE=
13707: fi
13708:
13709:
13710: if test -n "$ac_tool_prefix"; then
13711: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13712: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.3 ! misho 13713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13714: printf %s "checking for $ac_word... " >&6; }
! 13715: if test ${ac_cv_prog_RANLIB+y}
! 13716: then :
! 13717: printf %s "(cached) " >&6
! 13718: else $as_nop
1.1.1.2 misho 13719: if test -n "$RANLIB"; then
13720: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13721: else
13722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723: for as_dir in $PATH
13724: do
13725: IFS=$as_save_IFS
1.1.1.3 ! misho 13726: case $as_dir in #(((
! 13727: '') as_dir=./ ;;
! 13728: */) ;;
! 13729: *) as_dir=$as_dir/ ;;
! 13730: esac
1.1.1.2 misho 13731: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 13732: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 13733: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1.1.3 ! misho 13734: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 13735: break 2
13736: fi
13737: done
13738: done
13739: IFS=$as_save_IFS
13740:
13741: fi
13742: fi
13743: RANLIB=$ac_cv_prog_RANLIB
13744: if test -n "$RANLIB"; then
1.1.1.3 ! misho 13745: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 13746: printf "%s\n" "$RANLIB" >&6; }
1.1.1.2 misho 13747: else
1.1.1.3 ! misho 13748: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13749: printf "%s\n" "no" >&6; }
1.1.1.2 misho 13750: fi
13751:
13752:
13753: fi
13754: if test -z "$ac_cv_prog_RANLIB"; then
13755: ac_ct_RANLIB=$RANLIB
13756: # Extract the first word of "ranlib", so it can be a program name with args.
13757: set dummy ranlib; ac_word=$2
1.1.1.3 ! misho 13758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 13759: printf %s "checking for $ac_word... " >&6; }
! 13760: if test ${ac_cv_prog_ac_ct_RANLIB+y}
! 13761: then :
! 13762: printf %s "(cached) " >&6
! 13763: else $as_nop
1.1.1.2 misho 13764: if test -n "$ac_ct_RANLIB"; then
13765: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13766: else
13767: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13768: for as_dir in $PATH
13769: do
13770: IFS=$as_save_IFS
1.1.1.3 ! misho 13771: case $as_dir in #(((
! 13772: '') as_dir=./ ;;
! 13773: */) ;;
! 13774: *) as_dir=$as_dir/ ;;
! 13775: esac
1.1.1.2 misho 13776: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 13777: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 13778: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.1.1.3 ! misho 13779: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 13780: break 2
13781: fi
13782: done
13783: done
13784: IFS=$as_save_IFS
13785:
13786: fi
13787: fi
13788: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13789: if test -n "$ac_ct_RANLIB"; then
1.1.1.3 ! misho 13790: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 13791: printf "%s\n" "$ac_ct_RANLIB" >&6; }
1.1.1.2 misho 13792: else
1.1.1.3 ! misho 13793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 13794: printf "%s\n" "no" >&6; }
1.1.1.2 misho 13795: fi
13796:
13797: if test "x$ac_ct_RANLIB" = x; then
13798: RANLIB=":"
13799: else
13800: case $cross_compiling:$ac_tool_warned in
13801: yes:)
1.1.1.3 ! misho 13802: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 13803: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.2 misho 13804: ac_tool_warned=yes ;;
13805: esac
13806: RANLIB=$ac_ct_RANLIB
13807: fi
13808: else
13809: RANLIB="$ac_cv_prog_RANLIB"
13810: fi
13811:
1.1.1.3 ! misho 13812: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 13813: printf %s "checking whether ln -s works... " >&6; }
1.1.1.2 misho 13814: LN_S=$as_ln_s
13815: if test "$LN_S" = "ln -s"; then
1.1.1.3 ! misho 13816: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 13817: printf "%s\n" "yes" >&6; }
1.1.1.2 misho 13818: else
1.1.1.3 ! misho 13819: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 13820: printf "%s\n" "no, using $LN_S" >&6; }
1.1.1.2 misho 13821: fi
13822:
13823:
13824:
13825: # Add -Wall if we are using GCC.
13826: if test "x$GCC" = "xyes"; then
13827: CFLAGS="$CFLAGS -Wall"
13828: fi
13829:
13830: # Check if enable profiling
13831: # Check whether --enable-profiling was given.
1.1.1.3 ! misho 13832: if test ${enable_profiling+y}
! 13833: then :
1.1.1.2 misho 13834: enableval=$enable_profiling;
13835: fi
13836:
13837: if test x$enable_profiling = xyes; then
13838: ENABLE_PROFILING_TRUE=
13839: ENABLE_PROFILING_FALSE='#'
13840: else
13841: ENABLE_PROFILING_TRUE='#'
13842: ENABLE_PROFILING_FALSE=
13843: fi
13844:
13845:
1.1 misho 13846: # Check for the math library (needed by cjson on some platforms)
1.1.1.3 ! misho 13847: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
! 13848: printf %s "checking for library containing floor... " >&6; }
! 13849: if test ${ac_cv_search_floor+y}
! 13850: then :
! 13851: printf %s "(cached) " >&6
! 13852: else $as_nop
1.1 misho 13853: ac_func_search_save_LIBS=$LIBS
13854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855: /* end confdefs.h. */
13856:
13857: /* Override any GCC internal prototype to avoid an error.
13858: Use char because int might match the return type of a GCC
13859: builtin and then its argument prototype would still apply. */
13860: char floor ();
13861: int
1.1.1.3 ! misho 13862: main (void)
1.1 misho 13863: {
13864: return floor ();
13865: ;
13866: return 0;
13867: }
13868: _ACEOF
1.1.1.3 ! misho 13869: for ac_lib in '' m
! 13870: do
1.1 misho 13871: if test -z "$ac_lib"; then
13872: ac_res="none required"
13873: else
13874: ac_res=-l$ac_lib
13875: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13876: fi
1.1.1.3 ! misho 13877: if ac_fn_c_try_link "$LINENO"
! 13878: then :
1.1 misho 13879: ac_cv_search_floor=$ac_res
13880: fi
1.1.1.3 ! misho 13881: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 13882: conftest$ac_exeext
1.1.1.3 ! misho 13883: if test ${ac_cv_search_floor+y}
! 13884: then :
1.1 misho 13885: break
13886: fi
13887: done
1.1.1.3 ! misho 13888: if test ${ac_cv_search_floor+y}
! 13889: then :
1.1 misho 13890:
1.1.1.3 ! misho 13891: else $as_nop
1.1 misho 13892: ac_cv_search_floor=no
13893: fi
13894: rm conftest.$ac_ext
13895: LIBS=$ac_func_search_save_LIBS
13896: fi
1.1.1.3 ! misho 13897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
! 13898: printf "%s\n" "$ac_cv_search_floor" >&6; }
1.1 misho 13899: ac_res=$ac_cv_search_floor
1.1.1.3 ! misho 13900: if test "$ac_res" != no
! 13901: then :
1.1 misho 13902: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13903:
1.1.1.3 ! misho 13904: else $as_nop
1.1 misho 13905:
13906: echo "floor()"
13907: exit 1
13908:
13909: fi
13910:
13911:
13912: # On illumos we need -lsocket
1.1.1.3 ! misho 13913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
! 13914: printf %s "checking for library containing socket... " >&6; }
! 13915: if test ${ac_cv_search_socket+y}
! 13916: then :
! 13917: printf %s "(cached) " >&6
! 13918: else $as_nop
1.1 misho 13919: ac_func_search_save_LIBS=$LIBS
13920: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921: /* end confdefs.h. */
13922:
13923: /* Override any GCC internal prototype to avoid an error.
13924: Use char because int might match the return type of a GCC
13925: builtin and then its argument prototype would still apply. */
13926: char socket ();
13927: int
1.1.1.3 ! misho 13928: main (void)
1.1 misho 13929: {
13930: return socket ();
13931: ;
13932: return 0;
13933: }
13934: _ACEOF
1.1.1.3 ! misho 13935: for ac_lib in '' socket
! 13936: do
1.1 misho 13937: if test -z "$ac_lib"; then
13938: ac_res="none required"
13939: else
13940: ac_res=-l$ac_lib
13941: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13942: fi
1.1.1.3 ! misho 13943: if ac_fn_c_try_link "$LINENO"
! 13944: then :
1.1 misho 13945: ac_cv_search_socket=$ac_res
13946: fi
1.1.1.3 ! misho 13947: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 13948: conftest$ac_exeext
1.1.1.3 ! misho 13949: if test ${ac_cv_search_socket+y}
! 13950: then :
1.1 misho 13951: break
13952: fi
13953: done
1.1.1.3 ! misho 13954: if test ${ac_cv_search_socket+y}
! 13955: then :
1.1 misho 13956:
1.1.1.3 ! misho 13957: else $as_nop
1.1 misho 13958: ac_cv_search_socket=no
13959: fi
13960: rm conftest.$ac_ext
13961: LIBS=$ac_func_search_save_LIBS
13962: fi
1.1.1.3 ! misho 13963: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
! 13964: printf "%s\n" "$ac_cv_search_socket" >&6; }
1.1 misho 13965: ac_res=$ac_cv_search_socket
1.1.1.3 ! misho 13966: if test "$ac_res" != no
! 13967: then :
1.1 misho 13968: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13969:
1.1.1.3 ! misho 13970: else $as_nop
1.1 misho 13971:
13972: echo "socket()"
13973: exit 1
13974:
13975: fi
13976:
13977:
13978: # On illumos inet_ntop in in -lnsl
1.1.1.3 ! misho 13979: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
! 13980: printf %s "checking for library containing inet_ntop... " >&6; }
! 13981: if test ${ac_cv_search_inet_ntop+y}
! 13982: then :
! 13983: printf %s "(cached) " >&6
! 13984: else $as_nop
1.1 misho 13985: ac_func_search_save_LIBS=$LIBS
13986: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987: /* end confdefs.h. */
13988:
13989: /* Override any GCC internal prototype to avoid an error.
13990: Use char because int might match the return type of a GCC
13991: builtin and then its argument prototype would still apply. */
13992: char inet_ntop ();
13993: int
1.1.1.3 ! misho 13994: main (void)
1.1 misho 13995: {
13996: return inet_ntop ();
13997: ;
13998: return 0;
13999: }
14000: _ACEOF
1.1.1.3 ! misho 14001: for ac_lib in '' nsl
! 14002: do
1.1 misho 14003: if test -z "$ac_lib"; then
14004: ac_res="none required"
14005: else
14006: ac_res=-l$ac_lib
14007: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14008: fi
1.1.1.3 ! misho 14009: if ac_fn_c_try_link "$LINENO"
! 14010: then :
1.1 misho 14011: ac_cv_search_inet_ntop=$ac_res
14012: fi
1.1.1.3 ! misho 14013: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 14014: conftest$ac_exeext
1.1.1.3 ! misho 14015: if test ${ac_cv_search_inet_ntop+y}
! 14016: then :
1.1 misho 14017: break
14018: fi
14019: done
1.1.1.3 ! misho 14020: if test ${ac_cv_search_inet_ntop+y}
! 14021: then :
1.1 misho 14022:
1.1.1.3 ! misho 14023: else $as_nop
1.1 misho 14024: ac_cv_search_inet_ntop=no
14025: fi
14026: rm conftest.$ac_ext
14027: LIBS=$ac_func_search_save_LIBS
14028: fi
1.1.1.3 ! misho 14029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
! 14030: printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
1.1 misho 14031: ac_res=$ac_cv_search_inet_ntop
1.1.1.3 ! misho 14032: if test "$ac_res" != no
! 14033: then :
1.1 misho 14034: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14035:
1.1.1.3 ! misho 14036: else $as_nop
1.1 misho 14037:
14038: echo "inet_ntop()"
14039: exit 1
14040:
14041: fi
14042:
14043:
14044: # Checks for typedefs, structures, and compiler characteristics.
1.1.1.3 ! misho 14045: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
! 14046: printf %s "checking for an ANSI C-conforming const... " >&6; }
! 14047: if test ${ac_cv_c_const+y}
! 14048: then :
! 14049: printf %s "(cached) " >&6
! 14050: else $as_nop
1.1 misho 14051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052: /* end confdefs.h. */
14053:
14054: int
1.1.1.3 ! misho 14055: main (void)
1.1 misho 14056: {
14057:
14058: #ifndef __cplusplus
14059: /* Ultrix mips cc rejects this sort of thing. */
14060: typedef int charset[2];
14061: const charset cs = { 0, 0 };
14062: /* SunOS 4.1.1 cc rejects this. */
14063: char const *const *pcpcc;
14064: char **ppc;
14065: /* NEC SVR4.0.2 mips cc rejects this. */
14066: struct point {int x, y;};
14067: static struct point const zero = {0,0};
1.1.1.3 ! misho 14068: /* IBM XL C 1.02.0.0 rejects this.
1.1 misho 14069: It does not let you subtract one const X* pointer from another in
14070: an arm of an if-expression whose if-part is not a constant
14071: expression */
14072: const char *g = "string";
14073: pcpcc = &g + (g ? g-g : 0);
14074: /* HPUX 7.0 cc rejects these. */
14075: ++pcpcc;
14076: ppc = (char**) pcpcc;
14077: pcpcc = (char const *const *) ppc;
14078: { /* SCO 3.2v4 cc rejects this sort of thing. */
14079: char tx;
14080: char *t = &tx;
14081: char const *s = 0 ? (char *) 0 : (char const *) 0;
14082:
14083: *t++ = 0;
14084: if (s) return 0;
14085: }
14086: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14087: int x[] = {25, 17};
14088: const int *foo = &x[0];
14089: ++foo;
14090: }
14091: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14092: typedef const int *iptr;
14093: iptr p = 0;
14094: ++p;
14095: }
1.1.1.3 ! misho 14096: { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
1.1 misho 14097: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14098: struct s { int j; const int *ap[3]; } bx;
14099: struct s *b = &bx; b->j = 5;
14100: }
14101: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14102: const int foo = 10;
14103: if (!foo) return 0;
14104: }
14105: return !cs[0] && !zero.x;
14106: #endif
14107:
14108: ;
14109: return 0;
14110: }
14111: _ACEOF
1.1.1.3 ! misho 14112: if ac_fn_c_try_compile "$LINENO"
! 14113: then :
1.1 misho 14114: ac_cv_c_const=yes
1.1.1.3 ! misho 14115: else $as_nop
1.1.1.2 misho 14116: ac_cv_c_const=no
14117: fi
1.1.1.3 ! misho 14118: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.2 misho 14119: fi
1.1.1.3 ! misho 14120: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
! 14121: printf "%s\n" "$ac_cv_c_const" >&6; }
1.1.1.2 misho 14122: if test $ac_cv_c_const = no; then
14123:
1.1.1.3 ! misho 14124: printf "%s\n" "#define const /**/" >>confdefs.h
1.1.1.2 misho 14125:
14126: fi
14127:
14128:
14129: # Check for poll.h (it's in POSIX so everyone should have it?)
1.1.1.3 ! misho 14130: ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
! 14131: if test "x$ac_cv_header_poll_h" = xyes
! 14132: then :
! 14133: printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
1.1.1.2 misho 14134:
14135: fi
14136:
14137:
14138: # SCTP. Allow user to disable SCTP support with --without-sctp.
14139: # Otherwise we try to find whatever support is required.
14140: try_sctp=true
14141:
14142: # Check whether --with-sctp was given.
1.1.1.3 ! misho 14143: if test ${with_sctp+y}
! 14144: then :
1.1.1.2 misho 14145: withval=$with_sctp;
14146: case "$withval" in
14147: y | ye | yes)
14148: ;;
14149: n | no)
14150: try_sctp=false
14151: ;;
14152: *)
14153: as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
14154: ;;
14155: esac
14156:
1.1.1.3 ! misho 14157: else $as_nop
1.1.1.2 misho 14158:
14159: try_sctp=true
1.1 misho 14160:
14161:
14162: fi
14163:
14164:
1.1.1.3 ! misho 14165: ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
! 14166: if test "x$ac_cv_header_linux_tcp_h" = xyes
! 14167: then :
! 14168: printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
! 14169:
! 14170: fi
! 14171:
! 14172:
1.1 misho 14173: # Check for SCTP support
1.1.1.2 misho 14174: if $try_sctp; then
1.1.1.3 ! misho 14175: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
! 14176: if test "x$ac_cv_header_sys_socket_h" = xyes
! 14177: then :
! 14178: printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
1.1 misho 14179:
14180: fi
14181:
1.1.1.3 ! misho 14182: for ac_header in netinet/sctp.h
1.1 misho 14183: do :
14184: ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
14185: #include <sys/socket.h>
14186: #endif
14187:
14188: "
1.1.1.3 ! misho 14189: if test "x$ac_cv_header_netinet_sctp_h" = xyes
! 14190: then :
! 14191: printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h
! 14192:
! 14193: printf "%s\n" "#define HAVE_SCTP_H 1" >>confdefs.h
! 14194:
! 14195: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
! 14196: printf %s "checking for library containing sctp_bindx... " >&6; }
! 14197: if test ${ac_cv_search_sctp_bindx+y}
! 14198: then :
! 14199: printf %s "(cached) " >&6
! 14200: else $as_nop
1.1 misho 14201: ac_func_search_save_LIBS=$LIBS
14202: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203: /* end confdefs.h. */
14204:
14205: /* Override any GCC internal prototype to avoid an error.
14206: Use char because int might match the return type of a GCC
14207: builtin and then its argument prototype would still apply. */
14208: char sctp_bindx ();
14209: int
1.1.1.3 ! misho 14210: main (void)
1.1 misho 14211: {
14212: return sctp_bindx ();
14213: ;
14214: return 0;
14215: }
14216: _ACEOF
1.1.1.3 ! misho 14217: for ac_lib in '' sctp
! 14218: do
1.1 misho 14219: if test -z "$ac_lib"; then
14220: ac_res="none required"
14221: else
14222: ac_res=-l$ac_lib
14223: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14224: fi
1.1.1.3 ! misho 14225: if ac_fn_c_try_link "$LINENO"
! 14226: then :
1.1 misho 14227: ac_cv_search_sctp_bindx=$ac_res
14228: fi
1.1.1.3 ! misho 14229: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 misho 14230: conftest$ac_exeext
1.1.1.3 ! misho 14231: if test ${ac_cv_search_sctp_bindx+y}
! 14232: then :
1.1 misho 14233: break
14234: fi
14235: done
1.1.1.3 ! misho 14236: if test ${ac_cv_search_sctp_bindx+y}
! 14237: then :
1.1 misho 14238:
1.1.1.3 ! misho 14239: else $as_nop
1.1 misho 14240: ac_cv_search_sctp_bindx=no
14241: fi
14242: rm conftest.$ac_ext
14243: LIBS=$ac_func_search_save_LIBS
14244: fi
1.1.1.3 ! misho 14245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
! 14246: printf "%s\n" "$ac_cv_search_sctp_bindx" >&6; }
1.1 misho 14247: ac_res=$ac_cv_search_sctp_bindx
1.1.1.3 ! misho 14248: if test "$ac_res" != no
! 14249: then :
1.1 misho 14250: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14251:
14252: fi
14253:
14254:
14255: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
14256: # -------------------------------------------
14257: # Tests whether TYPE exists after having included INCLUDES, setting cache
14258: # variable VAR accordingly.
14259: ac_fn_c_check_type ()
14260: {
14261: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 14262: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 14263: printf %s "checking for $2... " >&6; }
! 14264: if eval test \${$3+y}
! 14265: then :
! 14266: printf %s "(cached) " >&6
! 14267: else $as_nop
1.1 misho 14268: eval "$3=no"
14269: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270: /* end confdefs.h. */
14271: $4
14272: int
1.1.1.3 ! misho 14273: main (void)
1.1 misho 14274: {
14275: if (sizeof ($2))
14276: return 0;
14277: ;
14278: return 0;
14279: }
14280: _ACEOF
1.1.1.3 ! misho 14281: if ac_fn_c_try_compile "$LINENO"
! 14282: then :
1.1 misho 14283: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284: /* end confdefs.h. */
14285: $4
14286: int
1.1.1.3 ! misho 14287: main (void)
1.1 misho 14288: {
14289: if (sizeof (($2)))
14290: return 0;
14291: ;
14292: return 0;
14293: }
14294: _ACEOF
1.1.1.3 ! misho 14295: if ac_fn_c_try_compile "$LINENO"
! 14296: then :
1.1 misho 14297:
1.1.1.3 ! misho 14298: else $as_nop
1.1 misho 14299: eval "$3=yes"
14300: fi
1.1.1.3 ! misho 14301: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 14302: fi
1.1.1.3 ! misho 14303: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 14304: fi
14305: eval ac_res=\$$3
1.1.1.3 ! misho 14306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 14307: printf "%s\n" "$ac_res" >&6; }
1.1 misho 14308: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14309:
14310: } # ac_fn_c_check_type
14311: ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
14312: "
1.1.1.3 ! misho 14313: if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes
! 14314: then :
1.1 misho 14315:
1.1.1.3 ! misho 14316: printf "%s\n" "#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1" >>confdefs.h
1.1 misho 14317:
14318:
14319: fi
14320:
14321: fi
14322:
14323: done
1.1.1.2 misho 14324: fi
14325:
1.1.1.3 ! misho 14326: ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
! 14327: if test "x$ac_cv_header_endian_h" = xyes
! 14328: then :
1.1.1.2 misho 14329:
1.1.1.3 ! misho 14330: printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
1.1.1.2 misho 14331:
1.1.1.3 ! misho 14332: else $as_nop
! 14333: ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
! 14334: if test "x$ac_cv_header_sys_endian_h" = xyes
! 14335: then :
1.1.1.2 misho 14336:
1.1.1.3 ! misho 14337: printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
1.1.1.2 misho 14338:
1.1.1.3 ! misho 14339: else $as_nop
! 14340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
! 14341: printf "%s\n" "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
1.1.1.2 misho 14342:
14343: fi
14344:
14345:
14346: fi
14347:
14348:
14349: if test "x$with_openssl" = "xno"; then
1.1.1.3 ! misho 14350: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
! 14351: printf "%s\n" "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
1.1.1.2 misho 14352: else
14353: # Check for OPENSSL support
14354: havs_ssl=false
14355:
14356: found=false
14357:
14358: # Check whether --with-openssl was given.
1.1.1.3 ! misho 14359: if test ${with_openssl+y}
! 14360: then :
1.1.1.2 misho 14361: withval=$with_openssl;
14362: case "$withval" in
14363: "" | y | ye | yes | n | no)
14364: as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
14365: ;;
14366: *) ssldirs="$withval"
14367: ;;
14368: esac
14369:
1.1.1.3 ! misho 14370: else $as_nop
1.1.1.2 misho 14371:
14372: # if pkg-config is installed and openssl has installed a .pc file,
14373: # then use that information and don't search ssldirs
14374: if test -n "$ac_tool_prefix"; then
14375: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14376: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1.1.1.3 ! misho 14377: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 14378: printf %s "checking for $ac_word... " >&6; }
! 14379: if test ${ac_cv_prog_PKG_CONFIG+y}
! 14380: then :
! 14381: printf %s "(cached) " >&6
! 14382: else $as_nop
1.1.1.2 misho 14383: if test -n "$PKG_CONFIG"; then
14384: ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
14385: else
14386: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387: for as_dir in $PATH
14388: do
14389: IFS=$as_save_IFS
1.1.1.3 ! misho 14390: case $as_dir in #(((
! 14391: '') as_dir=./ ;;
! 14392: */) ;;
! 14393: *) as_dir=$as_dir/ ;;
! 14394: esac
1.1.1.2 misho 14395: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 14396: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 14397: ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
1.1.1.3 ! misho 14398: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 14399: break 2
14400: fi
14401: done
14402: done
14403: IFS=$as_save_IFS
14404:
14405: fi
14406: fi
14407: PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
14408: if test -n "$PKG_CONFIG"; then
1.1.1.3 ! misho 14409: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
! 14410: printf "%s\n" "$PKG_CONFIG" >&6; }
1.1.1.2 misho 14411: else
1.1.1.3 ! misho 14412: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 14413: printf "%s\n" "no" >&6; }
1.1.1.2 misho 14414: fi
14415:
14416:
14417: fi
14418: if test -z "$ac_cv_prog_PKG_CONFIG"; then
14419: ac_ct_PKG_CONFIG=$PKG_CONFIG
14420: # Extract the first word of "pkg-config", so it can be a program name with args.
14421: set dummy pkg-config; ac_word=$2
1.1.1.3 ! misho 14422: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 14423: printf %s "checking for $ac_word... " >&6; }
! 14424: if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
! 14425: then :
! 14426: printf %s "(cached) " >&6
! 14427: else $as_nop
1.1.1.2 misho 14428: if test -n "$ac_ct_PKG_CONFIG"; then
14429: ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
14430: else
14431: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432: for as_dir in $PATH
14433: do
14434: IFS=$as_save_IFS
1.1.1.3 ! misho 14435: case $as_dir in #(((
! 14436: '') as_dir=./ ;;
! 14437: */) ;;
! 14438: *) as_dir=$as_dir/ ;;
! 14439: esac
1.1.1.2 misho 14440: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 14441: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.2 misho 14442: ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
1.1.1.3 ! misho 14443: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.2 misho 14444: break 2
14445: fi
14446: done
14447: done
14448: IFS=$as_save_IFS
14449:
14450: fi
14451: fi
14452: ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
14453: if test -n "$ac_ct_PKG_CONFIG"; then
1.1.1.3 ! misho 14454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
! 14455: printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
1.1.1.2 misho 14456: else
1.1.1.3 ! misho 14457: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 14458: printf "%s\n" "no" >&6; }
1.1.1.2 misho 14459: fi
14460:
14461: if test "x$ac_ct_PKG_CONFIG" = x; then
14462: PKG_CONFIG=""
14463: else
14464: case $cross_compiling:$ac_tool_warned in
14465: yes:)
1.1.1.3 ! misho 14466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 14467: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.2 misho 14468: ac_tool_warned=yes ;;
14469: esac
14470: PKG_CONFIG=$ac_ct_PKG_CONFIG
14471: fi
14472: else
14473: PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
14474: fi
14475:
14476: if test x"$PKG_CONFIG" != x""; then
14477: OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
14478: if test $? = 0; then
14479: OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
14480: OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
14481: found=true
14482: fi
14483: fi
14484:
14485: # no such luck; use some default ssldirs
14486: if ! $found; then
14487: ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14488: fi
14489:
14490:
14491: fi
14492:
14493:
14494:
14495: # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
14496: # an 'openssl' subdirectory
14497:
14498: if ! $found; then
14499: OPENSSL_INCLUDES=
14500: for ssldir in $ssldirs; do
1.1.1.3 ! misho 14501: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
! 14502: printf %s "checking for openssl/ssl.h in $ssldir... " >&6; }
1.1.1.2 misho 14503: if test -f "$ssldir/include/openssl/ssl.h"; then
14504: OPENSSL_INCLUDES="-I$ssldir/include"
14505: OPENSSL_LDFLAGS="-L$ssldir/lib"
14506: OPENSSL_LIBS="-lssl -lcrypto"
14507: found=true
1.1.1.3 ! misho 14508: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 14509: printf "%s\n" "yes" >&6; }
1.1.1.2 misho 14510: break
14511: else
1.1.1.3 ! misho 14512: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 14513: printf "%s\n" "no" >&6; }
1.1.1.2 misho 14514: fi
14515: done
14516:
14517: # if the file wasn't found, well, go ahead and try the link anyway -- maybe
14518: # it will just work!
14519: fi
14520:
14521: # try the preprocessor and linker with our new flags,
14522: # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14523:
1.1.1.3 ! misho 14524: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
! 14525: printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
1.1.1.2 misho 14526: echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
14527: "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
14528:
14529: save_LIBS="$LIBS"
14530: save_LDFLAGS="$LDFLAGS"
14531: save_CPPFLAGS="$CPPFLAGS"
14532: LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14533: LIBS="$OPENSSL_LIBS $LIBS"
14534: CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536: /* end confdefs.h. */
14537: #include <openssl/ssl.h>
14538: int
1.1.1.3 ! misho 14539: main (void)
1.1.1.2 misho 14540: {
14541: SSL_new(NULL)
14542: ;
14543: return 0;
14544: }
14545: _ACEOF
1.1.1.3 ! misho 14546: if ac_fn_c_try_link "$LINENO"
! 14547: then :
1.1.1.2 misho 14548:
1.1.1.3 ! misho 14549: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 14550: printf "%s\n" "yes" >&6; }
1.1.1.2 misho 14551:
1.1.1.3 ! misho 14552: printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
1.1.1.2 misho 14553:
14554: have_ssl=true
14555:
1.1.1.3 ! misho 14556: else $as_nop
1.1.1.2 misho 14557:
1.1.1.3 ! misho 14558: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 14559: printf "%s\n" "no" >&6; }
1.1.1.2 misho 14560: if test "x$with_openssl" != "x"; then
1.1.1.3 ! misho 14561: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 14562: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 14563: as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
14564: See \`config.log' for more details" "$LINENO" 5; }
14565: fi
14566:
14567:
14568: fi
1.1.1.3 ! misho 14569: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1.1.2 misho 14570: conftest$ac_exeext conftest.$ac_ext
14571: CPPFLAGS="$save_CPPFLAGS"
14572: LDFLAGS="$save_LDFLAGS"
14573: LIBS="$save_LIBS"
14574:
14575:
14576:
14577:
14578:
14579: if $have_ssl; then
14580: case $host in
14581: *-*-cygwin)
14582: CFLAGS="$CFLAGS -DNOCRYPT"
14583: ;;
14584: esac
14585: LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14586: LIBS="$OPENSSL_LIBS $LIBS"
14587: CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14588: fi
14589: fi
1.1 misho 14590:
14591: # Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
1.1.1.3 ! misho 14592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
! 14593: printf %s "checking TCP_CONGESTION socket option... " >&6; }
! 14594: if test ${iperf3_cv_header_tcp_congestion+y}
! 14595: then :
! 14596: printf %s "(cached) " >&6
! 14597: else $as_nop
1.1 misho 14598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599: /* end confdefs.h. */
14600: #include <netinet/tcp.h>
1.1.1.3 ! misho 14601: int
! 14602: main (void)
! 14603: {
! 14604: int foo = TCP_CONGESTION;
! 14605: ;
! 14606: return 0;
! 14607: }
1.1 misho 14608: _ACEOF
1.1.1.3 ! misho 14609: if ac_fn_c_try_compile "$LINENO"
! 14610: then :
1.1 misho 14611: iperf3_cv_header_tcp_congestion=yes
1.1.1.3 ! misho 14612: else $as_nop
1.1 misho 14613: iperf3_cv_header_tcp_congestion=no
14614: fi
1.1.1.3 ! misho 14615: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 14616: fi
1.1.1.3 ! misho 14617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
! 14618: printf "%s\n" "$iperf3_cv_header_tcp_congestion" >&6; }
1.1 misho 14619: if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
14620:
1.1.1.3 ! misho 14621: printf "%s\n" "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
! 14622:
! 14623: fi
! 14624:
! 14625: # Check for TCP_USER_TIMEOUT sockopt (believed to be Linux 2.6.37+ only)
! 14626: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TCP_USER_TIMEOUT socket option" >&5
! 14627: printf %s "checking TCP_USER_TIMEOUT socket option... " >&6; }
! 14628: if test ${iperf3_cv_header_tcp_user_timeout+y}
! 14629: then :
! 14630: printf %s "(cached) " >&6
! 14631: else $as_nop
! 14632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14633: /* end confdefs.h. */
! 14634: #include <netinet/tcp.h>
! 14635: int
! 14636: main (void)
! 14637: {
! 14638: int foo = TCP_USER_TIMEOUT;
! 14639: ;
! 14640: return 0;
! 14641: }
! 14642: _ACEOF
! 14643: if ac_fn_c_try_compile "$LINENO"
! 14644: then :
! 14645: iperf3_cv_header_tcp_user_timeout=yes
! 14646: else $as_nop
! 14647: iperf3_cv_header_tcp_user_timeout=no
! 14648: fi
! 14649: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 14650: fi
! 14651: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_user_timeout" >&5
! 14652: printf "%s\n" "$iperf3_cv_header_tcp_user_timeout" >&6; }
! 14653: if test "x$iperf3_cv_header_tcp_user_timeout" = "xyes"; then
! 14654:
! 14655: printf "%s\n" "#define HAVE_TCP_USER_TIMEOUT 1" >>confdefs.h
1.1 misho 14656:
14657: fi
14658:
14659: # Check for IPv6 flowlabel support (believed to be Linux only)
14660: # We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
14661: # don't use that file directly (we have our own stripped-down
14662: # copy, see src/flowlabel.h for more details).
1.1.1.3 ! misho 14663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
! 14664: printf %s "checking IPv6 flowlabel support... " >&6; }
! 14665: if test ${iperf3_cv_header_flowlabel+y}
! 14666: then :
! 14667: printf %s "(cached) " >&6
! 14668: else $as_nop
1.1 misho 14669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670: /* end confdefs.h. */
14671: #include <sys/types.h>
1.1.1.3 ! misho 14672: #include <linux/in6.h>
! 14673: int
! 14674: main (void)
! 14675: {
! 14676: int foo = IPV6_FLOWLABEL_MGR;
! 14677: ;
! 14678: return 0;
! 14679: }
1.1 misho 14680: _ACEOF
1.1.1.3 ! misho 14681: if ac_fn_c_try_compile "$LINENO"
! 14682: then :
1.1 misho 14683: iperf3_cv_header_flowlabel=yes
1.1.1.3 ! misho 14684: else $as_nop
1.1 misho 14685: iperf3_cv_header_flowlabel=no
14686: fi
1.1.1.3 ! misho 14687: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 14688: fi
1.1.1.3 ! misho 14689: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
! 14690: printf "%s\n" "$iperf3_cv_header_flowlabel" >&6; }
1.1 misho 14691: if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
14692:
1.1.1.3 ! misho 14693: printf "%s\n" "#define HAVE_FLOWLABEL 1" >>confdefs.h
1.1 misho 14694:
14695: fi
14696:
14697: # Check for CPU affinity support. FreeBSD and Linux do this differently
14698: # unfortunately so we have to check separately for each of them.
14699: # FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
14700: # Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
14701: # generic concept is available.
1.1.1.3 ! misho 14702:
! 14703: for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
1.1 misho 14704: do :
1.1.1.3 ! misho 14705: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
1.1 misho 14706: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.1.1.3 ! misho 14707: if eval test \"x\$"$as_ac_var"\" = x"yes"
! 14708: then :
1.1 misho 14709: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 14710: #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 misho 14711: _ACEOF
14712:
1.1.1.3 ! misho 14713: printf "%s\n" "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
1.1 misho 14714:
14715: fi
14716:
1.1.1.3 ! misho 14717: done
1.1 misho 14718:
1.1.1.2 misho 14719: # Check for daemon(). Most systems have this but a few (IRIX) don't.
1.1.1.3 ! misho 14720: ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
! 14721: if test "x$ac_cv_func_daemon" = xyes
! 14722: then :
! 14723: printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
1.1.1.2 misho 14724:
14725: fi
14726:
14727:
1.1 misho 14728: # Check for sendfile support. FreeBSD, Linux, and MacOS all support
14729: # this system call, but they're all different in terms of what headers
14730: # it needs and what arguments it expects.
1.1.1.3 ! misho 14731: ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
! 14732: if test "x$ac_cv_func_sendfile" = xyes
! 14733: then :
! 14734: printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
1.1 misho 14735:
14736: fi
14737:
14738:
1.1.1.2 misho 14739: # Check for getline support, used as a part of authenticated
14740: # connections.
1.1.1.3 ! misho 14741: ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
! 14742: if test "x$ac_cv_func_getline" = xyes
! 14743: then :
! 14744: printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
1.1.1.2 misho 14745:
14746: fi
14747:
14748:
1.1 misho 14749: # Check for packet pacing socket option (Linux only for now).
1.1.1.3 ! misho 14750: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
! 14751: printf %s "checking SO_MAX_PACING_RATE socket option... " >&6; }
! 14752: if test ${iperf3_cv_header_so_max_pacing_rate+y}
! 14753: then :
! 14754: printf %s "(cached) " >&6
! 14755: else $as_nop
1.1 misho 14756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757: /* end confdefs.h. */
14758: #include <sys/socket.h>
1.1.1.3 ! misho 14759: int
! 14760: main (void)
! 14761: {
! 14762: int foo = SO_MAX_PACING_RATE;
! 14763: ;
! 14764: return 0;
! 14765: }
1.1 misho 14766: _ACEOF
1.1.1.3 ! misho 14767: if ac_fn_c_try_compile "$LINENO"
! 14768: then :
1.1 misho 14769: iperf3_cv_header_so_max_pacing_rate=yes
1.1.1.3 ! misho 14770: else $as_nop
1.1 misho 14771: iperf3_cv_header_so_max_pacing_rate=no
14772: fi
1.1.1.3 ! misho 14773: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 14774: fi
1.1.1.3 ! misho 14775: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
! 14776: printf "%s\n" "$iperf3_cv_header_so_max_pacing_rate" >&6; }
1.1 misho 14777: if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
14778:
1.1.1.3 ! misho 14779: printf "%s\n" "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
1.1 misho 14780:
14781: fi
14782:
1.1.1.3 ! misho 14783: # Check for SO_BINDTODEVICE sockopt (believed to be Linux only)
! 14784: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5
! 14785: printf %s "checking SO_BINDTODEVICE socket option... " >&6; }
! 14786: if test ${iperf3_cv_header_so_bindtodevice+y}
! 14787: then :
! 14788: printf %s "(cached) " >&6
! 14789: else $as_nop
! 14790: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14791: /* end confdefs.h. */
! 14792: #include <sys/socket.h>
! 14793: int
! 14794: main (void)
! 14795: {
! 14796: int foo = SO_BINDTODEVICE;
! 14797: ;
! 14798: return 0;
! 14799: }
! 14800: _ACEOF
! 14801: if ac_fn_c_try_compile "$LINENO"
! 14802: then :
! 14803: iperf3_cv_header_so_bindtodevice=yes
! 14804: else $as_nop
! 14805: iperf3_cv_header_so_bindtodevice=no
! 14806: fi
! 14807: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 14808: fi
! 14809: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5
! 14810: printf "%s\n" "$iperf3_cv_header_so_bindtodevice" >&6; }
! 14811: if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then
! 14812:
! 14813: printf "%s\n" "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h
! 14814:
! 14815: fi
! 14816:
! 14817: # Check for IP_MTU_DISCOVER (mostly on Linux)
! 14818: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_MTU_DISCOVER socket option" >&5
! 14819: printf %s "checking IP_MTU_DISCOVER socket option... " >&6; }
! 14820: if test ${iperf3_cv_header_ip_mtu_discover+y}
! 14821: then :
! 14822: printf %s "(cached) " >&6
! 14823: else $as_nop
! 14824: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14825: /* end confdefs.h. */
! 14826: #include <sys/types.h>
! 14827: #include <sys/socket.h>
! 14828: #include <netinet/in.h>
! 14829: int
! 14830: main (void)
! 14831: {
! 14832: int foo = IP_MTU_DISCOVER;
! 14833: ;
! 14834: return 0;
! 14835: }
! 14836: _ACEOF
! 14837: if ac_fn_c_try_compile "$LINENO"
! 14838: then :
! 14839: iperf3_cv_header_ip_mtu_discover=yes
! 14840: else $as_nop
! 14841: iperf3_cv_header_ip_mtu_discover=no
! 14842: fi
! 14843: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 14844: fi
! 14845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_mtu_discover" >&5
! 14846: printf "%s\n" "$iperf3_cv_header_ip_mtu_discover" >&6; }
! 14847: if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes"; then
! 14848:
! 14849: printf "%s\n" "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
! 14850:
! 14851: fi
! 14852:
! 14853: # Check for IP_DONTFRAG (BSD?)
! 14854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAG socket option" >&5
! 14855: printf %s "checking IP_DONTFRAG socket option... " >&6; }
! 14856: if test ${iperf3_cv_header_ip_dontfrag+y}
! 14857: then :
! 14858: printf %s "(cached) " >&6
! 14859: else $as_nop
! 14860: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14861: /* end confdefs.h. */
! 14862: #include <sys/types.h>
! 14863: #include <sys/socket.h>
! 14864: #include <netinet/in.h>
! 14865: int
! 14866: main (void)
! 14867: {
! 14868: int foo = IP_DONTFRAG;
! 14869: ;
! 14870: return 0;
! 14871: }
! 14872: _ACEOF
! 14873: if ac_fn_c_try_compile "$LINENO"
! 14874: then :
! 14875: iperf3_cv_header_ip_dontfrag=yes
! 14876: else $as_nop
! 14877: iperf3_cv_header_ip_dontfrag=no
! 14878: fi
! 14879: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 14880: fi
! 14881: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfrag" >&5
! 14882: printf "%s\n" "$iperf3_cv_header_ip_dontfrag" >&6; }
! 14883: if test "x$iperf3_cv_header_ip_dontfrag" = "xyes"; then
! 14884:
! 14885: printf "%s\n" "#define HAVE_IP_DONTFRAG 1" >>confdefs.h
! 14886:
! 14887: fi
! 14888:
! 14889: # Check for IP_DONTFRAGMENT (Windows?)
! 14890: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAGMENT socket option" >&5
! 14891: printf %s "checking IP_DONTFRAGMENT socket option... " >&6; }
! 14892: if test ${iperf3_cv_header_ip_dontfragment+y}
! 14893: then :
! 14894: printf %s "(cached) " >&6
! 14895: else $as_nop
! 14896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14897: /* end confdefs.h. */
! 14898: #include <sys/types.h>
! 14899: #include <sys/socket.h>
! 14900: #include <netinet/in.h>
! 14901: int
! 14902: main (void)
! 14903: {
! 14904: int foo = IP_DONTFRAGMENT;
! 14905: ;
! 14906: return 0;
! 14907: }
! 14908: _ACEOF
! 14909: if ac_fn_c_try_compile "$LINENO"
! 14910: then :
! 14911: iperf3_cv_header_ip_dontfragment=yes
! 14912: else $as_nop
! 14913: iperf3_cv_header_ip_dontfragment=no
! 14914: fi
! 14915: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 14916: fi
! 14917: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfragment" >&5
! 14918: printf "%s\n" "$iperf3_cv_header_ip_dontfragment" >&6; }
! 14919: if test "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then
! 14920:
! 14921: printf "%s\n" "#define HAVE_IP_DONTFRAGMENT 1" >>confdefs.h
! 14922:
! 14923: fi
! 14924:
! 14925: # Check for IP DF support
! 14926: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking any kind of DF socket option" >&5
! 14927: printf %s "checking any kind of DF socket option... " >&6; }
! 14928: if test ${iperf3_cv_header_dontfragment+y}
! 14929: then :
! 14930: printf %s "(cached) " >&6
! 14931: else $as_nop
! 14932: if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes" -o "x$iperf3_cv_header_ip_dontfrag" = "xyes" -o "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then
! 14933: iperf3_cv_header_dontfragment=yes
1.1.1.2 misho 14934: else
1.1.1.3 ! misho 14935: iperf3_cv_header_dontfragment=no
! 14936: fi
! 14937: fi
! 14938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_dontfragment" >&5
! 14939: printf "%s\n" "$iperf3_cv_header_dontfragment" >&6; }
! 14940:
! 14941: if test "x$iperf3_cv_header_dontfragment" = "xyes"; then
! 14942:
! 14943: printf "%s\n" "#define HAVE_DONT_FRAGMENT 1" >>confdefs.h
! 14944:
! 14945: fi
! 14946:
! 14947: #
! 14948: # Check for tcpi_snd_wnd in struct tcp_info
! 14949: #
! 14950: ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_snd_wnd" "ac_cv_member_struct_tcp_info_tcpi_snd_wnd" "#ifdef HAVE_LINUX_TCP_H
! 14951: #include <linux/tcp.h>
! 14952: #else
! 14953: #include <sys/types.h>
! 14954: #include <netinet/tcp.h>
! 14955: #endif
! 14956:
! 14957: "
! 14958: if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_wnd" = xyes
! 14959: then :
! 14960: iperf3_cv_header_tcp_info_snd_wnd=yes
! 14961: else $as_nop
! 14962: iperf3_cv_header_tcp_info_snd_wnd=no
! 14963: fi
! 14964:
! 14965:
! 14966: if test "x$iperf3_cv_header_tcp_info_snd_wnd" = "xyes"; then
! 14967:
! 14968: printf "%s\n" "#define HAVE_TCP_INFO_SND_WND 1" >>confdefs.h
! 14969:
! 14970: fi
! 14971:
! 14972: # Check if we need -lrt for clock_gettime
! 14973: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
! 14974: printf %s "checking for library containing clock_gettime... " >&6; }
! 14975: if test ${ac_cv_search_clock_gettime+y}
! 14976: then :
! 14977: printf %s "(cached) " >&6
! 14978: else $as_nop
1.1.1.2 misho 14979: ac_func_search_save_LIBS=$LIBS
14980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981: /* end confdefs.h. */
14982:
14983: /* Override any GCC internal prototype to avoid an error.
14984: Use char because int might match the return type of a GCC
14985: builtin and then its argument prototype would still apply. */
14986: char clock_gettime ();
14987: int
1.1.1.3 ! misho 14988: main (void)
1.1.1.2 misho 14989: {
14990: return clock_gettime ();
14991: ;
14992: return 0;
14993: }
14994: _ACEOF
1.1.1.3 ! misho 14995: for ac_lib in '' rt posix4
! 14996: do
1.1.1.2 misho 14997: if test -z "$ac_lib"; then
14998: ac_res="none required"
14999: else
15000: ac_res=-l$ac_lib
15001: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15002: fi
1.1.1.3 ! misho 15003: if ac_fn_c_try_link "$LINENO"
! 15004: then :
1.1.1.2 misho 15005: ac_cv_search_clock_gettime=$ac_res
15006: fi
1.1.1.3 ! misho 15007: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1.1.2 misho 15008: conftest$ac_exeext
1.1.1.3 ! misho 15009: if test ${ac_cv_search_clock_gettime+y}
! 15010: then :
1.1.1.2 misho 15011: break
15012: fi
15013: done
1.1.1.3 ! misho 15014: if test ${ac_cv_search_clock_gettime+y}
! 15015: then :
1.1.1.2 misho 15016:
1.1.1.3 ! misho 15017: else $as_nop
1.1.1.2 misho 15018: ac_cv_search_clock_gettime=no
15019: fi
15020: rm conftest.$ac_ext
15021: LIBS=$ac_func_search_save_LIBS
15022: fi
1.1.1.3 ! misho 15023: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
! 15024: printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
1.1.1.2 misho 15025: ac_res=$ac_cv_search_clock_gettime
1.1.1.3 ! misho 15026: if test "$ac_res" != no
! 15027: then :
1.1.1.2 misho 15028: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15029:
15030: fi
15031:
15032: # Check for clock_gettime support
1.1.1.3 ! misho 15033: ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
! 15034: if test "x$ac_cv_func_clock_gettime" = xyes
! 15035: then :
! 15036: printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
1.1.1.2 misho 15037:
15038: fi
15039:
1.1 misho 15040:
15041: ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
15042:
15043: cat >confcache <<\_ACEOF
15044: # This file is a shell script that caches the results of configure
15045: # tests run on this system so they can be shared between configure
15046: # scripts and configure runs, see configure's option --config-cache.
15047: # It is not useful on other systems. If it contains results you don't
15048: # want to keep, you may remove or edit it.
15049: #
15050: # config.status only pays attention to the cache file if you give it
15051: # the --recheck option to rerun configure.
15052: #
15053: # `ac_cv_env_foo' variables (set or unset) will be overridden when
15054: # loading this file, other *unset* `ac_cv_foo' will be assigned the
15055: # following values.
15056:
15057: _ACEOF
15058:
15059: # The following way of writing the cache mishandles newlines in values,
15060: # but we know of no workaround that is simple, portable, and efficient.
15061: # So, we kill variables containing newlines.
15062: # Ultrix sh set writes to stderr and can't be redirected directly,
15063: # and sets the high bit in the cache file unless we assign to the vars.
15064: (
15065: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15066: eval ac_val=\$$ac_var
15067: case $ac_val in #(
15068: *${as_nl}*)
15069: case $ac_var in #(
1.1.1.3 ! misho 15070: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 15071: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 misho 15072: esac
15073: case $ac_var in #(
15074: _ | IFS | as_nl) ;; #(
15075: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15076: *) { eval $ac_var=; unset $ac_var;} ;;
15077: esac ;;
15078: esac
15079: done
15080:
15081: (set) 2>&1 |
15082: case $as_nl`(ac_space=' '; set) 2>&1` in #(
15083: *${as_nl}ac_space=\ *)
15084: # `set' does not quote correctly, so add quotes: double-quote
15085: # substitution turns \\\\ into \\, and sed turns \\ into \.
15086: sed -n \
15087: "s/'/'\\\\''/g;
15088: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15089: ;; #(
15090: *)
15091: # `set' quotes correctly as required by POSIX, so do not add quotes.
15092: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15093: ;;
15094: esac |
15095: sort
15096: ) |
15097: sed '
15098: /^ac_cv_env_/b end
15099: t clear
15100: :clear
1.1.1.3 ! misho 15101: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.1 misho 15102: t end
15103: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15104: :end' >>confcache
15105: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15106: if test -w "$cache_file"; then
15107: if test "x$cache_file" != "x/dev/null"; then
1.1.1.3 ! misho 15108: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
! 15109: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.1 misho 15110: if test ! -f "$cache_file" || test -h "$cache_file"; then
15111: cat confcache >"$cache_file"
15112: else
15113: case $cache_file in #(
15114: */* | ?:*)
15115: mv -f confcache "$cache_file"$$ &&
15116: mv -f "$cache_file"$$ "$cache_file" ;; #(
15117: *)
15118: mv -f confcache "$cache_file" ;;
15119: esac
15120: fi
15121: fi
15122: else
1.1.1.3 ! misho 15123: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
! 15124: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 misho 15125: fi
15126: fi
15127: rm -f confcache
15128:
15129: test "x$prefix" = xNONE && prefix=$ac_default_prefix
15130: # Let make expand exec_prefix.
15131: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15132:
15133: DEFS=-DHAVE_CONFIG_H
15134:
15135: ac_libobjs=
15136: ac_ltlibobjs=
1.1.1.3 ! misho 15137: U=
1.1 misho 15138: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15139: # 1. Remove the extension, and $U if already installed.
15140: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.1.1.3 ! misho 15141: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.1 misho 15142: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15143: # will be set to the directory where LIBOBJS objects are built.
15144: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15145: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15146: done
15147: LIBOBJS=$ac_libobjs
15148:
15149: LTLIBOBJS=$ac_ltlibobjs
15150:
15151:
1.1.1.2 misho 15152: if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
15153: as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
15154: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15155: fi
1.1.1.3 ! misho 15156: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
! 15157: printf %s "checking that generated files are newer than configure... " >&6; }
1.1 misho 15158: if test -n "$am_sleep_pid"; then
15159: # Hide warnings about reused PIDs.
15160: wait $am_sleep_pid 2>/dev/null
15161: fi
1.1.1.3 ! misho 15162: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
! 15163: printf "%s\n" "done" >&6; }
1.1 misho 15164: if test -n "$EXEEXT"; then
15165: am__EXEEXT_TRUE=
15166: am__EXEEXT_FALSE='#'
15167: else
15168: am__EXEEXT_TRUE='#'
15169: am__EXEEXT_FALSE=
15170: fi
15171:
15172: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15173: as_fn_error $? "conditional \"AMDEP\" was never defined.
15174: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15175: fi
15176: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15177: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15178: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15179: fi
1.1.1.2 misho 15180: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15181: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15182: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15183: fi
15184: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15185: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15186: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15187: fi
15188: if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
15189: as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
15190: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15191: fi
1.1 misho 15192:
15193: : "${CONFIG_STATUS=./config.status}"
15194: ac_write_fail=0
15195: ac_clean_files_save=$ac_clean_files
15196: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.1.1.3 ! misho 15197: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
! 15198: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.1 misho 15199: as_write_fail=0
15200: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15201: #! $SHELL
15202: # Generated by $as_me.
15203: # Run this file to recreate the current configuration.
15204: # Compiler output produced by configure, useful for debugging
15205: # configure, is in config.log if it exists.
15206:
15207: debug=false
15208: ac_cs_recheck=false
15209: ac_cs_silent=false
15210:
15211: SHELL=\${CONFIG_SHELL-$SHELL}
15212: export SHELL
15213: _ASEOF
15214: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15215: ## -------------------- ##
15216: ## M4sh Initialization. ##
15217: ## -------------------- ##
15218:
15219: # Be more Bourne compatible
15220: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.3 ! misho 15221: as_nop=:
! 15222: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
! 15223: then :
1.1 misho 15224: emulate sh
15225: NULLCMD=:
15226: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15227: # is contrary to our usage. Disable this feature.
15228: alias -g '${1+"$@"}'='"$@"'
15229: setopt NO_GLOB_SUBST
1.1.1.3 ! misho 15230: else $as_nop
1.1 misho 15231: case `(set -o) 2>/dev/null` in #(
15232: *posix*) :
15233: set -o posix ;; #(
15234: *) :
15235: ;;
15236: esac
15237: fi
15238:
15239:
1.1.1.3 ! misho 15240:
! 15241: # Reset variables that may have inherited troublesome values from
! 15242: # the environment.
! 15243:
! 15244: # IFS needs to be set, to space, tab, and newline, in precisely that order.
! 15245: # (If _AS_PATH_WALK were called with IFS unset, it would have the
! 15246: # side effect of setting IFS to empty, thus disabling word splitting.)
! 15247: # Quoting is to prevent editors from complaining about space-tab.
1.1 misho 15248: as_nl='
15249: '
15250: export as_nl
1.1.1.3 ! misho 15251: IFS=" "" $as_nl"
! 15252:
! 15253: PS1='$ '
! 15254: PS2='> '
! 15255: PS4='+ '
! 15256:
! 15257: # Ensure predictable behavior from utilities with locale-dependent output.
! 15258: LC_ALL=C
! 15259: export LC_ALL
! 15260: LANGUAGE=C
! 15261: export LANGUAGE
! 15262:
! 15263: # We cannot yet rely on "unset" to work, but we need these variables
! 15264: # to be unset--not just set to an empty or harmless value--now, to
! 15265: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
! 15266: # also avoids known problems related to "unset" and subshell syntax
! 15267: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
! 15268: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
! 15269: do eval test \${$as_var+y} \
! 15270: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 15271: done
! 15272:
! 15273: # Ensure that fds 0, 1, and 2 are open.
! 15274: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
! 15275: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
! 15276: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 misho 15277:
15278: # The user is always right.
1.1.1.3 ! misho 15279: if ${PATH_SEPARATOR+false} :; then
1.1 misho 15280: PATH_SEPARATOR=:
15281: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15282: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15283: PATH_SEPARATOR=';'
15284: }
15285: fi
15286:
15287:
15288: # Find who we are. Look in the path if we contain no directory separator.
15289: as_myself=
15290: case $0 in #((
15291: *[\\/]* ) as_myself=$0 ;;
15292: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15293: for as_dir in $PATH
15294: do
15295: IFS=$as_save_IFS
1.1.1.3 ! misho 15296: case $as_dir in #(((
! 15297: '') as_dir=./ ;;
! 15298: */) ;;
! 15299: *) as_dir=$as_dir/ ;;
! 15300: esac
! 15301: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 misho 15302: done
15303: IFS=$as_save_IFS
15304:
15305: ;;
15306: esac
15307: # We did not find ourselves, most probably we were run as `sh COMMAND'
15308: # in which case we are not to be found in the path.
15309: if test "x$as_myself" = x; then
15310: as_myself=$0
15311: fi
15312: if test ! -f "$as_myself"; then
1.1.1.3 ! misho 15313: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 misho 15314: exit 1
15315: fi
15316:
15317:
15318:
15319: # as_fn_error STATUS ERROR [LINENO LOG_FD]
15320: # ----------------------------------------
15321: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15322: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15323: # script with STATUS, using 1 if that was 0.
15324: as_fn_error ()
15325: {
15326: as_status=$1; test $as_status -eq 0 && as_status=1
15327: if test "$4"; then
15328: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.3 ! misho 15329: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 15330: fi
1.1.1.3 ! misho 15331: printf "%s\n" "$as_me: error: $2" >&2
1.1 misho 15332: as_fn_exit $as_status
15333: } # as_fn_error
15334:
15335:
1.1.1.3 ! misho 15336:
1.1 misho 15337: # as_fn_set_status STATUS
15338: # -----------------------
15339: # Set $? to STATUS, without forking.
15340: as_fn_set_status ()
15341: {
15342: return $1
15343: } # as_fn_set_status
15344:
15345: # as_fn_exit STATUS
15346: # -----------------
15347: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15348: as_fn_exit ()
15349: {
15350: set +e
15351: as_fn_set_status $1
15352: exit $1
15353: } # as_fn_exit
15354:
15355: # as_fn_unset VAR
15356: # ---------------
15357: # Portably unset VAR.
15358: as_fn_unset ()
15359: {
15360: { eval $1=; unset $1;}
15361: }
15362: as_unset=as_fn_unset
1.1.1.3 ! misho 15363:
1.1 misho 15364: # as_fn_append VAR VALUE
15365: # ----------------------
15366: # Append the text in VALUE to the end of the definition contained in VAR. Take
15367: # advantage of any shell optimizations that allow amortized linear growth over
15368: # repeated appends, instead of the typical quadratic growth present in naive
15369: # implementations.
1.1.1.3 ! misho 15370: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
! 15371: then :
1.1 misho 15372: eval 'as_fn_append ()
15373: {
15374: eval $1+=\$2
15375: }'
1.1.1.3 ! misho 15376: else $as_nop
1.1 misho 15377: as_fn_append ()
15378: {
15379: eval $1=\$$1\$2
15380: }
15381: fi # as_fn_append
15382:
15383: # as_fn_arith ARG...
15384: # ------------------
15385: # Perform arithmetic evaluation on the ARGs, and store the result in the
15386: # global $as_val. Take advantage of shells that can avoid forks. The arguments
15387: # must be portable across $(()) and expr.
1.1.1.3 ! misho 15388: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
! 15389: then :
1.1 misho 15390: eval 'as_fn_arith ()
15391: {
15392: as_val=$(( $* ))
15393: }'
1.1.1.3 ! misho 15394: else $as_nop
1.1 misho 15395: as_fn_arith ()
15396: {
15397: as_val=`expr "$@" || test $? -eq 1`
15398: }
15399: fi # as_fn_arith
15400:
15401:
15402: if expr a : '\(a\)' >/dev/null 2>&1 &&
15403: test "X`expr 00001 : '.*\(...\)'`" = X001; then
15404: as_expr=expr
15405: else
15406: as_expr=false
15407: fi
15408:
15409: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15410: as_basename=basename
15411: else
15412: as_basename=false
15413: fi
15414:
15415: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15416: as_dirname=dirname
15417: else
15418: as_dirname=false
15419: fi
15420:
15421: as_me=`$as_basename -- "$0" ||
15422: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15423: X"$0" : 'X\(//\)$' \| \
15424: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 15425: printf "%s\n" X/"$0" |
1.1 misho 15426: sed '/^.*\/\([^/][^/]*\)\/*$/{
15427: s//\1/
15428: q
15429: }
15430: /^X\/\(\/\/\)$/{
15431: s//\1/
15432: q
15433: }
15434: /^X\/\(\/\).*/{
15435: s//\1/
15436: q
15437: }
15438: s/.*/./; q'`
15439:
15440: # Avoid depending upon Character Ranges.
15441: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15442: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15443: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15444: as_cr_digits='0123456789'
15445: as_cr_alnum=$as_cr_Letters$as_cr_digits
15446:
1.1.1.3 ! misho 15447:
! 15448: # Determine whether it's possible to make 'echo' print without a newline.
! 15449: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
! 15450: # for compatibility with existing Makefiles.
1.1 misho 15451: ECHO_C= ECHO_N= ECHO_T=
15452: case `echo -n x` in #(((((
15453: -n*)
15454: case `echo 'xy\c'` in
15455: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15456: xy) ECHO_C='\c';;
15457: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15458: ECHO_T=' ';;
15459: esac;;
15460: *)
15461: ECHO_N='-n';;
15462: esac
15463:
1.1.1.3 ! misho 15464: # For backward compatibility with old third-party macros, we provide
! 15465: # the shell variables $as_echo and $as_echo_n. New code should use
! 15466: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
! 15467: as_echo='printf %s\n'
! 15468: as_echo_n='printf %s'
! 15469:
1.1 misho 15470: rm -f conf$$ conf$$.exe conf$$.file
15471: if test -d conf$$.dir; then
15472: rm -f conf$$.dir/conf$$.file
15473: else
15474: rm -f conf$$.dir
15475: mkdir conf$$.dir 2>/dev/null
15476: fi
15477: if (echo >conf$$.file) 2>/dev/null; then
15478: if ln -s conf$$.file conf$$ 2>/dev/null; then
15479: as_ln_s='ln -s'
15480: # ... but there are two gotchas:
15481: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15482: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15483: # In both cases, we have to default to `cp -pR'.
15484: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15485: as_ln_s='cp -pR'
15486: elif ln conf$$.file conf$$ 2>/dev/null; then
15487: as_ln_s=ln
15488: else
15489: as_ln_s='cp -pR'
15490: fi
15491: else
15492: as_ln_s='cp -pR'
15493: fi
15494: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15495: rmdir conf$$.dir 2>/dev/null
15496:
15497:
15498: # as_fn_mkdir_p
15499: # -------------
15500: # Create "$as_dir" as a directory, including parents if necessary.
15501: as_fn_mkdir_p ()
15502: {
15503:
15504: case $as_dir in #(
15505: -*) as_dir=./$as_dir;;
15506: esac
15507: test -d "$as_dir" || eval $as_mkdir_p || {
15508: as_dirs=
15509: while :; do
15510: case $as_dir in #(
1.1.1.3 ! misho 15511: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 misho 15512: *) as_qdir=$as_dir;;
15513: esac
15514: as_dirs="'$as_qdir' $as_dirs"
15515: as_dir=`$as_dirname -- "$as_dir" ||
15516: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15517: X"$as_dir" : 'X\(//\)[^/]' \| \
15518: X"$as_dir" : 'X\(//\)$' \| \
15519: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 15520: printf "%s\n" X"$as_dir" |
1.1 misho 15521: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15522: s//\1/
15523: q
15524: }
15525: /^X\(\/\/\)[^/].*/{
15526: s//\1/
15527: q
15528: }
15529: /^X\(\/\/\)$/{
15530: s//\1/
15531: q
15532: }
15533: /^X\(\/\).*/{
15534: s//\1/
15535: q
15536: }
15537: s/.*/./; q'`
15538: test -d "$as_dir" && break
15539: done
15540: test -z "$as_dirs" || eval "mkdir $as_dirs"
15541: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15542:
15543:
15544: } # as_fn_mkdir_p
15545: if mkdir -p . 2>/dev/null; then
15546: as_mkdir_p='mkdir -p "$as_dir"'
15547: else
15548: test -d ./-p && rmdir ./-p
15549: as_mkdir_p=false
15550: fi
15551:
15552:
15553: # as_fn_executable_p FILE
15554: # -----------------------
15555: # Test if FILE is an executable regular file.
15556: as_fn_executable_p ()
15557: {
15558: test -f "$1" && test -x "$1"
15559: } # as_fn_executable_p
15560: as_test_x='test -x'
15561: as_executable_p=as_fn_executable_p
15562:
15563: # Sed expression to map a string onto a valid CPP name.
15564: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15565:
15566: # Sed expression to map a string onto a valid variable name.
15567: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15568:
15569:
15570: exec 6>&1
15571: ## ----------------------------------- ##
15572: ## Main body of $CONFIG_STATUS script. ##
15573: ## ----------------------------------- ##
15574: _ASEOF
15575: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15576:
15577: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15578: # Save the log message, to keep $0 and so on meaningful, and to
15579: # report actual input values of CONFIG_FILES etc. instead of their
15580: # values after options handling.
15581: ac_log="
1.1.1.3 ! misho 15582: This file was extended by iperf $as_me 3.15, which was
! 15583: generated by GNU Autoconf 2.71. Invocation command line was
1.1 misho 15584:
15585: CONFIG_FILES = $CONFIG_FILES
15586: CONFIG_HEADERS = $CONFIG_HEADERS
15587: CONFIG_LINKS = $CONFIG_LINKS
15588: CONFIG_COMMANDS = $CONFIG_COMMANDS
15589: $ $0 $@
15590:
15591: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15592: "
15593:
15594: _ACEOF
15595:
15596: case $ac_config_files in *"
15597: "*) set x $ac_config_files; shift; ac_config_files=$*;;
15598: esac
15599:
15600: case $ac_config_headers in *"
15601: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15602: esac
15603:
15604:
15605: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15606: # Files that config.status was made for.
15607: config_files="$ac_config_files"
15608: config_headers="$ac_config_headers"
15609: config_commands="$ac_config_commands"
15610:
15611: _ACEOF
15612:
15613: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614: ac_cs_usage="\
15615: \`$as_me' instantiates files and other configuration actions
15616: from templates according to the current configuration. Unless the files
15617: and actions are specified as TAGs, all are instantiated by default.
15618:
15619: Usage: $0 [OPTION]... [TAG]...
15620:
15621: -h, --help print this help, then exit
15622: -V, --version print version number and configuration settings, then exit
15623: --config print configuration, then exit
15624: -q, --quiet, --silent
15625: do not print progress messages
15626: -d, --debug don't remove temporary files
15627: --recheck update $as_me by reconfiguring in the same conditions
15628: --file=FILE[:TEMPLATE]
15629: instantiate the configuration file FILE
15630: --header=FILE[:TEMPLATE]
15631: instantiate the configuration header FILE
15632:
15633: Configuration files:
15634: $config_files
15635:
15636: Configuration headers:
15637: $config_headers
15638:
15639: Configuration commands:
15640: $config_commands
15641:
15642: Report bugs to <https://github.com/esnet/iperf>.
1.1.1.2 misho 15643: iperf home page: <https://software.es.net/iperf/>."
1.1 misho 15644:
15645: _ACEOF
1.1.1.3 ! misho 15646: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
! 15647: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.1 misho 15648: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.3 ! misho 15649: ac_cs_config='$ac_cs_config_escaped'
1.1 misho 15650: ac_cs_version="\\
1.1.1.3 ! misho 15651: iperf config.status 3.15
! 15652: configured by $0, generated by GNU Autoconf 2.71,
1.1 misho 15653: with options \\"\$ac_cs_config\\"
15654:
1.1.1.3 ! misho 15655: Copyright (C) 2021 Free Software Foundation, Inc.
1.1 misho 15656: This config.status script is free software; the Free Software Foundation
15657: gives unlimited permission to copy, distribute and modify it."
15658:
15659: ac_pwd='$ac_pwd'
15660: srcdir='$srcdir'
15661: INSTALL='$INSTALL'
15662: MKDIR_P='$MKDIR_P'
15663: AWK='$AWK'
15664: test -n "\$AWK" || AWK=awk
15665: _ACEOF
15666:
15667: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668: # The default lists apply if the user does not specify any file.
15669: ac_need_defaults=:
15670: while test $# != 0
15671: do
15672: case $1 in
15673: --*=?*)
15674: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15675: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15676: ac_shift=:
15677: ;;
15678: --*=)
15679: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15680: ac_optarg=
15681: ac_shift=:
15682: ;;
15683: *)
15684: ac_option=$1
15685: ac_optarg=$2
15686: ac_shift=shift
15687: ;;
15688: esac
15689:
15690: case $ac_option in
15691: # Handling of the options.
15692: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15693: ac_cs_recheck=: ;;
15694: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.1.1.3 ! misho 15695: printf "%s\n" "$ac_cs_version"; exit ;;
1.1 misho 15696: --config | --confi | --conf | --con | --co | --c )
1.1.1.3 ! misho 15697: printf "%s\n" "$ac_cs_config"; exit ;;
1.1 misho 15698: --debug | --debu | --deb | --de | --d | -d )
15699: debug=: ;;
15700: --file | --fil | --fi | --f )
15701: $ac_shift
15702: case $ac_optarg in
1.1.1.3 ! misho 15703: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 15704: '') as_fn_error $? "missing file argument" ;;
15705: esac
15706: as_fn_append CONFIG_FILES " '$ac_optarg'"
15707: ac_need_defaults=false;;
15708: --header | --heade | --head | --hea )
15709: $ac_shift
15710: case $ac_optarg in
1.1.1.3 ! misho 15711: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 15712: esac
15713: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15714: ac_need_defaults=false;;
15715: --he | --h)
15716: # Conflict between --help and --header
15717: as_fn_error $? "ambiguous option: \`$1'
15718: Try \`$0 --help' for more information.";;
15719: --help | --hel | -h )
1.1.1.3 ! misho 15720: printf "%s\n" "$ac_cs_usage"; exit ;;
1.1 misho 15721: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15722: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15723: ac_cs_silent=: ;;
15724:
15725: # This is an error.
15726: -*) as_fn_error $? "unrecognized option: \`$1'
15727: Try \`$0 --help' for more information." ;;
15728:
15729: *) as_fn_append ac_config_targets " $1"
15730: ac_need_defaults=false ;;
15731:
15732: esac
15733: shift
15734: done
15735:
15736: ac_configure_extra_args=
15737:
15738: if $ac_cs_silent; then
15739: exec 6>/dev/null
15740: ac_configure_extra_args="$ac_configure_extra_args --silent"
15741: fi
15742:
15743: _ACEOF
15744: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15745: if \$ac_cs_recheck; then
15746: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15747: shift
1.1.1.3 ! misho 15748: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.1 misho 15749: CONFIG_SHELL='$SHELL'
15750: export CONFIG_SHELL
15751: exec "\$@"
15752: fi
15753:
15754: _ACEOF
15755: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15756: exec 5>>config.log
15757: {
15758: echo
15759: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15760: ## Running $as_me. ##
15761: _ASBOX
1.1.1.3 ! misho 15762: printf "%s\n" "$ac_log"
1.1 misho 15763: } >&5
15764:
15765: _ACEOF
15766: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15767: #
15768: # INIT-COMMANDS
15769: #
1.1.1.2 misho 15770: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.1 misho 15771:
15772:
15773: # The HP-UX ksh and POSIX shell print the target directory to stdout
15774: # if CDPATH is set.
15775: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15776:
15777: sed_quote_subst='$sed_quote_subst'
15778: double_quote_subst='$double_quote_subst'
15779: delay_variable_subst='$delay_variable_subst'
15780: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15781: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15782: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15783: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15784: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15785: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15786: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15787: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15788: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15789: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15790: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15791: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15792: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15793: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15794: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15795: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15796: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15797: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15798: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15799: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15800: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15801: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15802: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15803: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15804: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15805: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15806: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15807: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15808: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15809: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15810: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15811: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15812: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15813: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1.1.1.3 ! misho 15814: FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1.1 misho 15815: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15816: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15817: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15818: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15819: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15820: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15821: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15822: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1.1.1.3 ! misho 15823: lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1.1 misho 15824: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15825: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15826: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15827: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15828: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15829: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15830: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15831: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15832: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15833: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15834: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15835: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15836: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15837: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15838: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15839: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15840: 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"`'
15841: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15842: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15843: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15844: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15845: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15846: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15847: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15848: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15849: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15850: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15851: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15852: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15853: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15854: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15855: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15856: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15857: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15858: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15859: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15860: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15861: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15862: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15863: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15864: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15865: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15866: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15867: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15868: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15869: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15870: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15871: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15872: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15873: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15874: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15875: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15876: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15877: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15878: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15879: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15880: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15881: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15882: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15883: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15884: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15885: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15886: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15887: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15888: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15889: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15890: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15891: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15892: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15893: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15894: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15895: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15896: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15897: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15898: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15899: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15900: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15901: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15902: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15903: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15904: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15905: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15906: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15907: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15908: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15909: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15910: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15911: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15912: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15913: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15914: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15915: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15916: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15917:
15918: LTCC='$LTCC'
15919: LTCFLAGS='$LTCFLAGS'
15920: compiler='$compiler_DEFAULT'
15921:
15922: # A function that is used when there is no print builtin or printf.
15923: func_fallback_echo ()
15924: {
15925: eval 'cat <<_LTECHO_EOF
15926: \$1
15927: _LTECHO_EOF'
15928: }
15929:
15930: # Quote evaled strings.
15931: for var in SHELL \
15932: ECHO \
15933: PATH_SEPARATOR \
15934: SED \
15935: GREP \
15936: EGREP \
15937: FGREP \
15938: LD \
15939: NM \
15940: LN_S \
15941: lt_SP2NL \
15942: lt_NL2SP \
15943: reload_flag \
1.1.1.3 ! misho 15944: FILECMD \
1.1 misho 15945: OBJDUMP \
15946: deplibs_check_method \
15947: file_magic_cmd \
15948: file_magic_glob \
15949: want_nocaseglob \
15950: DLLTOOL \
15951: sharedlib_from_linklib_cmd \
15952: AR \
15953: archiver_list_spec \
15954: STRIP \
15955: RANLIB \
15956: CC \
15957: CFLAGS \
15958: compiler \
15959: lt_cv_sys_global_symbol_pipe \
15960: lt_cv_sys_global_symbol_to_cdecl \
15961: lt_cv_sys_global_symbol_to_import \
15962: lt_cv_sys_global_symbol_to_c_name_address \
15963: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15964: lt_cv_nm_interface \
15965: nm_file_list_spec \
15966: lt_cv_truncate_bin \
15967: lt_prog_compiler_no_builtin_flag \
15968: lt_prog_compiler_pic \
15969: lt_prog_compiler_wl \
15970: lt_prog_compiler_static \
15971: lt_cv_prog_compiler_c_o \
15972: need_locks \
15973: MANIFEST_TOOL \
15974: DSYMUTIL \
15975: NMEDIT \
15976: LIPO \
15977: OTOOL \
15978: OTOOL64 \
15979: shrext_cmds \
15980: export_dynamic_flag_spec \
15981: whole_archive_flag_spec \
15982: compiler_needs_object \
15983: with_gnu_ld \
15984: allow_undefined_flag \
15985: no_undefined_flag \
15986: hardcode_libdir_flag_spec \
15987: hardcode_libdir_separator \
15988: exclude_expsyms \
15989: include_expsyms \
15990: file_list_spec \
15991: variables_saved_for_relink \
15992: libname_spec \
15993: library_names_spec \
15994: soname_spec \
15995: install_override_mode \
15996: finish_eval \
15997: old_striplib \
15998: striplib; do
15999: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16000: *[\\\\\\\`\\"\\\$]*)
16001: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16002: ;;
16003: *)
16004: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16005: ;;
16006: esac
16007: done
16008:
16009: # Double-quote double-evaled strings.
16010: for var in reload_cmds \
16011: old_postinstall_cmds \
16012: old_postuninstall_cmds \
16013: old_archive_cmds \
16014: extract_expsyms_cmds \
16015: old_archive_from_new_cmds \
16016: old_archive_from_expsyms_cmds \
16017: archive_cmds \
16018: archive_expsym_cmds \
16019: module_cmds \
16020: module_expsym_cmds \
16021: export_symbols_cmds \
16022: prelink_cmds \
16023: postlink_cmds \
16024: postinstall_cmds \
16025: postuninstall_cmds \
16026: finish_cmds \
16027: sys_lib_search_path_spec \
16028: configure_time_dlsearch_path \
16029: configure_time_lt_sys_library_path; do
16030: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16031: *[\\\\\\\`\\"\\\$]*)
16032: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16033: ;;
16034: *)
16035: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16036: ;;
16037: esac
16038: done
16039:
16040: ac_aux_dir='$ac_aux_dir'
16041:
16042: # See if we are running on zsh, and set the options that allow our
16043: # commands through without removal of \ escapes INIT.
16044: if test -n "\${ZSH_VERSION+set}"; then
16045: setopt NO_GLOB_SUBST
16046: fi
16047:
16048:
16049: PACKAGE='$PACKAGE'
16050: VERSION='$VERSION'
16051: RM='$RM'
16052: ofile='$ofile'
16053:
16054:
16055:
16056:
16057: _ACEOF
16058:
16059: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060:
16061: # Handling of arguments.
16062: for ac_config_target in $ac_config_targets
16063: do
16064: case $ac_config_target in
16065: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16066: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.1.1.2 misho 16067: "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
1.1 misho 16068: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16069: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16070: "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
16071: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16072: "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
16073:
16074: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16075: esac
16076: done
16077:
16078:
16079: # If the user did not use the arguments to specify the items to instantiate,
16080: # then the envvar interface is used. Set only those that are not.
16081: # We use the long form for the default assignment because of an extremely
16082: # bizarre bug on SunOS 4.1.3.
16083: if $ac_need_defaults; then
1.1.1.3 ! misho 16084: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
! 16085: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
! 16086: test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1.1 misho 16087: fi
16088:
16089: # Have a temporary directory for convenience. Make it in the build tree
16090: # simply because there is no reason against having it here, and in addition,
16091: # creating and moving files from /tmp can sometimes cause problems.
16092: # Hook for its removal unless debugging.
16093: # Note that there is a small window in which the directory will not be cleaned:
16094: # after its creation but before its name has been assigned to `$tmp'.
16095: $debug ||
16096: {
16097: tmp= ac_tmp=
16098: trap 'exit_status=$?
16099: : "${ac_tmp:=$tmp}"
16100: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16101: ' 0
16102: trap 'as_fn_exit 1' 1 2 13 15
16103: }
16104: # Create a (secure) tmp directory for tmp files.
16105:
16106: {
16107: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16108: test -d "$tmp"
16109: } ||
16110: {
16111: tmp=./conf$$-$RANDOM
16112: (umask 077 && mkdir "$tmp")
16113: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16114: ac_tmp=$tmp
16115:
16116: # Set up the scripts for CONFIG_FILES section.
16117: # No need to generate them if there are no CONFIG_FILES.
16118: # This happens for instance with `./config.status config.h'.
16119: if test -n "$CONFIG_FILES"; then
16120:
16121:
16122: ac_cr=`echo X | tr X '\015'`
16123: # On cygwin, bash can eat \r inside `` if the user requested igncr.
16124: # But we know of no other shell where ac_cr would be empty at this
16125: # point, so we can use a bashism as a fallback.
16126: if test "x$ac_cr" = x; then
16127: eval ac_cr=\$\'\\r\'
16128: fi
16129: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16130: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16131: ac_cs_awk_cr='\\r'
16132: else
16133: ac_cs_awk_cr=$ac_cr
16134: fi
16135:
16136: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16137: _ACEOF
16138:
16139:
16140: {
16141: echo "cat >conf$$subs.awk <<_ACEOF" &&
16142: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16143: echo "_ACEOF"
16144: } >conf$$subs.sh ||
16145: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16146: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16147: ac_delim='%!_!# '
16148: for ac_last_try in false false false false false :; do
16149: . ./conf$$subs.sh ||
16150: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16151:
16152: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16153: if test $ac_delim_n = $ac_delim_num; then
16154: break
16155: elif $ac_last_try; then
16156: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16157: else
16158: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16159: fi
16160: done
16161: rm -f conf$$subs.sh
16162:
16163: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16165: _ACEOF
16166: sed -n '
16167: h
16168: s/^/S["/; s/!.*/"]=/
16169: p
16170: g
16171: s/^[^!]*!//
16172: :repl
16173: t repl
16174: s/'"$ac_delim"'$//
16175: t delim
16176: :nl
16177: h
16178: s/\(.\{148\}\)..*/\1/
16179: t more1
16180: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16181: p
16182: n
16183: b repl
16184: :more1
16185: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16186: p
16187: g
16188: s/.\{148\}//
16189: t nl
16190: :delim
16191: h
16192: s/\(.\{148\}\)..*/\1/
16193: t more2
16194: s/["\\]/\\&/g; s/^/"/; s/$/"/
16195: p
16196: b
16197: :more2
16198: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16199: p
16200: g
16201: s/.\{148\}//
16202: t delim
16203: ' <conf$$subs.awk | sed '
16204: /^[^""]/{
16205: N
16206: s/\n//
16207: }
16208: ' >>$CONFIG_STATUS || ac_write_fail=1
16209: rm -f conf$$subs.awk
16210: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16211: _ACAWK
16212: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16213: for (key in S) S_is_set[key] = 1
16214: FS = ""
16215:
16216: }
16217: {
16218: line = $ 0
16219: nfields = split(line, field, "@")
16220: substed = 0
16221: len = length(field[1])
16222: for (i = 2; i < nfields; i++) {
16223: key = field[i]
16224: keylen = length(key)
16225: if (S_is_set[key]) {
16226: value = S[key]
16227: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16228: len += length(value) + length(field[++i])
16229: substed = 1
16230: } else
16231: len += 1 + keylen
16232: }
16233:
16234: print line
16235: }
16236:
16237: _ACAWK
16238: _ACEOF
16239: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16240: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16241: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16242: else
16243: cat
16244: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16245: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16246: _ACEOF
16247:
16248: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16249: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16250: # trailing colons and then remove the whole line if VPATH becomes empty
16251: # (actually we leave an empty line to preserve line numbers).
16252: if test "x$srcdir" = x.; then
16253: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16254: h
16255: s///
16256: s/^/:/
16257: s/[ ]*$/:/
16258: s/:\$(srcdir):/:/g
16259: s/:\${srcdir}:/:/g
16260: s/:@srcdir@:/:/g
16261: s/^:*//
16262: s/:*$//
16263: x
16264: s/\(=[ ]*\).*/\1/
16265: G
16266: s/\n//
16267: s/^[^=]*=[ ]*$//
16268: }'
16269: fi
16270:
16271: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272: fi # test -n "$CONFIG_FILES"
16273:
16274: # Set up the scripts for CONFIG_HEADERS section.
16275: # No need to generate them if there are no CONFIG_HEADERS.
16276: # This happens for instance with `./config.status Makefile'.
16277: if test -n "$CONFIG_HEADERS"; then
16278: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16279: BEGIN {
16280: _ACEOF
16281:
16282: # Transform confdefs.h into an awk script `defines.awk', embedded as
16283: # here-document in config.status, that substitutes the proper values into
16284: # config.h.in to produce config.h.
16285:
16286: # Create a delimiter string that does not exist in confdefs.h, to ease
16287: # handling of long lines.
16288: ac_delim='%!_!# '
16289: for ac_last_try in false false :; do
16290: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16291: if test -z "$ac_tt"; then
16292: break
16293: elif $ac_last_try; then
16294: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16295: else
16296: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16297: fi
16298: done
16299:
16300: # For the awk script, D is an array of macro values keyed by name,
16301: # likewise P contains macro parameters if any. Preserve backslash
16302: # newline sequences.
16303:
16304: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16305: sed -n '
16306: s/.\{148\}/&'"$ac_delim"'/g
16307: t rset
16308: :rset
16309: s/^[ ]*#[ ]*define[ ][ ]*/ /
16310: t def
16311: d
16312: :def
16313: s/\\$//
16314: t bsnl
16315: s/["\\]/\\&/g
16316: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16317: D["\1"]=" \3"/p
16318: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16319: d
16320: :bsnl
16321: s/["\\]/\\&/g
16322: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16323: D["\1"]=" \3\\\\\\n"\\/p
16324: t cont
16325: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16326: t cont
16327: d
16328: :cont
16329: n
16330: s/.\{148\}/&'"$ac_delim"'/g
16331: t clear
16332: :clear
16333: s/\\$//
16334: t bsnlc
16335: s/["\\]/\\&/g; s/^/"/; s/$/"/p
16336: d
16337: :bsnlc
16338: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16339: b cont
16340: ' <confdefs.h | sed '
16341: s/'"$ac_delim"'/"\\\
16342: "/g' >>$CONFIG_STATUS || ac_write_fail=1
16343:
16344: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345: for (key in D) D_is_set[key] = 1
16346: FS = ""
16347: }
16348: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16349: line = \$ 0
16350: split(line, arg, " ")
16351: if (arg[1] == "#") {
16352: defundef = arg[2]
16353: mac1 = arg[3]
16354: } else {
16355: defundef = substr(arg[1], 2)
16356: mac1 = arg[2]
16357: }
16358: split(mac1, mac2, "(") #)
16359: macro = mac2[1]
16360: prefix = substr(line, 1, index(line, defundef) - 1)
16361: if (D_is_set[macro]) {
16362: # Preserve the white space surrounding the "#".
16363: print prefix "define", macro P[macro] D[macro]
16364: next
16365: } else {
16366: # Replace #undef with comments. This is necessary, for example,
16367: # in the case of _POSIX_SOURCE, which is predefined and required
16368: # on some systems where configure will not decide to define it.
16369: if (defundef == "undef") {
16370: print "/*", prefix defundef, macro, "*/"
16371: next
16372: }
16373: }
16374: }
16375: { print }
16376: _ACAWK
16377: _ACEOF
16378: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16379: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16380: fi # test -n "$CONFIG_HEADERS"
16381:
16382:
16383: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16384: shift
16385: for ac_tag
16386: do
16387: case $ac_tag in
16388: :[FHLC]) ac_mode=$ac_tag; continue;;
16389: esac
16390: case $ac_mode$ac_tag in
16391: :[FHL]*:*);;
16392: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16393: :[FH]-) ac_tag=-:-;;
16394: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16395: esac
16396: ac_save_IFS=$IFS
16397: IFS=:
16398: set x $ac_tag
16399: IFS=$ac_save_IFS
16400: shift
16401: ac_file=$1
16402: shift
16403:
16404: case $ac_mode in
16405: :L) ac_source=$1;;
16406: :[FH])
16407: ac_file_inputs=
16408: for ac_f
16409: do
16410: case $ac_f in
16411: -) ac_f="$ac_tmp/stdin";;
16412: *) # Look for the file first in the build tree, then in the source tree
16413: # (if the path is not absolute). The absolute path cannot be DOS-style,
16414: # because $ac_f cannot contain `:'.
16415: test -f "$ac_f" ||
16416: case $ac_f in
16417: [\\/$]*) false;;
16418: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16419: esac ||
16420: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16421: esac
1.1.1.3 ! misho 16422: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.1 misho 16423: as_fn_append ac_file_inputs " '$ac_f'"
16424: done
16425:
16426: # Let's still pretend it is `configure' which instantiates (i.e., don't
16427: # use $as_me), people would be surprised to read:
16428: # /* config.h. Generated by config.status. */
16429: configure_input='Generated from '`
1.1.1.3 ! misho 16430: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.1 misho 16431: `' by configure.'
16432: if test x"$ac_file" != x-; then
16433: configure_input="$ac_file. $configure_input"
1.1.1.3 ! misho 16434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
! 16435: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.1 misho 16436: fi
16437: # Neutralize special characters interpreted by sed in replacement strings.
16438: case $configure_input in #(
16439: *\&* | *\|* | *\\* )
1.1.1.3 ! misho 16440: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.1 misho 16441: sed 's/[\\\\&|]/\\\\&/g'`;; #(
16442: *) ac_sed_conf_input=$configure_input;;
16443: esac
16444:
16445: case $ac_tag in
16446: *:-:* | *:-) cat >"$ac_tmp/stdin" \
16447: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16448: esac
16449: ;;
16450: esac
16451:
16452: ac_dir=`$as_dirname -- "$ac_file" ||
16453: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16454: X"$ac_file" : 'X\(//\)[^/]' \| \
16455: X"$ac_file" : 'X\(//\)$' \| \
16456: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 16457: printf "%s\n" X"$ac_file" |
1.1 misho 16458: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16459: s//\1/
16460: q
16461: }
16462: /^X\(\/\/\)[^/].*/{
16463: s//\1/
16464: q
16465: }
16466: /^X\(\/\/\)$/{
16467: s//\1/
16468: q
16469: }
16470: /^X\(\/\).*/{
16471: s//\1/
16472: q
16473: }
16474: s/.*/./; q'`
16475: as_dir="$ac_dir"; as_fn_mkdir_p
16476: ac_builddir=.
16477:
16478: case "$ac_dir" in
16479: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16480: *)
1.1.1.3 ! misho 16481: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 misho 16482: # A ".." for each directory in $ac_dir_suffix.
1.1.1.3 ! misho 16483: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 misho 16484: case $ac_top_builddir_sub in
16485: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16486: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16487: esac ;;
16488: esac
16489: ac_abs_top_builddir=$ac_pwd
16490: ac_abs_builddir=$ac_pwd$ac_dir_suffix
16491: # for backward compatibility:
16492: ac_top_builddir=$ac_top_build_prefix
16493:
16494: case $srcdir in
16495: .) # We are building in place.
16496: ac_srcdir=.
16497: ac_top_srcdir=$ac_top_builddir_sub
16498: ac_abs_top_srcdir=$ac_pwd ;;
16499: [\\/]* | ?:[\\/]* ) # Absolute name.
16500: ac_srcdir=$srcdir$ac_dir_suffix;
16501: ac_top_srcdir=$srcdir
16502: ac_abs_top_srcdir=$srcdir ;;
16503: *) # Relative name.
16504: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16505: ac_top_srcdir=$ac_top_build_prefix$srcdir
16506: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16507: esac
16508: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16509:
16510:
16511: case $ac_mode in
16512: :F)
16513: #
16514: # CONFIG_FILE
16515: #
16516:
16517: case $INSTALL in
16518: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16519: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16520: esac
16521: ac_MKDIR_P=$MKDIR_P
16522: case $MKDIR_P in
16523: [\\/$]* | ?:[\\/]* ) ;;
16524: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16525: esac
16526: _ACEOF
16527:
16528: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16529: # If the template does not know about datarootdir, expand it.
16530: # FIXME: This hack should be removed a few years after 2.60.
16531: ac_datarootdir_hack=; ac_datarootdir_seen=
16532: ac_sed_dataroot='
16533: /datarootdir/ {
16534: p
16535: q
16536: }
16537: /@datadir@/p
16538: /@docdir@/p
16539: /@infodir@/p
16540: /@localedir@/p
16541: /@mandir@/p'
16542: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16543: *datarootdir*) ac_datarootdir_seen=yes;;
16544: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.1.1.3 ! misho 16545: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 16546: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 misho 16547: _ACEOF
16548: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16549: ac_datarootdir_hack='
16550: s&@datadir@&$datadir&g
16551: s&@docdir@&$docdir&g
16552: s&@infodir@&$infodir&g
16553: s&@localedir@&$localedir&g
16554: s&@mandir@&$mandir&g
16555: s&\\\${datarootdir}&$datarootdir&g' ;;
16556: esac
16557: _ACEOF
16558:
16559: # Neutralize VPATH when `$srcdir' = `.'.
16560: # Shell code in configure.ac might set extrasub.
16561: # FIXME: do we really want to maintain this feature?
16562: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16563: ac_sed_extra="$ac_vpsub
16564: $extrasub
16565: _ACEOF
16566: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16567: :t
16568: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16569: s|@configure_input@|$ac_sed_conf_input|;t t
16570: s&@top_builddir@&$ac_top_builddir_sub&;t t
16571: s&@top_build_prefix@&$ac_top_build_prefix&;t t
16572: s&@srcdir@&$ac_srcdir&;t t
16573: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16574: s&@top_srcdir@&$ac_top_srcdir&;t t
16575: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16576: s&@builddir@&$ac_builddir&;t t
16577: s&@abs_builddir@&$ac_abs_builddir&;t t
16578: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16579: s&@INSTALL@&$ac_INSTALL&;t t
16580: s&@MKDIR_P@&$ac_MKDIR_P&;t t
16581: $ac_datarootdir_hack
16582: "
16583: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16584: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16585:
16586: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16587: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16588: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16589: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.1.1.3 ! misho 16590: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1 misho 16591: which seems to be undefined. Please make sure it is defined" >&5
1.1.1.3 ! misho 16592: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1 misho 16593: which seems to be undefined. Please make sure it is defined" >&2;}
16594:
16595: rm -f "$ac_tmp/stdin"
16596: case $ac_file in
16597: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16598: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16599: esac \
16600: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16601: ;;
16602: :H)
16603: #
16604: # CONFIG_HEADER
16605: #
16606: if test x"$ac_file" != x-; then
16607: {
1.1.1.3 ! misho 16608: printf "%s\n" "/* $configure_input */" >&1 \
1.1 misho 16609: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16610: } >"$ac_tmp/config.h" \
16611: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16612: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.1.1.3 ! misho 16613: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
! 16614: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.1 misho 16615: else
16616: rm -f "$ac_file"
16617: mv "$ac_tmp/config.h" "$ac_file" \
16618: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16619: fi
16620: else
1.1.1.3 ! misho 16621: printf "%s\n" "/* $configure_input */" >&1 \
1.1 misho 16622: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16623: || as_fn_error $? "could not create -" "$LINENO" 5
16624: fi
16625: # Compute "$ac_file"'s index in $config_headers.
16626: _am_arg="$ac_file"
16627: _am_stamp_count=1
16628: for _am_header in $config_headers :; do
16629: case $_am_header in
16630: $_am_arg | $_am_arg:* )
16631: break ;;
16632: * )
16633: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16634: esac
16635: done
16636: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16637: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16638: X"$_am_arg" : 'X\(//\)[^/]' \| \
16639: X"$_am_arg" : 'X\(//\)$' \| \
16640: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 16641: printf "%s\n" X"$_am_arg" |
1.1 misho 16642: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16643: s//\1/
16644: q
16645: }
16646: /^X\(\/\/\)[^/].*/{
16647: s//\1/
16648: q
16649: }
16650: /^X\(\/\/\)$/{
16651: s//\1/
16652: q
16653: }
16654: /^X\(\/\).*/{
16655: s//\1/
16656: q
16657: }
16658: s/.*/./; q'`/stamp-h$_am_stamp_count
16659: ;;
16660:
1.1.1.3 ! misho 16661: :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
! 16662: printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1.1 misho 16663: ;;
16664: esac
16665:
16666:
16667: case $ac_file$ac_mode in
16668: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16669: # Older Autoconf quotes --file arguments for eval, but not when files
16670: # are listed without --file. Let's play safe and only enable the eval
16671: # if we detect the quoting.
1.1.1.2 misho 16672: # TODO: see whether this extra hack can be removed once we start
16673: # requiring Autoconf 2.70 or later.
16674: case $CONFIG_FILES in #(
16675: *\'*) :
16676: eval set x "$CONFIG_FILES" ;; #(
16677: *) :
16678: set x $CONFIG_FILES ;; #(
16679: *) :
16680: ;;
16681: esac
1.1 misho 16682: shift
1.1.1.2 misho 16683: # Used to flag and report bootstrapping failures.
16684: am_rc=0
16685: for am_mf
1.1 misho 16686: do
16687: # Strip MF so we end up with the name of the file.
1.1.1.3 ! misho 16688: am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1.1.1.2 misho 16689: # Check whether this is an Automake generated Makefile which includes
16690: # dependency-tracking related rules and includes.
16691: # Grep'ing the whole file directly is not great: AIX grep has a line
1.1 misho 16692: # limit of 2048, but all sed's we know have understand at least 4000.
1.1.1.2 misho 16693: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16694: || continue
16695: am_dirpart=`$as_dirname -- "$am_mf" ||
16696: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16697: X"$am_mf" : 'X\(//\)[^/]' \| \
16698: X"$am_mf" : 'X\(//\)$' \| \
16699: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 16700: printf "%s\n" X"$am_mf" |
1.1 misho 16701: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16702: s//\1/
16703: q
16704: }
16705: /^X\(\/\/\)[^/].*/{
16706: s//\1/
16707: q
16708: }
16709: /^X\(\/\/\)$/{
16710: s//\1/
16711: q
16712: }
16713: /^X\(\/\).*/{
16714: s//\1/
16715: q
16716: }
16717: s/.*/./; q'`
1.1.1.2 misho 16718: am_filepart=`$as_basename -- "$am_mf" ||
16719: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16720: X"$am_mf" : 'X\(//\)$' \| \
16721: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 ! misho 16722: printf "%s\n" X/"$am_mf" |
1.1.1.2 misho 16723: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.1 misho 16724: s//\1/
16725: q
16726: }
1.1.1.2 misho 16727: /^X\/\(\/\/\)$/{
1.1 misho 16728: s//\1/
16729: q
16730: }
1.1.1.2 misho 16731: /^X\/\(\/\).*/{
1.1 misho 16732: s//\1/
16733: q
16734: }
16735: s/.*/./; q'`
1.1.1.2 misho 16736: { echo "$as_me:$LINENO: cd "$am_dirpart" \
16737: && sed -e '/# am--include-marker/d' "$am_filepart" \
16738: | $MAKE -f - am--depfiles" >&5
16739: (cd "$am_dirpart" \
16740: && sed -e '/# am--include-marker/d' "$am_filepart" \
16741: | $MAKE -f - am--depfiles) >&5 2>&5
16742: ac_status=$?
16743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744: (exit $ac_status); } || am_rc=$?
1.1 misho 16745: done
1.1.1.2 misho 16746: if test $am_rc -ne 0; then
1.1.1.3 ! misho 16747: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 16748: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 16749: as_fn_error $? "Something went wrong bootstrapping makefile fragments
16750: for automatic dependency tracking. If GNU make was not used, consider
16751: re-running the configure script with MAKE=\"gmake\" (or whatever is
16752: necessary). You can also try re-running configure with the
16753: '--disable-dependency-tracking' option to at least be able to build
16754: the package (albeit without support for automatic dependency tracking).
16755: See \`config.log' for more details" "$LINENO" 5; }
16756: fi
16757: { am_dirpart=; unset am_dirpart;}
16758: { am_filepart=; unset am_filepart;}
16759: { am_mf=; unset am_mf;}
16760: { am_rc=; unset am_rc;}
16761: rm -f conftest-deps.mk
1.1 misho 16762: }
16763: ;;
16764: "libtool":C)
16765:
16766: # See if we are running on zsh, and set the options that allow our
16767: # commands through without removal of \ escapes.
16768: if test -n "${ZSH_VERSION+set}"; then
16769: setopt NO_GLOB_SUBST
16770: fi
16771:
16772: cfgfile=${ofile}T
16773: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16774: $RM "$cfgfile"
16775:
16776: cat <<_LT_EOF >> "$cfgfile"
16777: #! $SHELL
16778: # Generated automatically by $as_me ($PACKAGE) $VERSION
16779: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16780: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16781:
16782: # Provide generalized library-building support services.
16783: # Written by Gordon Matzigkeit, 1996
16784:
16785: # Copyright (C) 2014 Free Software Foundation, Inc.
16786: # This is free software; see the source for copying conditions. There is NO
16787: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16788:
16789: # GNU Libtool is free software; you can redistribute it and/or modify
16790: # it under the terms of the GNU General Public License as published by
16791: # the Free Software Foundation; either version 2 of of the License, or
16792: # (at your option) any later version.
16793: #
16794: # As a special exception to the GNU General Public License, if you
16795: # distribute this file as part of a program or library that is built
16796: # using GNU Libtool, you may include this file under the same
16797: # distribution terms that you use for the rest of that program.
16798: #
16799: # GNU Libtool is distributed in the hope that it will be useful, but
16800: # WITHOUT ANY WARRANTY; without even the implied warranty of
16801: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16802: # GNU General Public License for more details.
16803: #
16804: # You should have received a copy of the GNU General Public License
16805: # along with this program. If not, see <http://www.gnu.org/licenses/>.
16806:
16807:
16808: # The names of the tagged configurations supported by this script.
16809: available_tags=''
16810:
16811: # Configured defaults for sys_lib_dlsearch_path munging.
16812: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16813:
16814: # ### BEGIN LIBTOOL CONFIG
16815:
16816: # Which release of libtool.m4 was used?
16817: macro_version=$macro_version
16818: macro_revision=$macro_revision
16819:
16820: # Whether or not to build shared libraries.
16821: build_libtool_libs=$enable_shared
16822:
16823: # Whether or not to build static libraries.
16824: build_old_libs=$enable_static
16825:
16826: # What type of objects to build.
16827: pic_mode=$pic_mode
16828:
16829: # Whether or not to optimize for fast installation.
16830: fast_install=$enable_fast_install
16831:
16832: # Shared archive member basename,for filename based shared library versioning on AIX.
16833: shared_archive_member_spec=$shared_archive_member_spec
16834:
16835: # Shell to use when invoking shell scripts.
16836: SHELL=$lt_SHELL
16837:
16838: # An echo program that protects backslashes.
16839: ECHO=$lt_ECHO
16840:
16841: # The PATH separator for the build system.
16842: PATH_SEPARATOR=$lt_PATH_SEPARATOR
16843:
16844: # The host system.
16845: host_alias=$host_alias
16846: host=$host
16847: host_os=$host_os
16848:
16849: # The build system.
16850: build_alias=$build_alias
16851: build=$build
16852: build_os=$build_os
16853:
16854: # A sed program that does not truncate output.
16855: SED=$lt_SED
16856:
16857: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16858: Xsed="\$SED -e 1s/^X//"
16859:
16860: # A grep program that handles long lines.
16861: GREP=$lt_GREP
16862:
16863: # An ERE matcher.
16864: EGREP=$lt_EGREP
16865:
16866: # A literal string matcher.
16867: FGREP=$lt_FGREP
16868:
16869: # A BSD- or MS-compatible name lister.
16870: NM=$lt_NM
16871:
16872: # Whether we need soft or hard links.
16873: LN_S=$lt_LN_S
16874:
16875: # What is the maximum length of a command?
16876: max_cmd_len=$max_cmd_len
16877:
16878: # Object file suffix (normally "o").
16879: objext=$ac_objext
16880:
16881: # Executable file suffix (normally "").
16882: exeext=$exeext
16883:
16884: # whether the shell understands "unset".
16885: lt_unset=$lt_unset
16886:
16887: # turn spaces into newlines.
16888: SP2NL=$lt_lt_SP2NL
16889:
16890: # turn newlines into spaces.
16891: NL2SP=$lt_lt_NL2SP
16892:
16893: # convert \$build file names to \$host format.
16894: to_host_file_cmd=$lt_cv_to_host_file_cmd
16895:
16896: # convert \$build files to toolchain format.
16897: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16898:
1.1.1.3 ! misho 16899: # A file(cmd) program that detects file types.
! 16900: FILECMD=$lt_FILECMD
! 16901:
1.1 misho 16902: # An object symbol dumper.
16903: OBJDUMP=$lt_OBJDUMP
16904:
16905: # Method to check whether dependent libraries are shared objects.
16906: deplibs_check_method=$lt_deplibs_check_method
16907:
16908: # Command to use when deplibs_check_method = "file_magic".
16909: file_magic_cmd=$lt_file_magic_cmd
16910:
16911: # How to find potential files when deplibs_check_method = "file_magic".
16912: file_magic_glob=$lt_file_magic_glob
16913:
16914: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16915: want_nocaseglob=$lt_want_nocaseglob
16916:
16917: # DLL creation program.
16918: DLLTOOL=$lt_DLLTOOL
16919:
16920: # Command to associate shared and link libraries.
16921: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16922:
16923: # The archiver.
16924: AR=$lt_AR
16925:
1.1.1.3 ! misho 16926: # Flags to create an archive (by configure).
! 16927: lt_ar_flags=$lt_ar_flags
! 16928:
1.1 misho 16929: # Flags to create an archive.
1.1.1.3 ! misho 16930: AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1.1 misho 16931:
16932: # How to feed a file listing to the archiver.
16933: archiver_list_spec=$lt_archiver_list_spec
16934:
16935: # A symbol stripping program.
16936: STRIP=$lt_STRIP
16937:
16938: # Commands used to install an old-style archive.
16939: RANLIB=$lt_RANLIB
16940: old_postinstall_cmds=$lt_old_postinstall_cmds
16941: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16942:
16943: # Whether to use a lock for old archive extraction.
16944: lock_old_archive_extraction=$lock_old_archive_extraction
16945:
16946: # A C compiler.
16947: LTCC=$lt_CC
16948:
16949: # LTCC compiler flags.
16950: LTCFLAGS=$lt_CFLAGS
16951:
16952: # Take the output of nm and produce a listing of raw symbols and C names.
16953: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16954:
16955: # Transform the output of nm in a proper C declaration.
16956: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16957:
16958: # Transform the output of nm into a list of symbols to manually relocate.
16959: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16960:
16961: # Transform the output of nm in a C name address pair.
16962: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16963:
16964: # Transform the output of nm in a C name address pair when lib prefix is needed.
16965: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16966:
16967: # The name lister interface.
16968: nm_interface=$lt_lt_cv_nm_interface
16969:
16970: # Specify filename containing input files for \$NM.
16971: nm_file_list_spec=$lt_nm_file_list_spec
16972:
16973: # The root where to search for dependent libraries,and where our libraries should be installed.
16974: lt_sysroot=$lt_sysroot
16975:
16976: # Command to truncate a binary pipe.
16977: lt_truncate_bin=$lt_lt_cv_truncate_bin
16978:
16979: # The name of the directory that contains temporary libtool files.
16980: objdir=$objdir
16981:
16982: # Used to examine libraries when file_magic_cmd begins with "file".
16983: MAGIC_CMD=$MAGIC_CMD
16984:
16985: # Must we lock files when doing compilation?
16986: need_locks=$lt_need_locks
16987:
16988: # Manifest tool.
16989: MANIFEST_TOOL=$lt_MANIFEST_TOOL
16990:
16991: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16992: DSYMUTIL=$lt_DSYMUTIL
16993:
16994: # Tool to change global to local symbols on Mac OS X.
16995: NMEDIT=$lt_NMEDIT
16996:
16997: # Tool to manipulate fat objects and archives on Mac OS X.
16998: LIPO=$lt_LIPO
16999:
17000: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17001: OTOOL=$lt_OTOOL
17002:
17003: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17004: OTOOL64=$lt_OTOOL64
17005:
17006: # Old archive suffix (normally "a").
17007: libext=$libext
17008:
17009: # Shared library suffix (normally ".so").
17010: shrext_cmds=$lt_shrext_cmds
17011:
17012: # The commands to extract the exported symbol list from a shared archive.
17013: extract_expsyms_cmds=$lt_extract_expsyms_cmds
17014:
17015: # Variables whose values should be saved in libtool wrapper scripts and
17016: # restored at link time.
17017: variables_saved_for_relink=$lt_variables_saved_for_relink
17018:
17019: # Do we need the "lib" prefix for modules?
17020: need_lib_prefix=$need_lib_prefix
17021:
17022: # Do we need a version for libraries?
17023: need_version=$need_version
17024:
17025: # Library versioning type.
17026: version_type=$version_type
17027:
17028: # Shared library runtime path variable.
17029: runpath_var=$runpath_var
17030:
17031: # Shared library path variable.
17032: shlibpath_var=$shlibpath_var
17033:
17034: # Is shlibpath searched before the hard-coded library search path?
17035: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17036:
17037: # Format of library name prefix.
17038: libname_spec=$lt_libname_spec
17039:
17040: # List of archive names. First name is the real one, the rest are links.
17041: # The last name is the one that the linker finds with -lNAME
17042: library_names_spec=$lt_library_names_spec
17043:
17044: # The coded name of the library, if different from the real name.
17045: soname_spec=$lt_soname_spec
17046:
17047: # Permission mode override for installation of shared libraries.
17048: install_override_mode=$lt_install_override_mode
17049:
17050: # Command to use after installation of a shared archive.
17051: postinstall_cmds=$lt_postinstall_cmds
17052:
17053: # Command to use after uninstallation of a shared archive.
17054: postuninstall_cmds=$lt_postuninstall_cmds
17055:
17056: # Commands used to finish a libtool library installation in a directory.
17057: finish_cmds=$lt_finish_cmds
17058:
17059: # As "finish_cmds", except a single script fragment to be evaled but
17060: # not shown.
17061: finish_eval=$lt_finish_eval
17062:
17063: # Whether we should hardcode library paths into libraries.
17064: hardcode_into_libs=$hardcode_into_libs
17065:
17066: # Compile-time system search path for libraries.
17067: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17068:
17069: # Detected run-time system search path for libraries.
17070: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17071:
17072: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17073: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17074:
17075: # Whether dlopen is supported.
17076: dlopen_support=$enable_dlopen
17077:
17078: # Whether dlopen of programs is supported.
17079: dlopen_self=$enable_dlopen_self
17080:
17081: # Whether dlopen of statically linked programs is supported.
17082: dlopen_self_static=$enable_dlopen_self_static
17083:
17084: # Commands to strip libraries.
17085: old_striplib=$lt_old_striplib
17086: striplib=$lt_striplib
17087:
17088:
17089: # The linker used to build libraries.
17090: LD=$lt_LD
17091:
17092: # How to create reloadable object files.
17093: reload_flag=$lt_reload_flag
17094: reload_cmds=$lt_reload_cmds
17095:
17096: # Commands used to build an old-style archive.
17097: old_archive_cmds=$lt_old_archive_cmds
17098:
17099: # A language specific compiler.
17100: CC=$lt_compiler
17101:
17102: # Is the compiler the GNU compiler?
17103: with_gcc=$GCC
17104:
17105: # Compiler flag to turn off builtin functions.
17106: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17107:
17108: # Additional compiler flags for building library objects.
17109: pic_flag=$lt_lt_prog_compiler_pic
17110:
17111: # How to pass a linker flag through the compiler.
17112: wl=$lt_lt_prog_compiler_wl
17113:
17114: # Compiler flag to prevent dynamic linking.
17115: link_static_flag=$lt_lt_prog_compiler_static
17116:
17117: # Does compiler simultaneously support -c and -o options?
17118: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17119:
17120: # Whether or not to add -lc for building shared libraries.
17121: build_libtool_need_lc=$archive_cmds_need_lc
17122:
17123: # Whether or not to disallow shared libs when runtime libs are static.
17124: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17125:
17126: # Compiler flag to allow reflexive dlopens.
17127: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17128:
17129: # Compiler flag to generate shared objects directly from archives.
17130: whole_archive_flag_spec=$lt_whole_archive_flag_spec
17131:
17132: # Whether the compiler copes with passing no objects directly.
17133: compiler_needs_object=$lt_compiler_needs_object
17134:
17135: # Create an old-style archive from a shared archive.
17136: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17137:
17138: # Create a temporary old-style archive to link instead of a shared archive.
17139: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17140:
17141: # Commands used to build a shared archive.
17142: archive_cmds=$lt_archive_cmds
17143: archive_expsym_cmds=$lt_archive_expsym_cmds
17144:
17145: # Commands used to build a loadable module if different from building
17146: # a shared archive.
17147: module_cmds=$lt_module_cmds
17148: module_expsym_cmds=$lt_module_expsym_cmds
17149:
17150: # Whether we are building with GNU ld or not.
17151: with_gnu_ld=$lt_with_gnu_ld
17152:
17153: # Flag that allows shared libraries with undefined symbols to be built.
17154: allow_undefined_flag=$lt_allow_undefined_flag
17155:
17156: # Flag that enforces no undefined symbols.
17157: no_undefined_flag=$lt_no_undefined_flag
17158:
17159: # Flag to hardcode \$libdir into a binary during linking.
17160: # This must work even if \$libdir does not exist
17161: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17162:
17163: # Whether we need a single "-rpath" flag with a separated argument.
17164: hardcode_libdir_separator=$lt_hardcode_libdir_separator
17165:
17166: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17167: # DIR into the resulting binary.
17168: hardcode_direct=$hardcode_direct
17169:
17170: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17171: # DIR into the resulting binary and the resulting library dependency is
17172: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17173: # library is relocated.
17174: hardcode_direct_absolute=$hardcode_direct_absolute
17175:
17176: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17177: # into the resulting binary.
17178: hardcode_minus_L=$hardcode_minus_L
17179:
17180: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17181: # into the resulting binary.
17182: hardcode_shlibpath_var=$hardcode_shlibpath_var
17183:
17184: # Set to "yes" if building a shared library automatically hardcodes DIR
17185: # into the library and all subsequent libraries and executables linked
17186: # against it.
17187: hardcode_automatic=$hardcode_automatic
17188:
17189: # Set to yes if linker adds runtime paths of dependent libraries
17190: # to runtime path list.
17191: inherit_rpath=$inherit_rpath
17192:
17193: # Whether libtool must link a program against all its dependency libraries.
17194: link_all_deplibs=$link_all_deplibs
17195:
17196: # Set to "yes" if exported symbols are required.
17197: always_export_symbols=$always_export_symbols
17198:
17199: # The commands to list exported symbols.
17200: export_symbols_cmds=$lt_export_symbols_cmds
17201:
17202: # Symbols that should not be listed in the preloaded symbols.
17203: exclude_expsyms=$lt_exclude_expsyms
17204:
17205: # Symbols that must always be exported.
17206: include_expsyms=$lt_include_expsyms
17207:
17208: # Commands necessary for linking programs (against libraries) with templates.
17209: prelink_cmds=$lt_prelink_cmds
17210:
17211: # Commands necessary for finishing linking programs.
17212: postlink_cmds=$lt_postlink_cmds
17213:
17214: # Specify filename containing input files.
17215: file_list_spec=$lt_file_list_spec
17216:
17217: # How to hardcode a shared library path into an executable.
17218: hardcode_action=$hardcode_action
17219:
17220: # ### END LIBTOOL CONFIG
17221:
17222: _LT_EOF
17223:
17224: cat <<'_LT_EOF' >> "$cfgfile"
17225:
17226: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17227:
17228: # func_munge_path_list VARIABLE PATH
17229: # -----------------------------------
17230: # VARIABLE is name of variable containing _space_ separated list of
17231: # directories to be munged by the contents of PATH, which is string
17232: # having a format:
17233: # "DIR[:DIR]:"
17234: # string "DIR[ DIR]" will be prepended to VARIABLE
17235: # ":DIR[:DIR]"
17236: # string "DIR[ DIR]" will be appended to VARIABLE
17237: # "DIRP[:DIRP]::[DIRA:]DIRA"
17238: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17239: # "DIRA[ DIRA]" will be appended to VARIABLE
17240: # "DIR[:DIR]"
17241: # VARIABLE will be replaced by "DIR[ DIR]"
17242: func_munge_path_list ()
17243: {
17244: case x$2 in
17245: x)
17246: ;;
17247: *:)
17248: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17249: ;;
17250: x:*)
17251: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17252: ;;
17253: *::*)
17254: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17255: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17256: ;;
17257: *)
17258: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17259: ;;
17260: esac
17261: }
17262:
17263:
17264: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17265: func_cc_basename ()
17266: {
17267: for cc_temp in $*""; do
17268: case $cc_temp in
17269: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17270: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17271: \-*) ;;
17272: *) break;;
17273: esac
17274: done
17275: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17276: }
17277:
17278:
17279: # ### END FUNCTIONS SHARED WITH CONFIGURE
17280:
17281: _LT_EOF
17282:
17283: case $host_os in
17284: aix3*)
17285: cat <<\_LT_EOF >> "$cfgfile"
17286: # AIX sometimes has problems with the GCC collect2 program. For some
17287: # reason, if we set the COLLECT_NAMES environment variable, the problems
17288: # vanish in a puff of smoke.
17289: if test set != "${COLLECT_NAMES+set}"; then
17290: COLLECT_NAMES=
17291: export COLLECT_NAMES
17292: fi
17293: _LT_EOF
17294: ;;
17295: esac
17296:
17297:
1.1.1.3 ! misho 17298:
1.1 misho 17299: ltmain=$ac_aux_dir/ltmain.sh
17300:
17301:
17302: # We use sed instead of cat because bash on DJGPP gets confused if
17303: # if finds mixed CR/LF and LF-only lines. Since sed operates in
17304: # text mode, it properly converts lines to CR/LF. This bash problem
17305: # is reportedly fixed, but why not run on old versions too?
1.1.1.3 ! misho 17306: $SED '$q' "$ltmain" >> "$cfgfile" \
1.1 misho 17307: || (rm -f "$cfgfile"; exit 1)
17308:
17309: mv -f "$cfgfile" "$ofile" ||
17310: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17311: chmod +x "$ofile"
17312:
17313: ;;
17314:
17315: esac
17316: done # for ac_tag
17317:
17318:
17319: as_fn_exit 0
17320: _ACEOF
17321: ac_clean_files=$ac_clean_files_save
17322:
17323: test $ac_write_fail = 0 ||
17324: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17325:
17326:
17327: # configure is writing to config.log, and then calls config.status.
17328: # config.status does its own redirection, appending to config.log.
17329: # Unfortunately, on DOS this fails, as config.log is still kept open
17330: # by configure, so config.status won't be able to write to it; its
17331: # output is simply discarded. So we exec the FD to /dev/null,
17332: # effectively closing config.log, so it can be properly (re)opened and
17333: # appended to by config.status. When coming back to configure, we
17334: # need to make the FD available again.
17335: if test "$no_create" != yes; then
17336: ac_cs_success=:
17337: ac_config_status_args=
17338: test "$silent" = yes &&
17339: ac_config_status_args="$ac_config_status_args --quiet"
17340: exec 5>/dev/null
17341: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17342: exec 5>>config.log
17343: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17344: # would make configure fail if this is the last instruction.
17345: $ac_cs_success || as_fn_exit 1
17346: fi
17347: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.1.1.3 ! misho 17348: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 17349: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.1 misho 17350: fi
17351:
1.1.1.3 ! misho 17352:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>