Codebase list libnbd / 3b51d28
New upstream version 1.10.4 Hilko Bengen 2 years ago
39 changed file(s) with 6010 addition(s) and 7197 deletion(s). Raw diff Collapse all Expand all
3232 - Better page cache usage, see nbdkit-file-plugin options
3333 fadvise=sequential cache=none.
3434 - Consider io_uring if there are performance bottlenecks.
35 - Configurable retries in response to read or write failures.
3536
3637 nbdfuse:
3738 - If you write beyond the end of the virtual file, it returns EIO.
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN* | MSYS*)
55 CYGWIN*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/* | msys/*)
69 cygwin/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
11 # Attempt to guess a canonical system name.
22 # Copyright 1992-2018 Free Software Foundation, Inc.
33
4 timestamp='2018-08-29'
4 timestamp='2018-03-08'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
8383 exit 1
8484 fi
8585
86 trap 'exit 1' 1 2 15
87
8688 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
8789 # compiler to aid in system detection is discouraged as it requires
8890 # temporary files to be created and, as you can see below, it is a
9395
9496 # Portable tmp directory creation inspired by the Autoconf team.
9597
96 tmp=
97 # shellcheck disable=SC2172
98 trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
99 trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
100
101 set_cc_for_build() {
102 : "${TMPDIR=/tmp}"
103 # shellcheck disable=SC2039
104 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
105 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
106 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
107 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
108 dummy=$tmp/dummy
109 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
110 ,,) echo "int x;" > "$dummy.c"
111 for driver in cc gcc c89 c99 ; do
112 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$driver"
114 break
115 fi
116 done
117 if test x"$CC_FOR_BUILD" = x ; then
118 CC_FOR_BUILD=no_compiler_found
119 fi
120 ;;
121 ,,*) CC_FOR_BUILD=$CC ;;
122 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
123 esac
124 }
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
125122
126123 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
127124 # (ghazi@noc.rutgers.edu 1994-08-24)
128 if test -f /.attbin/uname ; then
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
129126 PATH=$PATH:/.attbin ; export PATH
130127 fi
131128
140137 # We could probably try harder.
141138 LIBC=gnu
142139
143 set_cc_for_build
140 eval "$set_cc_for_build"
144141 cat <<-EOF > "$dummy.c"
145142 #include <features.h>
146143 #if defined(__UCLIBC__)
201198 os=netbsdelf
202199 ;;
203200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
204 set_cc_for_build
201 eval "$set_cc_for_build"
205202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
206203 | grep -q __ELF__
207204 then
239236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
240237 # contains redundant information, the shorter form:
241238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
242 echo "$machine-${os}${release}${abi-}"
239 echo "$machine-${os}${release}${abi}"
243240 exit ;;
244241 *:Bitrig:*:*)
245242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
391388 echo i386-pc-auroraux"$UNAME_RELEASE"
392389 exit ;;
393390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
394 UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
395 case `isainfo -b` in
396 32)
397 echo i386-pc-solaris2"$UNAME_REL"
398 ;;
399 64)
400 echo x86_64-pc-solaris2"$UNAME_REL"
401 ;;
402 esac
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
393 # If there is a compiler, see if it is configured for 64-bit objects.
394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
399 grep IS_64BIT_ARCH >/dev/null
400 then
401 SUN_ARCH=x86_64
402 fi
403 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
403405 exit ;;
404406 sun4*:SunOS:6*:*)
405407 # According to config.sub, this is the proper way to canonicalize
479481 echo clipper-intergraph-clix"$UNAME_RELEASE"
480482 exit ;;
481483 mips:*:*:UMIPS | mips:*:*:RISCos)
482 set_cc_for_build
484 eval "$set_cc_for_build"
483485 sed 's/^ //' << EOF > "$dummy.c"
484486 #ifdef __cplusplus
485487 #include <stdio.h> /* for printf() prototype */
576578 exit ;;
577579 *:AIX:2:3)
578580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
579 set_cc_for_build
581 eval "$set_cc_for_build"
580582 sed 's/^ //' << EOF > "$dummy.c"
581583 #include <sys/systemcfg.h>
582584
657659 esac
658660 fi
659661 if [ "$HP_ARCH" = "" ]; then
660 set_cc_for_build
662 eval "$set_cc_for_build"
661663 sed 's/^ //' << EOF > "$dummy.c"
662664
663665 #define _HPUX_SOURCE
697699 esac
698700 if [ "$HP_ARCH" = hppa2.0w ]
699701 then
700 set_cc_for_build
702 eval "$set_cc_for_build"
701703
702704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
703705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
723725 echo ia64-hp-hpux"$HPUX_REV"
724726 exit ;;
725727 3050*:HI-UX:*:*)
726 set_cc_for_build
728 eval "$set_cc_for_build"
727729 sed 's/^ //' << EOF > "$dummy.c"
728730 #include <unistd.h>
729731 int
837839 *:BSD/OS:*:*)
838840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
839841 exit ;;
840 arm:FreeBSD:*:*)
841 UNAME_PROCESSOR=`uname -p`
842 set_cc_for_build
843 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
844 | grep -q __ARM_PCS_VFP
845 then
846 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
847 else
848 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
849 fi
850 exit ;;
851842 *:FreeBSD:*:*)
852843 UNAME_PROCESSOR=`/usr/bin/uname -p`
853844 case "$UNAME_PROCESSOR" in
902893 # other systems with GNU libc and userland
903894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
904895 exit ;;
905 *:Minix:*:*)
906 echo "$UNAME_MACHINE"-unknown-minix
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
907898 exit ;;
908899 aarch64:Linux:*:*)
909900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
930921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
931922 exit ;;
932923 arm*:Linux:*:*)
933 set_cc_for_build
924 eval "$set_cc_for_build"
934925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
935926 | grep -q __ARM_EABI__
936927 then
979970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
980971 exit ;;
981972 mips:Linux:*:* | mips64:Linux:*:*)
982 set_cc_for_build
973 eval "$set_cc_for_build"
983974 sed 's/^ //' << EOF > "$dummy.c"
984975 #undef CPU
985976 #undef ${UNAME_MACHINE}
12931284 exit ;;
12941285 *:Darwin:*:*)
12951286 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1296 set_cc_for_build
1287 eval "$set_cc_for_build"
12971288 if test "$UNAME_PROCESSOR" = unknown ; then
12981289 UNAME_PROCESSOR=powerpc
12991290 fi
13661357 # "uname -m" is not consistent, so use $cputype instead. 386
13671358 # is converted to i386 for consistency with other x86
13681359 # operating systems.
1369 # shellcheck disable=SC2154
13701360 if test "$cputype" = 386; then
13711361 UNAME_MACHINE=i386
13721362 else
4242 /* Define to 1 if you have the <linux/vm_sockets.h> header file. */
4343 #undef HAVE_LINUX_VM_SOCKETS_H
4444
45 /* Define to 1 if you have the <minix/config.h> header file. */
46 #undef HAVE_MINIX_CONFIG_H
45 /* Define to 1 if you have the <memory.h> header file. */
46 #undef HAVE_MEMORY_H
4747
4848 /* Define to 1 if you have the `posix_fadvise' function. */
4949 #undef HAVE_POSIX_FADVISE
6262
6363 /* Define to 1 if you have the <stdint.h> header file. */
6464 #undef HAVE_STDINT_H
65
66 /* Define to 1 if you have the <stdio.h> header file. */
67 #undef HAVE_STDIO_H
6865
6966 /* Define to 1 if you have the <stdlib.h> header file. */
7067 #undef HAVE_STDLIB_H
9289
9390 /* Define to 1 if you have the <unistd.h> header file. */
9491 #undef HAVE_UNISTD_H
95
96 /* Define to 1 if you have the <wchar.h> header file. */
97 #undef HAVE_WCHAR_H
9892
9993 /* Define to the sub-directory where libtool stores uninstalled libraries. */
10094 #undef LT_OBJDIR
127121 your system. */
128122 #undef PTHREAD_CREATE_JOINABLE
129123
130 /* Define to 1 if all of the C90 standard headers exist (not just the ones
131 required in a freestanding environment). This macro is provided for
132 backward compatibility; new code need not use it. */
124 /* Define to 1 if you have the ANSI C header files. */
133125 #undef STDC_HEADERS
134126
135127 /* Default TLS session priority string */
139131 #ifndef _ALL_SOURCE
140132 # undef _ALL_SOURCE
141133 #endif
142 /* Enable general extensions on macOS. */
143 #ifndef _DARWIN_C_SOURCE
144 # undef _DARWIN_C_SOURCE
134 /* Enable GNU extensions on systems that have them. */
135 #ifndef _GNU_SOURCE
136 # undef _GNU_SOURCE
137 #endif
138 /* Enable threading extensions on Solaris. */
139 #ifndef _POSIX_PTHREAD_SEMANTICS
140 # undef _POSIX_PTHREAD_SEMANTICS
141 #endif
142 /* Enable extensions on HP NonStop. */
143 #ifndef _TANDEM_SOURCE
144 # undef _TANDEM_SOURCE
145145 #endif
146146 /* Enable general extensions on Solaris. */
147147 #ifndef __EXTENSIONS__
148148 # undef __EXTENSIONS__
149149 #endif
150 /* Enable GNU extensions on systems that have them. */
151 #ifndef _GNU_SOURCE
152 # undef _GNU_SOURCE
153 #endif
154 /* Enable X/Open compliant socket functions that do not require linking
155 with -lxnet on HP-UX 11.11. */
156 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
157 # undef _HPUX_ALT_XOPEN_SOCKET_API
158 #endif
159 /* Identify the host operating system as Minix.
160 This macro does not affect the system headers' behavior.
161 A future release of Autoconf may stop defining this macro. */
162 #ifndef _MINIX
163 # undef _MINIX
164 #endif
165 /* Enable general extensions on NetBSD.
166 Enable NetBSD compatibility extensions on Minix. */
167 #ifndef _NETBSD_SOURCE
168 # undef _NETBSD_SOURCE
169 #endif
170 /* Enable OpenBSD compatibility extensions on NetBSD.
171 Oddly enough, this does nothing on OpenBSD. */
172 #ifndef _OPENBSD_SOURCE
173 # undef _OPENBSD_SOURCE
174 #endif
175 /* Define to 1 if needed for POSIX-compatible behavior. */
176 #ifndef _POSIX_SOURCE
177 # undef _POSIX_SOURCE
178 #endif
179 /* Define to 2 if needed for POSIX-compatible behavior. */
180 #ifndef _POSIX_1_SOURCE
181 # undef _POSIX_1_SOURCE
182 #endif
183 /* Enable POSIX-compatible threading on Solaris. */
184 #ifndef _POSIX_PTHREAD_SEMANTICS
185 # undef _POSIX_PTHREAD_SEMANTICS
186 #endif
187 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
188 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
189 # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
190 #endif
191 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
192 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
193 # undef __STDC_WANT_IEC_60559_BFP_EXT__
194 #endif
195 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
196 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
197 # undef __STDC_WANT_IEC_60559_DFP_EXT__
198 #endif
199 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
200 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
201 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
202 #endif
203 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
204 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
205 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
206 #endif
207 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
208 #ifndef __STDC_WANT_LIB_EXT2__
209 # undef __STDC_WANT_LIB_EXT2__
210 #endif
211 /* Enable extensions specified by ISO/IEC 24747:2009. */
212 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
213 # undef __STDC_WANT_MATH_SPEC_FUNCS__
214 #endif
215 /* Enable extensions on HP NonStop. */
216 #ifndef _TANDEM_SOURCE
217 # undef _TANDEM_SOURCE
218 #endif
219 /* Enable X/Open extensions. Define to 500 only if necessary
220 to make mbstate_t available. */
221 #ifndef _XOPEN_SOURCE
222 # undef _XOPEN_SOURCE
223 #endif
224150
225151
226152 /* Version number of package */
227153 #undef VERSION
154
155 /* Enable large inode numbers on Mac OS X 10.5. */
156 #ifndef _DARWIN_USE_64_BIT_INODE
157 # define _DARWIN_USE_64_BIT_INODE 1
158 #endif
228159
229160 /* Number of bits in a file offset, on hosts where this is settable. */
230161 #undef _FILE_OFFSET_BITS
232163 /* Define for large files, on AIX-style hosts. */
233164 #undef _LARGE_FILES
234165
166 /* Define to 1 if on MINIX. */
167 #undef _MINIX
168
169 /* Define to 2 if the system does not provide POSIX.1 features except with
170 this defined. */
171 #undef _POSIX_1_SOURCE
172
173 /* Define to 1 if you need to in order for `stat' and other things to work. */
174 #undef _POSIX_SOURCE
175
235176 /* Define like PROTOTYPES; this can be used by system headers. */
236177 #undef __PROTOTYPES
+1434
-1391
config.sub less more
11 # Configuration validation subroutine script.
22 # Copyright 1992-2018 Free Software Foundation, Inc.
33
4 timestamp='2018-08-29'
4 timestamp='2018-05-05'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
109109 exit 1;;
110110 esac
111111
112 # Split fields of configuration type
112 # Spilt fields of configuration type
113113 IFS="-" read -r field1 field2 field3 field4 <<EOF
114114 $1
115115 EOF
116116
117117 # Separate into logical components for further validation
118118 case $1 in
119 *-*-*-*-*)
120 echo Invalid configuration \`"$1"\': more than four components >&2
121 exit 1
122 ;;
123119 *-*-*-*)
124120 basic_machine=$field1-$field2
125 os=$field3-$field4
121 os=-$field3-$field4
126122 ;;
127123 *-*-*)
128124 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
135131 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
136132 | storm-chaos* | os2-emx* | rtmk-nova*)
137133 basic_machine=$field1
138 os=$maybe_os
134 os=-$maybe_os
139135 ;;
140136 android-linux)
141137 basic_machine=$field1-unknown
142 os=linux-android
138 os=-linux-android
143139 ;;
144140 *)
145141 basic_machine=$field1-$field2
146 os=$field3
142 os=-$field3
147143 ;;
148144 esac
149145 ;;
150146 *-*)
151 # A lone config we happen to match not fitting any patern
152 case $field1-$field2 in
153 decstation-3100)
154 basic_machine=mips-dec
155 os=
156 ;;
157 *-*)
158 # Second component is usually, but not always the OS
159 case $field2 in
160 # Prevent following clause from handling this valid os
161 sun*os*)
162 basic_machine=$field1
163 os=$field2
164 ;;
165 # Manufacturers
166 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
167 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
168 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
169 | convergent* | ncr* | news | 32* | 3600* | 3100* \
170 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
171 | ultra | tti* | harris | dolphin | highlevel | gould \
172 | cbm | ns | masscomp | apple | axis | knuth | cray \
173 | microblaze* | sim | cisco \
174 | oki | wec | wrs | winbond)
175 basic_machine=$field1-$field2
176 os=
177 ;;
178 *)
179 basic_machine=$field1
180 os=$field2
181 ;;
182 esac
183 ;;
184 esac
147 basic_machine=$field1
148 os=-$field2
185149 ;;
186150 *)
187 # Convert single-component short-hands not valid as part of
188 # multi-component configurations.
189 case $field1 in
190 386bsd)
191 basic_machine=i386-pc
192 os=bsd
193 ;;
194 a29khif)
195 basic_machine=a29k-amd
196 os=udi
197 ;;
198 adobe68k)
199 basic_machine=m68010-adobe
200 os=scout
201 ;;
202 alliant)
203 basic_machine=fx80-alliant
204 os=
205 ;;
206 altos | altos3068)
207 basic_machine=m68k-altos
208 os=
209 ;;
210 am29k)
211 basic_machine=a29k-none
212 os=bsd
213 ;;
214 amdahl)
215 basic_machine=580-amdahl
216 os=sysv
217 ;;
218 amiga)
219 basic_machine=m68k-unknown
220 os=
221 ;;
222 amigaos | amigados)
223 basic_machine=m68k-unknown
224 os=amigaos
225 ;;
226 amigaunix | amix)
227 basic_machine=m68k-unknown
228 os=sysv4
229 ;;
230 apollo68)
231 basic_machine=m68k-apollo
232 os=sysv
233 ;;
234 apollo68bsd)
235 basic_machine=m68k-apollo
236 os=bsd
237 ;;
238 aros)
239 basic_machine=i386-pc
240 os=aros
241 ;;
242 aux)
243 basic_machine=m68k-apple
244 os=aux
245 ;;
246 balance)
247 basic_machine=ns32k-sequent
248 os=dynix
249 ;;
250 blackfin)
251 basic_machine=bfin-unknown
252 os=linux
253 ;;
254 cegcc)
255 basic_machine=arm-unknown
256 os=cegcc
257 ;;
258 convex-c1)
259 basic_machine=c1-convex
260 os=bsd
261 ;;
262 convex-c2)
263 basic_machine=c2-convex
264 os=bsd
265 ;;
266 convex-c32)
267 basic_machine=c32-convex
268 os=bsd
269 ;;
270 convex-c34)
271 basic_machine=c34-convex
272 os=bsd
273 ;;
274 convex-c38)
275 basic_machine=c38-convex
276 os=bsd
277 ;;
278 cray)
279 basic_machine=j90-cray
280 os=unicos
281 ;;
282 crds | unos)
283 basic_machine=m68k-crds
284 os=
285 ;;
286 da30)
287 basic_machine=m68k-da30
288 os=
289 ;;
290 decstation | pmax | pmin | dec3100 | decstatn)
291 basic_machine=mips-dec
292 os=
293 ;;
294 delta88)
295 basic_machine=m88k-motorola
296 os=sysv3
297 ;;
298 dicos)
299 basic_machine=i686-pc
300 os=dicos
301 ;;
302 djgpp)
303 basic_machine=i586-pc
304 os=msdosdjgpp
305 ;;
306 ebmon29k)
307 basic_machine=a29k-amd
308 os=ebmon
309 ;;
310 es1800 | OSE68k | ose68k | ose | OSE)
311 basic_machine=m68k-ericsson
312 os=ose
313 ;;
314 gmicro)
315 basic_machine=tron-gmicro
316 os=sysv
317 ;;
318 go32)
319 basic_machine=i386-pc
320 os=go32
321 ;;
322 h8300hms)
323 basic_machine=h8300-hitachi
324 os=hms
325 ;;
326 h8300xray)
327 basic_machine=h8300-hitachi
328 os=xray
329 ;;
330 h8500hms)
331 basic_machine=h8500-hitachi
332 os=hms
333 ;;
334 harris)
335 basic_machine=m88k-harris
336 os=sysv3
337 ;;
338 hp300)
339 basic_machine=m68k-hp
340 ;;
341 hp300bsd)
342 basic_machine=m68k-hp
343 os=bsd
344 ;;
345 hp300hpux)
346 basic_machine=m68k-hp
347 os=hpux
348 ;;
349 hppaosf)
350 basic_machine=hppa1.1-hp
351 os=osf
352 ;;
353 hppro)
354 basic_machine=hppa1.1-hp
355 os=proelf
356 ;;
357 i386mach)
358 basic_machine=i386-mach
359 os=mach
360 ;;
361 vsta)
362 basic_machine=i386-pc
363 os=vsta
364 ;;
365 isi68 | isi)
366 basic_machine=m68k-isi
367 os=sysv
368 ;;
369 m68knommu)
370 basic_machine=m68k-unknown
371 os=linux
372 ;;
373 magnum | m3230)
374 basic_machine=mips-mips
375 os=sysv
376 ;;
377 merlin)
378 basic_machine=ns32k-utek
379 os=sysv
380 ;;
381 mingw64)
382 basic_machine=x86_64-pc
383 os=mingw64
384 ;;
385 mingw32)
386 basic_machine=i686-pc
387 os=mingw32
388 ;;
389 mingw32ce)
390 basic_machine=arm-unknown
391 os=mingw32ce
392 ;;
393 monitor)
394 basic_machine=m68k-rom68k
395 os=coff
396 ;;
397 morphos)
398 basic_machine=powerpc-unknown
399 os=morphos
400 ;;
401 moxiebox)
402 basic_machine=moxie-unknown
403 os=moxiebox
404 ;;
405 msdos)
406 basic_machine=i386-pc
407 os=msdos
408 ;;
409 msys)
410 basic_machine=i686-pc
411 os=msys
412 ;;
413 mvs)
414 basic_machine=i370-ibm
415 os=mvs
416 ;;
417 nacl)
418 basic_machine=le32-unknown
419 os=nacl
420 ;;
421 ncr3000)
422 basic_machine=i486-ncr
423 os=sysv4
424 ;;
425 netbsd386)
426 basic_machine=i386-pc
427 os=netbsd
428 ;;
429 netwinder)
430 basic_machine=armv4l-rebel
431 os=linux
432 ;;
433 news | news700 | news800 | news900)
434 basic_machine=m68k-sony
435 os=newsos
436 ;;
437 news1000)
438 basic_machine=m68030-sony
439 os=newsos
440 ;;
441 necv70)
442 basic_machine=v70-nec
443 os=sysv
444 ;;
445 nh3000)
446 basic_machine=m68k-harris
447 os=cxux
448 ;;
449 nh[45]000)
450 basic_machine=m88k-harris
451 os=cxux
452 ;;
453 nindy960)
454 basic_machine=i960-intel
455 os=nindy
456 ;;
457 mon960)
458 basic_machine=i960-intel
459 os=mon960
460 ;;
461 nonstopux)
462 basic_machine=mips-compaq
463 os=nonstopux
464 ;;
465 os400)
466 basic_machine=powerpc-ibm
467 os=os400
468 ;;
469 OSE68000 | ose68000)
470 basic_machine=m68000-ericsson
471 os=ose
472 ;;
473 os68k)
474 basic_machine=m68k-none
475 os=os68k
476 ;;
477 paragon)
478 basic_machine=i860-intel
479 os=osf
480 ;;
481 parisc)
482 basic_machine=hppa-unknown
483 os=linux
484 ;;
485 pw32)
486 basic_machine=i586-unknown
487 os=pw32
488 ;;
489 rdos | rdos64)
490 basic_machine=x86_64-pc
491 os=rdos
492 ;;
493 rdos32)
494 basic_machine=i386-pc
495 os=rdos
496 ;;
497 rom68k)
498 basic_machine=m68k-rom68k
499 os=coff
500 ;;
501 sa29200)
502 basic_machine=a29k-amd
503 os=udi
504 ;;
505 sei)
506 basic_machine=mips-sei
507 os=seiux
508 ;;
509 sequent)
510 basic_machine=i386-sequent
511 os=
512 ;;
513 sps7)
514 basic_machine=m68k-bull
515 os=sysv2
516 ;;
517 st2000)
518 basic_machine=m68k-tandem
519 os=
520 ;;
521 stratus)
522 basic_machine=i860-stratus
523 os=sysv4
524 ;;
525 sun2)
526 basic_machine=m68000-sun
527 os=
528 ;;
529 sun2os3)
530 basic_machine=m68000-sun
531 os=sunos3
532 ;;
533 sun2os4)
534 basic_machine=m68000-sun
535 os=sunos4
536 ;;
537 sun3)
538 basic_machine=m68k-sun
539 os=
540 ;;
541 sun3os3)
542 basic_machine=m68k-sun
543 os=sunos3
544 ;;
545 sun3os4)
546 basic_machine=m68k-sun
547 os=sunos4
548 ;;
549 sun4)
550 basic_machine=sparc-sun
551 os=
552 ;;
553 sun4os3)
554 basic_machine=sparc-sun
555 os=sunos3
556 ;;
557 sun4os4)
558 basic_machine=sparc-sun
559 os=sunos4
560 ;;
561 sun4sol2)
562 basic_machine=sparc-sun
563 os=solaris2
564 ;;
565 sun386 | sun386i | roadrunner)
566 basic_machine=i386-sun
567 os=
568 ;;
569 sv1)
570 basic_machine=sv1-cray
571 os=unicos
572 ;;
573 symmetry)
574 basic_machine=i386-sequent
575 os=dynix
576 ;;
577 t3e)
578 basic_machine=alphaev5-cray
579 os=unicos
580 ;;
581 t90)
582 basic_machine=t90-cray
583 os=unicos
584 ;;
585 toad1)
586 basic_machine=pdp10-xkl
587 os=tops20
588 ;;
589 tpf)
590 basic_machine=s390x-ibm
591 os=tpf
592 ;;
593 udi29k)
594 basic_machine=a29k-amd
595 os=udi
596 ;;
597 ultra3)
598 basic_machine=a29k-nyu
599 os=sym1
600 ;;
601 v810 | necv810)
602 basic_machine=v810-nec
603 os=none
604 ;;
605 vaxv)
606 basic_machine=vax-dec
607 os=sysv
608 ;;
609 vms)
610 basic_machine=vax-dec
611 os=vms
612 ;;
613 vxworks960)
614 basic_machine=i960-wrs
615 os=vxworks
616 ;;
617 vxworks68)
618 basic_machine=m68k-wrs
619 os=vxworks
620 ;;
621 vxworks29k)
622 basic_machine=a29k-wrs
623 os=vxworks
624 ;;
625 xbox)
626 basic_machine=i686-pc
627 os=mingw32
628 ;;
629 ymp)
630 basic_machine=ymp-cray
631 os=unicos
632 ;;
633 *)
634 basic_machine=$1
635 os=
636 ;;
637 esac
151 basic_machine=$1
152 os=
638153 ;;
639154 esac
640155
641 # Decode 1-component or ad-hoc basic machines
156 ### Let's recognize common machines as not being operating systems so
157 ### that things like config.sub decstation-3100 work. We also
158 ### recognize some manufacturers as not being operating systems, so we
159 ### can provide default operating systems below.
160 case $os in
161 -sun*os*)
162 # Prevent following clause from handling this invalid input.
163 ;;
164 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
165 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
166 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
167 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
168 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
169 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
170 -apple | -axis | -knuth | -cray | -microblaze*)
171 os=
172 basic_machine=$1
173 ;;
174 -bluegene*)
175 os=-cnk
176 ;;
177 -sim | -cisco | -oki | -wec | -winbond)
178 os=
179 basic_machine=$1
180 ;;
181 -scout)
182 ;;
183 -wrs)
184 os=-vxworks
185 basic_machine=$1
186 ;;
187 -chorusos*)
188 os=-chorusos
189 basic_machine=$1
190 ;;
191 -chorusrdb)
192 os=-chorusrdb
193 basic_machine=$1
194 ;;
195 -hiux*)
196 os=-hiuxwe2
197 ;;
198 -sco6)
199 os=-sco5v6
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco5)
203 os=-sco3.2v5
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -sco4)
207 os=-sco3.2v4
208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -sco3.2.[4-9]*)
211 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
212 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -sco3.2v[4-9]*)
215 # Don't forget version if it is 3.2v4 or newer.
216 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
217 ;;
218 -sco5v6*)
219 # Don't forget version if it is 3.2v4 or newer.
220 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
221 ;;
222 -sco*)
223 os=-sco3.2v2
224 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
225 ;;
226 -udk*)
227 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
228 ;;
229 -isc)
230 os=-isc2.2
231 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
232 ;;
233 -clix*)
234 basic_machine=clipper-intergraph
235 ;;
236 -isc*)
237 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
238 ;;
239 -lynx*178)
240 os=-lynxos178
241 ;;
242 -lynx*5)
243 os=-lynxos5
244 ;;
245 -lynx*)
246 os=-lynxos
247 ;;
248 -ptx*)
249 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
250 ;;
251 -psos*)
252 os=-psos
253 ;;
254 -mint | -mint[0-9]*)
255 basic_machine=m68k-atari
256 os=-mint
257 ;;
258 esac
259
260 # Decode aliases for certain CPU-COMPANY combinations.
642261 case $basic_machine in
643 # Here we handle the default manufacturer of certain CPU types. It is in
644 # some cases the only manufacturer, in others, it is the most popular.
645 w89k)
646 cpu=hppa1.1
647 vendor=winbond
648 ;;
649 op50n)
650 cpu=hppa1.1
651 vendor=oki
652 ;;
653 op60c)
654 cpu=hppa1.1
655 vendor=oki
656 ;;
657 ibm*)
658 cpu=i370
659 vendor=ibm
660 ;;
661 orion105)
662 cpu=clipper
663 vendor=highlevel
664 ;;
665 mac | mpw | mac-mpw)
666 cpu=m68k
667 vendor=apple
668 ;;
669 pmac | pmac-mpw)
670 cpu=powerpc
671 vendor=apple
672 ;;
673
674 # Recognize the various machine names and aliases which stand
675 # for a CPU type and a company and sometimes even an OS.
676 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
677 cpu=m68000
678 vendor=att
679 ;;
680 3b*)
681 cpu=we32k
682 vendor=att
683 ;;
684 bluegene*)
685 cpu=powerpc
686 vendor=ibm
687 os=cnk
688 ;;
689 decsystem10* | dec10*)
690 cpu=pdp10
691 vendor=dec
692 os=tops10
693 ;;
694 decsystem20* | dec20*)
695 cpu=pdp10
696 vendor=dec
697 os=tops20
698 ;;
699 delta | 3300 | motorola-3300 | motorola-delta \
700 | 3300-motorola | delta-motorola)
701 cpu=m68k
702 vendor=motorola
703 ;;
704 dpx2*)
705 cpu=m68k
706 vendor=bull
707 os=sysv3
708 ;;
709 encore | umax | mmax)
710 cpu=ns32k
711 vendor=encore
712 ;;
713 elxsi)
714 cpu=elxsi
715 vendor=elxsi
716 os=${os:-bsd}
717 ;;
718 fx2800)
719 cpu=i860
720 vendor=alliant
721 ;;
722 genix)
723 cpu=ns32k
724 vendor=ns
725 ;;
726 h3050r* | hiux*)
727 cpu=hppa1.1
728 vendor=hitachi
729 os=hiuxwe2
730 ;;
731 hp3k9[0-9][0-9] | hp9[0-9][0-9])
732 cpu=hppa1.0
733 vendor=hp
734 ;;
735 hp9k2[0-9][0-9] | hp9k31[0-9])
736 cpu=m68000
737 vendor=hp
738 ;;
739 hp9k3[2-9][0-9])
740 cpu=m68k
741 vendor=hp
742 ;;
743 hp9k6[0-9][0-9] | hp6[0-9][0-9])
744 cpu=hppa1.0
745 vendor=hp
746 ;;
747 hp9k7[0-79][0-9] | hp7[0-79][0-9])
748 cpu=hppa1.1
749 vendor=hp
750 ;;
751 hp9k78[0-9] | hp78[0-9])
752 # FIXME: really hppa2.0-hp
753 cpu=hppa1.1
754 vendor=hp
755 ;;
756 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
757 # FIXME: really hppa2.0-hp
758 cpu=hppa1.1
759 vendor=hp
760 ;;
761 hp9k8[0-9][13679] | hp8[0-9][13679])
762 cpu=hppa1.1
763 vendor=hp
764 ;;
765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
766 cpu=hppa1.0
767 vendor=hp
768 ;;
769 i*86v32)
770 cpu=`echo "$1" | sed -e 's/86.*/86/'`
771 vendor=pc
772 os=sysv32
773 ;;
774 i*86v4*)
775 cpu=`echo "$1" | sed -e 's/86.*/86/'`
776 vendor=pc
777 os=sysv4
778 ;;
779 i*86v)
780 cpu=`echo "$1" | sed -e 's/86.*/86/'`
781 vendor=pc
782 os=sysv
783 ;;
784 i*86sol2)
785 cpu=`echo "$1" | sed -e 's/86.*/86/'`
786 vendor=pc
787 os=solaris2
788 ;;
789 j90 | j90-cray)
790 cpu=j90
791 vendor=cray
792 os=${os:-unicos}
793 ;;
794 iris | iris4d)
795 cpu=mips
796 vendor=sgi
797 case $os in
798 irix*)
799 ;;
800 *)
801 os=irix4
802 ;;
803 esac
804 ;;
805 miniframe)
806 cpu=m68000
807 vendor=convergent
808 ;;
809 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
810 cpu=m68k
811 vendor=atari
812 os=mint
813 ;;
814 news-3600 | risc-news)
815 cpu=mips
816 vendor=sony
817 os=newsos
818 ;;
819 next | m*-next)
820 cpu=m68k
821 vendor=next
822 case $os in
823 nextstep* )
824 ;;
825 ns2*)
826 os=nextstep2
827 ;;
828 *)
829 os=nextstep3
830 ;;
831 esac
832 ;;
833 np1)
834 cpu=np1
835 vendor=gould
836 ;;
837 op50n-* | op60c-*)
838 cpu=hppa1.1
839 vendor=oki
840 os=proelf
841 ;;
842 pa-hitachi)
843 cpu=hppa1.1
844 vendor=hitachi
845 os=hiuxwe2
846 ;;
847 pbd)
848 cpu=sparc
849 vendor=tti
850 ;;
851 pbb)
852 cpu=m68k
853 vendor=tti
854 ;;
855 pc532)
856 cpu=ns32k
857 vendor=pc532
858 ;;
859 pn)
860 cpu=pn
861 vendor=gould
862 ;;
863 power)
864 cpu=power
865 vendor=ibm
866 ;;
867 ps2)
868 cpu=i386
869 vendor=ibm
870 ;;
871 rm[46]00)
872 cpu=mips
873 vendor=siemens
874 ;;
875 rtpc | rtpc-*)
876 cpu=romp
877 vendor=ibm
878 ;;
879 sde)
880 cpu=mipsisa32
881 vendor=sde
882 os=${os:-elf}
883 ;;
884 simso-wrs)
885 cpu=sparclite
886 vendor=wrs
887 os=vxworks
888 ;;
889 tower | tower-32)
890 cpu=m68k
891 vendor=ncr
892 ;;
893 vpp*|vx|vx-*)
894 cpu=f301
895 vendor=fujitsu
896 ;;
897 w65)
898 cpu=w65
899 vendor=wdc
900 ;;
901 w89k-*)
902 cpu=hppa1.1
903 vendor=winbond
904 os=proelf
905 ;;
906 none)
907 cpu=none
908 vendor=none
262 # Recognize the basic CPU types without company name.
263 # Some are omitted here because they have special meanings below.
264 1750a | 580 \
265 | a29k \
266 | aarch64 | aarch64_be \
267 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
268 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
269 | am33_2.0 \
270 | arc | arceb \
271 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
272 | avr | avr32 \
273 | ba \
274 | be32 | be64 \
275 | bfin \
276 | c4x | c8051 | clipper | csky \
277 | d10v | d30v | dlx | dsp16xx \
278 | e2k | epiphany \
279 | fido | fr30 | frv | ft32 \
280 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
281 | hexagon \
282 | i370 | i860 | i960 | ia16 | ia64 \
283 | ip2k | iq2000 \
284 | k1om \
285 | le32 | le64 \
286 | lm32 \
287 | m32c | m32r | m32rle | m68000 | m68k | m88k \
288 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
289 | mips | mipsbe | mipseb | mipsel | mipsle \
290 | mips16 \
291 | mips64 | mips64el \
292 | mips64octeon | mips64octeonel \
293 | mips64orion | mips64orionel \
294 | mips64r5900 | mips64r5900el \
295 | mips64vr | mips64vrel \
296 | mips64vr4100 | mips64vr4100el \
297 | mips64vr4300 | mips64vr4300el \
298 | mips64vr5000 | mips64vr5000el \
299 | mips64vr5900 | mips64vr5900el \
300 | mipsisa32 | mipsisa32el \
301 | mipsisa32r2 | mipsisa32r2el \
302 | mipsisa32r6 | mipsisa32r6el \
303 | mipsisa64 | mipsisa64el \
304 | mipsisa64r2 | mipsisa64r2el \
305 | mipsisa64r6 | mipsisa64r6el \
306 | mipsisa64sb1 | mipsisa64sb1el \
307 | mipsisa64sr71k | mipsisa64sr71kel \
308 | mipsr5900 | mipsr5900el \
309 | mipstx39 | mipstx39el \
310 | mn10200 | mn10300 \
311 | moxie \
312 | mt \
313 | msp430 \
314 | nds32 | nds32le | nds32be \
315 | nfp \
316 | nios | nios2 | nios2eb | nios2el \
317 | ns16k | ns32k \
318 | open8 | or1k | or1knd | or32 \
319 | pdp10 | pj | pjl \
320 | powerpc | powerpc64 | powerpc64le | powerpcle \
321 | pru \
322 | pyramid \
323 | riscv32 | riscv64 \
324 | rl78 | rx \
325 | score \
326 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
327 | sh64 | sh64le \
328 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
329 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
330 | spu \
331 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
332 | ubicom32 \
333 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
334 | visium \
335 | wasm32 \
336 | x86 | xc16x | xstormy16 | xtensa \
337 | z8k | z80)
338 basic_machine=$basic_machine-unknown
339 ;;
340 c54x)
341 basic_machine=tic54x-unknown
342 ;;
343 c55x)
344 basic_machine=tic55x-unknown
345 ;;
346 c6x)
347 basic_machine=tic6x-unknown
909348 ;;
910349 leon|leon[3-9])
911 cpu=sparc
912 vendor=$basic_machine
913 ;;
914 leon-*|leon[3-9]-*)
915 cpu=sparc
916 vendor=`echo "$basic_machine" | sed 's/-.*//'`
917 ;;
918
919 *-*)
920 IFS="-" read -r cpu vendor <<EOF
921 $basic_machine
922 EOF
923 ;;
350 basic_machine=sparc-$basic_machine
351 ;;
352 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
353 basic_machine=$basic_machine-unknown
354 os=-none
355 ;;
356 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
357 ;;
358 m9s12z | m68hcs12z | hcs12z | s12z)
359 basic_machine=s12z-unknown
360 os=-none
361 ;;
362 ms1)
363 basic_machine=mt-unknown
364 ;;
365
366 strongarm | thumb | xscale)
367 basic_machine=arm-unknown
368 ;;
369 xgate)
370 basic_machine=$basic_machine-unknown
371 os=-none
372 ;;
373 xscaleeb)
374 basic_machine=armeb-unknown
375 ;;
376
377 xscaleel)
378 basic_machine=armel-unknown
379 ;;
380
924381 # We use `pc' rather than `unknown'
925382 # because (1) that's what they normally are, and
926383 # (2) the word "unknown" tends to confuse beginning users.
927384 i*86 | x86_64)
928 cpu=$basic_machine
929 vendor=pc
930 ;;
931 # These rules are duplicated from below for sake of the special case above;
932 # i.e. things that normalized to x86 arches should also default to "pc"
385 basic_machine=$basic_machine-pc
386 ;;
387 # Object if more than one company name word.
388 *-*-*)
389 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
390 exit 1
391 ;;
392 # Recognize the basic CPU types with company name.
393 580-* \
394 | a29k-* \
395 | aarch64-* | aarch64_be-* \
396 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
397 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
398 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
399 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
400 | avr-* | avr32-* \
401 | ba-* \
402 | be32-* | be64-* \
403 | bfin-* | bs2000-* \
404 | c[123]* | c30-* | [cjt]90-* | c4x-* \
405 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
406 | d10v-* | d30v-* | dlx-* \
407 | e2k-* | elxsi-* \
408 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
409 | h8300-* | h8500-* \
410 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
411 | hexagon-* \
412 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
413 | ip2k-* | iq2000-* \
414 | k1om-* \
415 | le32-* | le64-* \
416 | lm32-* \
417 | m32c-* | m32r-* | m32rle-* \
418 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
419 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
420 | microblaze-* | microblazeel-* \
421 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
422 | mips16-* \
423 | mips64-* | mips64el-* \
424 | mips64octeon-* | mips64octeonel-* \
425 | mips64orion-* | mips64orionel-* \
426 | mips64r5900-* | mips64r5900el-* \
427 | mips64vr-* | mips64vrel-* \
428 | mips64vr4100-* | mips64vr4100el-* \
429 | mips64vr4300-* | mips64vr4300el-* \
430 | mips64vr5000-* | mips64vr5000el-* \
431 | mips64vr5900-* | mips64vr5900el-* \
432 | mipsisa32-* | mipsisa32el-* \
433 | mipsisa32r2-* | mipsisa32r2el-* \
434 | mipsisa32r6-* | mipsisa32r6el-* \
435 | mipsisa64-* | mipsisa64el-* \
436 | mipsisa64r2-* | mipsisa64r2el-* \
437 | mipsisa64r6-* | mipsisa64r6el-* \
438 | mipsisa64sb1-* | mipsisa64sb1el-* \
439 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
440 | mipsr5900-* | mipsr5900el-* \
441 | mipstx39-* | mipstx39el-* \
442 | mmix-* \
443 | mt-* \
444 | msp430-* \
445 | nds32-* | nds32le-* | nds32be-* \
446 | nfp-* \
447 | nios-* | nios2-* | nios2eb-* | nios2el-* \
448 | none-* | np1-* | ns16k-* | ns32k-* \
449 | open8-* \
450 | or1k*-* \
451 | orion-* \
452 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
453 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
454 | pru-* \
455 | pyramid-* \
456 | riscv32-* | riscv64-* \
457 | rl78-* | romp-* | rs6000-* | rx-* \
458 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
459 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
460 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
461 | sparclite-* \
462 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
463 | tahoe-* \
464 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
465 | tile*-* \
466 | tron-* \
467 | ubicom32-* \
468 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
469 | vax-* \
470 | visium-* \
471 | wasm32-* \
472 | we32k-* \
473 | x86-* | x86_64-* | xc16x-* | xps100-* \
474 | xstormy16-* | xtensa*-* \
475 | ymp-* \
476 | z8k-* | z80-*)
477 ;;
478 # Recognize the basic CPU types without company name, with glob match.
479 xtensa*)
480 basic_machine=$basic_machine-unknown
481 ;;
482 # Recognize the various machine names and aliases which stand
483 # for a CPU type and a company and sometimes even an OS.
484 386bsd)
485 basic_machine=i386-pc
486 os=-bsd
487 ;;
488 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
489 basic_machine=m68000-att
490 ;;
491 3b*)
492 basic_machine=we32k-att
493 ;;
494 a29khif)
495 basic_machine=a29k-amd
496 os=-udi
497 ;;
498 abacus)
499 basic_machine=abacus-unknown
500 ;;
501 adobe68k)
502 basic_machine=m68010-adobe
503 os=-scout
504 ;;
505 alliant | fx80)
506 basic_machine=fx80-alliant
507 ;;
508 altos | altos3068)
509 basic_machine=m68k-altos
510 ;;
511 am29k)
512 basic_machine=a29k-none
513 os=-bsd
514 ;;
515 amd64)
516 basic_machine=x86_64-pc
517 ;;
518 amd64-*)
519 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
520 ;;
521 amdahl)
522 basic_machine=580-amdahl
523 os=-sysv
524 ;;
525 amiga | amiga-*)
526 basic_machine=m68k-unknown
527 ;;
528 amigaos | amigados)
529 basic_machine=m68k-unknown
530 os=-amigaos
531 ;;
532 amigaunix | amix)
533 basic_machine=m68k-unknown
534 os=-sysv4
535 ;;
536 apollo68)
537 basic_machine=m68k-apollo
538 os=-sysv
539 ;;
540 apollo68bsd)
541 basic_machine=m68k-apollo
542 os=-bsd
543 ;;
544 aros)
545 basic_machine=i386-pc
546 os=-aros
547 ;;
548 asmjs)
549 basic_machine=asmjs-unknown
550 ;;
551 aux)
552 basic_machine=m68k-apple
553 os=-aux
554 ;;
555 balance)
556 basic_machine=ns32k-sequent
557 os=-dynix
558 ;;
559 blackfin)
560 basic_machine=bfin-unknown
561 os=-linux
562 ;;
563 blackfin-*)
564 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
565 os=-linux
566 ;;
567 bluegene*)
568 basic_machine=powerpc-ibm
569 os=-cnk
570 ;;
571 c54x-*)
572 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
573 ;;
574 c55x-*)
575 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
576 ;;
577 c6x-*)
578 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
579 ;;
580 c90)
581 basic_machine=c90-cray
582 os=-unicos
583 ;;
584 cegcc)
585 basic_machine=arm-unknown
586 os=-cegcc
587 ;;
588 convex-c1)
589 basic_machine=c1-convex
590 os=-bsd
591 ;;
592 convex-c2)
593 basic_machine=c2-convex
594 os=-bsd
595 ;;
596 convex-c32)
597 basic_machine=c32-convex
598 os=-bsd
599 ;;
600 convex-c34)
601 basic_machine=c34-convex
602 os=-bsd
603 ;;
604 convex-c38)
605 basic_machine=c38-convex
606 os=-bsd
607 ;;
608 cray | j90)
609 basic_machine=j90-cray
610 os=-unicos
611 ;;
612 craynv)
613 basic_machine=craynv-cray
614 os=-unicosmp
615 ;;
616 cr16 | cr16-*)
617 basic_machine=cr16-unknown
618 os=-elf
619 ;;
620 crds | unos)
621 basic_machine=m68k-crds
622 ;;
623 crisv32 | crisv32-* | etraxfs*)
624 basic_machine=crisv32-axis
625 ;;
626 cris | cris-* | etrax*)
627 basic_machine=cris-axis
628 ;;
629 crx)
630 basic_machine=crx-unknown
631 os=-elf
632 ;;
633 da30 | da30-*)
634 basic_machine=m68k-da30
635 ;;
636 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
637 basic_machine=mips-dec
638 ;;
639 decsystem10* | dec10*)
640 basic_machine=pdp10-dec
641 os=-tops10
642 ;;
643 decsystem20* | dec20*)
644 basic_machine=pdp10-dec
645 os=-tops20
646 ;;
647 delta | 3300 | motorola-3300 | motorola-delta \
648 | 3300-motorola | delta-motorola)
649 basic_machine=m68k-motorola
650 ;;
651 delta88)
652 basic_machine=m88k-motorola
653 os=-sysv3
654 ;;
655 dicos)
656 basic_machine=i686-pc
657 os=-dicos
658 ;;
659 djgpp)
660 basic_machine=i586-pc
661 os=-msdosdjgpp
662 ;;
663 dpx20 | dpx20-*)
664 basic_machine=rs6000-bull
665 os=-bosx
666 ;;
667 dpx2*)
668 basic_machine=m68k-bull
669 os=-sysv3
670 ;;
671 e500v[12])
672 basic_machine=powerpc-unknown
673 os=$os"spe"
674 ;;
675 e500v[12]-*)
676 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
677 os=$os"spe"
678 ;;
679 ebmon29k)
680 basic_machine=a29k-amd
681 os=-ebmon
682 ;;
683 elxsi)
684 basic_machine=elxsi-elxsi
685 os=-bsd
686 ;;
687 encore | umax | mmax)
688 basic_machine=ns32k-encore
689 ;;
690 es1800 | OSE68k | ose68k | ose | OSE)
691 basic_machine=m68k-ericsson
692 os=-ose
693 ;;
694 fx2800)
695 basic_machine=i860-alliant
696 ;;
697 genix)
698 basic_machine=ns32k-ns
699 ;;
700 gmicro)
701 basic_machine=tron-gmicro
702 os=-sysv
703 ;;
704 go32)
705 basic_machine=i386-pc
706 os=-go32
707 ;;
708 h3050r* | hiux*)
709 basic_machine=hppa1.1-hitachi
710 os=-hiuxwe2
711 ;;
712 h8300hms)
713 basic_machine=h8300-hitachi
714 os=-hms
715 ;;
716 h8300xray)
717 basic_machine=h8300-hitachi
718 os=-xray
719 ;;
720 h8500hms)
721 basic_machine=h8500-hitachi
722 os=-hms
723 ;;
724 harris)
725 basic_machine=m88k-harris
726 os=-sysv3
727 ;;
728 hp300-*)
729 basic_machine=m68k-hp
730 ;;
731 hp300bsd)
732 basic_machine=m68k-hp
733 os=-bsd
734 ;;
735 hp300hpux)
736 basic_machine=m68k-hp
737 os=-hpux
738 ;;
739 hp3k9[0-9][0-9] | hp9[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hp9k2[0-9][0-9] | hp9k31[0-9])
743 basic_machine=m68000-hp
744 ;;
745 hp9k3[2-9][0-9])
746 basic_machine=m68k-hp
747 ;;
748 hp9k6[0-9][0-9] | hp6[0-9][0-9])
749 basic_machine=hppa1.0-hp
750 ;;
751 hp9k7[0-79][0-9] | hp7[0-79][0-9])
752 basic_machine=hppa1.1-hp
753 ;;
754 hp9k78[0-9] | hp78[0-9])
755 # FIXME: really hppa2.0-hp
756 basic_machine=hppa1.1-hp
757 ;;
758 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
759 # FIXME: really hppa2.0-hp
760 basic_machine=hppa1.1-hp
761 ;;
762 hp9k8[0-9][13679] | hp8[0-9][13679])
763 basic_machine=hppa1.1-hp
764 ;;
765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
766 basic_machine=hppa1.0-hp
767 ;;
768 hppaosf)
769 basic_machine=hppa1.1-hp
770 os=-osf
771 ;;
772 hppro)
773 basic_machine=hppa1.1-hp
774 os=-proelf
775 ;;
776 i370-ibm* | ibm*)
777 basic_machine=i370-ibm
778 ;;
779 i*86v32)
780 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
781 os=-sysv32
782 ;;
783 i*86v4*)
784 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
785 os=-sysv4
786 ;;
787 i*86v)
788 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
789 os=-sysv
790 ;;
791 i*86sol2)
792 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
793 os=-solaris2
794 ;;
795 i386mach)
796 basic_machine=i386-mach
797 os=-mach
798 ;;
799 vsta)
800 basic_machine=i386-unknown
801 os=-vsta
802 ;;
803 iris | iris4d)
804 basic_machine=mips-sgi
805 case $os in
806 -irix*)
807 ;;
808 *)
809 os=-irix4
810 ;;
811 esac
812 ;;
813 isi68 | isi)
814 basic_machine=m68k-isi
815 os=-sysv
816 ;;
817 leon-*|leon[3-9]-*)
818 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
819 ;;
820 m68knommu)
821 basic_machine=m68k-unknown
822 os=-linux
823 ;;
824 m68knommu-*)
825 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
826 os=-linux
827 ;;
828 magnum | m3230)
829 basic_machine=mips-mips
830 os=-sysv
831 ;;
832 merlin)
833 basic_machine=ns32k-utek
834 os=-sysv
835 ;;
836 microblaze*)
837 basic_machine=microblaze-xilinx
838 ;;
839 mingw64)
840 basic_machine=x86_64-pc
841 os=-mingw64
842 ;;
843 mingw32)
844 basic_machine=i686-pc
845 os=-mingw32
846 ;;
847 mingw32ce)
848 basic_machine=arm-unknown
849 os=-mingw32ce
850 ;;
851 miniframe)
852 basic_machine=m68000-convergent
853 ;;
854 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
855 basic_machine=m68k-atari
856 os=-mint
857 ;;
858 mips3*-*)
859 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
860 ;;
861 mips3*)
862 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
863 ;;
864 monitor)
865 basic_machine=m68k-rom68k
866 os=-coff
867 ;;
868 morphos)
869 basic_machine=powerpc-unknown
870 os=-morphos
871 ;;
872 moxiebox)
873 basic_machine=moxie-unknown
874 os=-moxiebox
875 ;;
876 msdos)
877 basic_machine=i386-pc
878 os=-msdos
879 ;;
880 ms1-*)
881 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
882 ;;
883 msys)
884 basic_machine=i686-pc
885 os=-msys
886 ;;
887 mvs)
888 basic_machine=i370-ibm
889 os=-mvs
890 ;;
891 nacl)
892 basic_machine=le32-unknown
893 os=-nacl
894 ;;
895 ncr3000)
896 basic_machine=i486-ncr
897 os=-sysv4
898 ;;
899 netbsd386)
900 basic_machine=i386-unknown
901 os=-netbsd
902 ;;
903 netwinder)
904 basic_machine=armv4l-rebel
905 os=-linux
906 ;;
907 news | news700 | news800 | news900)
908 basic_machine=m68k-sony
909 os=-newsos
910 ;;
911 news1000)
912 basic_machine=m68030-sony
913 os=-newsos
914 ;;
915 news-3600 | risc-news)
916 basic_machine=mips-sony
917 os=-newsos
918 ;;
919 necv70)
920 basic_machine=v70-nec
921 os=-sysv
922 ;;
923 next | m*-next)
924 basic_machine=m68k-next
925 case $os in
926 -nextstep* )
927 ;;
928 -ns2*)
929 os=-nextstep2
930 ;;
931 *)
932 os=-nextstep3
933 ;;
934 esac
935 ;;
936 nh3000)
937 basic_machine=m68k-harris
938 os=-cxux
939 ;;
940 nh[45]000)
941 basic_machine=m88k-harris
942 os=-cxux
943 ;;
944 nindy960)
945 basic_machine=i960-intel
946 os=-nindy
947 ;;
948 mon960)
949 basic_machine=i960-intel
950 os=-mon960
951 ;;
952 nonstopux)
953 basic_machine=mips-compaq
954 os=-nonstopux
955 ;;
956 np1)
957 basic_machine=np1-gould
958 ;;
959 neo-tandem)
960 basic_machine=neo-tandem
961 ;;
962 nse-tandem)
963 basic_machine=nse-tandem
964 ;;
965 nsr-tandem)
966 basic_machine=nsr-tandem
967 ;;
968 nsv-tandem)
969 basic_machine=nsv-tandem
970 ;;
971 nsx-tandem)
972 basic_machine=nsx-tandem
973 ;;
974 op50n-* | op60c-*)
975 basic_machine=hppa1.1-oki
976 os=-proelf
977 ;;
978 openrisc | openrisc-*)
979 basic_machine=or32-unknown
980 ;;
981 os400)
982 basic_machine=powerpc-ibm
983 os=-os400
984 ;;
985 OSE68000 | ose68000)
986 basic_machine=m68000-ericsson
987 os=-ose
988 ;;
989 os68k)
990 basic_machine=m68k-none
991 os=-os68k
992 ;;
993 pa-hitachi)
994 basic_machine=hppa1.1-hitachi
995 os=-hiuxwe2
996 ;;
997 paragon)
998 basic_machine=i860-intel
999 os=-osf
1000 ;;
1001 parisc)
1002 basic_machine=hppa-unknown
1003 os=-linux
1004 ;;
1005 parisc-*)
1006 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1007 os=-linux
1008 ;;
1009 pbd)
1010 basic_machine=sparc-tti
1011 ;;
1012 pbb)
1013 basic_machine=m68k-tti
1014 ;;
1015 pc532 | pc532-*)
1016 basic_machine=ns32k-pc532
1017 ;;
9331018 pc98)
934 cpu=i386
935 vendor=pc
936 ;;
937 x64 | amd64)
938 cpu=x86_64
939 vendor=pc
940 ;;
941 # Recognize the basic CPU types without company name.
1019 basic_machine=i386-pc
1020 ;;
1021 pc98-*)
1022 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1023 ;;
1024 pentium | p5 | k5 | k6 | nexgen | viac3)
1025 basic_machine=i586-pc
1026 ;;
1027 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1028 basic_machine=i686-pc
1029 ;;
1030 pentiumii | pentium2 | pentiumiii | pentium3)
1031 basic_machine=i686-pc
1032 ;;
1033 pentium4)
1034 basic_machine=i786-pc
1035 ;;
1036 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1037 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1038 ;;
1039 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1040 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1043 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1044 ;;
1045 pentium4-*)
1046 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 pn)
1049 basic_machine=pn-gould
1050 ;;
1051 power) basic_machine=power-ibm
1052 ;;
1053 ppc | ppcbe) basic_machine=powerpc-unknown
1054 ;;
1055 ppc-* | ppcbe-*)
1056 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1057 ;;
1058 ppcle | powerpclittle)
1059 basic_machine=powerpcle-unknown
1060 ;;
1061 ppcle-* | powerpclittle-*)
1062 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1063 ;;
1064 ppc64) basic_machine=powerpc64-unknown
1065 ;;
1066 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1067 ;;
1068 ppc64le | powerpc64little)
1069 basic_machine=powerpc64le-unknown
1070 ;;
1071 ppc64le-* | powerpc64little-*)
1072 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1073 ;;
1074 ps2)
1075 basic_machine=i386-ibm
1076 ;;
1077 pw32)
1078 basic_machine=i586-unknown
1079 os=-pw32
1080 ;;
1081 rdos | rdos64)
1082 basic_machine=x86_64-pc
1083 os=-rdos
1084 ;;
1085 rdos32)
1086 basic_machine=i386-pc
1087 os=-rdos
1088 ;;
1089 rom68k)
1090 basic_machine=m68k-rom68k
1091 os=-coff
1092 ;;
1093 rm[46]00)
1094 basic_machine=mips-siemens
1095 ;;
1096 rtpc | rtpc-*)
1097 basic_machine=romp-ibm
1098 ;;
1099 s390 | s390-*)
1100 basic_machine=s390-ibm
1101 ;;
1102 s390x | s390x-*)
1103 basic_machine=s390x-ibm
1104 ;;
1105 sa29200)
1106 basic_machine=a29k-amd
1107 os=-udi
1108 ;;
1109 sb1)
1110 basic_machine=mipsisa64sb1-unknown
1111 ;;
1112 sb1el)
1113 basic_machine=mipsisa64sb1el-unknown
1114 ;;
1115 sde)
1116 basic_machine=mipsisa32-sde
1117 os=-elf
1118 ;;
1119 sei)
1120 basic_machine=mips-sei
1121 os=-seiux
1122 ;;
1123 sequent)
1124 basic_machine=i386-sequent
1125 ;;
1126 sh5el)
1127 basic_machine=sh5le-unknown
1128 ;;
1129 simso-wrs)
1130 basic_machine=sparclite-wrs
1131 os=-vxworks
1132 ;;
1133 sps7)
1134 basic_machine=m68k-bull
1135 os=-sysv2
1136 ;;
1137 spur)
1138 basic_machine=spur-unknown
1139 ;;
1140 st2000)
1141 basic_machine=m68k-tandem
1142 ;;
1143 stratus)
1144 basic_machine=i860-stratus
1145 os=-sysv4
1146 ;;
1147 strongarm-* | thumb-*)
1148 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1149 ;;
1150 sun2)
1151 basic_machine=m68000-sun
1152 ;;
1153 sun2os3)
1154 basic_machine=m68000-sun
1155 os=-sunos3
1156 ;;
1157 sun2os4)
1158 basic_machine=m68000-sun
1159 os=-sunos4
1160 ;;
1161 sun3os3)
1162 basic_machine=m68k-sun
1163 os=-sunos3
1164 ;;
1165 sun3os4)
1166 basic_machine=m68k-sun
1167 os=-sunos4
1168 ;;
1169 sun4os3)
1170 basic_machine=sparc-sun
1171 os=-sunos3
1172 ;;
1173 sun4os4)
1174 basic_machine=sparc-sun
1175 os=-sunos4
1176 ;;
1177 sun4sol2)
1178 basic_machine=sparc-sun
1179 os=-solaris2
1180 ;;
1181 sun3 | sun3-*)
1182 basic_machine=m68k-sun
1183 ;;
1184 sun4)
1185 basic_machine=sparc-sun
1186 ;;
1187 sun386 | sun386i | roadrunner)
1188 basic_machine=i386-sun
1189 ;;
1190 sv1)
1191 basic_machine=sv1-cray
1192 os=-unicos
1193 ;;
1194 symmetry)
1195 basic_machine=i386-sequent
1196 os=-dynix
1197 ;;
1198 t3e)
1199 basic_machine=alphaev5-cray
1200 os=-unicos
1201 ;;
1202 t90)
1203 basic_machine=t90-cray
1204 os=-unicos
1205 ;;
1206 tile*)
1207 basic_machine=$basic_machine-unknown
1208 os=-linux-gnu
1209 ;;
1210 tx39)
1211 basic_machine=mipstx39-unknown
1212 ;;
1213 tx39el)
1214 basic_machine=mipstx39el-unknown
1215 ;;
1216 toad1)
1217 basic_machine=pdp10-xkl
1218 os=-tops20
1219 ;;
1220 tower | tower-32)
1221 basic_machine=m68k-ncr
1222 ;;
1223 tpf)
1224 basic_machine=s390x-ibm
1225 os=-tpf
1226 ;;
1227 udi29k)
1228 basic_machine=a29k-amd
1229 os=-udi
1230 ;;
1231 ultra3)
1232 basic_machine=a29k-nyu
1233 os=-sym1
1234 ;;
1235 v810 | necv810)
1236 basic_machine=v810-nec
1237 os=-none
1238 ;;
1239 vaxv)
1240 basic_machine=vax-dec
1241 os=-sysv
1242 ;;
1243 vms)
1244 basic_machine=vax-dec
1245 os=-vms
1246 ;;
1247 vpp*|vx|vx-*)
1248 basic_machine=f301-fujitsu
1249 ;;
1250 vxworks960)
1251 basic_machine=i960-wrs
1252 os=-vxworks
1253 ;;
1254 vxworks68)
1255 basic_machine=m68k-wrs
1256 os=-vxworks
1257 ;;
1258 vxworks29k)
1259 basic_machine=a29k-wrs
1260 os=-vxworks
1261 ;;
1262 w65*)
1263 basic_machine=w65-wdc
1264 os=-none
1265 ;;
1266 w89k-*)
1267 basic_machine=hppa1.1-winbond
1268 os=-proelf
1269 ;;
1270 x64)
1271 basic_machine=x86_64-pc
1272 ;;
1273 xbox)
1274 basic_machine=i686-pc
1275 os=-mingw32
1276 ;;
1277 xps | xps100)
1278 basic_machine=xps100-honeywell
1279 ;;
1280 xscale-* | xscalee[bl]-*)
1281 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1282 ;;
1283 ymp)
1284 basic_machine=ymp-cray
1285 os=-unicos
1286 ;;
1287 none)
1288 basic_machine=none-none
1289 os=-none
1290 ;;
1291
1292 # Here we handle the default manufacturer of certain CPU types. It is in
1293 # some cases the only manufacturer, in others, it is the most popular.
1294 w89k)
1295 basic_machine=hppa1.1-winbond
1296 ;;
1297 op50n)
1298 basic_machine=hppa1.1-oki
1299 ;;
1300 op60c)
1301 basic_machine=hppa1.1-oki
1302 ;;
1303 romp)
1304 basic_machine=romp-ibm
1305 ;;
1306 mmix)
1307 basic_machine=mmix-knuth
1308 ;;
1309 rs6000)
1310 basic_machine=rs6000-ibm
1311 ;;
1312 vax)
1313 basic_machine=vax-dec
1314 ;;
1315 pdp11)
1316 basic_machine=pdp11-dec
1317 ;;
1318 we32k)
1319 basic_machine=we32k-att
1320 ;;
1321 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1322 basic_machine=sh-unknown
1323 ;;
1324 cydra)
1325 basic_machine=cydra-cydrome
1326 ;;
1327 orion)
1328 basic_machine=orion-highlevel
1329 ;;
1330 orion105)
1331 basic_machine=clipper-highlevel
1332 ;;
1333 mac | mpw | mac-mpw)
1334 basic_machine=m68k-apple
1335 ;;
1336 pmac | pmac-mpw)
1337 basic_machine=powerpc-apple
1338 ;;
1339 *-unknown)
1340 # Make sure to match an already-canonicalized machine name.
1341 ;;
9421342 *)
943 cpu=$basic_machine
944 vendor=unknown
1343 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1344 exit 1
9451345 ;;
9461346 esac
9471347
948 unset -v basic_machine
949
950 # Decode basic machines in the full and proper CPU-Company form.
951 case $cpu-$vendor in
952 # Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
953 # some cases the only manufacturer, in others, it is the most popular.
954 craynv-unknown)
955 vendor=cray
956 os=${os:-unicosmp}
957 ;;
958 c90-unknown | c90-cray)
959 vendor=cray
960 os=${os:-unicos}
961 ;;
962 fx80-unknown)
963 vendor=alliant
964 ;;
965 romp-unknown)
966 vendor=ibm
967 ;;
968 mmix-unknown)
969 vendor=knuth
970 ;;
971 microblaze-unknown | microblazeel-unknown)
972 vendor=xilinx
973 ;;
974 rs6000-unknown)
975 vendor=ibm
976 ;;
977 vax-unknown)
978 vendor=dec
979 ;;
980 pdp11-unknown)
981 vendor=dec
982 ;;
983 we32k-unknown)
984 vendor=att
985 ;;
986 cydra-unknown)
987 vendor=cydrome
988 ;;
989 i370-ibm*)
990 vendor=ibm
991 ;;
992 orion-unknown)
993 vendor=highlevel
994 ;;
995 xps-unknown | xps100-unknown)
996 cpu=xps100
997 vendor=honeywell
998 ;;
999
1000 # Here we normalize CPU types with a missing or matching vendor
1001 dpx20-unknown | dpx20-bull)
1002 cpu=rs6000
1003 vendor=bull
1004 os=${os:-bosx}
1005 ;;
1006
1007 # Here we normalize CPU types irrespective of the vendor
1008 amd64-*)
1009 cpu=x86_64
1010 ;;
1011 blackfin-*)
1012 cpu=bfin
1013 os=linux
1014 ;;
1015 c54x-*)
1016 cpu=tic54x
1017 ;;
1018 c55x-*)
1019 cpu=tic55x
1020 ;;
1021 c6x-*)
1022 cpu=tic6x
1023 ;;
1024 e500v[12]-*)
1025 cpu=powerpc
1026 os=$os"spe"
1027 ;;
1028 mips3*-*)
1029 cpu=mips64
1030 ;;
1031 ms1-*)
1032 cpu=mt
1033 ;;
1034 m68knommu-*)
1035 cpu=m68k
1036 os=linux
1037 ;;
1038 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1039 cpu=s12z
1040 ;;
1041 openrisc-*)
1042 cpu=or32
1043 ;;
1044 parisc-*)
1045 cpu=hppa
1046 os=linux
1047 ;;
1048 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1049 cpu=i586
1050 ;;
1051 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1052 cpu=i686
1053 ;;
1054 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1055 cpu=i686
1056 ;;
1057 pentium4-*)
1058 cpu=i786
1059 ;;
1060 pc98-*)
1061 cpu=i386
1062 ;;
1063 ppc-* | ppcbe-*)
1064 cpu=powerpc
1065 ;;
1066 ppcle-* | powerpclittle-*)
1067 cpu=powerpcle
1068 ;;
1069 ppc64-*)
1070 cpu=powerpc64
1071 ;;
1072 ppc64le-* | powerpc64little-*)
1073 cpu=powerpc64le
1074 ;;
1075 sb1-*)
1076 cpu=mipsisa64sb1
1077 ;;
1078 sb1el-*)
1079 cpu=mipsisa64sb1el
1080 ;;
1081 sh5e[lb]-*)
1082 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1083 ;;
1084 spur-*)
1085 cpu=spur
1086 ;;
1087 strongarm-* | thumb-*)
1088 cpu=arm
1089 ;;
1090 tx39-*)
1091 cpu=mipstx39
1092 ;;
1093 tx39el-*)
1094 cpu=mipstx39el
1095 ;;
1096 x64-*)
1097 cpu=x86_64
1098 ;;
1099 xscale-* | xscalee[bl]-*)
1100 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1101 ;;
1102
1103 # Recognize the cannonical CPU Types that limit and/or modify the
1104 # company names they are paired with.
1105 cr16-*)
1106 os=${os:-elf}
1107 ;;
1108 crisv32-* | etraxfs*-*)
1109 cpu=crisv32
1110 vendor=axis
1111 ;;
1112 cris-* | etrax*-*)
1113 cpu=cris
1114 vendor=axis
1115 ;;
1116 crx-*)
1117 os=${os:-elf}
1118 ;;
1119 neo-tandem)
1120 cpu=neo
1121 vendor=tandem
1122 ;;
1123 nse-tandem)
1124 cpu=nse
1125 vendor=tandem
1126 ;;
1127 nsr-tandem)
1128 cpu=nsr
1129 vendor=tandem
1130 ;;
1131 nsv-tandem)
1132 cpu=nsv
1133 vendor=tandem
1134 ;;
1135 nsx-tandem)
1136 cpu=nsx
1137 vendor=tandem
1138 ;;
1139 s390-*)
1140 cpu=s390
1141 vendor=ibm
1142 ;;
1143 s390x-*)
1144 cpu=s390x
1145 vendor=ibm
1146 ;;
1147 tile*-*)
1148 os=${os:-linux-gnu}
1149 ;;
1150
1151 *)
1152 # Recognize the cannonical CPU types that are allowed with any
1153 # company name.
1154 case $cpu in
1155 1750a | 580 \
1156 | a29k \
1157 | aarch64 | aarch64_be \
1158 | abacus \
1159 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1160 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1161 | alphapca5[67] | alpha64pca5[67] \
1162 | am33_2.0 \
1163 | arc | arceb \
1164 | arm | arm[lb]e | arme[lb] | armv* \
1165 | avr | avr32 \
1166 | asmjs \
1167 | ba \
1168 | be32 | be64 \
1169 | bfin | bs2000 \
1170 | c[123]* | c30 | [cjt]90 | c4x \
1171 | c8051 | clipper | craynv | csky | cydra \
1172 | d10v | d30v | dlx | dsp16xx \
1173 | e2k | elxsi | epiphany \
1174 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1175 | h8300 | h8500 \
1176 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1177 | hexagon \
1178 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1179 | ip2k | iq2000 \
1180 | k1om \
1181 | le32 | le64 \
1182 | lm32 \
1183 | m32c | m32r | m32rle \
1184 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
1185 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
1186 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1187 | microblaze | microblazeel \
1188 | mips | mipsbe | mipseb | mipsel | mipsle \
1189 | mips16 \
1190 | mips64 | mips64el \
1191 | mips64octeon | mips64octeonel \
1192 | mips64orion | mips64orionel \
1193 | mips64r5900 | mips64r5900el \
1194 | mips64vr | mips64vrel \
1195 | mips64vr4100 | mips64vr4100el \
1196 | mips64vr4300 | mips64vr4300el \
1197 | mips64vr5000 | mips64vr5000el \
1198 | mips64vr5900 | mips64vr5900el \
1199 | mipsisa32 | mipsisa32el \
1200 | mipsisa32r2 | mipsisa32r2el \
1201 | mipsisa32r6 | mipsisa32r6el \
1202 | mipsisa64 | mipsisa64el \
1203 | mipsisa64r2 | mipsisa64r2el \
1204 | mipsisa64r6 | mipsisa64r6el \
1205 | mipsisa64sb1 | mipsisa64sb1el \
1206 | mipsisa64sr71k | mipsisa64sr71kel \
1207 | mipsr5900 | mipsr5900el \
1208 | mipstx39 | mipstx39el \
1209 | mmix \
1210 | mn10200 | mn10300 \
1211 | moxie \
1212 | mt \
1213 | msp430 \
1214 | nds32 | nds32le | nds32be \
1215 | nfp \
1216 | nios | nios2 | nios2eb | nios2el \
1217 | none | np1 | ns16k | ns32k \
1218 | open8 \
1219 | or1k* \
1220 | or32 \
1221 | orion \
1222 | pdp10 | pdp11 | pj | pjl | pn | power \
1223 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1224 | pru \
1225 | pyramid \
1226 | riscv | riscv32 | riscv64 \
1227 | rl78 | romp | rs6000 | rx \
1228 | score \
1229 | sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1230 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1231 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1232 | sparclite \
1233 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1234 | spu \
1235 | tahoe \
1236 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1237 | tron \
1238 | ubicom32 \
1239 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1240 | vax \
1241 | visium \
1242 | wasm32 \
1243 | we32k \
1244 | x86 | x86_64 | xc16x | xgate | xps100 \
1245 | xstormy16 | xtensa* \
1246 | ymp \
1247 | z8k | z80)
1248 ;;
1249
1250 *)
1251 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1252 exit 1
1253 ;;
1254 esac
1255 ;;
1256 esac
1257
12581348 # Here we canonicalize certain aliases for manufacturers.
1259 case $vendor in
1260 digital*)
1261 vendor=dec
1262 ;;
1263 commodore*)
1264 vendor=cbm
1349 case $basic_machine in
1350 *-digital*)
1351 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1352 ;;
1353 *-commodore*)
1354 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
12651355 ;;
12661356 *)
12671357 ;;
12741364 case $os in
12751365 # First match some system type aliases that might get confused
12761366 # with valid system types.
1277 # solaris* is a basic system type, with this one exception.
1278 auroraux)
1279 os=auroraux
1280 ;;
1281 bluegene*)
1282 os=cnk
1283 ;;
1284 solaris1 | solaris1.*)
1367 # -solaris* is a basic system type, with this one exception.
1368 -auroraux)
1369 os=-auroraux
1370 ;;
1371 -solaris1 | -solaris1.*)
12851372 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12861373 ;;
1287 solaris)
1288 os=solaris2
1289 ;;
1290 unixware*)
1291 os=sysv4.2uw
1292 ;;
1293 gnu/linux*)
1374 -solaris)
1375 os=-solaris2
1376 ;;
1377 -unixware*)
1378 os=-sysv4.2uw
1379 ;;
1380 -gnu/linux*)
12941381 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
12951382 ;;
12961383 # es1800 is here to avoid being matched by es* (a different OS)
1297 es1800*)
1298 os=ose
1299 ;;
1300 # Some version numbers need modification
1301 chorusos*)
1302 os=chorusos
1303 ;;
1304 isc)
1305 os=isc2.2
1306 ;;
1307 sco6)
1308 os=sco5v6
1309 ;;
1310 sco5)
1311 os=sco3.2v5
1312 ;;
1313 sco4)
1314 os=sco3.2v4
1315 ;;
1316 sco3.2.[4-9]*)
1317 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1318 ;;
1319 sco3.2v[4-9]* | sco5v6*)
1320 # Don't forget version if it is 3.2v4 or newer.
1321 ;;
1322 scout)
1323 # Don't match below
1324 ;;
1325 sco*)
1326 os=sco3.2v2
1327 ;;
1328 psos*)
1329 os=psos
1384 -es1800*)
1385 os=-ose
13301386 ;;
13311387 # Now accept the basic system types.
13321388 # The portable systems comes first.
13331389 # Each alternative MUST end in a * to match a version number.
1334 # sysv* is not here because it comes later, after sysvr4.
1335 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1336 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
1337 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1338 | sym* | kopensolaris* | plan9* \
1339 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1340 | aos* | aros* | cloudabi* | sortix* \
1341 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1342 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1343 | knetbsd* | mirbsd* | netbsd* \
1344 | bitrig* | openbsd* | solidbsd* | libertybsd* \
1345 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1346 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1347 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1348 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1349 | chorusrdb* | cegcc* | glidix* \
1350 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1351 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1352 | linux-newlib* | linux-musl* | linux-uclibc* \
1353 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1354 | interix* | uwin* | mks* | rhapsody* | darwin* \
1355 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1356 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1357 | os2* | vos* | palmos* | uclinux* | nucleus* \
1358 | morphos* | superux* | rtmk* | windiss* \
1359 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1360 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1361 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1362 | midnightbsd*)
1390 # -sysv* is not here because it comes later, after sysvr4.
1391 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1392 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1393 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1394 | -sym* | -kopensolaris* | -plan9* \
1395 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1396 | -aos* | -aros* | -cloudabi* | -sortix* \
1397 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1398 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1399 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1400 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1401 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1402 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1403 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1404 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
1405 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1406 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1407 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1408 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1409 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1410 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1411 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1412 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1413 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1414 | -morphos* | -superux* | -rtmk* | -windiss* \
1415 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1416 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1417 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1418 | -midnightbsd*)
13631419 # Remember, each alternative MUST END IN *, to match a version number.
13641420 ;;
1365 qnx*)
1366 case $cpu in
1367 x86 | i*86)
1421 -qnx*)
1422 case $basic_machine in
1423 x86-* | i*86-*)
13681424 ;;
13691425 *)
1370 os=nto-$os
1426 os=-nto$os
13711427 ;;
13721428 esac
13731429 ;;
1374 hiux*)
1375 os=hiuxwe2
1376 ;;
1377 nto-qnx*)
1378 ;;
1379 nto*)
1430 -nto-qnx*)
1431 ;;
1432 -nto*)
13801433 os=`echo $os | sed -e 's|nto|nto-qnx|'`
13811434 ;;
1382 sim | xray | os68k* | v88r* \
1383 | windows* | osx | abug | netware* | os9* \
1384 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1385 ;;
1386 linux-dietlibc)
1387 os=linux-dietlibc
1388 ;;
1389 linux*)
1435 -sim | -xray | -os68k* | -v88r* \
1436 | -windows* | -osx | -abug | -netware* | -os9* \
1437 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1438 ;;
1439 -mac*)
1440 os=`echo "$os" | sed -e 's|mac|macos|'`
1441 ;;
1442 -linux-dietlibc)
1443 os=-linux-dietlibc
1444 ;;
1445 -linux*)
13901446 os=`echo $os | sed -e 's|linux|linux-gnu|'`
13911447 ;;
1392 lynx*178)
1393 os=lynxos178
1394 ;;
1395 lynx*5)
1396 os=lynxos5
1397 ;;
1398 lynx*)
1399 os=lynxos
1400 ;;
1401 mac*)
1402 os=`echo "$os" | sed -e 's|mac|macos|'`
1403 ;;
1404 opened*)
1405 os=openedition
1406 ;;
1407 os400*)
1408 os=os400
1409 ;;
1410 sunos5*)
1448 -sunos5*)
14111449 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14121450 ;;
1413 sunos6*)
1451 -sunos6*)
14141452 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14151453 ;;
1416 wince*)
1417 os=wince
1418 ;;
1419 utek*)
1420 os=bsd
1421 ;;
1422 dynix*)
1423 os=bsd
1424 ;;
1425 acis*)
1426 os=aos
1427 ;;
1428 atheos*)
1429 os=atheos
1430 ;;
1431 syllable*)
1432 os=syllable
1433 ;;
1434 386bsd)
1435 os=bsd
1436 ;;
1437 ctix* | uts*)
1438 os=sysv
1439 ;;
1440 nova*)
1441 os=rtmk-nova
1442 ;;
1443 ns2)
1444 os=nextstep2
1445 ;;
1446 nsk*)
1447 os=nsk
1454 -opened*)
1455 os=-openedition
1456 ;;
1457 -os400*)
1458 os=-os400
1459 ;;
1460 -wince*)
1461 os=-wince
1462 ;;
1463 -utek*)
1464 os=-bsd
1465 ;;
1466 -dynix*)
1467 os=-bsd
1468 ;;
1469 -acis*)
1470 os=-aos
1471 ;;
1472 -atheos*)
1473 os=-atheos
1474 ;;
1475 -syllable*)
1476 os=-syllable
1477 ;;
1478 -386bsd)
1479 os=-bsd
1480 ;;
1481 -ctix* | -uts*)
1482 os=-sysv
1483 ;;
1484 -nova*)
1485 os=-rtmk-nova
1486 ;;
1487 -ns2)
1488 os=-nextstep2
1489 ;;
1490 -nsk*)
1491 os=-nsk
14481492 ;;
14491493 # Preserve the version number of sinix5.
1450 sinix5.*)
1494 -sinix5.*)
14511495 os=`echo $os | sed -e 's|sinix|sysv|'`
14521496 ;;
1453 sinix*)
1454 os=sysv4
1455 ;;
1456 tpf*)
1457 os=tpf
1458 ;;
1459 triton*)
1460 os=sysv3
1461 ;;
1462 oss*)
1463 os=sysv3
1464 ;;
1465 svr4*)
1466 os=sysv4
1467 ;;
1468 svr3)
1469 os=sysv3
1470 ;;
1471 sysvr4)
1472 os=sysv4
1473 ;;
1474 # This must come after sysvr4.
1475 sysv*)
1476 ;;
1477 ose*)
1478 os=ose
1479 ;;
1480 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1481 os=mint
1482 ;;
1483 zvmoe)
1484 os=zvmoe
1485 ;;
1486 dicos*)
1487 os=dicos
1488 ;;
1489 pikeos*)
1497 -sinix*)
1498 os=-sysv4
1499 ;;
1500 -tpf*)
1501 os=-tpf
1502 ;;
1503 -triton*)
1504 os=-sysv3
1505 ;;
1506 -oss*)
1507 os=-sysv3
1508 ;;
1509 -svr4*)
1510 os=-sysv4
1511 ;;
1512 -svr3)
1513 os=-sysv3
1514 ;;
1515 -sysvr4)
1516 os=-sysv4
1517 ;;
1518 # This must come after -sysvr4.
1519 -sysv*)
1520 ;;
1521 -ose*)
1522 os=-ose
1523 ;;
1524 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1525 os=-mint
1526 ;;
1527 -zvmoe)
1528 os=-zvmoe
1529 ;;
1530 -dicos*)
1531 os=-dicos
1532 ;;
1533 -pikeos*)
14901534 # Until real need of OS specific support for
14911535 # particular features comes up, bare metal
14921536 # configurations are quite functional.
1493 case $cpu in
1537 case $basic_machine in
14941538 arm*)
1495 os=eabi
1539 os=-eabi
14961540 ;;
14971541 *)
1498 os=elf
1542 os=-elf
14991543 ;;
15001544 esac
15011545 ;;
1502 nacl*)
1503 ;;
1504 ios)
1505 ;;
1506 none)
1507 ;;
1508 *-eabi)
1546 -nacl*)
1547 ;;
1548 -ios)
1549 ;;
1550 -none)
1551 ;;
1552 -*-eabi)
1553 case $basic_machine in
1554 arm*)
1555 ;;
1556 esac
15091557 ;;
15101558 *)
1559 # Get rid of the `-' at the beginning of $os.
1560 os=`echo $os | sed 's/[^-]*-//'`
15111561 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15121562 exit 1
15131563 ;;
15241574 # will signal an error saying that MANUFACTURER isn't an operating
15251575 # system, and we'll never get to this point.
15261576
1527 case $cpu-$vendor in
1577 case $basic_machine in
15281578 score-*)
1529 os=elf
1579 os=-elf
15301580 ;;
15311581 spu-*)
1532 os=elf
1582 os=-elf
15331583 ;;
15341584 *-acorn)
1535 os=riscix1.2
1585 os=-riscix1.2
15361586 ;;
15371587 arm*-rebel)
1538 os=linux
1588 os=-linux
15391589 ;;
15401590 arm*-semi)
1541 os=aout
1591 os=-aout
15421592 ;;
15431593 c4x-* | tic4x-*)
1544 os=coff
1594 os=-coff
15451595 ;;
15461596 c8051-*)
1547 os=elf
1548 ;;
1549 clipper-intergraph)
1550 os=clix
1597 os=-elf
15511598 ;;
15521599 hexagon-*)
1553 os=elf
1600 os=-elf
15541601 ;;
15551602 tic54x-*)
1556 os=coff
1603 os=-coff
15571604 ;;
15581605 tic55x-*)
1559 os=coff
1606 os=-coff
15601607 ;;
15611608 tic6x-*)
1562 os=coff
1609 os=-coff
15631610 ;;
15641611 # This must come before the *-dec entry.
15651612 pdp10-*)
1566 os=tops20
1613 os=-tops20
15671614 ;;
15681615 pdp11-*)
1569 os=none
1616 os=-none
15701617 ;;
15711618 *-dec | vax-*)
1572 os=ultrix4.2
1619 os=-ultrix4.2
15731620 ;;
15741621 m68*-apollo)
1575 os=domain
1622 os=-domain
15761623 ;;
15771624 i386-sun)
1578 os=sunos4.0.2
1625 os=-sunos4.0.2
15791626 ;;
15801627 m68000-sun)
1581 os=sunos3
1628 os=-sunos3
15821629 ;;
15831630 m68*-cisco)
1584 os=aout
1631 os=-aout
15851632 ;;
15861633 mep-*)
1587 os=elf
1634 os=-elf
15881635 ;;
15891636 mips*-cisco)
1590 os=elf
1637 os=-elf
15911638 ;;
15921639 mips*-*)
1593 os=elf
1640 os=-elf
15941641 ;;
15951642 or32-*)
1596 os=coff
1643 os=-coff
15971644 ;;
15981645 *-tti) # must be before sparc entry or we get the wrong os.
1599 os=sysv3
1646 os=-sysv3
16001647 ;;
16011648 sparc-* | *-sun)
1602 os=sunos4.1.1
1649 os=-sunos4.1.1
16031650 ;;
16041651 pru-*)
1605 os=elf
1652 os=-elf
16061653 ;;
16071654 *-be)
1608 os=beos
1655 os=-beos
16091656 ;;
16101657 *-ibm)
1611 os=aix
1658 os=-aix
16121659 ;;
16131660 *-knuth)
1614 os=mmixware
1661 os=-mmixware
16151662 ;;
16161663 *-wec)
1617 os=proelf
1664 os=-proelf
16181665 ;;
16191666 *-winbond)
1620 os=proelf
1667 os=-proelf
16211668 ;;
16221669 *-oki)
1623 os=proelf
1670 os=-proelf
16241671 ;;
16251672 *-hp)
1626 os=hpux
1673 os=-hpux
16271674 ;;
16281675 *-hitachi)
1629 os=hiux
1676 os=-hiux
16301677 ;;
16311678 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1632 os=sysv
1679 os=-sysv
16331680 ;;
16341681 *-cbm)
1635 os=amigaos
1682 os=-amigaos
16361683 ;;
16371684 *-dg)
1638 os=dgux
1685 os=-dgux
16391686 ;;
16401687 *-dolphin)
1641 os=sysv3
1688 os=-sysv3
16421689 ;;
16431690 m68k-ccur)
1644 os=rtu
1691 os=-rtu
16451692 ;;
16461693 m88k-omron*)
1647 os=luna
1694 os=-luna
16481695 ;;
16491696 *-next)
1650 os=nextstep
1697 os=-nextstep
16511698 ;;
16521699 *-sequent)
1653 os=ptx
1700 os=-ptx
16541701 ;;
16551702 *-crds)
1656 os=unos
1703 os=-unos
16571704 ;;
16581705 *-ns)
1659 os=genix
1706 os=-genix
16601707 ;;
16611708 i370-*)
1662 os=mvs
1709 os=-mvs
16631710 ;;
16641711 *-gould)
1665 os=sysv
1712 os=-sysv
16661713 ;;
16671714 *-highlevel)
1668 os=bsd
1715 os=-bsd
16691716 ;;
16701717 *-encore)
1671 os=bsd
1718 os=-bsd
16721719 ;;
16731720 *-sgi)
1674 os=irix
1721 os=-irix
16751722 ;;
16761723 *-siemens)
1677 os=sysv4
1724 os=-sysv4
16781725 ;;
16791726 *-masscomp)
1680 os=rtu
1727 os=-rtu
16811728 ;;
16821729 f30[01]-fujitsu | f700-fujitsu)
1683 os=uxpv
1730 os=-uxpv
16841731 ;;
16851732 *-rom68k)
1686 os=coff
1733 os=-coff
16871734 ;;
16881735 *-*bug)
1689 os=coff
1736 os=-coff
16901737 ;;
16911738 *-apple)
1692 os=macos
1739 os=-macos
16931740 ;;
16941741 *-atari*)
1695 os=mint
1696 ;;
1697 *-wrs)
1698 os=vxworks
1742 os=-mint
16991743 ;;
17001744 *)
1701 os=none
1745 os=-none
17021746 ;;
17031747 esac
17041748 fi
17051749
17061750 # Here we handle the case where we know the os, and the CPU type, but not the
17071751 # manufacturer. We pick the logical manufacturer.
1708 case $vendor in
1709 unknown)
1752 vendor=unknown
1753 case $basic_machine in
1754 *-unknown)
17101755 case $os in
1711 riscix*)
1756 -riscix*)
17121757 vendor=acorn
17131758 ;;
1714 sunos*)
1759 -sunos*)
17151760 vendor=sun
17161761 ;;
1717 cnk*|-aix*)
1762 -cnk*|-aix*)
17181763 vendor=ibm
17191764 ;;
1720 beos*)
1765 -beos*)
17211766 vendor=be
17221767 ;;
1723 hpux*)
1768 -hpux*)
17241769 vendor=hp
17251770 ;;
1726 mpeix*)
1771 -mpeix*)
17271772 vendor=hp
17281773 ;;
1729 hiux*)
1774 -hiux*)
17301775 vendor=hitachi
17311776 ;;
1732 unos*)
1777 -unos*)
17331778 vendor=crds
17341779 ;;
1735 dgux*)
1780 -dgux*)
17361781 vendor=dg
17371782 ;;
1738 luna*)
1783 -luna*)
17391784 vendor=omron
17401785 ;;
1741 genix*)
1786 -genix*)
17421787 vendor=ns
17431788 ;;
1744 clix*)
1745 vendor=intergraph
1746 ;;
1747 mvs* | opened*)
1789 -mvs* | -opened*)
17481790 vendor=ibm
17491791 ;;
1750 os400*)
1792 -os400*)
17511793 vendor=ibm
17521794 ;;
1753 ptx*)
1795 -ptx*)
17541796 vendor=sequent
17551797 ;;
1756 tpf*)
1798 -tpf*)
17571799 vendor=ibm
17581800 ;;
1759 vxsim* | vxworks* | windiss*)
1801 -vxsim* | -vxworks* | -windiss*)
17601802 vendor=wrs
17611803 ;;
1762 aux*)
1804 -aux*)
17631805 vendor=apple
17641806 ;;
1765 hms*)
1807 -hms*)
17661808 vendor=hitachi
17671809 ;;
1768 mpw* | macos*)
1810 -mpw* | -macos*)
17691811 vendor=apple
17701812 ;;
1771 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1813 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
17721814 vendor=atari
17731815 ;;
1774 vos*)
1816 -vos*)
17751817 vendor=stratus
17761818 ;;
17771819 esac
1820 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17781821 ;;
17791822 esac
17801823
1781 echo "$cpu-$vendor-$os"
1824 echo "$basic_machine$os"
17821825 exit
17831826
17841827 # Local variables:
+4109
-5539
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.71 for libnbd 1.10.3.
2 # Generated by GNU Autoconf 2.69 for libnbd 1.10.4.
33 #
44 #
5 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
6 # Inc.
5 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
76 #
87 #
98 # This configure script is free software; the Free Software Foundation
1413
1514 # Be more Bourne compatible
1615 DUALCASE=1; export DUALCASE # for MKS sh
17 as_nop=:
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2017 emulate sh
2118 NULLCMD=:
2219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2320 # is contrary to our usage. Disable this feature.
2421 alias -g '${1+"$@"}'='"$@"'
2522 setopt NO_GLOB_SUBST
26 else $as_nop
23 else
2724 case `(set -o) 2>/dev/null` in #(
2825 *posix*) :
2926 set -o posix ;; #(
3330 fi
3431
3532
36
37 # Reset variables that may have inherited troublesome values from
38 # the environment.
39
40 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41 # (If _AS_PATH_WALK were called with IFS unset, it would have the
42 # side effect of setting IFS to empty, thus disabling word splitting.)
43 # Quoting is to prevent editors from complaining about space-tab.
4433 as_nl='
4534 '
4635 export as_nl
47 IFS=" "" $as_nl"
48
49 PS1='$ '
50 PS2='> '
51 PS4='+ '
52
53 # Ensure predictable behavior from utilities with locale-dependent output.
54 LC_ALL=C
55 export LC_ALL
56 LANGUAGE=C
57 export LANGUAGE
58
59 # We cannot yet rely on "unset" to work, but we need these variables
60 # to be unset--not just set to an empty or harmless value--now, to
61 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
62 # also avoids known problems related to "unset" and subshell syntax
63 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65 do eval test \${$as_var+y} \
66 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67 done
68
69 # Ensure that fds 0, 1, and 2 are open.
70 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
36 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40 # Prefer a ksh shell builtin over an external printf program on Solaris,
41 # but without wasting forks for bash or zsh.
42 if test -z "$BASH_VERSION$ZSH_VERSION" \
43 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
44 as_echo='print -r --'
45 as_echo_n='print -rn --'
46 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in #(
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
7370
7471 # The user is always right.
75 if ${PATH_SEPARATOR+false} :; then
72 if test "${PATH_SEPARATOR+set}" != set; then
7673 PATH_SEPARATOR=:
7774 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8077 }
8178 fi
8279
80
81 # IFS
82 # We need space, tab and new line, in precisely that order. Quoting is
83 # there to prevent editors from complaining about space-tab.
84 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
85 # splitting by setting IFS to empty value.)
86 IFS=" "" $as_nl"
8387
8488 # Find who we are. Look in the path if we contain no directory separator.
8589 as_myself=
8993 for as_dir in $PATH
9094 do
9195 IFS=$as_save_IFS
92 case $as_dir in #(((
93 '') as_dir=./ ;;
94 */) ;;
95 *) as_dir=$as_dir/ ;;
96 esac
97 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9898 done
9999 IFS=$as_save_IFS
100100
106106 as_myself=$0
107107 fi
108108 if test ! -f "$as_myself"; then
109 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110110 exit 1
111111 fi
112112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
113133
114134 # Use a proper internal environment variable to ensure we don't fall
115135 # into an infinite loop, continuously re-executing ourselves.
131151 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
132152 # Admittedly, this is quite paranoid, since all the known shells bail
133153 # out after a failed `exec'.
134 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135 exit 255
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
136156 fi
137157 # We don't want this to propagate to other subprocesses.
138158 { _as_can_reexec=; unset _as_can_reexec;}
139159 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="as_nop=:
141 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143161 emulate sh
144162 NULLCMD=:
145163 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146164 # is contrary to our usage. Disable this feature.
147165 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148166 setopt NO_GLOB_SUBST
149 else \$as_nop
167 else
150168 case \`(set -o) 2>/dev/null\` in #(
151169 *posix*) :
152170 set -o posix ;; #(
166184 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167185 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168186 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170 then :
171
172 else \$as_nop
187 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189 else
173190 exitcode=1; echo positional parameters were not saved.
174191 fi
175192 test x\$exitcode = x0 || exit 1
176 blah=\$(echo \$(echo blah))
177 test x\"\$blah\" = xblah || exit 1
178193 test -x / || exit 1"
179194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
180195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
181196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
182197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1
183199
184200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
185201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188204 PATH=/empty FPATH=/empty; export PATH FPATH
189205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
190 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
191 test \$(( 1 + 1 )) = 2 || exit 1"
192 if (eval "$as_required") 2>/dev/null
193 then :
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
207 if (eval "$as_required") 2>/dev/null; then :
194208 as_have_required=yes
195 else $as_nop
209 else
196210 as_have_required=no
197211 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else $as_nop
212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213
214 else
202215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203216 as_found=false
204217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205218 do
206219 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
220 test -z "$as_dir" && as_dir=.
212221 as_found=:
213222 case $as_dir in #(
214223 /*)
215224 for as_base in sh bash ksh sh5; do
216225 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
226 as_shell=$as_dir/$as_base
218227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221229 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224231 break 2
225232 fi
226233 fi
228235 esac
229236 as_found=false
230237 done
238 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi; }
231242 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else $as_nop
236 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi
241 fi
242
243
244 if test "x$CONFIG_SHELL" != x
245 then :
243
244
245 if test "x$CONFIG_SHELL" != x; then :
246246 export CONFIG_SHELL
247247 # We cannot yet assume a decent shell, so we have to provide a
248248 # neutralization value for shells without unset; and this also
260260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261261 # Admittedly, this is quite paranoid, since all the known shells bail
262262 # out after a failed `exec'.
263 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
263 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264264 exit 255
265265 fi
266266
267 if test x$as_have_required = xno
268 then :
269 printf "%s\n" "$0: This script requires a shell more modern than all"
270 printf "%s\n" "$0: the shells that I found on your system."
271 if test ${ZSH_VERSION+y} ; then
272 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 if test x$as_have_required = xno; then :
268 $as_echo "$0: This script requires a shell more modern than all"
269 $as_echo "$0: the shells that I found on your system."
270 if test x${ZSH_VERSION+set} = xset ; then
271 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
272 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274273 else
275 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
274 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276275 $0: including any error possibly output before this
277276 $0: message. Then install a modern shell, or manually run
278277 $0: the script under such a shell if you do have one."
299298 }
300299 as_unset=as_fn_unset
301300
302
303301 # as_fn_set_status STATUS
304302 # -----------------------
305303 # Set $? to STATUS, without forking.
317315 as_fn_set_status $1
318316 exit $1
319317 } # as_fn_exit
320 # as_fn_nop
321 # ---------
322 # Do nothing but, unlike ":", preserve the value of $?.
323 as_fn_nop ()
324 {
325 return $?
326 }
327 as_nop=as_fn_nop
328318
329319 # as_fn_mkdir_p
330320 # -------------
339329 as_dirs=
340330 while :; do
341331 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343333 *) as_qdir=$as_dir;;
344334 esac
345335 as_dirs="'$as_qdir' $as_dirs"
348338 X"$as_dir" : 'X\(//\)[^/]' \| \
349339 X"$as_dir" : 'X\(//\)$' \| \
350340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
341 $as_echo X"$as_dir" |
352342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353343 s//\1/
354344 q
387377 # advantage of any shell optimizations that allow amortized linear growth over
388378 # repeated appends, instead of the typical quadratic growth present in naive
389379 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
392381 eval 'as_fn_append ()
393382 {
394383 eval $1+=\$2
395384 }'
396 else $as_nop
385 else
397386 as_fn_append ()
398387 {
399388 eval $1=\$$1\$2
405394 # Perform arithmetic evaluation on the ARGs, and store the result in the
406395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407396 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410398 eval 'as_fn_arith ()
411399 {
412400 as_val=$(( $* ))
413401 }'
414 else $as_nop
402 else
415403 as_fn_arith ()
416404 {
417405 as_val=`expr "$@" || test $? -eq 1`
418406 }
419407 fi # as_fn_arith
420408
421 # as_fn_nop
422 # ---------
423 # Do nothing but, unlike ":", preserve the value of $?.
424 as_fn_nop ()
425 {
426 return $?
427 }
428 as_nop=as_fn_nop
429409
430410 # as_fn_error STATUS ERROR [LINENO LOG_FD]
431411 # ----------------------------------------
437417 as_status=$1; test $as_status -eq 0 && as_status=1
438418 if test "$4"; then
439419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441421 fi
442 printf "%s\n" "$as_me: error: $2" >&2
422 $as_echo "$as_me: error: $2" >&2
443423 as_fn_exit $as_status
444424 } # as_fn_error
445425
466446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467447 X"$0" : 'X\(//\)$' \| \
468448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469 printf "%s\n" X/"$0" |
449 $as_echo X/"$0" |
470450 sed '/^.*\/\([^/][^/]*\)\/*$/{
471451 s//\1/
472452 q
510490 s/-\n.*//
511491 ' >$as_me.lineno &&
512492 chmod +x "$as_me.lineno" ||
513 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
514494
515495 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
516496 # already done that, so ensure we don't try to do so again and fall
524504 exit
525505 }
526506
527
528 # Determine whether it's possible to make 'echo' print without a newline.
529 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530 # for compatibility with existing Makefiles.
531507 ECHO_C= ECHO_N= ECHO_T=
532508 case `echo -n x` in #(((((
533509 -n*)
540516 *)
541517 ECHO_N='-n';;
542518 esac
543
544 # For backward compatibility with old third-party macros, we provide
545 # the shell variables $as_echo and $as_echo_n. New code should use
546 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547 as_echo='printf %s\n'
548 as_echo_n='printf %s'
549
550519
551520 rm -f conf$$ conf$$.exe conf$$.file
552521 if test -d conf$$.dir; then
617586 # Identity of this package.
618587 PACKAGE_NAME='libnbd'
619588 PACKAGE_TARNAME='libnbd'
620 PACKAGE_VERSION='1.10.3'
621 PACKAGE_STRING='libnbd 1.10.3'
589 PACKAGE_VERSION='1.10.4'
590 PACKAGE_STRING='libnbd 1.10.4'
622591 PACKAGE_BUGREPORT=''
623592 PACKAGE_URL=''
624593
625594 # Factoring default headers for most tests.
626595 ac_includes_default="\
627 #include <stddef.h>
628 #ifdef HAVE_STDIO_H
629 # include <stdio.h>
596 #include <stdio.h>
597 #ifdef HAVE_SYS_TYPES_H
598 # include <sys/types.h>
630599 #endif
631 #ifdef HAVE_STDLIB_H
600 #ifdef HAVE_SYS_STAT_H
601 # include <sys/stat.h>
602 #endif
603 #ifdef STDC_HEADERS
632604 # include <stdlib.h>
605 # include <stddef.h>
606 #else
607 # ifdef HAVE_STDLIB_H
608 # include <stdlib.h>
609 # endif
633610 #endif
634611 #ifdef HAVE_STRING_H
612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 # include <memory.h>
614 # endif
635615 # include <string.h>
616 #endif
617 #ifdef HAVE_STRINGS_H
618 # include <strings.h>
636619 #endif
637620 #ifdef HAVE_INTTYPES_H
638621 # include <inttypes.h>
640623 #ifdef HAVE_STDINT_H
641624 # include <stdint.h>
642625 #endif
643 #ifdef HAVE_STRINGS_H
644 # include <strings.h>
645 #endif
646 #ifdef HAVE_SYS_TYPES_H
647 # include <sys/types.h>
648 #endif
649 #ifdef HAVE_SYS_STAT_H
650 # include <sys/stat.h>
651 #endif
652626 #ifdef HAVE_UNISTD_H
653627 # include <unistd.h>
654628 #endif"
655629
656 ac_header_c_list=
657630 ac_subst_vars='am__EXEEXT_FALSE
658631 am__EXEEXT_TRUE
659632 LTLIBOBJS
768741 PTHREAD_CXX
769742 PTHREAD_CC
770743 ax_pthread_config
771 CPP
772744 LT_SYS_LIBRARY_PATH
773745 OTOOL64
774746 OTOOL
787759 DUMPBIN
788760 LD
789761 FGREP
790 EGREP
791 GREP
792762 SED
793763 host_os
794764 host_vendor
835805 INSTALL_DATA
836806 INSTALL_SCRIPT
837807 INSTALL_PROGRAM
808 EGREP
809 GREP
810 CPP
838811 OBJEXT
839812 EXEEXT
840813 ac_ct_CC
916889 LDFLAGS
917890 LIBS
918891 CPPFLAGS
892 CPP
919893 LT_SYS_LIBRARY_PATH
920 CPP
921894 CXX
922895 CXXFLAGS
923896 CCC
1008981 *) ac_optarg=yes ;;
1009982 esac
1010983
984 # Accept the important Cygnus configure options, so we can diagnose typos.
985
1011986 case $ac_dashdash$ac_option in
1012987 --)
1013988 ac_dashdash=yes ;;
10481023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10491024 # Reject names that are not valid shell variable names.
10501025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1026 as_fn_error $? "invalid feature name: $ac_useropt"
10521027 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10541029 case $ac_user_opts in
10551030 *"
10561031 "enable_$ac_useropt"
10741049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10751050 # Reject names that are not valid shell variable names.
10761051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1052 as_fn_error $? "invalid feature name: $ac_useropt"
10781053 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10801055 case $ac_user_opts in
10811056 *"
10821057 "enable_$ac_useropt"
12871262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
12881263 # Reject names that are not valid shell variable names.
12891264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid package name: \`$ac_useropt'"
1265 as_fn_error $? "invalid package name: $ac_useropt"
12911266 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12931268 case $ac_user_opts in
12941269 *"
12951270 "with_$ac_useropt"
13031278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
13041279 # Reject names that are not valid shell variable names.
13051280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error $? "invalid package name: \`$ac_useropt'"
1281 as_fn_error $? "invalid package name: $ac_useropt"
13071282 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
13091284 case $ac_user_opts in
13101285 *"
13111286 "with_$ac_useropt"
13491324
13501325 *)
13511326 # FIXME: should be removed in autoconf 3.0.
1352 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13531328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13551330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
13561331 ;;
13571332
13671342 case $enable_option_checking in
13681343 no) ;;
13691344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1370 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13711346 esac
13721347 fi
13731348
14311406 X"$as_myself" : 'X\(//\)[^/]' \| \
14321407 X"$as_myself" : 'X\(//\)$' \| \
14331408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 printf "%s\n" X"$as_myself" |
1409 $as_echo X"$as_myself" |
14351410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14361411 s//\1/
14371412 q
14881463 # Omit some internal or obsolete options to make the list less imposing.
14891464 # This message is too long to be a string in the A/UX 3.1 sh.
14901465 cat <<_ACEOF
1491 \`configure' configures libnbd 1.10.3 to adapt to many kinds of systems.
1466 \`configure' configures libnbd 1.10.4 to adapt to many kinds of systems.
14921467
14931468 Usage: $0 [OPTION]... [VAR=VALUE]...
14941469
15591534
15601535 if test -n "$ac_init_help"; then
15611536 case $ac_init_help in
1562 short | recursive ) echo "Configuration of libnbd 1.10.3:";;
1537 short | recursive ) echo "Configuration of libnbd 1.10.4:";;
15631538 esac
15641539 cat <<\_ACEOF
15651540
16141589 LIBS libraries to pass to the linker, e.g. -l<library>
16151590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
16161591 you have headers in a nonstandard directory <include dir>
1592 CPP C preprocessor
16171593 LT_SYS_LIBRARY_PATH
16181594 User-defined run-time library search path.
1619 CPP C preprocessor
16201595 CXX C++ compiler command
16211596 CXXFLAGS C++ compiler flags
16221597 CXXCPP C++ preprocessor
16681643 case "$ac_dir" in
16691644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16701645 *)
1671 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16721647 # A ".." for each directory in $ac_dir_suffix.
1673 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16741649 case $ac_top_builddir_sub in
16751650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16761651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16981673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16991674
17001675 cd "$ac_dir" || { ac_status=$?; continue; }
1701 # Check for configure.gnu first; this name is used for a wrapper for
1702 # Metaconfig's "Configure" on case-insensitive file systems.
1676 # Check for guested configure.
17031677 if test -f "$ac_srcdir/configure.gnu"; then
17041678 echo &&
17051679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
17071681 echo &&
17081682 $SHELL "$ac_srcdir/configure" --help=recursive
17091683 else
1710 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
17111685 fi || ac_status=$?
17121686 cd "$ac_pwd" || { ac_status=$?; break; }
17131687 done
17161690 test -n "$ac_init_help" && exit $ac_status
17171691 if $ac_init_version; then
17181692 cat <<\_ACEOF
1719 libnbd configure 1.10.3
1720 generated by GNU Autoconf 2.71
1721
1722 Copyright (C) 2021 Free Software Foundation, Inc.
1693 libnbd configure 1.10.4
1694 generated by GNU Autoconf 2.69
1695
1696 Copyright (C) 2012 Free Software Foundation, Inc.
17231697 This configure script is free software; the Free Software Foundation
17241698 gives unlimited permission to copy, distribute and modify it.
17251699 _ACEOF
17361710 ac_fn_c_try_compile ()
17371711 {
17381712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest.beam
1713 rm -f conftest.$ac_objext
17401714 if { { ac_try="$ac_compile"
17411715 case "(($ac_try" in
17421716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431717 *) ac_try_echo=$ac_try;;
17441718 esac
17451719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 printf "%s\n" "$ac_try_echo"; } >&5
1720 $as_echo "$ac_try_echo"; } >&5
17471721 (eval "$ac_compile") 2>conftest.err
17481722 ac_status=$?
17491723 if test -s conftest.err; then
17511725 cat conftest.er1 >&5
17521726 mv -f conftest.er1 conftest.err
17531727 fi
1754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17551729 test $ac_status = 0; } && {
17561730 test -z "$ac_c_werror_flag" ||
17571731 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext
1759 then :
1732 } && test -s conftest.$ac_objext; then :
17601733 ac_retval=0
1761 else $as_nop
1762 printf "%s\n" "$as_me: failed program was:" >&5
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
17631736 sed 's/^/| /' conftest.$ac_ext >&5
17641737
17651738 ac_retval=1
17681741 as_fn_set_status $ac_retval
17691742
17701743 } # ac_fn_c_try_compile
1744
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_cpp ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } > conftest.i && {
1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776 fi
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_cpp
1781
1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785 # the include files in INCLUDES and setting the cache variable VAR
1786 # accordingly.
1787 ac_fn_c_check_header_mongrel ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if eval \${$3+:} false; then :
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 else
1800 # Is the header compilable?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802 $as_echo_n "checking $2 usability... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 $4
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_header_compiler=yes
1810 else
1811 ac_header_compiler=no
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815 $as_echo "$ac_header_compiler" >&6; }
1816
1817 # Is the header present?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819 $as_echo_n "checking $2 presence... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825 ac_header_preproc=yes
1826 else
1827 ac_header_preproc=no
1828 fi
1829 rm -f conftest.err conftest.i conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831 $as_echo "$ac_header_preproc" >&6; }
1832
1833 # So? What about this header?
1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 yes:no: )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ;;
1841 no:yes:* )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 esac
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 eval "$3=\$ac_header_compiler"
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 fi
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_header_mongrel
1868
1869 # ac_fn_c_try_run LINENO
1870 # ----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872 # that executables *can* be run.
1873 ac_fn_c_try_run ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887 { { case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_try") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; }; }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: program exited with status $ac_status" >&5
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=$ac_status
1904 fi
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_run
17711910
17721911 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
17731912 # -------------------------------------------------------
17761915 ac_fn_c_check_header_compile ()
17771916 {
17781917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 printf %s "checking for $2... " >&6; }
1781 if eval test \${$3+y}
1782 then :
1783 printf %s "(cached) " >&6
1784 else $as_nop
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922 else
17851923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861924 /* end confdefs.h. */
17871925 $4
17881926 #include <$2>
17891927 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"
1791 then :
1928 if ac_fn_c_try_compile "$LINENO"; then :
17921929 eval "$3=yes"
1793 else $as_nop
1930 else
17941931 eval "$3=no"
17951932 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17971934 fi
17981935 eval ac_res=\$$3
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 printf "%s\n" "$ac_res" >&6; }
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
18011938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18021939
18031940 } # ac_fn_c_check_header_compile
18081945 ac_fn_c_try_link ()
18091946 {
18101947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1948 rm -f conftest.$ac_objext conftest$ac_exeext
18121949 if { { ac_try="$ac_link"
18131950 case "(($ac_try" in
18141951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151952 *) ac_try_echo=$ac_try;;
18161953 esac
18171954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 printf "%s\n" "$ac_try_echo"; } >&5
1955 $as_echo "$ac_try_echo"; } >&5
18191956 (eval "$ac_link") 2>conftest.err
18201957 ac_status=$?
18211958 if test -s conftest.err; then
18231960 cat conftest.er1 >&5
18241961 mv -f conftest.er1 conftest.err
18251962 fi
1826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18271964 test $ac_status = 0; } && {
18281965 test -z "$ac_c_werror_flag" ||
18291966 test ! -s conftest.err
18301967 } && test -s conftest$ac_exeext && {
18311968 test "$cross_compiling" = yes ||
18321969 test -x conftest$ac_exeext
1833 }
1834 then :
1970 }; then :
18351971 ac_retval=0
1836 else $as_nop
1837 printf "%s\n" "$as_me: failed program was:" >&5
1972 else
1973 $as_echo "$as_me: failed program was:" >&5
18381974 sed 's/^/| /' conftest.$ac_ext >&5
18391975
18401976 ac_retval=1
18551991 ac_fn_c_check_func ()
18561992 {
18571993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 printf %s "checking for $2... " >&6; }
1860 if eval test \${$3+y}
1861 then :
1862 printf %s "(cached) " >&6
1863 else $as_nop
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998 else
18641999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652000 /* end confdefs.h. */
18662001 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18682003 #define $2 innocuous_$2
18692004
18702005 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below. */
1872
1873 #include <limits.h>
2006 which can conflict with char $2 (); below.
2007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2008 <limits.h> exists even on freestanding compilers. */
2009
2010 #ifdef __STDC__
2011 # include <limits.h>
2012 #else
2013 # include <assert.h>
2014 #endif
2015
18742016 #undef $2
18752017
18762018 /* Override any GCC internal prototype to avoid an error.
18882030 #endif
18892031
18902032 int
1891 main (void)
2033 main ()
18922034 {
18932035 return $2 ();
18942036 ;
18952037 return 0;
18962038 }
18972039 _ACEOF
1898 if ac_fn_c_try_link "$LINENO"
1899 then :
2040 if ac_fn_c_try_link "$LINENO"; then :
19002041 eval "$3=yes"
1901 else $as_nop
2042 else
19022043 eval "$3=no"
19032044 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2045 rm -f core conftest.err conftest.$ac_objext \
19052046 conftest$ac_exeext conftest.$ac_ext
19062047 fi
19072048 eval ac_res=\$$3
1908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 printf "%s\n" "$ac_res" >&6; }
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
19102051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19112052
19122053 } # ac_fn_c_check_func
1913
1914 # ac_fn_c_try_cpp LINENO
1915 # ----------------------
1916 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_c_try_cpp ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 printf "%s\n" "$ac_try_echo"; } >&5
1927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1933 fi
1934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } > conftest.i && {
1936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 }
1939 then :
1940 ac_retval=0
1941 else $as_nop
1942 printf "%s\n" "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=1
1946 fi
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1949
1950 } # ac_fn_c_try_cpp
19512054
19522055 # ac_fn_cxx_try_compile LINENO
19532056 # ----------------------------
19552058 ac_fn_cxx_try_compile ()
19562059 {
19572060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext conftest.beam
2061 rm -f conftest.$ac_objext
19592062 if { { ac_try="$ac_compile"
19602063 case "(($ac_try" in
19612064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622065 *) ac_try_echo=$ac_try;;
19632066 esac
19642067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 printf "%s\n" "$ac_try_echo"; } >&5
2068 $as_echo "$ac_try_echo"; } >&5
19662069 (eval "$ac_compile") 2>conftest.err
19672070 ac_status=$?
19682071 if test -s conftest.err; then
19702073 cat conftest.er1 >&5
19712074 mv -f conftest.er1 conftest.err
19722075 fi
1973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19742077 test $ac_status = 0; } && {
19752078 test -z "$ac_cxx_werror_flag" ||
19762079 test ! -s conftest.err
1977 } && test -s conftest.$ac_objext
1978 then :
2080 } && test -s conftest.$ac_objext; then :
19792081 ac_retval=0
1980 else $as_nop
1981 printf "%s\n" "$as_me: failed program was:" >&5
2082 else
2083 $as_echo "$as_me: failed program was:" >&5
19822084 sed 's/^/| /' conftest.$ac_ext >&5
19832085
19842086 ac_retval=1
20002102 *) ac_try_echo=$ac_try;;
20012103 esac
20022104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 printf "%s\n" "$ac_try_echo"; } >&5
2105 $as_echo "$ac_try_echo"; } >&5
20042106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
20052107 ac_status=$?
20062108 if test -s conftest.err; then
20082110 cat conftest.er1 >&5
20092111 mv -f conftest.er1 conftest.err
20102112 fi
2011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20122114 test $ac_status = 0; } > conftest.i && {
20132115 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20142116 test ! -s conftest.err
2015 }
2016 then :
2117 }; then :
20172118 ac_retval=0
2018 else $as_nop
2019 printf "%s\n" "$as_me: failed program was:" >&5
2119 else
2120 $as_echo "$as_me: failed program was:" >&5
20202121 sed 's/^/| /' conftest.$ac_ext >&5
20212122
20222123 ac_retval=1
20322133 ac_fn_cxx_try_link ()
20332134 {
20342135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2136 rm -f conftest.$ac_objext conftest$ac_exeext
20362137 if { { ac_try="$ac_link"
20372138 case "(($ac_try" in
20382139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392140 *) ac_try_echo=$ac_try;;
20402141 esac
20412142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 printf "%s\n" "$ac_try_echo"; } >&5
2143 $as_echo "$ac_try_echo"; } >&5
20432144 (eval "$ac_link") 2>conftest.err
20442145 ac_status=$?
20452146 if test -s conftest.err; then
20472148 cat conftest.er1 >&5
20482149 mv -f conftest.er1 conftest.err
20492150 fi
2050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20512152 test $ac_status = 0; } && {
20522153 test -z "$ac_cxx_werror_flag" ||
20532154 test ! -s conftest.err
20542155 } && test -s conftest$ac_exeext && {
20552156 test "$cross_compiling" = yes ||
20562157 test -x conftest$ac_exeext
2057 }
2058 then :
2158 }; then :
20592159 ac_retval=0
2060 else $as_nop
2061 printf "%s\n" "$as_me: failed program was:" >&5
2160 else
2161 $as_echo "$as_me: failed program was:" >&5
20622162 sed 's/^/| /' conftest.$ac_ext >&5
20632163
20642164 ac_retval=1
20732173
20742174 } # ac_fn_cxx_try_link
20752175
2076 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2077 # ------------------------------------------------------------------
2176 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2177 # ---------------------------------------------
20782178 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2079 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2080 ac_fn_check_decl ()
2179 # accordingly.
2180 ac_fn_c_check_decl ()
20812181 {
20822182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20832183 as_decl_name=`echo $2|sed 's/ *(.*//'`
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2085 printf %s "checking whether $as_decl_name is declared... " >&6; }
2086 if eval test \${$3+y}
2087 then :
2088 printf %s "(cached) " >&6
2089 else $as_nop
20902184 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2091 eval ac_save_FLAGS=\$$6
2092 as_fn_append $6 " $5"
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2186 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2187 if eval \${$3+:} false; then :
2188 $as_echo_n "(cached) " >&6
2189 else
20932190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942191 /* end confdefs.h. */
20952192 $4
20962193 int
2097 main (void)
2194 main ()
20982195 {
20992196 #ifndef $as_decl_name
21002197 #ifdef __cplusplus
21082205 return 0;
21092206 }
21102207 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"
2112 then :
2208 if ac_fn_c_try_compile "$LINENO"; then :
21132209 eval "$3=yes"
2114 else $as_nop
2210 else
21152211 eval "$3=no"
21162212 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2118 eval $6=\$ac_save_FLAGS
2119
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21202214 fi
21212215 eval ac_res=\$$3
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 printf "%s\n" "$ac_res" >&6; }
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
21242218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21252219
2126 } # ac_fn_check_decl
2127 ac_configure_args_raw=
2128 for ac_arg
2129 do
2130 case $ac_arg in
2131 *\'*)
2132 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 esac
2134 as_fn_append ac_configure_args_raw " '$ac_arg'"
2135 done
2136
2137 case $ac_configure_args_raw in
2138 *$as_nl*)
2139 ac_safe_unquote= ;;
2140 *)
2141 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2142 ac_unsafe_a="$ac_unsafe_z#~"
2143 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2144 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2145 esac
2146
2220 } # ac_fn_c_check_decl
21472221 cat >config.log <<_ACEOF
21482222 This file contains any messages produced by compilers while
21492223 running configure, to aid debugging if configure makes a mistake.
21502224
2151 It was created by libnbd $as_me 1.10.3, which was
2152 generated by GNU Autoconf 2.71. Invocation command line was
2153
2154 $ $0$ac_configure_args_raw
2225 It was created by libnbd $as_me 1.10.4, which was
2226 generated by GNU Autoconf 2.69. Invocation command line was
2227
2228 $ $0 $@
21552229
21562230 _ACEOF
21572231 exec 5>>config.log
21842258 for as_dir in $PATH
21852259 do
21862260 IFS=$as_save_IFS
2187 case $as_dir in #(((
2188 '') as_dir=./ ;;
2189 */) ;;
2190 *) as_dir=$as_dir/ ;;
2191 esac
2192 printf "%s\n" "PATH: $as_dir"
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
21932263 done
21942264 IFS=$as_save_IFS
21952265
22242294 | -silent | --silent | --silen | --sile | --sil)
22252295 continue ;;
22262296 *\'*)
2227 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22282298 esac
22292299 case $ac_pass in
22302300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
22592329 # WARNING: Use '\'' to represent an apostrophe within the trap.
22602330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
22612331 trap 'exit_status=$?
2262 # Sanitize IFS.
2263 IFS=" "" $as_nl"
22642332 # Save into config.log some information that might help in debugging.
22652333 {
22662334 echo
22672335
2268 printf "%s\n" "## ---------------- ##
2336 $as_echo "## ---------------- ##
22692337 ## Cache variables. ##
22702338 ## ---------------- ##"
22712339 echo
22762344 case $ac_val in #(
22772345 *${as_nl}*)
22782346 case $ac_var in #(
2279 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22812349 esac
22822350 case $ac_var in #(
22832351 _ | IFS | as_nl) ;; #(
23012369 )
23022370 echo
23032371
2304 printf "%s\n" "## ----------------- ##
2372 $as_echo "## ----------------- ##
23052373 ## Output variables. ##
23062374 ## ----------------- ##"
23072375 echo
23092377 do
23102378 eval ac_val=\$$ac_var
23112379 case $ac_val in
2312 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23132381 esac
2314 printf "%s\n" "$ac_var='\''$ac_val'\''"
2382 $as_echo "$ac_var='\''$ac_val'\''"
23152383 done | sort
23162384 echo
23172385
23182386 if test -n "$ac_subst_files"; then
2319 printf "%s\n" "## ------------------- ##
2387 $as_echo "## ------------------- ##
23202388 ## File substitutions. ##
23212389 ## ------------------- ##"
23222390 echo
23242392 do
23252393 eval ac_val=\$$ac_var
23262394 case $ac_val in
2327 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23282396 esac
2329 printf "%s\n" "$ac_var='\''$ac_val'\''"
2397 $as_echo "$ac_var='\''$ac_val'\''"
23302398 done | sort
23312399 echo
23322400 fi
23332401
23342402 if test -s confdefs.h; then
2335 printf "%s\n" "## ----------- ##
2403 $as_echo "## ----------- ##
23362404 ## confdefs.h. ##
23372405 ## ----------- ##"
23382406 echo
23402408 echo
23412409 fi
23422410 test "$ac_signal" != 0 &&
2343 printf "%s\n" "$as_me: caught signal $ac_signal"
2344 printf "%s\n" "$as_me: exit $exit_status"
2411 $as_echo "$as_me: caught signal $ac_signal"
2412 $as_echo "$as_me: exit $exit_status"
23452413 } >&5
23462414 rm -f core *.core core.conftest.* &&
23472415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
23552423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
23562424 rm -f -r conftest* confdefs.h
23572425
2358 printf "%s\n" "/* confdefs.h */" > confdefs.h
2426 $as_echo "/* confdefs.h */" > confdefs.h
23592427
23602428 # Predefined preprocessor variables.
23612429
2362 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2363
2364 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2365
2366 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2367
2368 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2369
2370 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2371
2372 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_NAME "$PACKAGE_NAME"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_STRING "$PACKAGE_STRING"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_URL "$PACKAGE_URL"
2452 _ACEOF
23732453
23742454
23752455 # Let the site file select an alternate cache file if it wants to.
23762456 # Prefer an explicitly selected file to automatically selected ones.
2457 ac_site_file1=NONE
2458 ac_site_file2=NONE
23772459 if test -n "$CONFIG_SITE"; then
2378 ac_site_files="$CONFIG_SITE"
2460 # We do not want a PATH search for config.site.
2461 case $CONFIG_SITE in #((
2462 -*) ac_site_file1=./$CONFIG_SITE;;
2463 */*) ac_site_file1=$CONFIG_SITE;;
2464 *) ac_site_file1=./$CONFIG_SITE;;
2465 esac
23792466 elif test "x$prefix" != xNONE; then
2380 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2381 else
2382 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2383 fi
2384
2385 for ac_site_file in $ac_site_files
2467 ac_site_file1=$prefix/share/config.site
2468 ac_site_file2=$prefix/etc/config.site
2469 else
2470 ac_site_file1=$ac_default_prefix/share/config.site
2471 ac_site_file2=$ac_default_prefix/etc/config.site
2472 fi
2473 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
23862474 do
2387 case $ac_site_file in #(
2388 */*) :
2389 ;; #(
2390 *) :
2391 ac_site_file=./$ac_site_file ;;
2392 esac
2393 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2395 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2475 test "x$ac_site_file" = xNONE && continue
2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
23962479 sed 's/^/| /' "$ac_site_file" >&5
23972480 . "$ac_site_file" \
2398 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24002483 as_fn_error $? "failed to load site script $ac_site_file
24012484 See \`config.log' for more details" "$LINENO" 5; }
24022485 fi
24062489 # Some versions of bash will fail to source /dev/null (special files
24072490 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
24082491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 $as_echo "$as_me: loading cache $cache_file" >&6;}
24112494 case $cache_file in
24122495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
24132496 *) . "./$cache_file";;
24142497 esac
24152498 fi
24162499 else
2417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 $as_echo "$as_me: creating cache $cache_file" >&6;}
24192502 >$cache_file
2420 fi
2421
2422 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2423 # Test code for whether the C compiler supports C89 (global declarations)
2424 ac_c_conftest_c89_globals='
2425 /* Does the compiler advertise C89 conformance?
2426 Do not test the value of __STDC__, because some compilers set it to 0
2427 while being otherwise adequately conformant. */
2428 #if !defined __STDC__
2429 # error "Compiler does not advertise C89 conformance"
2430 #endif
2431
2432 #include <stddef.h>
2433 #include <stdarg.h>
2434 struct stat;
2435 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2436 struct buf { int x; };
2437 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2438 static char *e (p, i)
2439 char **p;
2440 int i;
2441 {
2442 return p[i];
2443 }
2444 static char *f (char * (*g) (char **, int), char **p, ...)
2445 {
2446 char *s;
2447 va_list v;
2448 va_start (v,p);
2449 s = g (p, va_arg (v,int));
2450 va_end (v);
2451 return s;
2452 }
2453
2454 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2455 function prototypes and stuff, but not \xHH hex character constants.
2456 These do not provoke an error unfortunately, instead are silently treated
2457 as an "x". The following induces an error, until -std is added to get
2458 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2459 array size at least. It is necessary to write \x00 == 0 to get something
2460 that is true only with -std. */
2461 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2462
2463 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2464 inside strings and character constants. */
2465 #define FOO(x) '\''x'\''
2466 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2467
2468 int test (int i, double x);
2469 struct s1 {int (*f) (int a);};
2470 struct s2 {int (*f) (double a);};
2471 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2472 int, int);'
2473
2474 # Test code for whether the C compiler supports C89 (body of main).
2475 ac_c_conftest_c89_main='
2476 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2477 '
2478
2479 # Test code for whether the C compiler supports C99 (global declarations)
2480 ac_c_conftest_c99_globals='
2481 // Does the compiler advertise C99 conformance?
2482 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2483 # error "Compiler does not advertise C99 conformance"
2484 #endif
2485
2486 #include <stdbool.h>
2487 extern int puts (const char *);
2488 extern int printf (const char *, ...);
2489 extern int dprintf (int, const char *, ...);
2490 extern void *malloc (size_t);
2491
2492 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2493 // dprintf is used instead of fprintf to avoid needing to declare
2494 // FILE and stderr.
2495 #define debug(...) dprintf (2, __VA_ARGS__)
2496 #define showlist(...) puts (#__VA_ARGS__)
2497 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2498 static void
2499 test_varargs_macros (void)
2500 {
2501 int x = 1234;
2502 int y = 5678;
2503 debug ("Flag");
2504 debug ("X = %d\n", x);
2505 showlist (The first, second, and third items.);
2506 report (x>y, "x is %d but y is %d", x, y);
2507 }
2508
2509 // Check long long types.
2510 #define BIG64 18446744073709551615ull
2511 #define BIG32 4294967295ul
2512 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2513 #if !BIG_OK
2514 #error "your preprocessor is broken"
2515 #endif
2516 #if BIG_OK
2517 #else
2518 #error "your preprocessor is broken"
2519 #endif
2520 static long long int bignum = -9223372036854775807LL;
2521 static unsigned long long int ubignum = BIG64;
2522
2523 struct incomplete_array
2524 {
2525 int datasize;
2526 double data[];
2527 };
2528
2529 struct named_init {
2530 int number;
2531 const wchar_t *name;
2532 double average;
2533 };
2534
2535 typedef const char *ccp;
2536
2537 static inline int
2538 test_restrict (ccp restrict text)
2539 {
2540 // See if C++-style comments work.
2541 // Iterate through items via the restricted pointer.
2542 // Also check for declarations in for loops.
2543 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2544 continue;
2545 return 0;
2546 }
2547
2548 // Check varargs and va_copy.
2549 static bool
2550 test_varargs (const char *format, ...)
2551 {
2552 va_list args;
2553 va_start (args, format);
2554 va_list args_copy;
2555 va_copy (args_copy, args);
2556
2557 const char *str = "";
2558 int number = 0;
2559 float fnumber = 0;
2560
2561 while (*format)
2562 {
2563 switch (*format++)
2564 {
2565 case '\''s'\'': // string
2566 str = va_arg (args_copy, const char *);
2567 break;
2568 case '\''d'\'': // int
2569 number = va_arg (args_copy, int);
2570 break;
2571 case '\''f'\'': // float
2572 fnumber = va_arg (args_copy, double);
2573 break;
2574 default:
2575 break;
2576 }
2577 }
2578 va_end (args_copy);
2579 va_end (args);
2580
2581 return *str && number && fnumber;
2582 }
2583 '
2584
2585 # Test code for whether the C compiler supports C99 (body of main).
2586 ac_c_conftest_c99_main='
2587 // Check bool.
2588 _Bool success = false;
2589 success |= (argc != 0);
2590
2591 // Check restrict.
2592 if (test_restrict ("String literal") == 0)
2593 success = true;
2594 char *restrict newvar = "Another string";
2595
2596 // Check varargs.
2597 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2598 test_varargs_macros ();
2599
2600 // Check flexible array members.
2601 struct incomplete_array *ia =
2602 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2603 ia->datasize = 10;
2604 for (int i = 0; i < ia->datasize; ++i)
2605 ia->data[i] = i * 1.234;
2606
2607 // Check named initializers.
2608 struct named_init ni = {
2609 .number = 34,
2610 .name = L"Test wide string",
2611 .average = 543.34343,
2612 };
2613
2614 ni.number = 58;
2615
2616 int dynamic_array[ni.number];
2617 dynamic_array[0] = argv[0][0];
2618 dynamic_array[ni.number - 1] = 543;
2619
2620 // work around unused variable warnings
2621 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2622 || dynamic_array[ni.number - 1] != 543);
2623 '
2624
2625 # Test code for whether the C compiler supports C11 (global declarations)
2626 ac_c_conftest_c11_globals='
2627 // Does the compiler advertise C11 conformance?
2628 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2629 # error "Compiler does not advertise C11 conformance"
2630 #endif
2631
2632 // Check _Alignas.
2633 char _Alignas (double) aligned_as_double;
2634 char _Alignas (0) no_special_alignment;
2635 extern char aligned_as_int;
2636 char _Alignas (0) _Alignas (int) aligned_as_int;
2637
2638 // Check _Alignof.
2639 enum
2640 {
2641 int_alignment = _Alignof (int),
2642 int_array_alignment = _Alignof (int[100]),
2643 char_alignment = _Alignof (char)
2644 };
2645 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2646
2647 // Check _Noreturn.
2648 int _Noreturn does_not_return (void) { for (;;) continue; }
2649
2650 // Check _Static_assert.
2651 struct test_static_assert
2652 {
2653 int x;
2654 _Static_assert (sizeof (int) <= sizeof (long int),
2655 "_Static_assert does not work in struct");
2656 long int y;
2657 };
2658
2659 // Check UTF-8 literals.
2660 #define u8 syntax error!
2661 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2662
2663 // Check duplicate typedefs.
2664 typedef long *long_ptr;
2665 typedef long int *long_ptr;
2666 typedef long_ptr long_ptr;
2667
2668 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2669 struct anonymous
2670 {
2671 union {
2672 struct { int i; int j; };
2673 struct { int k; long int l; } w;
2674 };
2675 int m;
2676 } v1;
2677 '
2678
2679 # Test code for whether the C compiler supports C11 (body of main).
2680 ac_c_conftest_c11_main='
2681 _Static_assert ((offsetof (struct anonymous, i)
2682 == offsetof (struct anonymous, w.k)),
2683 "Anonymous union alignment botch");
2684 v1.i = 2;
2685 v1.w.k = 5;
2686 ok |= v1.i != 5;
2687 '
2688
2689 # Test code for whether the C compiler supports C11 (complete).
2690 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2691 ${ac_c_conftest_c99_globals}
2692 ${ac_c_conftest_c11_globals}
2693
2694 int
2695 main (int argc, char **argv)
2696 {
2697 int ok = 0;
2698 ${ac_c_conftest_c89_main}
2699 ${ac_c_conftest_c99_main}
2700 ${ac_c_conftest_c11_main}
2701 return ok;
2702 }
2703 "
2704
2705 # Test code for whether the C compiler supports C99 (complete).
2706 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2707 ${ac_c_conftest_c99_globals}
2708
2709 int
2710 main (int argc, char **argv)
2711 {
2712 int ok = 0;
2713 ${ac_c_conftest_c89_main}
2714 ${ac_c_conftest_c99_main}
2715 return ok;
2716 }
2717 "
2718
2719 # Test code for whether the C compiler supports C89 (complete).
2720 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2721
2722 int
2723 main (int argc, char **argv)
2724 {
2725 int ok = 0;
2726 ${ac_c_conftest_c89_main}
2727 return ok;
2728 }
2729 "
2730
2731 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2732 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2733 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2734 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2735 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2736 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2737 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2738 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2739 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2740 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2741 # Test code for whether the C++ compiler supports C++98 (global declarations)
2742 ac_cxx_conftest_cxx98_globals='
2743 // Does the compiler advertise C++98 conformance?
2744 #if !defined __cplusplus || __cplusplus < 199711L
2745 # error "Compiler does not advertise C++98 conformance"
2746 #endif
2747
2748 // These inclusions are to reject old compilers that
2749 // lack the unsuffixed header files.
2750 #include <cstdlib>
2751 #include <exception>
2752
2753 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2754 extern void assert (int);
2755 namespace std {
2756 extern int strcmp (const char *, const char *);
2757 }
2758
2759 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2760 using std::exception;
2761 using std::strcmp;
2762
2763 namespace {
2764
2765 void test_exception_syntax()
2766 {
2767 try {
2768 throw "test";
2769 } catch (const char *s) {
2770 // Extra parentheses suppress a warning when building autoconf itself,
2771 // due to lint rules shared with more typical C programs.
2772 assert (!(strcmp) (s, "test"));
2773 }
2774 }
2775
2776 template <typename T> struct test_template
2777 {
2778 T const val;
2779 explicit test_template(T t) : val(t) {}
2780 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2781 };
2782
2783 } // anonymous namespace
2784 '
2785
2786 # Test code for whether the C++ compiler supports C++98 (body of main)
2787 ac_cxx_conftest_cxx98_main='
2788 assert (argc);
2789 assert (! argv[0]);
2790 {
2791 test_exception_syntax ();
2792 test_template<double> tt (2.0);
2793 assert (tt.add (4) == 6.0);
2794 assert (true && !false);
2795 }
2796 '
2797
2798 # Test code for whether the C++ compiler supports C++11 (global declarations)
2799 ac_cxx_conftest_cxx11_globals='
2800 // Does the compiler advertise C++ 2011 conformance?
2801 #if !defined __cplusplus || __cplusplus < 201103L
2802 # error "Compiler does not advertise C++11 conformance"
2803 #endif
2804
2805 namespace cxx11test
2806 {
2807 constexpr int get_val() { return 20; }
2808
2809 struct testinit
2810 {
2811 int i;
2812 double d;
2813 };
2814
2815 class delegate
2816 {
2817 public:
2818 delegate(int n) : n(n) {}
2819 delegate(): delegate(2354) {}
2820
2821 virtual int getval() { return this->n; };
2822 protected:
2823 int n;
2824 };
2825
2826 class overridden : public delegate
2827 {
2828 public:
2829 overridden(int n): delegate(n) {}
2830 virtual int getval() override final { return this->n * 2; }
2831 };
2832
2833 class nocopy
2834 {
2835 public:
2836 nocopy(int i): i(i) {}
2837 nocopy() = default;
2838 nocopy(const nocopy&) = delete;
2839 nocopy & operator=(const nocopy&) = delete;
2840 private:
2841 int i;
2842 };
2843
2844 // for testing lambda expressions
2845 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2846 {
2847 return f(v);
2848 }
2849
2850 // for testing variadic templates and trailing return types
2851 template <typename V> auto sum(V first) -> V
2852 {
2853 return first;
2854 }
2855 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2856 {
2857 return first + sum(rest...);
2858 }
2859 }
2860 '
2861
2862 # Test code for whether the C++ compiler supports C++11 (body of main)
2863 ac_cxx_conftest_cxx11_main='
2864 {
2865 // Test auto and decltype
2866 auto a1 = 6538;
2867 auto a2 = 48573953.4;
2868 auto a3 = "String literal";
2869
2870 int total = 0;
2871 for (auto i = a3; *i; ++i) { total += *i; }
2872
2873 decltype(a2) a4 = 34895.034;
2874 }
2875 {
2876 // Test constexpr
2877 short sa[cxx11test::get_val()] = { 0 };
2878 }
2879 {
2880 // Test initializer lists
2881 cxx11test::testinit il = { 4323, 435234.23544 };
2882 }
2883 {
2884 // Test range-based for
2885 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2886 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2887 for (auto &x : array) { x += 23; }
2888 }
2889 {
2890 // Test lambda expressions
2891 using cxx11test::eval;
2892 assert (eval ([](int x) { return x*2; }, 21) == 42);
2893 double d = 2.0;
2894 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2895 assert (d == 5.0);
2896 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2897 assert (d == 5.0);
2898 }
2899 {
2900 // Test use of variadic templates
2901 using cxx11test::sum;
2902 auto a = sum(1);
2903 auto b = sum(1, 2);
2904 auto c = sum(1.0, 2.0, 3.0);
2905 }
2906 {
2907 // Test constructor delegation
2908 cxx11test::delegate d1;
2909 cxx11test::delegate d2();
2910 cxx11test::delegate d3(45);
2911 }
2912 {
2913 // Test override and final
2914 cxx11test::overridden o1(55464);
2915 }
2916 {
2917 // Test nullptr
2918 char *c = nullptr;
2919 }
2920 {
2921 // Test template brackets
2922 test_template<::test_template<int>> v(test_template<int>(12));
2923 }
2924 {
2925 // Unicode literals
2926 char const *utf8 = u8"UTF-8 string \u2500";
2927 char16_t const *utf16 = u"UTF-8 string \u2500";
2928 char32_t const *utf32 = U"UTF-32 string \u2500";
2929 }
2930 '
2931
2932 # Test code for whether the C compiler supports C++11 (complete).
2933 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2934 ${ac_cxx_conftest_cxx11_globals}
2935
2936 int
2937 main (int argc, char **argv)
2938 {
2939 int ok = 0;
2940 ${ac_cxx_conftest_cxx98_main}
2941 ${ac_cxx_conftest_cxx11_main}
2942 return ok;
2943 }
2944 "
2945
2946 # Test code for whether the C compiler supports C++98 (complete).
2947 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2948 int
2949 main (int argc, char **argv)
2950 {
2951 int ok = 0;
2952 ${ac_cxx_conftest_cxx98_main}
2953 return ok;
2954 }
2955 "
2956
2957
2958 # Auxiliary files required by this configure script.
2959 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2960
2961 # Locations in which to look for auxiliary files.
2962 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2963
2964 # Search for a directory containing all of the required auxiliary files,
2965 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2966 # If we don't find one directory that contains all the files we need,
2967 # we report the set of missing files from the *first* directory in
2968 # $ac_aux_dir_candidates and give up.
2969 ac_missing_aux_files=""
2970 ac_first_candidate=:
2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 as_found=false
2974 for as_dir in $ac_aux_dir_candidates
2975 do
2976 IFS=$as_save_IFS
2977 case $as_dir in #(((
2978 '') as_dir=./ ;;
2979 */) ;;
2980 *) as_dir=$as_dir/ ;;
2981 esac
2982 as_found=:
2983
2984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2985 ac_aux_dir_found=yes
2986 ac_install_sh=
2987 for ac_aux in $ac_aux_files
2988 do
2989 # As a special case, if "install-sh" is required, that requirement
2990 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2991 # and $ac_install_sh is set appropriately for whichever one is found.
2992 if test x"$ac_aux" = x"install-sh"
2993 then
2994 if test -f "${as_dir}install-sh"; then
2995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2996 ac_install_sh="${as_dir}install-sh -c"
2997 elif test -f "${as_dir}install.sh"; then
2998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2999 ac_install_sh="${as_dir}install.sh -c"
3000 elif test -f "${as_dir}shtool"; then
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3002 ac_install_sh="${as_dir}shtool install -c"
3003 else
3004 ac_aux_dir_found=no
3005 if $ac_first_candidate; then
3006 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3007 else
3008 break
3009 fi
3010 fi
3011 else
3012 if test -f "${as_dir}${ac_aux}"; then
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3014 else
3015 ac_aux_dir_found=no
3016 if $ac_first_candidate; then
3017 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3018 else
3019 break
3020 fi
3021 fi
3022 fi
3023 done
3024 if test "$ac_aux_dir_found" = yes; then
3025 ac_aux_dir="$as_dir"
3026 break
3027 fi
3028 ac_first_candidate=false
3029
3030 as_found=false
3031 done
3032 IFS=$as_save_IFS
3033 if $as_found
3034 then :
3035
3036 else $as_nop
3037 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3038 fi
3039
3040
3041 # These three variables are undocumented and unsupported,
3042 # and are intended to be withdrawn in a future Autoconf release.
3043 # They can cause serious problems if a builder's source tree is in a directory
3044 # whose full name contains unusual characters.
3045 if test -f "${ac_aux_dir}config.guess"; then
3046 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3047 fi
3048 if test -f "${ac_aux_dir}config.sub"; then
3049 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3050 fi
3051 if test -f "$ac_aux_dir/configure"; then
3052 ac_configure="$SHELL ${ac_aux_dir}configure"
30532503 fi
30542504
30552505 # Check that the precious variables saved in the cache have kept the same
30622512 eval ac_new_val=\$ac_env_${ac_var}_value
30632513 case $ac_old_set,$ac_new_set in
30642514 set,)
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3066 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
30672517 ac_cache_corrupted=: ;;
30682518 ,set)
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3070 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
30712521 ac_cache_corrupted=: ;;
30722522 ,);;
30732523 *)
30762526 ac_old_val_w=`echo x $ac_old_val`
30772527 ac_new_val_w=`echo x $ac_new_val`
30782528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3080 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
30812531 ac_cache_corrupted=:
30822532 else
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3084 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
30852535 eval $ac_var=\$ac_old_val
30862536 fi
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3088 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3090 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
30912541 fi;;
30922542 esac
30932543 # Pass precious variables to config.status.
30942544 if test "$ac_new_set" = set; then
30952545 case $ac_new_val in
3096 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
30972547 *) ac_arg=$ac_var=$ac_new_val ;;
30982548 esac
30992549 case " $ac_configure_args " in
31032553 fi
31042554 done
31052555 if $ac_cache_corrupted; then
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3109 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3110 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3111 and start over" "$LINENO" 5
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
31122561 fi
31132562 ## -------------------- ##
31142563 ## Main body of script. ##
31242573
31252574
31262575
3127
3128
3129
3130
3131
3132
3133
3134
3135
2576 ac_aux_dir=
2577 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2578 if test -f "$ac_dir/install-sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install-sh -c"
2581 break
2582 elif test -f "$ac_dir/install.sh"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/install.sh -c"
2585 break
2586 elif test -f "$ac_dir/shtool"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/shtool install -c"
2589 break
2590 fi
2591 done
2592 if test -z "$ac_aux_dir"; then
2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2594 fi
2595
2596 # These three variables are undocumented and unsupported,
2597 # and are intended to be withdrawn in a future Autoconf release.
2598 # They can cause serious problems if a builder's source tree is in a directory
2599 # whose full name contains unusual characters.
2600 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2601 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2602 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
31362603
31372604
31382605 # Expand $ac_aux_dir to an absolute path.
31462613 if test -n "$ac_tool_prefix"; then
31472614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
31482615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 printf %s "checking for $ac_word... " >&6; }
3151 if test ${ac_cv_prog_CC+y}
3152 then :
3153 printf %s "(cached) " >&6
3154 else $as_nop
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_CC+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
31552621 if test -n "$CC"; then
31562622 ac_cv_prog_CC="$CC" # Let the user override the test.
31572623 else
31592625 for as_dir in $PATH
31602626 do
31612627 IFS=$as_save_IFS
3162 case $as_dir in #(((
3163 '') as_dir=./ ;;
3164 */) ;;
3165 *) as_dir=$as_dir/ ;;
3166 esac
2628 test -z "$as_dir" && as_dir=.
31672629 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31692631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31712633 break 2
31722634 fi
31732635 done
31782640 fi
31792641 CC=$ac_cv_prog_CC
31802642 if test -n "$CC"; then
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 printf "%s\n" "$CC" >&6; }
3183 else
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 printf "%s\n" "no" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
31862648 fi
31872649
31882650
31912653 ac_ct_CC=$CC
31922654 # Extract the first word of "gcc", so it can be a program name with args.
31932655 set dummy gcc; ac_word=$2
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 printf %s "checking for $ac_word... " >&6; }
3196 if test ${ac_cv_prog_ac_ct_CC+y}
3197 then :
3198 printf %s "(cached) " >&6
3199 else $as_nop
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660 else
32002661 if test -n "$ac_ct_CC"; then
32012662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32022663 else
32042665 for as_dir in $PATH
32052666 do
32062667 IFS=$as_save_IFS
3207 case $as_dir in #(((
3208 '') as_dir=./ ;;
3209 */) ;;
3210 *) as_dir=$as_dir/ ;;
3211 esac
2668 test -z "$as_dir" && as_dir=.
32122669 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32142671 ac_cv_prog_ac_ct_CC="gcc"
3215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32162673 break 2
32172674 fi
32182675 done
32232680 fi
32242681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
32252682 if test -n "$ac_ct_CC"; then
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227 printf "%s\n" "$ac_ct_CC" >&6; }
3228 else
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 printf "%s\n" "no" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2684 $as_echo "$ac_ct_CC" >&6; }
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
32312688 fi
32322689
32332690 if test "x$ac_ct_CC" = x; then
32352692 else
32362693 case $cross_compiling:$ac_tool_warned in
32372694 yes:)
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32402697 ac_tool_warned=yes ;;
32412698 esac
32422699 CC=$ac_ct_CC
32492706 if test -n "$ac_tool_prefix"; then
32502707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
32512708 set dummy ${ac_tool_prefix}cc; ac_word=$2
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 printf %s "checking for $ac_word... " >&6; }
3254 if test ${ac_cv_prog_CC+y}
3255 then :
3256 printf %s "(cached) " >&6
3257 else $as_nop
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_CC+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713 else
32582714 if test -n "$CC"; then
32592715 ac_cv_prog_CC="$CC" # Let the user override the test.
32602716 else
32622718 for as_dir in $PATH
32632719 do
32642720 IFS=$as_save_IFS
3265 case $as_dir in #(((
3266 '') as_dir=./ ;;
3267 */) ;;
3268 *) as_dir=$as_dir/ ;;
3269 esac
2721 test -z "$as_dir" && as_dir=.
32702722 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32722724 ac_cv_prog_CC="${ac_tool_prefix}cc"
3273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32742726 break 2
32752727 fi
32762728 done
32812733 fi
32822734 CC=$ac_cv_prog_CC
32832735 if test -n "$CC"; then
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3285 printf "%s\n" "$CC" >&6; }
3286 else
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 printf "%s\n" "no" >&6; }
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
32892741 fi
32902742
32912743
32942746 if test -z "$CC"; then
32952747 # Extract the first word of "cc", so it can be a program name with args.
32962748 set dummy cc; ac_word=$2
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 printf %s "checking for $ac_word... " >&6; }
3299 if test ${ac_cv_prog_CC+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else $as_nop
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if ${ac_cv_prog_CC+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
33032754 if test -n "$CC"; then
33042755 ac_cv_prog_CC="$CC" # Let the user override the test.
33052756 else
33082759 for as_dir in $PATH
33092760 do
33102761 IFS=$as_save_IFS
3311 case $as_dir in #(((
3312 '') as_dir=./ ;;
3313 */) ;;
3314 *) as_dir=$as_dir/ ;;
3315 esac
2762 test -z "$as_dir" && as_dir=.
33162763 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3318 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
33192766 ac_prog_rejected=yes
33202767 continue
33212768 fi
33222769 ac_cv_prog_CC="cc"
3323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33242771 break 2
33252772 fi
33262773 done
33362783 # However, it has the same basename, so the bogon will be chosen
33372784 # first if we set CC to just the basename; use the full file name.
33382785 shift
3339 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
33402787 fi
33412788 fi
33422789 fi
33432790 fi
33442791 CC=$ac_cv_prog_CC
33452792 if test -n "$CC"; then
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 printf "%s\n" "$CC" >&6; }
3348 else
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 printf "%s\n" "no" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
33512798 fi
33522799
33532800
33582805 do
33592806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33602807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 printf %s "checking for $ac_word... " >&6; }
3363 if test ${ac_cv_prog_CC+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else $as_nop
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
33672813 if test -n "$CC"; then
33682814 ac_cv_prog_CC="$CC" # Let the user override the test.
33692815 else
33712817 for as_dir in $PATH
33722818 do
33732819 IFS=$as_save_IFS
3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
2820 test -z "$as_dir" && as_dir=.
33792821 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33812823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33832825 break 2
33842826 fi
33852827 done
33902832 fi
33912833 CC=$ac_cv_prog_CC
33922834 if test -n "$CC"; then
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 printf "%s\n" "$CC" >&6; }
3395 else
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 printf "%s\n" "no" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
33982840 fi
33992841
34002842
34072849 do
34082850 # Extract the first word of "$ac_prog", so it can be a program name with args.
34092851 set dummy $ac_prog; ac_word=$2
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 printf %s "checking for $ac_word... " >&6; }
3412 if test ${ac_cv_prog_ac_ct_CC+y}
3413 then :
3414 printf %s "(cached) " >&6
3415 else $as_nop
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
34162857 if test -n "$ac_ct_CC"; then
34172858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
34182859 else
34202861 for as_dir in $PATH
34212862 do
34222863 IFS=$as_save_IFS
3423 case $as_dir in #(((
3424 '') as_dir=./ ;;
3425 */) ;;
3426 *) as_dir=$as_dir/ ;;
3427 esac
2864 test -z "$as_dir" && as_dir=.
34282865 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34302867 ac_cv_prog_ac_ct_CC="$ac_prog"
3431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34322869 break 2
34332870 fi
34342871 done
34392876 fi
34402877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
34412878 if test -n "$ac_ct_CC"; then
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3443 printf "%s\n" "$ac_ct_CC" >&6; }
3444 else
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 printf "%s\n" "no" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
34472884 fi
34482885
34492886
34552892 else
34562893 case $cross_compiling:$ac_tool_warned in
34572894 yes:)
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
34602897 ac_tool_warned=yes ;;
34612898 esac
34622899 CC=$ac_ct_CC
34642901 fi
34652902
34662903 fi
3467 if test -z "$CC"; then
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}clang; ac_word=$2
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 printf %s "checking for $ac_word... " >&6; }
3473 if test ${ac_cv_prog_CC+y}
3474 then :
3475 printf %s "(cached) " >&6
3476 else $as_nop
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 case $as_dir in #(((
3485 '') as_dir=./ ;;
3486 */) ;;
3487 *) as_dir=$as_dir/ ;;
3488 esac
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="${ac_tool_prefix}clang"
3492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495 done
3496 done
3497 IFS=$as_save_IFS
3498
3499 fi
3500 fi
3501 CC=$ac_cv_prog_CC
3502 if test -n "$CC"; then
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 printf "%s\n" "$CC" >&6; }
3505 else
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 printf "%s\n" "no" >&6; }
3508 fi
3509
3510
3511 fi
3512 if test -z "$ac_cv_prog_CC"; then
3513 ac_ct_CC=$CC
3514 # Extract the first word of "clang", so it can be a program name with args.
3515 set dummy clang; ac_word=$2
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 printf %s "checking for $ac_word... " >&6; }
3518 if test ${ac_cv_prog_ac_ct_CC+y}
3519 then :
3520 printf %s "(cached) " >&6
3521 else $as_nop
3522 if test -n "$ac_ct_CC"; then
3523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 case $as_dir in #(((
3530 '') as_dir=./ ;;
3531 */) ;;
3532 *) as_dir=$as_dir/ ;;
3533 esac
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_ac_ct_CC="clang"
3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3547 if test -n "$ac_ct_CC"; then
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3549 printf "%s\n" "$ac_ct_CC" >&6; }
3550 else
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 printf "%s\n" "no" >&6; }
3553 fi
3554
3555 if test "x$ac_ct_CC" = x; then
3556 CC=""
3557 else
3558 case $cross_compiling:$ac_tool_warned in
3559 yes:)
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3563 esac
3564 CC=$ac_ct_CC
3565 fi
3566 else
3567 CC="$ac_cv_prog_CC"
3568 fi
3569
3570 fi
3571
3572
3573 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2904
2905
2906 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35752908 as_fn_error $? "no acceptable C compiler found in \$PATH
35762909 See \`config.log' for more details" "$LINENO" 5; }
35772910
35782911 # Provide some information about the compiler.
3579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
35802913 set X $ac_compile
35812914 ac_compiler=$2
3582 for ac_option in --version -v -V -qversion -version; do
2915 for ac_option in --version -v -V -qversion; do
35832916 { { ac_try="$ac_compiler $ac_option >&5"
35842917 case "(($ac_try" in
35852918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35862919 *) ac_try_echo=$ac_try;;
35872920 esac
35882921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 printf "%s\n" "$ac_try_echo"; } >&5
2922 $as_echo "$ac_try_echo"; } >&5
35902923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
35912924 ac_status=$?
35922925 if test -s conftest.err; then
35962929 cat conftest.er1 >&5
35972930 fi
35982931 rm -f conftest.er1 conftest.err
3599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36002933 test $ac_status = 0; }
36012934 done
36022935
36042937 /* end confdefs.h. */
36052938
36062939 int
3607 main (void)
2940 main ()
36082941 {
36092942
36102943 ;
36162949 # Try to create an executable without -o first, disregard a.out.
36172950 # It will help us diagnose broken compilers, and finding out an intuition
36182951 # of exeext.
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3620 printf %s "checking whether the C compiler works... " >&6; }
3621 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2953 $as_echo_n "checking whether the C compiler works... " >&6; }
2954 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
36222955
36232956 # The possible output files:
36242957 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
36392972 *) ac_try_echo=$ac_try;;
36402973 esac
36412974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 printf "%s\n" "$ac_try_echo"; } >&5
2975 $as_echo "$ac_try_echo"; } >&5
36432976 (eval "$ac_link_default") 2>&5
36442977 ac_status=$?
3645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 then :
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }; then :
36482980 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
36492981 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
36502982 # in a Makefile. We should not override ac_cv_exeext if it was cached,
36612993 # certainly right.
36622994 break;;
36632995 *.* )
3664 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2996 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
36652997 then :; else
36662998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
36672999 fi
36773009 done
36783010 test "$ac_cv_exeext" = no && ac_cv_exeext=
36793011
3680 else $as_nop
3012 else
36813013 ac_file=''
36823014 fi
3683 if test -z "$ac_file"
3684 then :
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 printf "%s\n" "no" >&6; }
3687 printf "%s\n" "$as_me: failed program was:" >&5
3015 if test -z "$ac_file"; then :
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 $as_echo "$as_me: failed program was:" >&5
36883019 sed 's/^/| /' conftest.$ac_ext >&5
36893020
3690 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36923023 as_fn_error 77 "C compiler cannot create executables
36933024 See \`config.log' for more details" "$LINENO" 5; }
3694 else $as_nop
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3696 printf "%s\n" "yes" >&6; }
3697 fi
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3699 printf %s "checking for C compiler default output file name... " >&6; }
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3701 printf "%s\n" "$ac_file" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3027 $as_echo "yes" >&6; }
3028 fi
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3030 $as_echo_n "checking for C compiler default output file name... " >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3032 $as_echo "$ac_file" >&6; }
37023033 ac_exeext=$ac_cv_exeext
37033034
37043035 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
37053036 ac_clean_files=$ac_clean_files_save
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3707 printf %s "checking for suffix of executables... " >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3038 $as_echo_n "checking for suffix of executables... " >&6; }
37083039 if { { ac_try="$ac_link"
37093040 case "(($ac_try" in
37103041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37113042 *) ac_try_echo=$ac_try;;
37123043 esac
37133044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 printf "%s\n" "$ac_try_echo"; } >&5
3045 $as_echo "$ac_try_echo"; } >&5
37153046 (eval "$ac_link") 2>&5
37163047 ac_status=$?
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }
3719 then :
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; then :
37203050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
37213051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
37223052 # work properly (i.e., refer to `conftest.exe'), while it won't with
37303060 * ) break;;
37313061 esac
37323062 done
3733 else $as_nop
3734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3063 else
3064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37363066 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
37373067 See \`config.log' for more details" "$LINENO" 5; }
37383068 fi
37393069 rm -f conftest conftest$ac_cv_exeext
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3741 printf "%s\n" "$ac_cv_exeext" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3071 $as_echo "$ac_cv_exeext" >&6; }
37423072
37433073 rm -f conftest.$ac_ext
37443074 EXEEXT=$ac_cv_exeext
37473077 /* end confdefs.h. */
37483078 #include <stdio.h>
37493079 int
3750 main (void)
3080 main ()
37513081 {
37523082 FILE *f = fopen ("conftest.out", "w");
37533083 return ferror (f) || fclose (f) != 0;
37593089 ac_clean_files="$ac_clean_files conftest.out"
37603090 # Check that the compiler produces executables we can run. If not, either
37613091 # the compiler is broken, or we cross compile.
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3763 printf %s "checking whether we are cross compiling... " >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3093 $as_echo_n "checking whether we are cross compiling... " >&6; }
37643094 if test "$cross_compiling" != yes; then
37653095 { { ac_try="$ac_link"
37663096 case "(($ac_try" in
37683098 *) ac_try_echo=$ac_try;;
37693099 esac
37703100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 printf "%s\n" "$ac_try_echo"; } >&5
3101 $as_echo "$ac_try_echo"; } >&5
37723102 (eval "$ac_link") 2>&5
37733103 ac_status=$?
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37753105 test $ac_status = 0; }
37763106 if { ac_try='./conftest$ac_cv_exeext'
37773107 { { case "(($ac_try" in
37793109 *) ac_try_echo=$ac_try;;
37803110 esac
37813111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 printf "%s\n" "$ac_try_echo"; } >&5
3112 $as_echo "$ac_try_echo"; } >&5
37833113 (eval "$ac_try") 2>&5
37843114 ac_status=$?
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37863116 test $ac_status = 0; }; }; then
37873117 cross_compiling=no
37883118 else
37893119 if test "$cross_compiling" = maybe; then
37903120 cross_compiling=yes
37913121 else
3792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3794 as_fn_error 77 "cannot run C compiled programs.
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot run C compiled programs.
37953125 If you meant to cross compile, use \`--host'.
37963126 See \`config.log' for more details" "$LINENO" 5; }
37973127 fi
37983128 fi
37993129 fi
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3801 printf "%s\n" "$cross_compiling" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3131 $as_echo "$cross_compiling" >&6; }
38023132
38033133 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
38043134 ac_clean_files=$ac_clean_files_save
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3806 printf %s "checking for suffix of object files... " >&6; }
3807 if test ${ac_cv_objext+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else $as_nop
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3136 $as_echo_n "checking for suffix of object files... " >&6; }
3137 if ${ac_cv_objext+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
38113140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38123141 /* end confdefs.h. */
38133142
38143143 int
3815 main (void)
3144 main ()
38163145 {
38173146
38183147 ;
38263155 *) ac_try_echo=$ac_try;;
38273156 esac
38283157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 printf "%s\n" "$ac_try_echo"; } >&5
3158 $as_echo "$ac_try_echo"; } >&5
38303159 (eval "$ac_compile") 2>&5
38313160 ac_status=$?
3832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }
3834 then :
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }; then :
38353163 for ac_file in conftest.o conftest.obj conftest.*; do
38363164 test -f "$ac_file" || continue;
38373165 case $ac_file in
38403168 break;;
38413169 esac
38423170 done
3843 else $as_nop
3844 printf "%s\n" "$as_me: failed program was:" >&5
3171 else
3172 $as_echo "$as_me: failed program was:" >&5
38453173 sed 's/^/| /' conftest.$ac_ext >&5
38463174
3847 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38493177 as_fn_error $? "cannot compute suffix of object files: cannot compile
38503178 See \`config.log' for more details" "$LINENO" 5; }
38513179 fi
38523180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
38533181 fi
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3855 printf "%s\n" "$ac_cv_objext" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3183 $as_echo "$ac_cv_objext" >&6; }
38563184 OBJEXT=$ac_cv_objext
38573185 ac_objext=$OBJEXT
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3859 printf %s "checking whether the compiler supports GNU C... " >&6; }
3860 if test ${ac_cv_c_compiler_gnu+y}
3861 then :
3862 printf %s "(cached) " >&6
3863 else $as_nop
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3188 if ${ac_cv_c_compiler_gnu+:} false; then :
3189 $as_echo_n "(cached) " >&6
3190 else
38643191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38653192 /* end confdefs.h. */
38663193
38673194 int
3868 main (void)
3195 main ()
38693196 {
38703197 #ifndef __GNUC__
38713198 choke me
38753202 return 0;
38763203 }
38773204 _ACEOF
3878 if ac_fn_c_try_compile "$LINENO"
3879 then :
3205 if ac_fn_c_try_compile "$LINENO"; then :
38803206 ac_compiler_gnu=yes
3881 else $as_nop
3207 else
38823208 ac_compiler_gnu=no
38833209 fi
3884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38853211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
38863212
38873213 fi
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3889 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
38923216 if test $ac_compiler_gnu = yes; then
38933217 GCC=yes
38943218 else
38953219 GCC=
38963220 fi
3897 ac_test_CFLAGS=${CFLAGS+y}
3221 ac_test_CFLAGS=${CFLAGS+set}
38983222 ac_save_CFLAGS=$CFLAGS
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900 printf %s "checking whether $CC accepts -g... " >&6; }
3901 if test ${ac_cv_prog_cc_g+y}
3902 then :
3903 printf %s "(cached) " >&6
3904 else $as_nop
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3225 if ${ac_cv_prog_cc_g+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
39053228 ac_save_c_werror_flag=$ac_c_werror_flag
39063229 ac_c_werror_flag=yes
39073230 ac_cv_prog_cc_g=no
39103233 /* end confdefs.h. */
39113234
39123235 int
3913 main (void)
3236 main ()
39143237 {
39153238
39163239 ;
39173240 return 0;
39183241 }
39193242 _ACEOF
3920 if ac_fn_c_try_compile "$LINENO"
3921 then :
3243 if ac_fn_c_try_compile "$LINENO"; then :
39223244 ac_cv_prog_cc_g=yes
3923 else $as_nop
3245 else
39243246 CFLAGS=""
39253247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39263248 /* end confdefs.h. */
39273249
39283250 int
3929 main (void)
3251 main ()
39303252 {
39313253
39323254 ;
39333255 return 0;
39343256 }
39353257 _ACEOF
3936 if ac_fn_c_try_compile "$LINENO"
3937 then :
3938
3939 else $as_nop
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259
3260 else
39403261 ac_c_werror_flag=$ac_save_c_werror_flag
39413262 CFLAGS="-g"
39423263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39433264 /* end confdefs.h. */
39443265
39453266 int
3946 main (void)
3267 main ()
39473268 {
39483269
39493270 ;
39503271 return 0;
39513272 }
39523273 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"
3954 then :
3274 if ac_fn_c_try_compile "$LINENO"; then :
39553275 ac_cv_prog_cc_g=yes
39563276 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3958 fi
3959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39623282 ac_c_werror_flag=$ac_save_c_werror_flag
39633283 fi
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3965 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3966 if test $ac_test_CFLAGS; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3285 $as_echo "$ac_cv_prog_cc_g" >&6; }
3286 if test "$ac_test_CFLAGS" = set; then
39673287 CFLAGS=$ac_save_CFLAGS
39683288 elif test $ac_cv_prog_cc_g = yes; then
39693289 if test "$GCC" = yes; then
39783298 CFLAGS=
39793299 fi
39803300 fi
3981 ac_prog_cc_stdc=no
3982 if test x$ac_prog_cc_stdc = xno
3983 then :
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3985 printf %s "checking for $CC option to enable C11 features... " >&6; }
3986 if test ${ac_cv_prog_cc_c11+y}
3987 then :
3988 printf %s "(cached) " >&6
3989 else $as_nop
3990 ac_cv_prog_cc_c11=no
3991 ac_save_CC=$CC
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 $ac_c_conftest_c11_program
3995 _ACEOF
3996 for ac_arg in '' -std=gnu11
3997 do
3998 CC="$ac_save_CC $ac_arg"
3999 if ac_fn_c_try_compile "$LINENO"
4000 then :
4001 ac_cv_prog_cc_c11=$ac_arg
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.beam
4004 test "x$ac_cv_prog_cc_c11" != "xno" && break
4005 done
4006 rm -f conftest.$ac_ext
4007 CC=$ac_save_CC
4008 fi
4009
4010 if test "x$ac_cv_prog_cc_c11" = xno
4011 then :
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4013 printf "%s\n" "unsupported" >&6; }
4014 else $as_nop
4015 if test "x$ac_cv_prog_cc_c11" = x
4016 then :
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018 printf "%s\n" "none needed" >&6; }
4019 else $as_nop
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4021 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4022 CC="$CC $ac_cv_prog_cc_c11"
4023 fi
4024 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4025 ac_prog_cc_stdc=c11
4026 fi
4027 fi
4028 if test x$ac_prog_cc_stdc = xno
4029 then :
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4031 printf %s "checking for $CC option to enable C99 features... " >&6; }
4032 if test ${ac_cv_prog_cc_c99+y}
4033 then :
4034 printf %s "(cached) " >&6
4035 else $as_nop
4036 ac_cv_prog_cc_c99=no
4037 ac_save_CC=$CC
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 $ac_c_conftest_c99_program
4041 _ACEOF
4042 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4043 do
4044 CC="$ac_save_CC $ac_arg"
4045 if ac_fn_c_try_compile "$LINENO"
4046 then :
4047 ac_cv_prog_cc_c99=$ac_arg
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.beam
4050 test "x$ac_cv_prog_cc_c99" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054 fi
4055
4056 if test "x$ac_cv_prog_cc_c99" = xno
4057 then :
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4059 printf "%s\n" "unsupported" >&6; }
4060 else $as_nop
4061 if test "x$ac_cv_prog_cc_c99" = x
4062 then :
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 printf "%s\n" "none needed" >&6; }
4065 else $as_nop
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4067 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4068 CC="$CC $ac_cv_prog_cc_c99"
4069 fi
4070 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4071 ac_prog_cc_stdc=c99
4072 fi
4073 fi
4074 if test x$ac_prog_cc_stdc = xno
4075 then :
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4077 printf %s "checking for $CC option to enable C89 features... " >&6; }
4078 if test ${ac_cv_prog_cc_c89+y}
4079 then :
4080 printf %s "(cached) " >&6
4081 else $as_nop
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3303 if ${ac_cv_prog_cc_c89+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
40823306 ac_cv_prog_cc_c89=no
40833307 ac_save_CC=$CC
40843308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40853309 /* end confdefs.h. */
4086 $ac_c_conftest_c89_program
3310 #include <stdarg.h>
3311 #include <stdio.h>
3312 struct stat;
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3317 char **p;
3318 int i;
3319 {
3320 return p[i];
3321 }
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3323 {
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3330 }
3331
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343 #define FOO(x) 'x'
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3352 int
3353 main ()
3354 {
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 ;
3357 return 0;
3358 }
40873359 _ACEOF
4088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
40893362 do
40903363 CC="$ac_save_CC $ac_arg"
4091 if ac_fn_c_try_compile "$LINENO"
4092 then :
3364 if ac_fn_c_try_compile "$LINENO"; then :
40933365 ac_cv_prog_cc_c89=$ac_arg
40943366 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam
3367 rm -f core conftest.err conftest.$ac_objext
40963368 test "x$ac_cv_prog_cc_c89" != "xno" && break
40973369 done
40983370 rm -f conftest.$ac_ext
40993371 CC=$ac_save_CC
4100 fi
4101
4102 if test "x$ac_cv_prog_cc_c89" = xno
4103 then :
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4105 printf "%s\n" "unsupported" >&6; }
4106 else $as_nop
4107 if test "x$ac_cv_prog_cc_c89" = x
4108 then :
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4110 printf "%s\n" "none needed" >&6; }
4111 else $as_nop
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4113 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4114 CC="$CC $ac_cv_prog_cc_c89"
4115 fi
4116 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4117 ac_prog_cc_stdc=c89
4118 fi
3372
3373 fi
3374 # AC_CACHE_VAL
3375 case "x$ac_cv_prog_cc_c89" in
3376 x)
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378 $as_echo "none needed" >&6; } ;;
3379 xno)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3381 $as_echo "unsupported" >&6; } ;;
3382 *)
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3386 esac
3387 if test "x$ac_cv_prog_cc_c89" != xno; then :
3388
41193389 fi
41203390
41213391 ac_ext=c
41243394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41253395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41263396
4127
4128 ac_ext=c
3397 ac_ext=c
41293398 ac_cpp='$CPP $CPPFLAGS'
41303399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41313400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41323401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4134 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4135 if test ${am_cv_prog_cc_c_o+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else $as_nop
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3403 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3404 if ${am_cv_prog_cc_c_o+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
41393407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41403408 /* end confdefs.h. */
41413409
41423410 int
4143 main (void)
3411 main ()
41443412 {
41453413
41463414 ;
41683436 rm -f core conftest*
41693437 unset am_i
41703438 fi
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4172 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3440 $as_echo "$am_cv_prog_cc_c_o" >&6; }
41733441 if test "$am_cv_prog_cc_c_o" != yes; then
41743442 # Losing compiler, so override with the script.
41753443 # FIXME: It is wrong to rewrite CC.
41863454
41873455
41883456
4189 ac_header= ac_cache=
4190 for ac_item in $ac_header_c_list
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3463 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3464 # On Suns, sometimes $CPP names a directory.
3465 if test -n "$CPP" && test -d "$CPP"; then
3466 CPP=
3467 fi
3468 if test -z "$CPP"; then
3469 if ${ac_cv_prog_CPP+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 # Double quotes because CPP needs to be expanded
3473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3474 do
3475 ac_preproc_ok=false
3476 for ac_c_preproc_warn_flag in '' yes
41913477 do
4192 if test $ac_cache; then
4193 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4194 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4195 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4196 fi
4197 ac_header= ac_cache=
4198 elif test $ac_header; then
4199 ac_cache=$ac_item
4200 else
4201 ac_header=$ac_item
4202 fi
4203 done
4204
4205
4206
4207
4208
4209
4210
4211
4212 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4213 then :
4214
4215 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4216
4217 fi
4218
4219
4220
4221
4222
4223
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4225 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4226 if test ${ac_cv_safe_to_define___extensions__+y}
4227 then :
4228 printf %s "(cached) " >&6
4229 else $as_nop
3478 # Use a header file that comes with gcc, so configuring glibc
3479 # with a fresh cross-compiler works.
3480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481 # <limits.h> exists even on freestanding compilers.
3482 # On the NeXT, cc -E runs the code through the compiler's parser,
3483 # not just through cpp. "Syntax error" is here to catch this case.
42303484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42313485 /* end confdefs.h. */
4232
4233 # define __EXTENSIONS__ 1
4234 $ac_includes_default
3486 #ifdef __STDC__
3487 # include <limits.h>
3488 #else
3489 # include <assert.h>
3490 #endif
3491 Syntax error
3492 _ACEOF
3493 if ac_fn_c_try_cpp "$LINENO"; then :
3494
3495 else
3496 # Broken: fails on valid input.
3497 continue
3498 fi
3499 rm -f conftest.err conftest.i conftest.$ac_ext
3500
3501 # OK, works on sane cases. Now check whether nonexistent headers
3502 # can be detected and how.
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <ac_nonexistent.h>
3506 _ACEOF
3507 if ac_fn_c_try_cpp "$LINENO"; then :
3508 # Broken: success on invalid input.
3509 continue
3510 else
3511 # Passes both tests.
3512 ac_preproc_ok=:
3513 break
3514 fi
3515 rm -f conftest.err conftest.i conftest.$ac_ext
3516
3517 done
3518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519 rm -f conftest.i conftest.err conftest.$ac_ext
3520 if $ac_preproc_ok; then :
3521 break
3522 fi
3523
3524 done
3525 ac_cv_prog_CPP=$CPP
3526
3527 fi
3528 CPP=$ac_cv_prog_CPP
3529 else
3530 ac_cv_prog_CPP=$CPP
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3533 $as_echo "$CPP" >&6; }
3534 ac_preproc_ok=false
3535 for ac_c_preproc_warn_flag in '' yes
3536 do
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error" is here to catch this case.
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #ifdef __STDC__
3546 # include <limits.h>
3547 #else
3548 # include <assert.h>
3549 #endif
3550 Syntax error
3551 _ACEOF
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553
3554 else
3555 # Broken: fails on valid input.
3556 continue
3557 fi
3558 rm -f conftest.err conftest.i conftest.$ac_ext
3559
3560 # OK, works on sane cases. Now check whether nonexistent headers
3561 # can be detected and how.
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3565 _ACEOF
3566 if ac_fn_c_try_cpp "$LINENO"; then :
3567 # Broken: success on invalid input.
3568 continue
3569 else
3570 # Passes both tests.
3571 ac_preproc_ok=:
3572 break
3573 fi
3574 rm -f conftest.err conftest.i conftest.$ac_ext
3575
3576 done
3577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3578 rm -f conftest.i conftest.err conftest.$ac_ext
3579 if $ac_preproc_ok; then :
3580
3581 else
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3596 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3597 if ${ac_cv_path_GREP+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -z "$GREP"; then
3601 ac_path_GREP_found=false
3602 # Loop through the user's path and test for each of PROGNAME-LIST
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3605 do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_prog in grep ggrep; do
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3611 as_fn_executable_p "$ac_path_GREP" || continue
3612 # Check for GNU ac_path_GREP and select it if it is found.
3613 # Check for GNU $ac_path_GREP
3614 case `"$ac_path_GREP" --version 2>&1` in
3615 *GNU*)
3616 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3617 *)
3618 ac_count=0
3619 $as_echo_n 0123456789 >"conftest.in"
3620 while :
3621 do
3622 cat "conftest.in" "conftest.in" >"conftest.tmp"
3623 mv "conftest.tmp" "conftest.in"
3624 cp "conftest.in" "conftest.nl"
3625 $as_echo 'GREP' >> "conftest.nl"
3626 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3628 as_fn_arith $ac_count + 1 && ac_count=$as_val
3629 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3630 # Best one so far, save it but keep looking for a better one
3631 ac_cv_path_GREP="$ac_path_GREP"
3632 ac_path_GREP_max=$ac_count
3633 fi
3634 # 10*(2^10) chars as input seems more than enough
3635 test $ac_count -gt 10 && break
3636 done
3637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3638 esac
3639
3640 $ac_path_GREP_found && break 3
3641 done
3642 done
3643 done
3644 IFS=$as_save_IFS
3645 if test -z "$ac_cv_path_GREP"; then
3646 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3647 fi
3648 else
3649 ac_cv_path_GREP=$GREP
3650 fi
3651
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3654 $as_echo "$ac_cv_path_GREP" >&6; }
3655 GREP="$ac_cv_path_GREP"
3656
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3659 $as_echo_n "checking for egrep... " >&6; }
3660 if ${ac_cv_path_EGREP+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3664 then ac_cv_path_EGREP="$GREP -E"
3665 else
3666 if test -z "$EGREP"; then
3667 ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 as_fn_executable_p "$ac_path_EGREP" || continue
3678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3681 *GNU*)
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683 *)
3684 ac_count=0
3685 $as_echo_n 0123456789 >"conftest.in"
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 $as_echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 as_fn_arith $ac_count + 1 && ac_count=$as_val
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3699 fi
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 esac
3705
3706 $ac_path_EGREP_found && break 3
3707 done
3708 done
3709 done
3710 IFS=$as_save_IFS
3711 if test -z "$ac_cv_path_EGREP"; then
3712 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3713 fi
3714 else
3715 ac_cv_path_EGREP=$EGREP
3716 fi
3717
3718 fi
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3721 $as_echo "$ac_cv_path_EGREP" >&6; }
3722 EGREP="$ac_cv_path_EGREP"
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3726 $as_echo_n "checking for ANSI C header files... " >&6; }
3727 if ${ac_cv_header_stdc+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732 #include <stdlib.h>
3733 #include <stdarg.h>
3734 #include <string.h>
3735 #include <float.h>
3736
42353737 int
4236 main (void)
3738 main ()
42373739 {
42383740
42393741 ;
42403742 return 0;
42413743 }
42423744 _ACEOF
4243 if ac_fn_c_try_compile "$LINENO"
4244 then :
4245 ac_cv_safe_to_define___extensions__=yes
4246 else $as_nop
4247 ac_cv_safe_to_define___extensions__=no
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4250 fi
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4252 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4253
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4255 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4256 if test ${ac_cv_should_define__xopen_source+y}
4257 then :
4258 printf %s "(cached) " >&6
4259 else $as_nop
4260 ac_cv_should_define__xopen_source=no
4261 if test $ac_cv_header_wchar_h = yes
4262 then :
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_header_stdc=yes
3747 else
3748 ac_cv_header_stdc=no
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751
3752 if test $ac_cv_header_stdc = yes; then
3753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42633754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42643755 /* end confdefs.h. */
4265
4266 #include <wchar.h>
4267 mbstate_t x;
3756 #include <string.h>
3757
3758 _ACEOF
3759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3760 $EGREP "memchr" >/dev/null 2>&1; then :
3761
3762 else
3763 ac_cv_header_stdc=no
3764 fi
3765 rm -f conftest*
3766
3767 fi
3768
3769 if test $ac_cv_header_stdc = yes; then
3770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdlib.h>
3774
3775 _ACEOF
3776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "free" >/dev/null 2>&1; then :
3778
3779 else
3780 ac_cv_header_stdc=no
3781 fi
3782 rm -f conftest*
3783
3784 fi
3785
3786 if test $ac_cv_header_stdc = yes; then
3787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3788 if test "$cross_compiling" = yes; then :
3789 :
3790 else
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793 #include <ctype.h>
3794 #include <stdlib.h>
3795 #if ((' ' & 0x0FF) == 0x020)
3796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3798 #else
3799 # define ISLOWER(c) \
3800 (('a' <= (c) && (c) <= 'i') \
3801 || ('j' <= (c) && (c) <= 'r') \
3802 || ('s' <= (c) && (c) <= 'z'))
3803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3804 #endif
3805
3806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42683807 int
4269 main (void)
3808 main ()
3809 {
3810 int i;
3811 for (i = 0; i < 256; i++)
3812 if (XOR (islower (i), ISLOWER (i))
3813 || toupper (i) != TOUPPER (i))
3814 return 2;
3815 return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_run "$LINENO"; then :
3819
3820 else
3821 ac_cv_header_stdc=no
3822 fi
3823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3824 conftest.$ac_objext conftest.beam conftest.$ac_ext
3825 fi
3826
3827 fi
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3830 $as_echo "$ac_cv_header_stdc" >&6; }
3831 if test $ac_cv_header_stdc = yes; then
3832
3833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3834
3835 fi
3836
3837 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3838 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3839 inttypes.h stdint.h unistd.h
3840 do :
3841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3842 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3843 "
3844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3845 cat >>confdefs.h <<_ACEOF
3846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3847 _ACEOF
3848
3849 fi
3850
3851 done
3852
3853
3854
3855 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3856 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3857 MINIX=yes
3858 else
3859 MINIX=
3860 fi
3861
3862
3863 if test "$MINIX" = yes; then
3864
3865 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3866
3867
3868 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3869
3870
3871 $as_echo "#define _MINIX 1" >>confdefs.h
3872
3873 fi
3874
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3877 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3878 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883
3884 # define __EXTENSIONS__ 1
3885 $ac_includes_default
3886 int
3887 main ()
42703888 {
42713889
42723890 ;
42733891 return 0;
42743892 }
42753893 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"
4277 then :
4278
4279 else $as_nop
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282
4283 #define _XOPEN_SOURCE 500
4284 #include <wchar.h>
4285 mbstate_t x;
4286 int
4287 main (void)
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"
4295 then :
4296 ac_cv_should_define__xopen_source=yes
4297 fi
4298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4301 fi
4302 fi
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4304 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4305
4306 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4307
4308 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4309
4310 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4311
4312 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4313
4314 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4315
4316 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4317
4318 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4319
4320 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4321
4322 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4323
4324 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4325
4326 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4327
4328 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4329
4330 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4331
4332 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4333
4334 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4335
4336 if test $ac_cv_header_minix_config_h = yes
4337 then :
4338 MINIX=yes
4339 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4340
4341 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4342
4343 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4344
4345 else $as_nop
4346 MINIX=
4347 fi
4348 if test $ac_cv_safe_to_define___extensions__ = yes
4349 then :
4350 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4351
4352 fi
4353 if test $ac_cv_should_define__xopen_source = yes
4354 then :
4355 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4356
4357 fi
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_safe_to_define___extensions__=yes
3896 else
3897 ac_cv_safe_to_define___extensions__=no
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3902 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3903 test $ac_cv_safe_to_define___extensions__ = yes &&
3904 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3905
3906 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3907
3908 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3909
3910 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3911
3912 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3913
43583914
43593915 # Check whether --enable-largefile was given.
4360 if test ${enable_largefile+y}
4361 then :
3916 if test "${enable_largefile+set}" = set; then :
43623917 enableval=$enable_largefile;
43633918 fi
43643919
43653920 if test "$enable_largefile" != no; then
43663921
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4368 printf %s "checking for special C compiler options needed for large files... " >&6; }
4369 if test ${ac_cv_sys_largefile_CC+y}
4370 then :
4371 printf %s "(cached) " >&6
4372 else $as_nop
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3923 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3924 if ${ac_cv_sys_largefile_CC+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926 else
43733927 ac_cv_sys_largefile_CC=no
43743928 if test "$GCC" != yes; then
43753929 ac_save_CC=$CC
43833937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
43843938 since some C++ compilers masquerading as C compilers
43853939 incorrectly reject 9223372036854775807. */
4386 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
43873941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
43883942 && LARGE_OFF_T % 2147483647 == 1)
43893943 ? 1 : -1];
43903944 int
4391 main (void)
3945 main ()
43923946 {
43933947
43943948 ;
43953949 return 0;
43963950 }
43973951 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"
4399 then :
3952 if ac_fn_c_try_compile "$LINENO"; then :
44003953 break
44013954 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.beam
3955 rm -f core conftest.err conftest.$ac_objext
44033956 CC="$CC -n32"
4404 if ac_fn_c_try_compile "$LINENO"
4405 then :
3957 if ac_fn_c_try_compile "$LINENO"; then :
44063958 ac_cv_sys_largefile_CC=' -n32'; break
44073959 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.beam
3960 rm -f core conftest.err conftest.$ac_objext
44093961 break
44103962 done
44113963 CC=$ac_save_CC
44123964 rm -f conftest.$ac_ext
44133965 fi
44143966 fi
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4416 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3968 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
44173969 if test "$ac_cv_sys_largefile_CC" != no; then
44183970 CC=$CC$ac_cv_sys_largefile_CC
44193971 fi
44203972
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4422 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4423 if test ${ac_cv_sys_file_offset_bits+y}
4424 then :
4425 printf %s "(cached) " >&6
4426 else $as_nop
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3974 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3975 if ${ac_cv_sys_file_offset_bits+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
44273978 while :; do
44283979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44293980 /* end confdefs.h. */
44323983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
44333984 since some C++ compilers masquerading as C compilers
44343985 incorrectly reject 9223372036854775807. */
4435 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
44363987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
44373988 && LARGE_OFF_T % 2147483647 == 1)
44383989 ? 1 : -1];
44393990 int
4440 main (void)
3991 main ()
44413992 {
44423993
44433994 ;
44443995 return 0;
44453996 }
44463997 _ACEOF
4447 if ac_fn_c_try_compile "$LINENO"
4448 then :
3998 if ac_fn_c_try_compile "$LINENO"; then :
44493999 ac_cv_sys_file_offset_bits=no; break
44504000 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44524002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44534003 /* end confdefs.h. */
44544004 #define _FILE_OFFSET_BITS 64
44574007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
44584008 since some C++ compilers masquerading as C compilers
44594009 incorrectly reject 9223372036854775807. */
4460 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
44614011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
44624012 && LARGE_OFF_T % 2147483647 == 1)
44634013 ? 1 : -1];
44644014 int
4465 main (void)
4015 main ()
44664016 {
44674017
44684018 ;
44694019 return 0;
44704020 }
44714021 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"
4473 then :
4022 if ac_fn_c_try_compile "$LINENO"; then :
44744023 ac_cv_sys_file_offset_bits=64; break
44754024 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44774026 ac_cv_sys_file_offset_bits=unknown
44784027 break
44794028 done
44804029 fi
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4482 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4031 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
44834032 case $ac_cv_sys_file_offset_bits in #(
44844033 no | unknown) ;;
44854034 *)
4486 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4035 cat >>confdefs.h <<_ACEOF
4036 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4037 _ACEOF
44874038 ;;
44884039 esac
44894040 rm -rf conftest*
44904041 if test $ac_cv_sys_file_offset_bits = unknown; then
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4492 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4493 if test ${ac_cv_sys_large_files+y}
4494 then :
4495 printf %s "(cached) " >&6
4496 else $as_nop
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4043 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4044 if ${ac_cv_sys_large_files+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
44974047 while :; do
44984048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44994049 /* end confdefs.h. */
45024052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
45034053 since some C++ compilers masquerading as C compilers
45044054 incorrectly reject 9223372036854775807. */
4505 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
45064056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
45074057 && LARGE_OFF_T % 2147483647 == 1)
45084058 ? 1 : -1];
45094059 int
4510 main (void)
4060 main ()
45114061 {
45124062
45134063 ;
45144064 return 0;
45154065 }
45164066 _ACEOF
4517 if ac_fn_c_try_compile "$LINENO"
4518 then :
4067 if ac_fn_c_try_compile "$LINENO"; then :
45194068 ac_cv_sys_large_files=no; break
45204069 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45224071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45234072 /* end confdefs.h. */
45244073 #define _LARGE_FILES 1
45274076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
45284077 since some C++ compilers masquerading as C compilers
45294078 incorrectly reject 9223372036854775807. */
4530 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
45314080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
45324081 && LARGE_OFF_T % 2147483647 == 1)
45334082 ? 1 : -1];
45344083 int
4535 main (void)
4084 main ()
45364085 {
45374086
45384087 ;
45394088 return 0;
45404089 }
45414090 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"
4543 then :
4091 if ac_fn_c_try_compile "$LINENO"; then :
45444092 ac_cv_sys_large_files=1; break
45454093 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45474095 ac_cv_sys_large_files=unknown
45484096 break
45494097 done
45504098 fi
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4552 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4100 $as_echo "$ac_cv_sys_large_files" >&6; }
45534101 case $ac_cv_sys_large_files in #(
45544102 no | unknown) ;;
45554103 *)
4556 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4104 cat >>confdefs.h <<_ACEOF
4105 #define _LARGE_FILES $ac_cv_sys_large_files
4106 _ACEOF
45574107 ;;
45584108 esac
45594109 rm -rf conftest*
45604110 fi
4111
4112
45614113 fi
45624114
45634115
45644116 am__api_version='1.16'
45654117
4566
4567 # Find a good install program. We prefer a C program (faster),
4118 # Find a good install program. We prefer a C program (faster),
45684119 # so one script is as good as another. But avoid the broken or
45694120 # incompatible versions:
45704121 # SysV /etc/install, /usr/sbin/install
45784129 # OS/2's system install, which has a completely different semantic
45794130 # ./install, which can be erroneously created by make from ./install.sh.
45804131 # Reject install programs that cannot install multiple files.
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4582 printf %s "checking for a BSD-compatible install... " >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4133 $as_echo_n "checking for a BSD-compatible install... " >&6; }
45834134 if test -z "$INSTALL"; then
4584 if test ${ac_cv_path_install+y}
4585 then :
4586 printf %s "(cached) " >&6
4587 else $as_nop
4135 if ${ac_cv_path_install+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
45884138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45894139 for as_dir in $PATH
45904140 do
45914141 IFS=$as_save_IFS
4592 case $as_dir in #(((
4593 '') as_dir=./ ;;
4594 */) ;;
4595 *) as_dir=$as_dir/ ;;
4596 esac
4597 # Account for fact that we put trailing slashes in our PATH walk.
4598 case $as_dir in #((
4599 ./ | /[cC]/* | \
4142 test -z "$as_dir" && as_dir=.
4143 # Account for people who put trailing slashes in PATH elements.
4144 case $as_dir/ in #((
4145 ./ | .// | /[cC]/* | \
46004146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46014147 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
46024148 /usr/ucb/* ) ;;
46064152 # by default.
46074153 for ac_prog in ginstall scoinst install; do
46084154 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4155 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46104156 if test $ac_prog = install &&
4611 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46124158 # AIX install. It has an incompatible calling convention.
46134159 :
46144160 elif test $ac_prog = install &&
4615 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46164162 # program-specific install script used by HP pwplus--don't use.
46174163 :
46184164 else
46204166 echo one > conftest.one
46214167 echo two > conftest.two
46224168 mkdir conftest.dir
4623 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4169 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
46244170 test -s conftest.one && test -s conftest.two &&
46254171 test -s conftest.dir/conftest.one &&
46264172 test -s conftest.dir/conftest.two
46274173 then
4628 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4174 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46294175 break 3
46304176 fi
46314177 fi
46414187 rm -rf conftest.one conftest.two conftest.dir
46424188
46434189 fi
4644 if test ${ac_cv_path_install+y}; then
4190 if test "${ac_cv_path_install+set}" = set; then
46454191 INSTALL=$ac_cv_path_install
46464192 else
46474193 # As a last resort, use the slow shell script. Don't cache a
46514197 INSTALL=$ac_install_sh
46524198 fi
46534199 fi
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4655 printf "%s\n" "$INSTALL" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4201 $as_echo "$INSTALL" >&6; }
46564202
46574203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46584204 # It thinks the first close brace ends the variable substitution.
46624208
46634209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46644210
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4666 printf %s "checking whether build environment is sane... " >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4212 $as_echo_n "checking whether build environment is sane... " >&6; }
46674213 # Reject unsafe characters in $srcdir or the absolute working directory
46684214 # name. Accept space and tab only in the latter.
46694215 am_lf='
47174263 as_fn_error $? "newly created file is older than distributed files!
47184264 Check your system clock" "$LINENO" 5
47194265 fi
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4721 printf "%s\n" "yes" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4267 $as_echo "yes" >&6; }
47224268 # If we didn't sleep, we still need to ensure time stamps of config.status and
47234269 # generated files are strictly newer.
47244270 am_sleep_pid=
47374283 # Double any \ or $.
47384284 # By default was `s,x,x', remove it if useless.
47394285 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4740 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4741
4742
4743 if test x"${MISSING+set}" != xset; then
4286 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4287
4288 if test x"${MISSING+set}" != xset; then
47444289 case $am_aux_dir in
47454290 *\ * | *\ *)
47464291 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
47534298 am_missing_run="$MISSING "
47544299 else
47554300 am_missing_run=
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4757 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4302 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
47584303 fi
47594304
47604305 if test x"${install_sh+set}" != xset; then
47744319 if test -n "$ac_tool_prefix"; then
47754320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47764321 set dummy ${ac_tool_prefix}strip; ac_word=$2
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 printf %s "checking for $ac_word... " >&6; }
4779 if test ${ac_cv_prog_STRIP+y}
4780 then :
4781 printf %s "(cached) " >&6
4782 else $as_nop
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_STRIP+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
47834327 if test -n "$STRIP"; then
47844328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47854329 else
47874331 for as_dir in $PATH
47884332 do
47894333 IFS=$as_save_IFS
4790 case $as_dir in #(((
4791 '') as_dir=./ ;;
4792 */) ;;
4793 *) as_dir=$as_dir/ ;;
4794 esac
4334 test -z "$as_dir" && as_dir=.
47954335 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47974337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47994339 break 2
48004340 fi
48014341 done
48064346 fi
48074347 STRIP=$ac_cv_prog_STRIP
48084348 if test -n "$STRIP"; then
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4810 printf "%s\n" "$STRIP" >&6; }
4811 else
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 printf "%s\n" "no" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4350 $as_echo "$STRIP" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
48144354 fi
48154355
48164356
48194359 ac_ct_STRIP=$STRIP
48204360 # Extract the first word of "strip", so it can be a program name with args.
48214361 set dummy strip; ac_word=$2
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 printf %s "checking for $ac_word... " >&6; }
4824 if test ${ac_cv_prog_ac_ct_STRIP+y}
4825 then :
4826 printf %s "(cached) " >&6
4827 else $as_nop
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
48284367 if test -n "$ac_ct_STRIP"; then
48294368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48304369 else
48324371 for as_dir in $PATH
48334372 do
48344373 IFS=$as_save_IFS
4835 case $as_dir in #(((
4836 '') as_dir=./ ;;
4837 */) ;;
4838 *) as_dir=$as_dir/ ;;
4839 esac
4374 test -z "$as_dir" && as_dir=.
48404375 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48424377 ac_cv_prog_ac_ct_STRIP="strip"
4843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48444379 break 2
48454380 fi
48464381 done
48514386 fi
48524387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48534388 if test -n "$ac_ct_STRIP"; then
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4855 printf "%s\n" "$ac_ct_STRIP" >&6; }
4856 else
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 printf "%s\n" "no" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4390 $as_echo "$ac_ct_STRIP" >&6; }
4391 else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
48594394 fi
48604395
48614396 if test "x$ac_ct_STRIP" = x; then
48634398 else
48644399 case $cross_compiling:$ac_tool_warned in
48654400 yes:)
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4867 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48684403 ac_tool_warned=yes ;;
48694404 esac
48704405 STRIP=$ac_ct_STRIP
48764411 fi
48774412 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
48784413
4879
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4881 printf %s "checking for a race-free mkdir -p... " >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4415 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
48824416 if test -z "$MKDIR_P"; then
4883 if test ${ac_cv_path_mkdir+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else $as_nop
4417 if ${ac_cv_path_mkdir+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
48874420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48884421 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
48894422 do
48904423 IFS=$as_save_IFS
4891 case $as_dir in #(((
4892 '') as_dir=./ ;;
4893 */) ;;
4894 *) as_dir=$as_dir/ ;;
4895 esac
4424 test -z "$as_dir" && as_dir=.
48964425 for ac_prog in mkdir gmkdir; do
48974426 for ac_exec_ext in '' $ac_executable_extensions; do
4898 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4899 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4900 'mkdir ('*'coreutils) '* | \
4901 'BusyBox '* | \
4427 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4428 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4429 'mkdir (GNU coreutils) '* | \
4430 'mkdir (coreutils) '* | \
49024431 'mkdir (fileutils) '4.1*)
4903 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4432 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
49044433 break 3;;
49054434 esac
49064435 done
49114440 fi
49124441
49134442 test -d ./--version && rmdir ./--version
4914 if test ${ac_cv_path_mkdir+y}; then
4443 if test "${ac_cv_path_mkdir+set}" = set; then
49154444 MKDIR_P="$ac_cv_path_mkdir -p"
49164445 else
49174446 # As a last resort, use the slow shell script. Don't cache a
49214450 MKDIR_P="$ac_install_sh -d"
49224451 fi
49234452 fi
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4925 printf "%s\n" "$MKDIR_P" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4454 $as_echo "$MKDIR_P" >&6; }
49264455
49274456 for ac_prog in gawk mawk nawk awk
49284457 do
49294458 # Extract the first word of "$ac_prog", so it can be a program name with args.
49304459 set dummy $ac_prog; ac_word=$2
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 printf %s "checking for $ac_word... " >&6; }
4933 if test ${ac_cv_prog_AWK+y}
4934 then :
4935 printf %s "(cached) " >&6
4936 else $as_nop
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_prog_AWK+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
49374465 if test -n "$AWK"; then
49384466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
49394467 else
49414469 for as_dir in $PATH
49424470 do
49434471 IFS=$as_save_IFS
4944 case $as_dir in #(((
4945 '') as_dir=./ ;;
4946 */) ;;
4947 *) as_dir=$as_dir/ ;;
4948 esac
4472 test -z "$as_dir" && as_dir=.
49494473 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49514475 ac_cv_prog_AWK="$ac_prog"
4952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49534477 break 2
49544478 fi
49554479 done
49604484 fi
49614485 AWK=$ac_cv_prog_AWK
49624486 if test -n "$AWK"; then
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4964 printf "%s\n" "$AWK" >&6; }
4965 else
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 printf "%s\n" "no" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4488 $as_echo "$AWK" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
49684492 fi
49694493
49704494
49714495 test -n "$AWK" && break
49724496 done
49734497
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4975 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4499 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
49764500 set x ${MAKE-make}
4977 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4978 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else $as_nop
4501 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4502 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
49824505 cat >conftest.make <<\_ACEOF
49834506 SHELL = /bin/sh
49844507 all:
49944517 rm -f conftest.make
49954518 fi
49964519 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4998 printf "%s\n" "yes" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521 $as_echo "yes" >&6; }
49994522 SET_MAKE=
50004523 else
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 printf "%s\n" "no" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
50034526 SET_MAKE="MAKE=${MAKE-make}"
50044527 fi
50054528
50164539
50174540 ac_config_commands="$ac_config_commands depfiles"
50184541
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5020 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4543 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
50214544 cat > confinc.mk << 'END'
50224545 am__doit:
50234546 @echo this is the am__doit target >confinc.out
50534576 fi
50544577 done
50554578 rm -f confinc.* confmf.*
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5057 printf "%s\n" "${_am_result}" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4580 $as_echo "${_am_result}" >&6; }
50584581
50594582 # Check whether --enable-dependency-tracking was given.
5060 if test ${enable_dependency_tracking+y}
5061 then :
4583 if test "${enable_dependency_tracking+set}" = set; then :
50624584 enableval=$enable_dependency_tracking;
50634585 fi
50644586
50774599
50784600
50794601 # Check whether --enable-silent-rules was given.
5080 if test ${enable_silent_rules+y}
5081 then :
4602 if test "${enable_silent_rules+set}" = set; then :
50824603 enableval=$enable_silent_rules;
50834604 fi
50844605
50884609 *) AM_DEFAULT_VERBOSITY=1;;
50894610 esac
50904611 am_make=${MAKE-make}
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5092 printf %s "checking whether $am_make supports nested variables... " >&6; }
5093 if test ${am_cv_make_support_nested_variables+y}
5094 then :
5095 printf %s "(cached) " >&6
5096 else $as_nop
5097 if printf "%s\n" 'TRUE=$(BAR$(V))
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4613 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4614 if ${am_cv_make_support_nested_variables+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if $as_echo 'TRUE=$(BAR$(V))
50984618 BAR0=false
50994619 BAR1=true
51004620 V=1
51064626 am_cv_make_support_nested_variables=no
51074627 fi
51084628 fi
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5110 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4630 $as_echo "$am_cv_make_support_nested_variables" >&6; }
51114631 if test $am_cv_make_support_nested_variables = yes; then
51124632 AM_V='$(V)'
51134633 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
51394659
51404660 # Define the identity of the package.
51414661 PACKAGE='libnbd'
5142 VERSION='1.10.3'
5143
5144
5145 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5146
5147
5148 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4662 VERSION='1.10.4'
4663
4664
4665 cat >>confdefs.h <<_ACEOF
4666 #define PACKAGE "$PACKAGE"
4667 _ACEOF
4668
4669
4670 cat >>confdefs.h <<_ACEOF
4671 #define VERSION "$VERSION"
4672 _ACEOF
51494673
51504674 # Some tools Automake needs.
51514675
51874711
51884712 depcc="$CC" am_compiler_list=
51894713
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5191 printf %s "checking dependency style of $depcc... " >&6; }
5192 if test ${am_cv_CC_dependencies_compiler_type+y}
5193 then :
5194 printf %s "(cached) " >&6
5195 else $as_nop
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4715 $as_echo_n "checking dependency style of $depcc... " >&6; }
4716 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
51964719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
51974720 # We make a subdir and do the tests there. Otherwise we can end up
51984721 # making bogus files that we don't know about and never remove. For
52994822 fi
53004823
53014824 fi
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5303 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
53044827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
53054828
53064829 if
53594882
53604883 case `pwd` in
53614884 *\ * | *\ *)
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5363 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4886 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
53644887 esac
53654888
53664889
53804903
53814904
53824905
5383
53844906 ltmain=$ac_aux_dir/ltmain.sh
53854907
5386
5387
5388 # Make sure we can run config.sub.
5389 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5390 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5391
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5393 printf %s "checking build system type... " >&6; }
5394 if test ${ac_cv_build+y}
5395 then :
5396 printf %s "(cached) " >&6
5397 else $as_nop
4908 # Make sure we can run config.sub.
4909 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4910 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4913 $as_echo_n "checking build system type... " >&6; }
4914 if ${ac_cv_build+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
53984917 ac_build_alias=$build_alias
53994918 test "x$ac_build_alias" = x &&
5400 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4919 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
54014920 test "x$ac_build_alias" = x &&
54024921 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5403 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5404 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5405
5406 fi
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5408 printf "%s\n" "$ac_cv_build" >&6; }
4922 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4923 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4924
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4927 $as_echo "$ac_cv_build" >&6; }
54094928 case $ac_cv_build in
54104929 *-*-*) ;;
54114930 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
54244943 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
54254944
54264945
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5428 printf %s "checking host system type... " >&6; }
5429 if test ${ac_cv_host+y}
5430 then :
5431 printf %s "(cached) " >&6
5432 else $as_nop
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4947 $as_echo_n "checking host system type... " >&6; }
4948 if ${ac_cv_host+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
54334951 if test "x$host_alias" = x; then
54344952 ac_cv_host=$ac_cv_build
54354953 else
5436 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5437 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5438 fi
5439
5440 fi
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5442 printf "%s\n" "$ac_cv_host" >&6; }
4954 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4955 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4956 fi
4957
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4960 $as_echo "$ac_cv_host" >&6; }
54434961 case $ac_cv_host in
54444962 *-*-*) ;;
54454963 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
54794997 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
54804998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
54814999
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5483 printf %s "checking how to print strings... " >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5001 $as_echo_n "checking how to print strings... " >&6; }
54845002 # Test print first, because it will be a builtin if present.
54855003 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
54865004 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
55065024 }
55075025
55085026 case $ECHO in
5509 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5510 printf "%s\n" "printf" >&6; } ;;
5511 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5512 printf "%s\n" "print -r" >&6; } ;;
5513 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5514 printf "%s\n" "cat" >&6; } ;;
5027 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5028 $as_echo "printf" >&6; } ;;
5029 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5030 $as_echo "print -r" >&6; } ;;
5031 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5032 $as_echo "cat" >&6; } ;;
55155033 esac
55165034
55175035
55275045
55285046
55295047
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5531 printf %s "checking for a sed that does not truncate output... " >&6; }
5532 if test ${ac_cv_path_SED+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else $as_nop
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5049 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5050 if ${ac_cv_path_SED+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
55365053 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
55375054 for ac_i in 1 2 3 4 5 6 7; do
55385055 ac_script="$ac_script$as_nl$ac_script"
55465063 for as_dir in $PATH
55475064 do
55485065 IFS=$as_save_IFS
5549 case $as_dir in #(((
5550 '') as_dir=./ ;;
5551 */) ;;
5552 *) as_dir=$as_dir/ ;;
5553 esac
5554 for ac_prog in sed gsed
5555 do
5066 test -z "$as_dir" && as_dir=.
5067 for ac_prog in sed gsed; do
55565068 for ac_exec_ext in '' $ac_executable_extensions; do
5557 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5069 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
55585070 as_fn_executable_p "$ac_path_SED" || continue
55595071 # Check for GNU ac_path_SED and select it if it is found.
55605072 # Check for GNU $ac_path_SED
55635075 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
55645076 *)
55655077 ac_count=0
5566 printf %s 0123456789 >"conftest.in"
5078 $as_echo_n 0123456789 >"conftest.in"
55675079 while :
55685080 do
55695081 cat "conftest.in" "conftest.in" >"conftest.tmp"
55705082 mv "conftest.tmp" "conftest.in"
55715083 cp "conftest.in" "conftest.nl"
5572 printf "%s\n" '' >> "conftest.nl"
5084 $as_echo '' >> "conftest.nl"
55735085 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
55745086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
55755087 as_fn_arith $ac_count + 1 && ac_count=$as_val
55975109 fi
55985110
55995111 fi
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5601 printf "%s\n" "$ac_cv_path_SED" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5113 $as_echo "$ac_cv_path_SED" >&6; }
56025114 SED="$ac_cv_path_SED"
56035115 rm -f conftest.sed
56045116
56155127
56165128
56175129
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5619 printf %s "checking for grep that handles long lines and -e... " >&6; }
5620 if test ${ac_cv_path_GREP+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else $as_nop
5624 if test -z "$GREP"; then
5625 ac_path_GREP_found=false
5626 # Loop through the user's path and test for each of PROGNAME-LIST
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5629 do
5630 IFS=$as_save_IFS
5631 case $as_dir in #(((
5632 '') as_dir=./ ;;
5633 */) ;;
5634 *) as_dir=$as_dir/ ;;
5635 esac
5636 for ac_prog in grep ggrep
5637 do
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5640 as_fn_executable_p "$ac_path_GREP" || continue
5641 # Check for GNU ac_path_GREP and select it if it is found.
5642 # Check for GNU $ac_path_GREP
5643 case `"$ac_path_GREP" --version 2>&1` in
5644 *GNU*)
5645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5646 *)
5647 ac_count=0
5648 printf %s 0123456789 >"conftest.in"
5649 while :
5650 do
5651 cat "conftest.in" "conftest.in" >"conftest.tmp"
5652 mv "conftest.tmp" "conftest.in"
5653 cp "conftest.in" "conftest.nl"
5654 printf "%s\n" 'GREP' >> "conftest.nl"
5655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657 as_fn_arith $ac_count + 1 && ac_count=$as_val
5658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5659 # Best one so far, save it but keep looking for a better one
5660 ac_cv_path_GREP="$ac_path_GREP"
5661 ac_path_GREP_max=$ac_count
5662 fi
5663 # 10*(2^10) chars as input seems more than enough
5664 test $ac_count -gt 10 && break
5665 done
5666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 esac
5668
5669 $ac_path_GREP_found && break 3
5670 done
5671 done
5672 done
5673 IFS=$as_save_IFS
5674 if test -z "$ac_cv_path_GREP"; then
5675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5676 fi
5677 else
5678 ac_cv_path_GREP=$GREP
5679 fi
5680
5681 fi
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5683 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5684 GREP="$ac_cv_path_GREP"
5685
5686
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5688 printf %s "checking for egrep... " >&6; }
5689 if test ${ac_cv_path_EGREP+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else $as_nop
5693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5694 then ac_cv_path_EGREP="$GREP -E"
5695 else
5696 if test -z "$EGREP"; then
5697 ac_path_EGREP_found=false
5698 # Loop through the user's path and test for each of PROGNAME-LIST
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5701 do
5702 IFS=$as_save_IFS
5703 case $as_dir in #(((
5704 '') as_dir=./ ;;
5705 */) ;;
5706 *) as_dir=$as_dir/ ;;
5707 esac
5708 for ac_prog in egrep
5709 do
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5712 as_fn_executable_p "$ac_path_EGREP" || continue
5713 # Check for GNU ac_path_EGREP and select it if it is found.
5714 # Check for GNU $ac_path_EGREP
5715 case `"$ac_path_EGREP" --version 2>&1` in
5716 *GNU*)
5717 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5718 *)
5719 ac_count=0
5720 printf %s 0123456789 >"conftest.in"
5721 while :
5722 do
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 printf "%s\n" 'EGREP' >> "conftest.nl"
5727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729 as_fn_arith $ac_count + 1 && ac_count=$as_val
5730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_EGREP="$ac_path_EGREP"
5733 ac_path_EGREP_max=$ac_count
5734 fi
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5737 done
5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739 esac
5740
5741 $ac_path_EGREP_found && break 3
5742 done
5743 done
5744 done
5745 IFS=$as_save_IFS
5746 if test -z "$ac_cv_path_EGREP"; then
5747 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5748 fi
5749 else
5750 ac_cv_path_EGREP=$EGREP
5751 fi
5752
5753 fi
5754 fi
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5756 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5757 EGREP="$ac_cv_path_EGREP"
5758
5759
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5761 printf %s "checking for fgrep... " >&6; }
5762 if test ${ac_cv_path_FGREP+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else $as_nop
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5131 $as_echo_n "checking for fgrep... " >&6; }
5132 if ${ac_cv_path_FGREP+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
57665135 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
57675136 then ac_cv_path_FGREP="$GREP -F"
57685137 else
57735142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
57745143 do
57755144 IFS=$as_save_IFS
5776 case $as_dir in #(((
5777 '') as_dir=./ ;;
5778 */) ;;
5779 *) as_dir=$as_dir/ ;;
5780 esac
5781 for ac_prog in fgrep
5782 do
5145 test -z "$as_dir" && as_dir=.
5146 for ac_prog in fgrep; do
57835147 for ac_exec_ext in '' $ac_executable_extensions; do
5784 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5148 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
57855149 as_fn_executable_p "$ac_path_FGREP" || continue
57865150 # Check for GNU ac_path_FGREP and select it if it is found.
57875151 # Check for GNU $ac_path_FGREP
57905154 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
57915155 *)
57925156 ac_count=0
5793 printf %s 0123456789 >"conftest.in"
5157 $as_echo_n 0123456789 >"conftest.in"
57945158 while :
57955159 do
57965160 cat "conftest.in" "conftest.in" >"conftest.tmp"
57975161 mv "conftest.tmp" "conftest.in"
57985162 cp "conftest.in" "conftest.nl"
5799 printf "%s\n" 'FGREP' >> "conftest.nl"
5163 $as_echo 'FGREP' >> "conftest.nl"
58005164 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
58015165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
58025166 as_fn_arith $ac_count + 1 && ac_count=$as_val
58255189
58265190 fi
58275191 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5829 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5193 $as_echo "$ac_cv_path_FGREP" >&6; }
58305194 FGREP="$ac_cv_path_FGREP"
58315195
58325196
58515215
58525216
58535217 # Check whether --with-gnu-ld was given.
5854 if test ${with_gnu_ld+y}
5855 then :
5218 if test "${with_gnu_ld+set}" = set; then :
58565219 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5857 else $as_nop
5220 else
58585221 with_gnu_ld=no
58595222 fi
58605223
58615224 ac_prog=ld
58625225 if test yes = "$GCC"; then
58635226 # Check if gcc -print-prog-name=ld gives a path.
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5865 printf %s "checking for ld used by $CC... " >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5228 $as_echo_n "checking for ld used by $CC... " >&6; }
58665229 case $host in
58675230 *-*-mingw*)
58685231 # gcc leaves a trailing carriage return, which upsets mingw
58915254 ;;
58925255 esac
58935256 elif test yes = "$with_gnu_ld"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5895 printf %s "checking for GNU ld... " >&6; }
5896 else
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5898 printf %s "checking for non-GNU ld... " >&6; }
5899 fi
5900 if test ${lt_cv_path_LD+y}
5901 then :
5902 printf %s "(cached) " >&6
5903 else $as_nop
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5258 $as_echo_n "checking for GNU ld... " >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5261 $as_echo_n "checking for non-GNU ld... " >&6; }
5262 fi
5263 if ${lt_cv_path_LD+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
59045266 if test -z "$LD"; then
59055267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
59065268 for ac_dir in $PATH; do
59295291
59305292 LD=$lt_cv_path_LD
59315293 if test -n "$LD"; then
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5933 printf "%s\n" "$LD" >&6; }
5934 else
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 printf "%s\n" "no" >&6; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5295 $as_echo "$LD" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
59375299 fi
59385300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5940 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5941 if test ${lt_cv_prog_gnu_ld+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else $as_nop
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5303 if ${lt_cv_prog_gnu_ld+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
59455306 # I'd rather use --version here, but apparently some GNU lds only accept -v.
59465307 case `$LD -v 2>&1 </dev/null` in
59475308 *GNU* | *'with BFD'*)
59525313 ;;
59535314 esac
59545315 fi
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5956 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5317 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
59575318 with_gnu_ld=$lt_cv_prog_gnu_ld
59585319
59595320
59645325
59655326
59665327
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5968 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5969 if test ${lt_cv_path_NM+y}
5970 then :
5971 printf %s "(cached) " >&6
5972 else $as_nop
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5329 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5330 if ${lt_cv_path_NM+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
59735333 if test -n "$NM"; then
59745334 # Let the user override the test.
59755335 lt_cv_path_NM=$NM
60195379 : ${lt_cv_path_NM=no}
60205380 fi
60215381 fi
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6023 printf "%s\n" "$lt_cv_path_NM" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5383 $as_echo "$lt_cv_path_NM" >&6; }
60245384 if test no != "$lt_cv_path_NM"; then
60255385 NM=$lt_cv_path_NM
60265386 else
60335393 do
60345394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
60355395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 printf %s "checking for $ac_word... " >&6; }
6038 if test ${ac_cv_prog_DUMPBIN+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else $as_nop
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_DUMPBIN+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
60425401 if test -n "$DUMPBIN"; then
60435402 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
60445403 else
60465405 for as_dir in $PATH
60475406 do
60485407 IFS=$as_save_IFS
6049 case $as_dir in #(((
6050 '') as_dir=./ ;;
6051 */) ;;
6052 *) as_dir=$as_dir/ ;;
6053 esac
5408 test -z "$as_dir" && as_dir=.
60545409 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60565411 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60585413 break 2
60595414 fi
60605415 done
60655420 fi
60665421 DUMPBIN=$ac_cv_prog_DUMPBIN
60675422 if test -n "$DUMPBIN"; then
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6069 printf "%s\n" "$DUMPBIN" >&6; }
6070 else
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 printf "%s\n" "no" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5424 $as_echo "$DUMPBIN" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
60735428 fi
60745429
60755430
60825437 do
60835438 # Extract the first word of "$ac_prog", so it can be a program name with args.
60845439 set dummy $ac_prog; ac_word=$2
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 printf %s "checking for $ac_word... " >&6; }
6087 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6088 then :
6089 printf %s "(cached) " >&6
6090 else $as_nop
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
60915445 if test -n "$ac_ct_DUMPBIN"; then
60925446 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
60935447 else
60955449 for as_dir in $PATH
60965450 do
60975451 IFS=$as_save_IFS
6098 case $as_dir in #(((
6099 '') as_dir=./ ;;
6100 */) ;;
6101 *) as_dir=$as_dir/ ;;
6102 esac
5452 test -z "$as_dir" && as_dir=.
61035453 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61055455 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61075457 break 2
61085458 fi
61095459 done
61145464 fi
61155465 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
61165466 if test -n "$ac_ct_DUMPBIN"; then
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6118 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6119 else
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 printf "%s\n" "no" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5468 $as_echo "$ac_ct_DUMPBIN" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
61225472 fi
61235473
61245474
61305480 else
61315481 case $cross_compiling:$ac_tool_warned in
61325482 yes:)
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
61355485 ac_tool_warned=yes ;;
61365486 esac
61375487 DUMPBIN=$ac_ct_DUMPBIN
61595509
61605510
61615511
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6163 printf %s "checking the name lister ($NM) interface... " >&6; }
6164 if test ${lt_cv_nm_interface+y}
6165 then :
6166 printf %s "(cached) " >&6
6167 else $as_nop
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5513 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5514 if ${lt_cv_nm_interface+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
61685517 lt_cv_nm_interface="BSD nm"
61695518 echo "int some_variable = 0;" > conftest.$ac_ext
61705519 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
61805529 fi
61815530 rm -f conftest*
61825531 fi
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6184 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6185
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6187 printf %s "checking whether ln -s works... " >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5533 $as_echo "$lt_cv_nm_interface" >&6; }
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5536 $as_echo_n "checking whether ln -s works... " >&6; }
61885537 LN_S=$as_ln_s
61895538 if test "$LN_S" = "ln -s"; then
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6191 printf "%s\n" "yes" >&6; }
6192 else
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6194 printf "%s\n" "no, using $LN_S" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540 $as_echo "yes" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5543 $as_echo "no, using $LN_S" >&6; }
61955544 fi
61965545
61975546 # find the maximum length of command line arguments
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6199 printf %s "checking the maximum length of command line arguments... " >&6; }
6200 if test ${lt_cv_sys_max_cmd_len+y}
6201 then :
6202 printf %s "(cached) " >&6
6203 else $as_nop
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5548 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5549 if ${lt_cv_sys_max_cmd_len+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
62045552 i=0
62055553 teststring=ABCD
62065554
63275675 fi
63285676
63295677 if test -n "$lt_cv_sys_max_cmd_len"; then
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6331 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6332 else
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6334 printf "%s\n" "none" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5679 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5682 $as_echo "none" >&6; }
63355683 fi
63365684 max_cmd_len=$lt_cv_sys_max_cmd_len
63375685
63755723
63765724
63775725
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6379 printf %s "checking how to convert $build file names to $host format... " >&6; }
6380 if test ${lt_cv_to_host_file_cmd+y}
6381 then :
6382 printf %s "(cached) " >&6
6383 else $as_nop
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5727 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5728 if ${lt_cv_to_host_file_cmd+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
63845731 case $host in
63855732 *-*-mingw* )
63865733 case $build in
64165763 fi
64175764
64185765 to_host_file_cmd=$lt_cv_to_host_file_cmd
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6420 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6421
6422
6423
6424
6425
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6427 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6428 if test ${lt_cv_to_tool_file_cmd+y}
6429 then :
6430 printf %s "(cached) " >&6
6431 else $as_nop
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5767 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5768
5769
5770
5771
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5774 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5775 if ${lt_cv_to_tool_file_cmd+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
64325778 #assume ordinary cross tools, or native build.
64335779 lt_cv_to_tool_file_cmd=func_convert_file_noop
64345780 case $host in
64445790 fi
64455791
64465792 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6448 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6449
6450
6451
6452
6453
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6455 printf %s "checking for $LD option to reload object files... " >&6; }
6456 if test ${lt_cv_ld_reload_flag+y}
6457 then :
6458 printf %s "(cached) " >&6
6459 else $as_nop
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5794 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5795
5796
5797
5798
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5801 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5802 if ${lt_cv_ld_reload_flag+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
64605805 lt_cv_ld_reload_flag='-r'
64615806 fi
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6463 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5808 $as_echo "$lt_cv_ld_reload_flag" >&6; }
64645809 reload_flag=$lt_cv_ld_reload_flag
64655810 case $reload_flag in
64665811 "" | " "*) ;;
64935838 if test -n "$ac_tool_prefix"; then
64945839 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
64955840 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 printf %s "checking for $ac_word... " >&6; }
6498 if test ${ac_cv_prog_OBJDUMP+y}
6499 then :
6500 printf %s "(cached) " >&6
6501 else $as_nop
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_OBJDUMP+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
65025846 if test -n "$OBJDUMP"; then
65035847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
65045848 else
65065850 for as_dir in $PATH
65075851 do
65085852 IFS=$as_save_IFS
6509 case $as_dir in #(((
6510 '') as_dir=./ ;;
6511 */) ;;
6512 *) as_dir=$as_dir/ ;;
6513 esac
5853 test -z "$as_dir" && as_dir=.
65145854 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
65165856 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65185858 break 2
65195859 fi
65205860 done
65255865 fi
65265866 OBJDUMP=$ac_cv_prog_OBJDUMP
65275867 if test -n "$OBJDUMP"; then
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6529 printf "%s\n" "$OBJDUMP" >&6; }
6530 else
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 printf "%s\n" "no" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5869 $as_echo "$OBJDUMP" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
65335873 fi
65345874
65355875
65385878 ac_ct_OBJDUMP=$OBJDUMP
65395879 # Extract the first word of "objdump", so it can be a program name with args.
65405880 set dummy objdump; ac_word=$2
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 printf %s "checking for $ac_word... " >&6; }
6543 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6544 then :
6545 printf %s "(cached) " >&6
6546 else $as_nop
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
65475886 if test -n "$ac_ct_OBJDUMP"; then
65485887 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
65495888 else
65515890 for as_dir in $PATH
65525891 do
65535892 IFS=$as_save_IFS
6554 case $as_dir in #(((
6555 '') as_dir=./ ;;
6556 */) ;;
6557 *) as_dir=$as_dir/ ;;
6558 esac
5893 test -z "$as_dir" && as_dir=.
65595894 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
65615896 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65635898 break 2
65645899 fi
65655900 done
65705905 fi
65715906 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
65725907 if test -n "$ac_ct_OBJDUMP"; then
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6574 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6575 else
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 printf "%s\n" "no" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5909 $as_echo "$ac_ct_OBJDUMP" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
65785913 fi
65795914
65805915 if test "x$ac_ct_OBJDUMP" = x; then
65825917 else
65835918 case $cross_compiling:$ac_tool_warned in
65845919 yes:)
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
65875922 ac_tool_warned=yes ;;
65885923 esac
65895924 OBJDUMP=$ac_ct_OBJDUMP
66025937
66035938
66045939
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6606 printf %s "checking how to recognize dependent libraries... " >&6; }
6607 if test ${lt_cv_deplibs_check_method+y}
6608 then :
6609 printf %s "(cached) " >&6
6610 else $as_nop
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5942 if ${lt_cv_deplibs_check_method+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
66115945 lt_cv_file_magic_cmd='$MAGIC_CMD'
66125946 lt_cv_file_magic_test_file=
66135947 lt_cv_deplibs_check_method='unknown'
68036137 esac
68046138
68056139 fi
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6807 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6141 $as_echo "$lt_cv_deplibs_check_method" >&6; }
68086142
68096143 file_magic_glob=
68106144 want_nocaseglob=no
68486182 if test -n "$ac_tool_prefix"; then
68496183 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
68506184 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 printf %s "checking for $ac_word... " >&6; }
6853 if test ${ac_cv_prog_DLLTOOL+y}
6854 then :
6855 printf %s "(cached) " >&6
6856 else $as_nop
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_DLLTOOL+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
68576190 if test -n "$DLLTOOL"; then
68586191 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
68596192 else
68616194 for as_dir in $PATH
68626195 do
68636196 IFS=$as_save_IFS
6864 case $as_dir in #(((
6865 '') as_dir=./ ;;
6866 */) ;;
6867 *) as_dir=$as_dir/ ;;
6868 esac
6197 test -z "$as_dir" && as_dir=.
68696198 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68716200 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68736202 break 2
68746203 fi
68756204 done
68806209 fi
68816210 DLLTOOL=$ac_cv_prog_DLLTOOL
68826211 if test -n "$DLLTOOL"; then
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6884 printf "%s\n" "$DLLTOOL" >&6; }
6885 else
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 printf "%s\n" "no" >&6; }
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6213 $as_echo "$DLLTOOL" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
68886217 fi
68896218
68906219
68936222 ac_ct_DLLTOOL=$DLLTOOL
68946223 # Extract the first word of "dlltool", so it can be a program name with args.
68956224 set dummy dlltool; ac_word=$2
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 printf %s "checking for $ac_word... " >&6; }
6898 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6899 then :
6900 printf %s "(cached) " >&6
6901 else $as_nop
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
69026230 if test -n "$ac_ct_DLLTOOL"; then
69036231 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
69046232 else
69066234 for as_dir in $PATH
69076235 do
69086236 IFS=$as_save_IFS
6909 case $as_dir in #(((
6910 '') as_dir=./ ;;
6911 */) ;;
6912 *) as_dir=$as_dir/ ;;
6913 esac
6237 test -z "$as_dir" && as_dir=.
69146238 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69166240 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69186242 break 2
69196243 fi
69206244 done
69256249 fi
69266250 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
69276251 if test -n "$ac_ct_DLLTOOL"; then
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6929 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6930 else
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 printf "%s\n" "no" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6253 $as_echo "$ac_ct_DLLTOOL" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
69336257 fi
69346258
69356259 if test "x$ac_ct_DLLTOOL" = x; then
69376261 else
69386262 case $cross_compiling:$ac_tool_warned in
69396263 yes:)
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
69426266 ac_tool_warned=yes ;;
69436267 esac
69446268 DLLTOOL=$ac_ct_DLLTOOL
69586282
69596283
69606284
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6962 printf %s "checking how to associate runtime and link libraries... " >&6; }
6963 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6964 then :
6965 printf %s "(cached) " >&6
6966 else $as_nop
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6286 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6287 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
69676290 lt_cv_sharedlib_from_linklib_cmd='unknown'
69686291
69696292 case $host_os in
69866309 esac
69876310
69886311 fi
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6990 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6313 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
69916314 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
69926315 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
69936316
70026325 do
70036326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
70046327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 printf %s "checking for $ac_word... " >&6; }
7007 if test ${ac_cv_prog_AR+y}
7008 then :
7009 printf %s "(cached) " >&6
7010 else $as_nop
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_AR+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
70116333 if test -n "$AR"; then
70126334 ac_cv_prog_AR="$AR" # Let the user override the test.
70136335 else
70156337 for as_dir in $PATH
70166338 do
70176339 IFS=$as_save_IFS
7018 case $as_dir in #(((
7019 '') as_dir=./ ;;
7020 */) ;;
7021 *) as_dir=$as_dir/ ;;
7022 esac
6340 test -z "$as_dir" && as_dir=.
70236341 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70256343 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70276345 break 2
70286346 fi
70296347 done
70346352 fi
70356353 AR=$ac_cv_prog_AR
70366354 if test -n "$AR"; then
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7038 printf "%s\n" "$AR" >&6; }
7039 else
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 printf "%s\n" "no" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6356 $as_echo "$AR" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
70426360 fi
70436361
70446362
70516369 do
70526370 # Extract the first word of "$ac_prog", so it can be a program name with args.
70536371 set dummy $ac_prog; ac_word=$2
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 printf %s "checking for $ac_word... " >&6; }
7056 if test ${ac_cv_prog_ac_ct_AR+y}
7057 then :
7058 printf %s "(cached) " >&6
7059 else $as_nop
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
70606377 if test -n "$ac_ct_AR"; then
70616378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
70626379 else
70646381 for as_dir in $PATH
70656382 do
70666383 IFS=$as_save_IFS
7067 case $as_dir in #(((
7068 '') as_dir=./ ;;
7069 */) ;;
7070 *) as_dir=$as_dir/ ;;
7071 esac
6384 test -z "$as_dir" && as_dir=.
70726385 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70746387 ac_cv_prog_ac_ct_AR="$ac_prog"
7075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70766389 break 2
70776390 fi
70786391 done
70836396 fi
70846397 ac_ct_AR=$ac_cv_prog_ac_ct_AR
70856398 if test -n "$ac_ct_AR"; then
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7087 printf "%s\n" "$ac_ct_AR" >&6; }
7088 else
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 printf "%s\n" "no" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6400 $as_echo "$ac_ct_AR" >&6; }
6401 else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
70916404 fi
70926405
70936406
70996412 else
71006413 case $cross_compiling:$ac_tool_warned in
71016414 yes:)
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
71046417 ac_tool_warned=yes ;;
71056418 esac
71066419 AR=$ac_ct_AR
71206433
71216434
71226435
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7124 printf %s "checking for archiver @FILE support... " >&6; }
7125 if test ${lt_cv_ar_at_file+y}
7126 then :
7127 printf %s "(cached) " >&6
7128 else $as_nop
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6437 $as_echo_n "checking for archiver @FILE support... " >&6; }
6438 if ${lt_cv_ar_at_file+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
71296441 lt_cv_ar_at_file=no
71306442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71316443 /* end confdefs.h. */
71326444
71336445 int
7134 main (void)
6446 main ()
71356447 {
71366448
71376449 ;
71386450 return 0;
71396451 }
71406452 _ACEOF
7141 if ac_fn_c_try_compile "$LINENO"
7142 then :
6453 if ac_fn_c_try_compile "$LINENO"; then :
71436454 echo conftest.$ac_objext > conftest.lst
71446455 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
71456456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
71466457 (eval $lt_ar_try) 2>&5
71476458 ac_status=$?
7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71496460 test $ac_status = 0; }
71506461 if test 0 -eq "$ac_status"; then
71516462 # Ensure the archiver fails upon bogus file names.
71536464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
71546465 (eval $lt_ar_try) 2>&5
71556466 ac_status=$?
7156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71576468 test $ac_status = 0; }
71586469 if test 0 -ne "$ac_status"; then
71596470 lt_cv_ar_at_file=@
71626473 rm -f conftest.* libconftest.a
71636474
71646475 fi
7165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7166
7167 fi
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7169 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6480 $as_echo "$lt_cv_ar_at_file" >&6; }
71706481
71716482 if test no = "$lt_cv_ar_at_file"; then
71726483 archiver_list_spec=
71836494 if test -n "$ac_tool_prefix"; then
71846495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
71856496 set dummy ${ac_tool_prefix}strip; ac_word=$2
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 printf %s "checking for $ac_word... " >&6; }
7188 if test ${ac_cv_prog_STRIP+y}
7189 then :
7190 printf %s "(cached) " >&6
7191 else $as_nop
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_STRIP+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
71926502 if test -n "$STRIP"; then
71936503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
71946504 else
71966506 for as_dir in $PATH
71976507 do
71986508 IFS=$as_save_IFS
7199 case $as_dir in #(((
7200 '') as_dir=./ ;;
7201 */) ;;
7202 *) as_dir=$as_dir/ ;;
7203 esac
6509 test -z "$as_dir" && as_dir=.
72046510 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72066512 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72086514 break 2
72096515 fi
72106516 done
72156521 fi
72166522 STRIP=$ac_cv_prog_STRIP
72176523 if test -n "$STRIP"; then
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7219 printf "%s\n" "$STRIP" >&6; }
7220 else
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 printf "%s\n" "no" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6525 $as_echo "$STRIP" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
72236529 fi
72246530
72256531
72286534 ac_ct_STRIP=$STRIP
72296535 # Extract the first word of "strip", so it can be a program name with args.
72306536 set dummy strip; ac_word=$2
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 printf %s "checking for $ac_word... " >&6; }
7233 if test ${ac_cv_prog_ac_ct_STRIP+y}
7234 then :
7235 printf %s "(cached) " >&6
7236 else $as_nop
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
72376542 if test -n "$ac_ct_STRIP"; then
72386543 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
72396544 else
72416546 for as_dir in $PATH
72426547 do
72436548 IFS=$as_save_IFS
7244 case $as_dir in #(((
7245 '') as_dir=./ ;;
7246 */) ;;
7247 *) as_dir=$as_dir/ ;;
7248 esac
6549 test -z "$as_dir" && as_dir=.
72496550 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72516552 ac_cv_prog_ac_ct_STRIP="strip"
7252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72536554 break 2
72546555 fi
72556556 done
72606561 fi
72616562 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
72626563 if test -n "$ac_ct_STRIP"; then
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7264 printf "%s\n" "$ac_ct_STRIP" >&6; }
7265 else
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 printf "%s\n" "no" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6565 $as_echo "$ac_ct_STRIP" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
72686569 fi
72696570
72706571 if test "x$ac_ct_STRIP" = x; then
72726573 else
72736574 case $cross_compiling:$ac_tool_warned in
72746575 yes:)
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72776578 ac_tool_warned=yes ;;
72786579 esac
72796580 STRIP=$ac_ct_STRIP
72926593 if test -n "$ac_tool_prefix"; then
72936594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
72946595 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 printf %s "checking for $ac_word... " >&6; }
7297 if test ${ac_cv_prog_RANLIB+y}
7298 then :
7299 printf %s "(cached) " >&6
7300 else $as_nop
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_RANLIB+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
73016601 if test -n "$RANLIB"; then
73026602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
73036603 else
73056605 for as_dir in $PATH
73066606 do
73076607 IFS=$as_save_IFS
7308 case $as_dir in #(((
7309 '') as_dir=./ ;;
7310 */) ;;
7311 *) as_dir=$as_dir/ ;;
7312 esac
6608 test -z "$as_dir" && as_dir=.
73136609 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73156611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73176613 break 2
73186614 fi
73196615 done
73246620 fi
73256621 RANLIB=$ac_cv_prog_RANLIB
73266622 if test -n "$RANLIB"; then
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7328 printf "%s\n" "$RANLIB" >&6; }
7329 else
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 printf "%s\n" "no" >&6; }
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6624 $as_echo "$RANLIB" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
73326628 fi
73336629
73346630
73376633 ac_ct_RANLIB=$RANLIB
73386634 # Extract the first word of "ranlib", so it can be a program name with args.
73396635 set dummy ranlib; ac_word=$2
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 printf %s "checking for $ac_word... " >&6; }
7342 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7343 then :
7344 printf %s "(cached) " >&6
7345 else $as_nop
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
73466641 if test -n "$ac_ct_RANLIB"; then
73476642 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
73486643 else
73506645 for as_dir in $PATH
73516646 do
73526647 IFS=$as_save_IFS
7353 case $as_dir in #(((
7354 '') as_dir=./ ;;
7355 */) ;;
7356 *) as_dir=$as_dir/ ;;
7357 esac
6648 test -z "$as_dir" && as_dir=.
73586649 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73606651 ac_cv_prog_ac_ct_RANLIB="ranlib"
7361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73626653 break 2
73636654 fi
73646655 done
73696660 fi
73706661 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
73716662 if test -n "$ac_ct_RANLIB"; then
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7373 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7374 else
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 printf "%s\n" "no" >&6; }
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6664 $as_echo "$ac_ct_RANLIB" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
73776668 fi
73786669
73796670 if test "x$ac_ct_RANLIB" = x; then
73816672 else
73826673 case $cross_compiling:$ac_tool_warned in
73836674 yes:)
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73866677 ac_tool_warned=yes ;;
73876678 esac
73886679 RANLIB=$ac_ct_RANLIB
74716762
74726763
74736764 # Check for command to grab the raw symbol name followed by C symbol from nm.
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7475 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7476 if test ${lt_cv_sys_global_symbol_pipe+y}
7477 then :
7478 printf %s "(cached) " >&6
7479 else $as_nop
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6766 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6767 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
74806770
74816771 # These are sane defaults that work on at least a few old systems.
74826772 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
76286918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
76296919 (eval $ac_compile) 2>&5
76306920 ac_status=$?
7631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76326922 test $ac_status = 0; }; then
76336923 # Now try to grab the symbols.
76346924 nlist=conftest.nm
76356925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
76366926 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
76376927 ac_status=$?
7638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76396929 test $ac_status = 0; } && test -s "$nlist"; then
76406930 # Try sorting and uniquifying the output.
76416931 if sort "$nlist" | uniq > "$nlist"T; then
77046994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
77056995 (eval $ac_link) 2>&5
77066996 ac_status=$?
7707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77086998 test $ac_status = 0; } && test -s conftest$ac_exeext; then
77096999 pipe_works=yes
77107000 fi
77397029 lt_cv_sys_global_symbol_to_cdecl=
77407030 fi
77417031 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7743 printf "%s\n" "failed" >&6; }
7744 else
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7746 printf "%s\n" "ok" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7033 $as_echo "failed" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7036 $as_echo "ok" >&6; }
77477037 fi
77487038
77497039 # Response file support.
77897079
77907080
77917081
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7793 printf %s "checking for sysroot... " >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7083 $as_echo_n "checking for sysroot... " >&6; }
77947084
77957085 # Check whether --with-sysroot was given.
7796 if test ${with_sysroot+y}
7797 then :
7086 if test "${with_sysroot+set}" = set; then :
77987087 withval=$with_sysroot;
7799 else $as_nop
7088 else
78007089 with_sysroot=no
78017090 fi
78027091
78147103 no|'')
78157104 ;; #(
78167105 *)
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7818 printf "%s\n" "$with_sysroot" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7107 $as_echo "$with_sysroot" >&6; }
78197108 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
78207109 ;;
78217110 esac
78227111
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7824 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7825
7826
7827
7828
7829
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7831 printf %s "checking for a working dd... " >&6; }
7832 if test ${ac_cv_path_lt_DD+y}
7833 then :
7834 printf %s "(cached) " >&6
7835 else $as_nop
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7113 $as_echo "${lt_sysroot:-no}" >&6; }
7114
7115
7116
7117
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7120 $as_echo_n "checking for a working dd... " >&6; }
7121 if ${ac_cv_path_lt_DD+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
78367124 printf 0123456789abcdef0123456789abcdef >conftest.i
78377125 cat conftest.i conftest.i >conftest2.i
78387126 : ${lt_DD:=$DD}
78437131 for as_dir in $PATH
78447132 do
78457133 IFS=$as_save_IFS
7846 case $as_dir in #(((
7847 '') as_dir=./ ;;
7848 */) ;;
7849 *) as_dir=$as_dir/ ;;
7850 esac
7851 for ac_prog in dd
7852 do
7134 test -z "$as_dir" && as_dir=.
7135 for ac_prog in dd; do
78537136 for ac_exec_ext in '' $ac_executable_extensions; do
7854 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7137 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
78557138 as_fn_executable_p "$ac_path_lt_DD" || continue
78567139 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
78577140 cmp -s conftest.i conftest.out \
78717154
78727155 rm -f conftest.i conftest2.i conftest.out
78737156 fi
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7875 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7876
7877
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7879 printf %s "checking how to truncate binary pipes... " >&6; }
7880 if test ${lt_cv_truncate_bin+y}
7881 then :
7882 printf %s "(cached) " >&6
7883 else $as_nop
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7158 $as_echo "$ac_cv_path_lt_DD" >&6; }
7159
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7162 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7163 if ${lt_cv_truncate_bin+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
78847166 printf 0123456789abcdef0123456789abcdef >conftest.i
78857167 cat conftest.i conftest.i >conftest2.i
78867168 lt_cv_truncate_bin=
78917173 rm -f conftest.i conftest2.i conftest.out
78927174 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
78937175 fi
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7895 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7177 $as_echo "$lt_cv_truncate_bin" >&6; }
78967178
78977179
78987180
79157197 }
79167198
79177199 # Check whether --enable-libtool-lock was given.
7918 if test ${enable_libtool_lock+y}
7919 then :
7200 if test "${enable_libtool_lock+set}" = set; then :
79207201 enableval=$enable_libtool_lock;
79217202 fi
79227203
79327213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79337214 (eval $ac_compile) 2>&5
79347215 ac_status=$?
7935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79367217 test $ac_status = 0; }; then
79377218 case `/usr/bin/file conftest.$ac_objext` in
79387219 *ELF-32*)
79527233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79537234 (eval $ac_compile) 2>&5
79547235 ac_status=$?
7955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79567237 test $ac_status = 0; }; then
79577238 if test yes = "$lt_cv_prog_gnu_ld"; then
79587239 case `/usr/bin/file conftest.$ac_objext` in
79907271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79917272 (eval $ac_compile) 2>&5
79927273 ac_status=$?
7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79947275 test $ac_status = 0; }; then
79957276 emul=elf
79967277 case `/usr/bin/file conftest.$ac_objext` in
80317312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
80327313 (eval $ac_compile) 2>&5
80337314 ac_status=$?
8034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80357316 test $ac_status = 0; }; then
80367317 case `/usr/bin/file conftest.o` in
80377318 *32-bit*)
80947375 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
80957376 SAVE_CFLAGS=$CFLAGS
80967377 CFLAGS="$CFLAGS -belf"
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8098 printf %s "checking whether the C compiler needs -belf... " >&6; }
8099 if test ${lt_cv_cc_needs_belf+y}
8100 then :
8101 printf %s "(cached) " >&6
8102 else $as_nop
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7379 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7380 if ${lt_cv_cc_needs_belf+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
81037383 ac_ext=c
81047384 ac_cpp='$CPP $CPPFLAGS'
81057385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
81107390 /* end confdefs.h. */
81117391
81127392 int
8113 main (void)
7393 main ()
81147394 {
81157395
81167396 ;
81177397 return 0;
81187398 }
81197399 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"
8121 then :
7400 if ac_fn_c_try_link "$LINENO"; then :
81227401 lt_cv_cc_needs_belf=yes
8123 else $as_nop
7402 else
81247403 lt_cv_cc_needs_belf=no
81257404 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7405 rm -f core conftest.err conftest.$ac_objext \
81277406 conftest$ac_exeext conftest.$ac_ext
81287407 ac_ext=c
81297408 ac_cpp='$CPP $CPPFLAGS'
81327411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
81337412
81347413 fi
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8136 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7415 $as_echo "$lt_cv_cc_needs_belf" >&6; }
81377416 if test yes != "$lt_cv_cc_needs_belf"; then
81387417 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
81397418 CFLAGS=$SAVE_CFLAGS
81467425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
81477426 (eval $ac_compile) 2>&5
81487427 ac_status=$?
8149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81507429 test $ac_status = 0; }; then
81517430 case `/usr/bin/file conftest.o` in
81527431 *64-bit*)
81837462 if test -n "$ac_tool_prefix"; then
81847463 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
81857464 set dummy ${ac_tool_prefix}mt; ac_word=$2
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 printf %s "checking for $ac_word... " >&6; }
8188 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8189 then :
8190 printf %s "(cached) " >&6
8191 else $as_nop
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
81927470 if test -n "$MANIFEST_TOOL"; then
81937471 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
81947472 else
81967474 for as_dir in $PATH
81977475 do
81987476 IFS=$as_save_IFS
8199 case $as_dir in #(((
8200 '') as_dir=./ ;;
8201 */) ;;
8202 *) as_dir=$as_dir/ ;;
8203 esac
7477 test -z "$as_dir" && as_dir=.
82047478 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82067480 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82087482 break 2
82097483 fi
82107484 done
82157489 fi
82167490 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
82177491 if test -n "$MANIFEST_TOOL"; then
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8219 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8220 else
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 printf "%s\n" "no" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7493 $as_echo "$MANIFEST_TOOL" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
82237497 fi
82247498
82257499
82287502 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
82297503 # Extract the first word of "mt", so it can be a program name with args.
82307504 set dummy mt; ac_word=$2
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 printf %s "checking for $ac_word... " >&6; }
8233 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8234 then :
8235 printf %s "(cached) " >&6
8236 else $as_nop
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
82377510 if test -n "$ac_ct_MANIFEST_TOOL"; then
82387511 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
82397512 else
82417514 for as_dir in $PATH
82427515 do
82437516 IFS=$as_save_IFS
8244 case $as_dir in #(((
8245 '') as_dir=./ ;;
8246 */) ;;
8247 *) as_dir=$as_dir/ ;;
8248 esac
7517 test -z "$as_dir" && as_dir=.
82497518 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82517520 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82537522 break 2
82547523 fi
82557524 done
82607529 fi
82617530 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
82627531 if test -n "$ac_ct_MANIFEST_TOOL"; then
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8264 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8265 else
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 printf "%s\n" "no" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7533 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
82687537 fi
82697538
82707539 if test "x$ac_ct_MANIFEST_TOOL" = x; then
82727541 else
82737542 case $cross_compiling:$ac_tool_warned in
82747543 yes:)
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
82777546 ac_tool_warned=yes ;;
82787547 esac
82797548 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
82837552 fi
82847553
82857554 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8287 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8288 if test ${lt_cv_path_mainfest_tool+y}
8289 then :
8290 printf %s "(cached) " >&6
8291 else $as_nop
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7556 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7557 if ${lt_cv_path_mainfest_tool+:} false; then :
7558 $as_echo_n "(cached) " >&6
7559 else
82927560 lt_cv_path_mainfest_tool=no
82937561 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
82947562 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
82987566 fi
82997567 rm -f conftest*
83007568 fi
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8302 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7570 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
83037571 if test yes != "$lt_cv_path_mainfest_tool"; then
83047572 MANIFEST_TOOL=:
83057573 fi
83147582 if test -n "$ac_tool_prefix"; then
83157583 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
83167584 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 printf %s "checking for $ac_word... " >&6; }
8319 if test ${ac_cv_prog_DSYMUTIL+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else $as_nop
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
83237590 if test -n "$DSYMUTIL"; then
83247591 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
83257592 else
83277594 for as_dir in $PATH
83287595 do
83297596 IFS=$as_save_IFS
8330 case $as_dir in #(((
8331 '') as_dir=./ ;;
8332 */) ;;
8333 *) as_dir=$as_dir/ ;;
8334 esac
7597 test -z "$as_dir" && as_dir=.
83357598 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83377600 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
83397602 break 2
83407603 fi
83417604 done
83467609 fi
83477610 DSYMUTIL=$ac_cv_prog_DSYMUTIL
83487611 if test -n "$DSYMUTIL"; then
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8350 printf "%s\n" "$DSYMUTIL" >&6; }
8351 else
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 printf "%s\n" "no" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7613 $as_echo "$DSYMUTIL" >&6; }
7614 else
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
83547617 fi
83557618
83567619
83597622 ac_ct_DSYMUTIL=$DSYMUTIL
83607623 # Extract the first word of "dsymutil", so it can be a program name with args.
83617624 set dummy dsymutil; ac_word=$2
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 printf %s "checking for $ac_word... " >&6; }
8364 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else $as_nop
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
83687630 if test -n "$ac_ct_DSYMUTIL"; then
83697631 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
83707632 else
83727634 for as_dir in $PATH
83737635 do
83747636 IFS=$as_save_IFS
8375 case $as_dir in #(((
8376 '') as_dir=./ ;;
8377 */) ;;
8378 *) as_dir=$as_dir/ ;;
8379 esac
7637 test -z "$as_dir" && as_dir=.
83807638 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83827640 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
83847642 break 2
83857643 fi
83867644 done
83917649 fi
83927650 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
83937651 if test -n "$ac_ct_DSYMUTIL"; then
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8395 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8396 else
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 printf "%s\n" "no" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7653 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
83997657 fi
84007658
84017659 if test "x$ac_ct_DSYMUTIL" = x; then
84037661 else
84047662 case $cross_compiling:$ac_tool_warned in
84057663 yes:)
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
84087666 ac_tool_warned=yes ;;
84097667 esac
84107668 DSYMUTIL=$ac_ct_DSYMUTIL
84167674 if test -n "$ac_tool_prefix"; then
84177675 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
84187676 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 printf %s "checking for $ac_word... " >&6; }
8421 if test ${ac_cv_prog_NMEDIT+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else $as_nop
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if ${ac_cv_prog_NMEDIT+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
84257682 if test -n "$NMEDIT"; then
84267683 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
84277684 else
84297686 for as_dir in $PATH
84307687 do
84317688 IFS=$as_save_IFS
8432 case $as_dir in #(((
8433 '') as_dir=./ ;;
8434 */) ;;
8435 *) as_dir=$as_dir/ ;;
8436 esac
7689 test -z "$as_dir" && as_dir=.
84377690 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
84397692 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84417694 break 2
84427695 fi
84437696 done
84487701 fi
84497702 NMEDIT=$ac_cv_prog_NMEDIT
84507703 if test -n "$NMEDIT"; then
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8452 printf "%s\n" "$NMEDIT" >&6; }
8453 else
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 printf "%s\n" "no" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7705 $as_echo "$NMEDIT" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
84567709 fi
84577710
84587711
84617714 ac_ct_NMEDIT=$NMEDIT
84627715 # Extract the first word of "nmedit", so it can be a program name with args.
84637716 set dummy nmedit; ac_word=$2
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 printf %s "checking for $ac_word... " >&6; }
8466 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8467 then :
8468 printf %s "(cached) " >&6
8469 else $as_nop
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
84707722 if test -n "$ac_ct_NMEDIT"; then
84717723 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
84727724 else
84747726 for as_dir in $PATH
84757727 do
84767728 IFS=$as_save_IFS
8477 case $as_dir in #(((
8478 '') as_dir=./ ;;
8479 */) ;;
8480 *) as_dir=$as_dir/ ;;
8481 esac
7729 test -z "$as_dir" && as_dir=.
84827730 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
84847732 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84867734 break 2
84877735 fi
84887736 done
84937741 fi
84947742 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
84957743 if test -n "$ac_ct_NMEDIT"; then
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8497 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8498 else
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 printf "%s\n" "no" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7745 $as_echo "$ac_ct_NMEDIT" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
85017749 fi
85027750
85037751 if test "x$ac_ct_NMEDIT" = x; then
85057753 else
85067754 case $cross_compiling:$ac_tool_warned in
85077755 yes:)
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
85107758 ac_tool_warned=yes ;;
85117759 esac
85127760 NMEDIT=$ac_ct_NMEDIT
85187766 if test -n "$ac_tool_prefix"; then
85197767 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
85207768 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 printf %s "checking for $ac_word... " >&6; }
8523 if test ${ac_cv_prog_LIPO+y}
8524 then :
8525 printf %s "(cached) " >&6
8526 else $as_nop
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_prog_LIPO+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
85277774 if test -n "$LIPO"; then
85287775 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
85297776 else
85317778 for as_dir in $PATH
85327779 do
85337780 IFS=$as_save_IFS
8534 case $as_dir in #(((
8535 '') as_dir=./ ;;
8536 */) ;;
8537 *) as_dir=$as_dir/ ;;
8538 esac
7781 test -z "$as_dir" && as_dir=.
85397782 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
85417784 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
85437786 break 2
85447787 fi
85457788 done
85507793 fi
85517794 LIPO=$ac_cv_prog_LIPO
85527795 if test -n "$LIPO"; then
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8554 printf "%s\n" "$LIPO" >&6; }
8555 else
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 printf "%s\n" "no" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7797 $as_echo "$LIPO" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
85587801 fi
85597802
85607803
85637806 ac_ct_LIPO=$LIPO
85647807 # Extract the first word of "lipo", so it can be a program name with args.
85657808 set dummy lipo; ac_word=$2
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 printf %s "checking for $ac_word... " >&6; }
8568 if test ${ac_cv_prog_ac_ct_LIPO+y}
8569 then :
8570 printf %s "(cached) " >&6
8571 else $as_nop
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
85727814 if test -n "$ac_ct_LIPO"; then
85737815 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
85747816 else
85767818 for as_dir in $PATH
85777819 do
85787820 IFS=$as_save_IFS
8579 case $as_dir in #(((
8580 '') as_dir=./ ;;
8581 */) ;;
8582 *) as_dir=$as_dir/ ;;
8583 esac
7821 test -z "$as_dir" && as_dir=.
85847822 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
85867824 ac_cv_prog_ac_ct_LIPO="lipo"
8587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
85887826 break 2
85897827 fi
85907828 done
85957833 fi
85967834 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
85977835 if test -n "$ac_ct_LIPO"; then
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8599 printf "%s\n" "$ac_ct_LIPO" >&6; }
8600 else
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 printf "%s\n" "no" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7837 $as_echo "$ac_ct_LIPO" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
86037841 fi
86047842
86057843 if test "x$ac_ct_LIPO" = x; then
86077845 else
86087846 case $cross_compiling:$ac_tool_warned in
86097847 yes:)
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
86127850 ac_tool_warned=yes ;;
86137851 esac
86147852 LIPO=$ac_ct_LIPO
86207858 if test -n "$ac_tool_prefix"; then
86217859 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
86227860 set dummy ${ac_tool_prefix}otool; ac_word=$2
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 printf %s "checking for $ac_word... " >&6; }
8625 if test ${ac_cv_prog_OTOOL+y}
8626 then :
8627 printf %s "(cached) " >&6
8628 else $as_nop
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_prog_OTOOL+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
86297866 if test -n "$OTOOL"; then
86307867 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
86317868 else
86337870 for as_dir in $PATH
86347871 do
86357872 IFS=$as_save_IFS
8636 case $as_dir in #(((
8637 '') as_dir=./ ;;
8638 */) ;;
8639 *) as_dir=$as_dir/ ;;
8640 esac
7873 test -z "$as_dir" && as_dir=.
86417874 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
86437876 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86457878 break 2
86467879 fi
86477880 done
86527885 fi
86537886 OTOOL=$ac_cv_prog_OTOOL
86547887 if test -n "$OTOOL"; then
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8656 printf "%s\n" "$OTOOL" >&6; }
8657 else
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 printf "%s\n" "no" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7889 $as_echo "$OTOOL" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
86607893 fi
86617894
86627895
86657898 ac_ct_OTOOL=$OTOOL
86667899 # Extract the first word of "otool", so it can be a program name with args.
86677900 set dummy otool; ac_word=$2
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 printf %s "checking for $ac_word... " >&6; }
8670 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8671 then :
8672 printf %s "(cached) " >&6
8673 else $as_nop
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
86747906 if test -n "$ac_ct_OTOOL"; then
86757907 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
86767908 else
86787910 for as_dir in $PATH
86797911 do
86807912 IFS=$as_save_IFS
8681 case $as_dir in #(((
8682 '') as_dir=./ ;;
8683 */) ;;
8684 *) as_dir=$as_dir/ ;;
8685 esac
7913 test -z "$as_dir" && as_dir=.
86867914 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
86887916 ac_cv_prog_ac_ct_OTOOL="otool"
8689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86907918 break 2
86917919 fi
86927920 done
86977925 fi
86987926 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
86997927 if test -n "$ac_ct_OTOOL"; then
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8701 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8702 else
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 printf "%s\n" "no" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7929 $as_echo "$ac_ct_OTOOL" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
87057933 fi
87067934
87077935 if test "x$ac_ct_OTOOL" = x; then
87097937 else
87107938 case $cross_compiling:$ac_tool_warned in
87117939 yes:)
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
87147942 ac_tool_warned=yes ;;
87157943 esac
87167944 OTOOL=$ac_ct_OTOOL
87227950 if test -n "$ac_tool_prefix"; then
87237951 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
87247952 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 printf %s "checking for $ac_word... " >&6; }
8727 if test ${ac_cv_prog_OTOOL64+y}
8728 then :
8729 printf %s "(cached) " >&6
8730 else $as_nop
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if ${ac_cv_prog_OTOOL64+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
87317958 if test -n "$OTOOL64"; then
87327959 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
87337960 else
87357962 for as_dir in $PATH
87367963 do
87377964 IFS=$as_save_IFS
8738 case $as_dir in #(((
8739 '') as_dir=./ ;;
8740 */) ;;
8741 *) as_dir=$as_dir/ ;;
8742 esac
7965 test -z "$as_dir" && as_dir=.
87437966 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87457968 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
87477970 break 2
87487971 fi
87497972 done
87547977 fi
87557978 OTOOL64=$ac_cv_prog_OTOOL64
87567979 if test -n "$OTOOL64"; then
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8758 printf "%s\n" "$OTOOL64" >&6; }
8759 else
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 printf "%s\n" "no" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7981 $as_echo "$OTOOL64" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
87627985 fi
87637986
87647987
87677990 ac_ct_OTOOL64=$OTOOL64
87687991 # Extract the first word of "otool64", so it can be a program name with args.
87697992 set dummy otool64; ac_word=$2
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 printf %s "checking for $ac_word... " >&6; }
8772 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8773 then :
8774 printf %s "(cached) " >&6
8775 else $as_nop
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
87767998 if test -n "$ac_ct_OTOOL64"; then
87777999 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
87788000 else
87808002 for as_dir in $PATH
87818003 do
87828004 IFS=$as_save_IFS
8783 case $as_dir in #(((
8784 '') as_dir=./ ;;
8785 */) ;;
8786 *) as_dir=$as_dir/ ;;
8787 esac
8005 test -z "$as_dir" && as_dir=.
87888006 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87908008 ac_cv_prog_ac_ct_OTOOL64="otool64"
8791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
87928010 break 2
87938011 fi
87948012 done
87998017 fi
88008018 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
88018019 if test -n "$ac_ct_OTOOL64"; then
8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8803 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8804 else
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 printf "%s\n" "no" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8021 $as_echo "$ac_ct_OTOOL64" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
88078025 fi
88088026
88098027 if test "x$ac_ct_OTOOL64" = x; then
88118029 else
88128030 case $cross_compiling:$ac_tool_warned in
88138031 yes:)
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88168034 ac_tool_warned=yes ;;
88178035 esac
88188036 OTOOL64=$ac_ct_OTOOL64
88478065
88488066
88498067
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8851 printf %s "checking for -single_module linker flag... " >&6; }
8852 if test ${lt_cv_apple_cc_single_mod+y}
8853 then :
8854 printf %s "(cached) " >&6
8855 else $as_nop
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8069 $as_echo_n "checking for -single_module linker flag... " >&6; }
8070 if ${lt_cv_apple_cc_single_mod+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
88568073 lt_cv_apple_cc_single_mod=no
88578074 if test -z "$LT_MULTI_MODULE"; then
88588075 # By default we will add the -single_module flag. You can override
88818098 rm -f conftest.*
88828099 fi
88838100 fi
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8885 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8886
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8888 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8889 if test ${lt_cv_ld_exported_symbols_list+y}
8890 then :
8891 printf %s "(cached) " >&6
8892 else $as_nop
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8102 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8105 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8106 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
88938109 lt_cv_ld_exported_symbols_list=no
88948110 save_LDFLAGS=$LDFLAGS
88958111 echo "_main" > conftest.sym
88988114 /* end confdefs.h. */
88998115
89008116 int
8901 main (void)
8117 main ()
89028118 {
89038119
89048120 ;
89058121 return 0;
89068122 }
89078123 _ACEOF
8908 if ac_fn_c_try_link "$LINENO"
8909 then :
8124 if ac_fn_c_try_link "$LINENO"; then :
89108125 lt_cv_ld_exported_symbols_list=yes
8911 else $as_nop
8126 else
89128127 lt_cv_ld_exported_symbols_list=no
89138128 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8129 rm -f core conftest.err conftest.$ac_objext \
89158130 conftest$ac_exeext conftest.$ac_ext
89168131 LDFLAGS=$save_LDFLAGS
89178132
89188133 fi
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8920 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8921
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8923 printf %s "checking for -force_load linker flag... " >&6; }
8924 if test ${lt_cv_ld_force_load+y}
8925 then :
8926 printf %s "(cached) " >&6
8927 else $as_nop
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8135 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8138 $as_echo_n "checking for -force_load linker flag... " >&6; }
8139 if ${lt_cv_ld_force_load+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
89288142 lt_cv_ld_force_load=no
89298143 cat > conftest.c << _LT_EOF
89308144 int forced_loaded() { return 2;}
89528166 rm -rf conftest.dSYM
89538167
89548168 fi
8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8956 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8170 $as_echo "$lt_cv_ld_force_load" >&6; }
89578171 case $host_os in
89588172 rhapsody* | darwin1.[012])
89598173 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
90248238 esac
90258239 }
90268240
9027 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8241 for ac_header in dlfcn.h
8242 do :
8243 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
90288244 "
9029 if test "x$ac_cv_header_dlfcn_h" = xyes
9030 then :
9031 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9032
9033 fi
8245 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8246 cat >>confdefs.h <<_ACEOF
8247 #define HAVE_DLFCN_H 1
8248 _ACEOF
8249
8250 fi
8251
8252 done
90348253
90358254
90368255
90478266
90488267
90498268 # Check whether --enable-shared was given.
9050 if test ${enable_shared+y}
9051 then :
8269 if test "${enable_shared+set}" = set; then :
90528270 enableval=$enable_shared; p=${PACKAGE-default}
90538271 case $enableval in
90548272 yes) enable_shared=yes ;;
90668284 IFS=$lt_save_ifs
90678285 ;;
90688286 esac
9069 else $as_nop
8287 else
90708288 enable_shared=yes
90718289 fi
90728290
90798297
90808298
90818299 # Check whether --enable-static was given.
9082 if test ${enable_static+y}
9083 then :
8300 if test "${enable_static+set}" = set; then :
90848301 enableval=$enable_static; p=${PACKAGE-default}
90858302 case $enableval in
90868303 yes) enable_static=yes ;;
90988315 IFS=$lt_save_ifs
90998316 ;;
91008317 esac
9101 else $as_nop
8318 else
91028319 enable_static=yes
91038320 fi
91048321
91128329
91138330
91148331 # Check whether --with-pic was given.
9115 if test ${with_pic+y}
9116 then :
8332 if test "${with_pic+set}" = set; then :
91178333 withval=$with_pic; lt_p=${PACKAGE-default}
91188334 case $withval in
91198335 yes|no) pic_mode=$withval ;;
91308346 IFS=$lt_save_ifs
91318347 ;;
91328348 esac
9133 else $as_nop
8349 else
91348350 pic_mode=default
91358351 fi
91368352
91428358
91438359
91448360 # Check whether --enable-fast-install was given.
9145 if test ${enable_fast_install+y}
9146 then :
8361 if test "${enable_fast_install+set}" = set; then :
91478362 enableval=$enable_fast_install; p=${PACKAGE-default}
91488363 case $enableval in
91498364 yes) enable_fast_install=yes ;;
91618376 IFS=$lt_save_ifs
91628377 ;;
91638378 esac
9164 else $as_nop
8379 else
91658380 enable_fast_install=yes
91668381 fi
91678382
91758390 shared_archive_member_spec=
91768391 case $host,$enable_shared in
91778392 power*-*-aix[5-9]*,yes)
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9179 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8394 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
91808395
91818396 # Check whether --with-aix-soname was given.
9182 if test ${with_aix_soname+y}
9183 then :
8397 if test "${with_aix_soname+set}" = set; then :
91848398 withval=$with_aix_soname; case $withval in
91858399 aix|svr4|both)
91868400 ;;
91898403 ;;
91908404 esac
91918405 lt_cv_with_aix_soname=$with_aix_soname
9192 else $as_nop
9193 if test ${lt_cv_with_aix_soname+y}
9194 then :
9195 printf %s "(cached) " >&6
9196 else $as_nop
8406 else
8407 if ${lt_cv_with_aix_soname+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
91978410 lt_cv_with_aix_soname=aix
91988411 fi
91998412
92008413 with_aix_soname=$lt_cv_with_aix_soname
92018414 fi
92028415
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9204 printf "%s\n" "$with_aix_soname" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8417 $as_echo "$with_aix_soname" >&6; }
92058418 if test aix != "$with_aix_soname"; then
92068419 # For the AIX way of multilib, we name the shared archive member
92078420 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
92838496 setopt NO_GLOB_SUBST
92848497 fi
92858498
9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9287 printf %s "checking for objdir... " >&6; }
9288 if test ${lt_cv_objdir+y}
9289 then :
9290 printf %s "(cached) " >&6
9291 else $as_nop
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8500 $as_echo_n "checking for objdir... " >&6; }
8501 if ${lt_cv_objdir+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
92928504 rm -f .libs 2>/dev/null
92938505 mkdir .libs 2>/dev/null
92948506 if test -d .libs; then
92998511 fi
93008512 rmdir .libs 2>/dev/null
93018513 fi
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9303 printf "%s\n" "$lt_cv_objdir" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8515 $as_echo "$lt_cv_objdir" >&6; }
93048516 objdir=$lt_cv_objdir
93058517
93068518
93078519
93088520
93098521
9310 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8522 cat >>confdefs.h <<_ACEOF
8523 #define LT_OBJDIR "$lt_cv_objdir/"
8524 _ACEOF
93118525
93128526
93138527
93538567 case $deplibs_check_method in
93548568 file_magic*)
93558569 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9357 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9358 if test ${lt_cv_path_MAGIC_CMD+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else $as_nop
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8571 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8572 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
93628575 case $MAGIC_CMD in
93638576 [\\/*] | ?:[\\/]*)
93648577 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
94078620
94088621 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
94098622 if test -n "$MAGIC_CMD"; then
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9411 printf "%s\n" "$MAGIC_CMD" >&6; }
9412 else
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 printf "%s\n" "no" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8624 $as_echo "$MAGIC_CMD" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
94158628 fi
94168629
94178630
94208633
94218634 if test -z "$lt_cv_path_MAGIC_CMD"; then
94228635 if test -n "$ac_tool_prefix"; then
9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9424 printf %s "checking for file... " >&6; }
9425 if test ${lt_cv_path_MAGIC_CMD+y}
9426 then :
9427 printf %s "(cached) " >&6
9428 else $as_nop
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8637 $as_echo_n "checking for file... " >&6; }
8638 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
94298641 case $MAGIC_CMD in
94308642 [\\/*] | ?:[\\/]*)
94318643 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
94748686
94758687 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
94768688 if test -n "$MAGIC_CMD"; then
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9478 printf "%s\n" "$MAGIC_CMD" >&6; }
9479 else
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 printf "%s\n" "no" >&6; }
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8690 $as_echo "$MAGIC_CMD" >&6; }
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
94828694 fi
94838695
94848696
95638775 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
95648776 esac
95658777
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9567 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9568 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9569 then :
9570 printf %s "(cached) " >&6
9571 else $as_nop
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8779 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8780 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
95728783 lt_cv_prog_compiler_rtti_exceptions=no
95738784 ac_outfile=conftest.$ac_objext
95748785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
95998810 $RM conftest*
96008811
96018812 fi
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9603 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8814 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
96048815
96058816 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
96068817 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
99579168 ;;
99589169 esac
99599170
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9961 printf %s "checking for $compiler option to produce PIC... " >&6; }
9962 if test ${lt_cv_prog_compiler_pic+y}
9963 then :
9964 printf %s "(cached) " >&6
9965 else $as_nop
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9172 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9173 if ${lt_cv_prog_compiler_pic+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
99669176 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
99679177 fi
9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9969 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9179 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
99709180 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
99719181
99729182 #
99739183 # Check to make sure the PIC flag actually works.
99749184 #
99759185 if test -n "$lt_prog_compiler_pic"; then
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9977 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9978 if test ${lt_cv_prog_compiler_pic_works+y}
9979 then :
9980 printf %s "(cached) " >&6
9981 else $as_nop
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9187 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9188 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
99829191 lt_cv_prog_compiler_pic_works=no
99839192 ac_outfile=conftest.$ac_objext
99849193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
100099218 $RM conftest*
100109219
100119220 fi
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10013 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9222 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
100149223
100159224 if test yes = "$lt_cv_prog_compiler_pic_works"; then
100169225 case $lt_prog_compiler_pic in
100389247 # Check to make sure the static flag actually works.
100399248 #
100409249 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10042 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10043 if test ${lt_cv_prog_compiler_static_works+y}
10044 then :
10045 printf %s "(cached) " >&6
10046 else $as_nop
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9251 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9252 if ${lt_cv_prog_compiler_static_works+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
100479255 lt_cv_prog_compiler_static_works=no
100489256 save_LDFLAGS=$LDFLAGS
100499257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
100679275 LDFLAGS=$save_LDFLAGS
100689276
100699277 fi
10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10071 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9279 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
100729280
100739281 if test yes = "$lt_cv_prog_compiler_static_works"; then
100749282 :
100829290
100839291
100849292
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10086 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10087 if test ${lt_cv_prog_compiler_c_o+y}
10088 then :
10089 printf %s "(cached) " >&6
10090 else $as_nop
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9295 if ${lt_cv_prog_compiler_c_o+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
100919298 lt_cv_prog_compiler_c_o=no
100929299 $RM -r conftest 2>/dev/null
100939300 mkdir conftest
101309337 $RM conftest*
101319338
101329339 fi
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10134 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10135
10136
10137
10138
10139
10140
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10142 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10143 if test ${lt_cv_prog_compiler_c_o+y}
10144 then :
10145 printf %s "(cached) " >&6
10146 else $as_nop
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9341 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9342
9343
9344
9345
9346
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9350 if ${lt_cv_prog_compiler_c_o+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
101479353 lt_cv_prog_compiler_c_o=no
101489354 $RM -r conftest 2>/dev/null
101499355 mkdir conftest
101869392 $RM conftest*
101879393
101889394 fi
10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10190 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9396 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
101919397
101929398
101939399
101959401 hard_links=nottested
101969402 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
101979403 # do not overwrite the value of need_locks provided by the user
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10199 printf %s "checking if we can lock with hard links... " >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9405 $as_echo_n "checking if we can lock with hard links... " >&6; }
102009406 hard_links=yes
102019407 $RM conftest*
102029408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
102039409 touch conftest.a
102049410 ln conftest.a conftest.b 2>&5 || hard_links=no
102059411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10207 printf "%s\n" "$hard_links" >&6; }
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9413 $as_echo "$hard_links" >&6; }
102089414 if test no = "$hard_links"; then
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10210 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9416 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
102119417 need_locks=warn
102129418 fi
102139419 else
102199425
102209426
102219427
10222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10223 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9429 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
102249430
102259431 runpath_var=
102269432 allow_undefined_flag=
107759981 if test set = "${lt_cv_aix_libpath+set}"; then
107769982 aix_libpath=$lt_cv_aix_libpath
107779983 else
10778 if test ${lt_cv_aix_libpath_+y}
10779 then :
10780 printf %s "(cached) " >&6
10781 else $as_nop
9984 if ${lt_cv_aix_libpath_+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
107829987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107839988 /* end confdefs.h. */
107849989
107859990 int
10786 main (void)
9991 main ()
107879992 {
107889993
107899994 ;
107909995 return 0;
107919996 }
107929997 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"
10794 then :
9998 if ac_fn_c_try_link "$LINENO"; then :
107959999
1079610000 lt_aix_libpath_sed='
1079710001 /Import File Strings/,/^$/ {
1080610010 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1080710011 fi
1080810012 fi
10809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10013 rm -f core conftest.err conftest.$ac_objext \
1081010014 conftest$ac_exeext conftest.$ac_ext
1081110015 if test -z "$lt_cv_aix_libpath_"; then
1081210016 lt_cv_aix_libpath_=/usr/lib:/lib
1083010034 if test set = "${lt_cv_aix_libpath+set}"; then
1083110035 aix_libpath=$lt_cv_aix_libpath
1083210036 else
10833 if test ${lt_cv_aix_libpath_+y}
10834 then :
10835 printf %s "(cached) " >&6
10836 else $as_nop
10037 if ${lt_cv_aix_libpath_+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
1083710040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1083810041 /* end confdefs.h. */
1083910042
1084010043 int
10841 main (void)
10044 main ()
1084210045 {
1084310046
1084410047 ;
1084510048 return 0;
1084610049 }
1084710050 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"
10849 then :
10051 if ac_fn_c_try_link "$LINENO"; then :
1085010052
1085110053 lt_aix_libpath_sed='
1085210054 /Import File Strings/,/^$/ {
1086110063 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1086210064 fi
1086310065 fi
10864 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10066 rm -f core conftest.err conftest.$ac_objext \
1086510067 conftest$ac_exeext conftest.$ac_ext
1086610068 if test -z "$lt_cv_aix_libpath_"; then
1086710069 lt_cv_aix_libpath_=/usr/lib:/lib
1111210314
1111310315 # Older versions of the 11.00 compiler do not understand -b yet
1111410316 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11116 printf %s "checking if $CC understands -b... " >&6; }
11117 if test ${lt_cv_prog_compiler__b+y}
11118 then :
11119 printf %s "(cached) " >&6
11120 else $as_nop
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10318 $as_echo_n "checking if $CC understands -b... " >&6; }
10319 if ${lt_cv_prog_compiler__b+:} false; then :
10320 $as_echo_n "(cached) " >&6
10321 else
1112110322 lt_cv_prog_compiler__b=no
1112210323 save_LDFLAGS=$LDFLAGS
1112310324 LDFLAGS="$LDFLAGS -b"
1114110342 LDFLAGS=$save_LDFLAGS
1114210343
1114310344 fi
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11145 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10346 $as_echo "$lt_cv_prog_compiler__b" >&6; }
1114610347
1114710348 if test yes = "$lt_cv_prog_compiler__b"; then
1114810349 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1118210383 # work, assume that -exports_file does not work either and
1118310384 # implicitly export all symbols.
1118410385 # This should be the same for all languages, so no per-tag cache variable.
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11186 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11187 if test ${lt_cv_irix_exported_symbol+y}
11188 then :
11189 printf %s "(cached) " >&6
11190 else $as_nop
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10387 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10388 if ${lt_cv_irix_exported_symbol+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
1119110391 save_LDFLAGS=$LDFLAGS
1119210392 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1119310393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1119410394 /* end confdefs.h. */
1119510395 int foo (void) { return 0; }
1119610396 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"
11198 then :
10397 if ac_fn_c_try_link "$LINENO"; then :
1119910398 lt_cv_irix_exported_symbol=yes
11200 else $as_nop
10399 else
1120110400 lt_cv_irix_exported_symbol=no
1120210401 fi
11203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10402 rm -f core conftest.err conftest.$ac_objext \
1120410403 conftest$ac_exeext conftest.$ac_ext
1120510404 LDFLAGS=$save_LDFLAGS
1120610405 fi
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11208 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10407 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1120910408 if test yes = "$lt_cv_irix_exported_symbol"; then
1121010409 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'
1121110410 fi
1148510684 fi
1148610685 fi
1148710686
11488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11489 printf "%s\n" "$ld_shlibs" >&6; }
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10688 $as_echo "$ld_shlibs" >&6; }
1149010689 test no = "$ld_shlibs" && can_build_shared=no
1149110690
1149210691 with_gnu_ld=$with_gnu_ld
1152210721 # Test whether the compiler implicitly links with -lc since on some
1152310722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1152410723 # to ld, don't add -lc before -lgcc.
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11526 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11527 if test ${lt_cv_archive_cmds_need_lc+y}
11528 then :
11529 printf %s "(cached) " >&6
11530 else $as_nop
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10725 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10726 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
1153110729 $RM conftest*
1153210730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1153310731
1153410732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1153510733 (eval $ac_compile) 2>&5
1153610734 ac_status=$?
11537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1153810736 test $ac_status = 0; } 2>conftest.err; then
1153910737 soname=conftest
1154010738 lib=conftest
1155210750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1155310751 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1155410752 ac_status=$?
11555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1155610754 test $ac_status = 0; }
1155710755 then
1155810756 lt_cv_archive_cmds_need_lc=no
1156610764 $RM conftest*
1156710765
1156810766 fi
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11570 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10768 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1157110769 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1157210770 ;;
1157310771 esac
1172610924
1172710925
1172810926
11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11730 printf %s "checking dynamic linker characteristics... " >&6; }
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10928 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1173110929
1173210930 if test yes = "$GCC"; then
1173310931 case $host_os in
1228811486 shlibpath_overrides_runpath=no
1228911487
1229011488 # Some binutils ld are patched to set DT_RUNPATH
12291 if test ${lt_cv_shlibpath_overrides_runpath+y}
12292 then :
12293 printf %s "(cached) " >&6
12294 else $as_nop
11489 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
1229511492 lt_cv_shlibpath_overrides_runpath=no
1229611493 save_LDFLAGS=$LDFLAGS
1229711494 save_libdir=$libdir
1230111498 /* end confdefs.h. */
1230211499
1230311500 int
12304 main (void)
11501 main ()
1230511502 {
1230611503
1230711504 ;
1230811505 return 0;
1230911506 }
1231011507 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"
12312 then :
12313 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12314 then :
11508 if ac_fn_c_try_link "$LINENO"; then :
11509 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1231511510 lt_cv_shlibpath_overrides_runpath=yes
1231611511 fi
1231711512 fi
12318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11513 rm -f core conftest.err conftest.$ac_objext \
1231911514 conftest$ac_exeext conftest.$ac_ext
1232011515 LDFLAGS=$save_LDFLAGS
1232111516 libdir=$save_libdir
1255011745 dynamic_linker=no
1255111746 ;;
1255211747 esac
12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12554 printf "%s\n" "$dynamic_linker" >&6; }
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11749 $as_echo "$dynamic_linker" >&6; }
1255511750 test no = "$dynamic_linker" && can_build_shared=no
1255611751
1255711752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1267211867
1267311868
1267411869
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12676 printf %s "checking how to hardcode library paths into programs... " >&6; }
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11871 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1267711872 hardcode_action=
1267811873 if test -n "$hardcode_libdir_flag_spec" ||
1267911874 test -n "$runpath_var" ||
1269711892 # directories.
1269811893 hardcode_action=unsupported
1269911894 fi
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12701 printf "%s\n" "$hardcode_action" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11896 $as_echo "$hardcode_action" >&6; }
1270211897
1270311898 if test relink = "$hardcode_action" ||
1270411899 test yes = "$inherit_rpath"; then
1274211937
1274311938 darwin*)
1274411939 # if libdl is installed we need to link against it
12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12746 printf %s "checking for dlopen in -ldl... " >&6; }
12747 if test ${ac_cv_lib_dl_dlopen+y}
12748 then :
12749 printf %s "(cached) " >&6
12750 else $as_nop
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11942 if ${ac_cv_lib_dl_dlopen+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
1275111945 ac_check_lib_save_LIBS=$LIBS
1275211946 LIBS="-ldl $LIBS"
1275311947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1275611950 /* Override any GCC internal prototype to avoid an error.
1275711951 Use char because int might match the return type of a GCC
1275811952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
1275911956 char dlopen ();
1276011957 int
12761 main (void)
11958 main ()
1276211959 {
1276311960 return dlopen ();
1276411961 ;
1276511962 return 0;
1276611963 }
1276711964 _ACEOF
12768 if ac_fn_c_try_link "$LINENO"
12769 then :
11965 if ac_fn_c_try_link "$LINENO"; then :
1277011966 ac_cv_lib_dl_dlopen=yes
12771 else $as_nop
11967 else
1277211968 ac_cv_lib_dl_dlopen=no
1277311969 fi
12774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11970 rm -f core conftest.err conftest.$ac_objext \
1277511971 conftest$ac_exeext conftest.$ac_ext
1277611972 LIBS=$ac_check_lib_save_LIBS
1277711973 fi
12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12779 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12780 if test "x$ac_cv_lib_dl_dlopen" = xyes
12781 then :
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11976 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1278211977 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12783 else $as_nop
11978 else
1278411979
1278511980 lt_cv_dlopen=dyld
1278611981 lt_cv_dlopen_libs=
1280011995
1280111996 *)
1280211997 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12803 if test "x$ac_cv_func_shl_load" = xyes
12804 then :
11998 if test "x$ac_cv_func_shl_load" = xyes; then :
1280511999 lt_cv_dlopen=shl_load
12806 else $as_nop
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12808 printf %s "checking for shl_load in -ldld... " >&6; }
12809 if test ${ac_cv_lib_dld_shl_load+y}
12810 then :
12811 printf %s "(cached) " >&6
12812 else $as_nop
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12002 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12003 if ${ac_cv_lib_dld_shl_load+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
1281312006 ac_check_lib_save_LIBS=$LIBS
1281412007 LIBS="-ldld $LIBS"
1281512008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1281812011 /* Override any GCC internal prototype to avoid an error.
1281912012 Use char because int might match the return type of a GCC
1282012013 builtin and then its argument prototype would still apply. */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
1282112017 char shl_load ();
1282212018 int
12823 main (void)
12019 main ()
1282412020 {
1282512021 return shl_load ();
1282612022 ;
1282712023 return 0;
1282812024 }
1282912025 _ACEOF
12830 if ac_fn_c_try_link "$LINENO"
12831 then :
12026 if ac_fn_c_try_link "$LINENO"; then :
1283212027 ac_cv_lib_dld_shl_load=yes
12833 else $as_nop
12028 else
1283412029 ac_cv_lib_dld_shl_load=no
1283512030 fi
12836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12031 rm -f core conftest.err conftest.$ac_objext \
1283712032 conftest$ac_exeext conftest.$ac_ext
1283812033 LIBS=$ac_check_lib_save_LIBS
1283912034 fi
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12841 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12842 if test "x$ac_cv_lib_dld_shl_load" = xyes
12843 then :
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12036 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12037 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1284412038 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12845 else $as_nop
12039 else
1284612040 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12847 if test "x$ac_cv_func_dlopen" = xyes
12848 then :
12041 if test "x$ac_cv_func_dlopen" = xyes; then :
1284912042 lt_cv_dlopen=dlopen
12850 else $as_nop
12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12852 printf %s "checking for dlopen in -ldl... " >&6; }
12853 if test ${ac_cv_lib_dl_dlopen+y}
12854 then :
12855 printf %s "(cached) " >&6
12856 else $as_nop
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12045 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12046 if ${ac_cv_lib_dl_dlopen+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
1285712049 ac_check_lib_save_LIBS=$LIBS
1285812050 LIBS="-ldl $LIBS"
1285912051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1286212054 /* Override any GCC internal prototype to avoid an error.
1286312055 Use char because int might match the return type of a GCC
1286412056 builtin and then its argument prototype would still apply. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
1286512060 char dlopen ();
1286612061 int
12867 main (void)
12062 main ()
1286812063 {
1286912064 return dlopen ();
1287012065 ;
1287112066 return 0;
1287212067 }
1287312068 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"
12875 then :
12069 if ac_fn_c_try_link "$LINENO"; then :
1287612070 ac_cv_lib_dl_dlopen=yes
12877 else $as_nop
12071 else
1287812072 ac_cv_lib_dl_dlopen=no
1287912073 fi
12880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12074 rm -f core conftest.err conftest.$ac_objext \
1288112075 conftest$ac_exeext conftest.$ac_ext
1288212076 LIBS=$ac_check_lib_save_LIBS
1288312077 fi
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12885 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12886 if test "x$ac_cv_lib_dl_dlopen" = xyes
12887 then :
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12079 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12080 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1288812081 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12889 else $as_nop
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12891 printf %s "checking for dlopen in -lsvld... " >&6; }
12892 if test ${ac_cv_lib_svld_dlopen+y}
12893 then :
12894 printf %s "(cached) " >&6
12895 else $as_nop
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12084 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12085 if ${ac_cv_lib_svld_dlopen+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
1289612088 ac_check_lib_save_LIBS=$LIBS
1289712089 LIBS="-lsvld $LIBS"
1289812090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1290112093 /* Override any GCC internal prototype to avoid an error.
1290212094 Use char because int might match the return type of a GCC
1290312095 builtin and then its argument prototype would still apply. */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
1290412099 char dlopen ();
1290512100 int
12906 main (void)
12101 main ()
1290712102 {
1290812103 return dlopen ();
1290912104 ;
1291012105 return 0;
1291112106 }
1291212107 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"
12914 then :
12108 if ac_fn_c_try_link "$LINENO"; then :
1291512109 ac_cv_lib_svld_dlopen=yes
12916 else $as_nop
12110 else
1291712111 ac_cv_lib_svld_dlopen=no
1291812112 fi
12919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12113 rm -f core conftest.err conftest.$ac_objext \
1292012114 conftest$ac_exeext conftest.$ac_ext
1292112115 LIBS=$ac_check_lib_save_LIBS
1292212116 fi
12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12924 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12925 if test "x$ac_cv_lib_svld_dlopen" = xyes
12926 then :
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12118 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12119 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1292712120 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12928 else $as_nop
12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12930 printf %s "checking for dld_link in -ldld... " >&6; }
12931 if test ${ac_cv_lib_dld_dld_link+y}
12932 then :
12933 printf %s "(cached) " >&6
12934 else $as_nop
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12123 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12124 if ${ac_cv_lib_dld_dld_link+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126 else
1293512127 ac_check_lib_save_LIBS=$LIBS
1293612128 LIBS="-ldld $LIBS"
1293712129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1294012132 /* Override any GCC internal prototype to avoid an error.
1294112133 Use char because int might match the return type of a GCC
1294212134 builtin and then its argument prototype would still apply. */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
1294312138 char dld_link ();
1294412139 int
12945 main (void)
12140 main ()
1294612141 {
1294712142 return dld_link ();
1294812143 ;
1294912144 return 0;
1295012145 }
1295112146 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"
12953 then :
12147 if ac_fn_c_try_link "$LINENO"; then :
1295412148 ac_cv_lib_dld_dld_link=yes
12955 else $as_nop
12149 else
1295612150 ac_cv_lib_dld_dld_link=no
1295712151 fi
12958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12152 rm -f core conftest.err conftest.$ac_objext \
1295912153 conftest$ac_exeext conftest.$ac_ext
1296012154 LIBS=$ac_check_lib_save_LIBS
1296112155 fi
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12963 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12964 if test "x$ac_cv_lib_dld_dld_link" = xyes
12965 then :
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12157 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12158 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1296612159 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1296712160 fi
1296812161
1300112194 save_LIBS=$LIBS
1300212195 LIBS="$lt_cv_dlopen_libs $LIBS"
1300312196
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13005 printf %s "checking whether a program can dlopen itself... " >&6; }
13006 if test ${lt_cv_dlopen_self+y}
13007 then :
13008 printf %s "(cached) " >&6
13009 else $as_nop
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12198 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12199 if ${lt_cv_dlopen_self+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
1301012202 if test yes = "$cross_compiling"; then :
1301112203 lt_cv_dlopen_self=cross
1301212204 else
1308512277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1308612278 (eval $ac_link) 2>&5
1308712279 ac_status=$?
13088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1308912281 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1309012282 (./conftest; exit; ) >&5 2>/dev/null
1309112283 lt_status=$?
1310312295
1310412296
1310512297 fi
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13107 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12299 $as_echo "$lt_cv_dlopen_self" >&6; }
1310812300
1310912301 if test yes = "$lt_cv_dlopen_self"; then
1311012302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13112 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13113 if test ${lt_cv_dlopen_self_static+y}
13114 then :
13115 printf %s "(cached) " >&6
13116 else $as_nop
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12304 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12305 if ${lt_cv_dlopen_self_static+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307 else
1311712308 if test yes = "$cross_compiling"; then :
1311812309 lt_cv_dlopen_self_static=cross
1311912310 else
1319212383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1319312384 (eval $ac_link) 2>&5
1319412385 ac_status=$?
13195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1319612387 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1319712388 (./conftest; exit; ) >&5 2>/dev/null
1319812389 lt_status=$?
1321012401
1321112402
1321212403 fi
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13214 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12405 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1321512406 fi
1321612407
1321712408 CPPFLAGS=$save_CPPFLAGS
1324912440
1325012441 striplib=
1325112442 old_striplib=
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13253 printf %s "checking whether stripping libraries is possible... " >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12444 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1325412445 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1325512446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1325612447 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258 printf "%s\n" "yes" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12449 $as_echo "yes" >&6; }
1325912450 else
1326012451 # FIXME - insert some real tests, host_os isn't really good enough
1326112452 case $host_os in
1326312454 if test -n "$STRIP"; then
1326412455 striplib="$STRIP -x"
1326512456 old_striplib="$STRIP -S"
13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13267 printf "%s\n" "yes" >&6; }
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458 $as_echo "yes" >&6; }
1326812459 else
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 printf "%s\n" "no" >&6; }
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
1327112462 fi
1327212463 ;;
1327312464 *)
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 printf "%s\n" "no" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
1327612467 ;;
1327712468 esac
1327812469 fi
1328912480
1329012481
1329112482 # Report what library types will actually be built
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13293 printf %s "checking if libtool supports shared libraries... " >&6; }
13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13295 printf "%s\n" "$can_build_shared" >&6; }
13296
13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13298 printf %s "checking whether to build shared libraries... " >&6; }
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12484 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12486 $as_echo "$can_build_shared" >&6; }
12487
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12489 $as_echo_n "checking whether to build shared libraries... " >&6; }
1329912490 test no = "$can_build_shared" && enable_shared=no
1330012491
1330112492 # On AIX, shared libraries and static libraries use the same namespace, and
1331912510 fi
1332012511 ;;
1332112512 esac
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13323 printf "%s\n" "$enable_shared" >&6; }
13324
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13326 printf %s "checking whether to build static libraries... " >&6; }
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12514 $as_echo "$enable_shared" >&6; }
12515
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12517 $as_echo_n "checking whether to build static libraries... " >&6; }
1332712518 # Make sure either enable_shared or enable_static is yes.
1332812519 test yes = "$enable_shared" || enable_static=yes
13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13330 printf "%s\n" "$enable_static" >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12521 $as_echo "$enable_static" >&6; }
1333112522
1333212523
1333312524
1336612557
1336712558
1336812559
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13370 printf %s "checking for a sed that does not truncate output... " >&6; }
13371 if test ${ac_cv_path_SED+y}
13372 then :
13373 printf %s "(cached) " >&6
13374 else $as_nop
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12561 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12562 if ${ac_cv_path_SED+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
1337512565 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1337612566 for ac_i in 1 2 3 4 5 6 7; do
1337712567 ac_script="$ac_script$as_nl$ac_script"
1338512575 for as_dir in $PATH
1338612576 do
1338712577 IFS=$as_save_IFS
13388 case $as_dir in #(((
13389 '') as_dir=./ ;;
13390 */) ;;
13391 *) as_dir=$as_dir/ ;;
13392 esac
13393 for ac_prog in sed gsed
13394 do
12578 test -z "$as_dir" && as_dir=.
12579 for ac_prog in sed gsed; do
1339512580 for ac_exec_ext in '' $ac_executable_extensions; do
13396 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
12581 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1339712582 as_fn_executable_p "$ac_path_SED" || continue
1339812583 # Check for GNU ac_path_SED and select it if it is found.
1339912584 # Check for GNU $ac_path_SED
1340212587 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1340312588 *)
1340412589 ac_count=0
13405 printf %s 0123456789 >"conftest.in"
12590 $as_echo_n 0123456789 >"conftest.in"
1340612591 while :
1340712592 do
1340812593 cat "conftest.in" "conftest.in" >"conftest.tmp"
1340912594 mv "conftest.tmp" "conftest.in"
1341012595 cp "conftest.in" "conftest.nl"
13411 printf "%s\n" '' >> "conftest.nl"
12596 $as_echo '' >> "conftest.nl"
1341212597 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1341312598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1341412599 as_fn_arith $ac_count + 1 && ac_count=$as_val
1343612621 fi
1343712622
1343812623 fi
13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13440 printf "%s\n" "$ac_cv_path_SED" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12625 $as_echo "$ac_cv_path_SED" >&6; }
1344112626 SED="$ac_cv_path_SED"
1344212627 rm -f conftest.sed
1344312628
1345012635 if test -n "$ac_tool_prefix"; then
1345112636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1345212637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13454 printf %s "checking for $ac_word... " >&6; }
13455 if test ${ac_cv_prog_CC+y}
13456 then :
13457 printf %s "(cached) " >&6
13458 else $as_nop
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639 $as_echo_n "checking for $ac_word... " >&6; }
12640 if ${ac_cv_prog_CC+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
1345912643 if test -n "$CC"; then
1346012644 ac_cv_prog_CC="$CC" # Let the user override the test.
1346112645 else
1346312647 for as_dir in $PATH
1346412648 do
1346512649 IFS=$as_save_IFS
13466 case $as_dir in #(((
13467 '') as_dir=./ ;;
13468 */) ;;
13469 *) as_dir=$as_dir/ ;;
13470 esac
12650 test -z "$as_dir" && as_dir=.
1347112651 for ac_exec_ext in '' $ac_executable_extensions; do
13472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347312653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1347512655 break 2
1347612656 fi
1347712657 done
1348212662 fi
1348312663 CC=$ac_cv_prog_CC
1348412664 if test -n "$CC"; then
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13486 printf "%s\n" "$CC" >&6; }
13487 else
13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 printf "%s\n" "no" >&6; }
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12666 $as_echo "$CC" >&6; }
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
1349012670 fi
1349112671
1349212672
1349512675 ac_ct_CC=$CC
1349612676 # Extract the first word of "gcc", so it can be a program name with args.
1349712677 set dummy gcc; ac_word=$2
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499 printf %s "checking for $ac_word... " >&6; }
13500 if test ${ac_cv_prog_ac_ct_CC+y}
13501 then :
13502 printf %s "(cached) " >&6
13503 else $as_nop
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679 $as_echo_n "checking for $ac_word... " >&6; }
12680 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
1350412683 if test -n "$ac_ct_CC"; then
1350512684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1350612685 else
1350812687 for as_dir in $PATH
1350912688 do
1351012689 IFS=$as_save_IFS
13511 case $as_dir in #(((
13512 '') as_dir=./ ;;
13513 */) ;;
13514 *) as_dir=$as_dir/ ;;
13515 esac
12690 test -z "$as_dir" && as_dir=.
1351612691 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1351812693 ac_cv_prog_ac_ct_CC="gcc"
13519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1352012695 break 2
1352112696 fi
1352212697 done
1352712702 fi
1352812703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1352912704 if test -n "$ac_ct_CC"; then
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13531 printf "%s\n" "$ac_ct_CC" >&6; }
13532 else
13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 printf "%s\n" "no" >&6; }
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12706 $as_echo "$ac_ct_CC" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
1353512710 fi
1353612711
1353712712 if test "x$ac_ct_CC" = x; then
1353912714 else
1354012715 case $cross_compiling:$ac_tool_warned in
1354112716 yes:)
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13543 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1354412719 ac_tool_warned=yes ;;
1354512720 esac
1354612721 CC=$ac_ct_CC
1355312728 if test -n "$ac_tool_prefix"; then
1355412729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1355512730 set dummy ${ac_tool_prefix}cc; ac_word=$2
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557 printf %s "checking for $ac_word... " >&6; }
13558 if test ${ac_cv_prog_CC+y}
13559 then :
13560 printf %s "(cached) " >&6
13561 else $as_nop
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if ${ac_cv_prog_CC+:} false; then :
12734 $as_echo_n "(cached) " >&6
12735 else
1356212736 if test -n "$CC"; then
1356312737 ac_cv_prog_CC="$CC" # Let the user override the test.
1356412738 else
1356612740 for as_dir in $PATH
1356712741 do
1356812742 IFS=$as_save_IFS
13569 case $as_dir in #(((
13570 '') as_dir=./ ;;
13571 */) ;;
13572 *) as_dir=$as_dir/ ;;
13573 esac
12743 test -z "$as_dir" && as_dir=.
1357412744 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1357612746 ac_cv_prog_CC="${ac_tool_prefix}cc"
13577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1357812748 break 2
1357912749 fi
1358012750 done
1358512755 fi
1358612756 CC=$ac_cv_prog_CC
1358712757 if test -n "$CC"; then
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13589 printf "%s\n" "$CC" >&6; }
13590 else
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 printf "%s\n" "no" >&6; }
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12759 $as_echo "$CC" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
1359312763 fi
1359412764
1359512765
1359812768 if test -z "$CC"; then
1359912769 # Extract the first word of "cc", so it can be a program name with args.
1360012770 set dummy cc; ac_word=$2
13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602 printf %s "checking for $ac_word... " >&6; }
13603 if test ${ac_cv_prog_CC+y}
13604 then :
13605 printf %s "(cached) " >&6
13606 else $as_nop
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 $as_echo_n "checking for $ac_word... " >&6; }
12773 if ${ac_cv_prog_CC+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
1360712776 if test -n "$CC"; then
1360812777 ac_cv_prog_CC="$CC" # Let the user override the test.
1360912778 else
1361212781 for as_dir in $PATH
1361312782 do
1361412783 IFS=$as_save_IFS
13615 case $as_dir in #(((
13616 '') as_dir=./ ;;
13617 */) ;;
13618 *) as_dir=$as_dir/ ;;
13619 esac
12784 test -z "$as_dir" && as_dir=.
1362012785 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13622 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1362312788 ac_prog_rejected=yes
1362412789 continue
1362512790 fi
1362612791 ac_cv_prog_CC="cc"
13627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1362812793 break 2
1362912794 fi
1363012795 done
1364012805 # However, it has the same basename, so the bogon will be chosen
1364112806 # first if we set CC to just the basename; use the full file name.
1364212807 shift
13643 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1364412809 fi
1364512810 fi
1364612811 fi
1364712812 fi
1364812813 CC=$ac_cv_prog_CC
1364912814 if test -n "$CC"; then
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13651 printf "%s\n" "$CC" >&6; }
13652 else
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 printf "%s\n" "no" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12816 $as_echo "$CC" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
1365512820 fi
1365612821
1365712822
1366212827 do
1366312828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1366412829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 printf %s "checking for $ac_word... " >&6; }
13667 if test ${ac_cv_prog_CC+y}
13668 then :
13669 printf %s "(cached) " >&6
13670 else $as_nop
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_prog_CC+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
1367112835 if test -n "$CC"; then
1367212836 ac_cv_prog_CC="$CC" # Let the user override the test.
1367312837 else
1367512839 for as_dir in $PATH
1367612840 do
1367712841 IFS=$as_save_IFS
13678 case $as_dir in #(((
13679 '') as_dir=./ ;;
13680 */) ;;
13681 *) as_dir=$as_dir/ ;;
13682 esac
12842 test -z "$as_dir" && as_dir=.
1368312843 for ac_exec_ext in '' $ac_executable_extensions; do
13684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368512845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1368712847 break 2
1368812848 fi
1368912849 done
1369412854 fi
1369512855 CC=$ac_cv_prog_CC
1369612856 if test -n "$CC"; then
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13698 printf "%s\n" "$CC" >&6; }
13699 else
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 printf "%s\n" "no" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12858 $as_echo "$CC" >&6; }
12859 else
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861 $as_echo "no" >&6; }
1370212862 fi
1370312863
1370412864
1371112871 do
1371212872 # Extract the first word of "$ac_prog", so it can be a program name with args.
1371312873 set dummy $ac_prog; ac_word=$2
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 printf %s "checking for $ac_word... " >&6; }
13716 if test ${ac_cv_prog_ac_ct_CC+y}
13717 then :
13718 printf %s "(cached) " >&6
13719 else $as_nop
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
1372012879 if test -n "$ac_ct_CC"; then
1372112880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1372212881 else
1372412883 for as_dir in $PATH
1372512884 do
1372612885 IFS=$as_save_IFS
13727 case $as_dir in #(((
13728 '') as_dir=./ ;;
13729 */) ;;
13730 *) as_dir=$as_dir/ ;;
13731 esac
12886 test -z "$as_dir" && as_dir=.
1373212887 for ac_exec_ext in '' $ac_executable_extensions; do
13733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373412889 ac_cv_prog_ac_ct_CC="$ac_prog"
13735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1373612891 break 2
1373712892 fi
1373812893 done
1374312898 fi
1374412899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1374512900 if test -n "$ac_ct_CC"; then
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13747 printf "%s\n" "$ac_ct_CC" >&6; }
13748 else
13749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13750 printf "%s\n" "no" >&6; }
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12902 $as_echo "$ac_ct_CC" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
1375112906 fi
1375212907
1375312908
1375912914 else
1376012915 case $cross_compiling:$ac_tool_warned in
1376112916 yes:)
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13763 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1376412919 ac_tool_warned=yes ;;
1376512920 esac
1376612921 CC=$ac_ct_CC
1376812923 fi
1376912924
1377012925 fi
13771 if test -z "$CC"; then
13772 if test -n "$ac_tool_prefix"; then
13773 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13774 set dummy ${ac_tool_prefix}clang; ac_word=$2
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 printf %s "checking for $ac_word... " >&6; }
13777 if test ${ac_cv_prog_CC+y}
13778 then :
13779 printf %s "(cached) " >&6
13780 else $as_nop
13781 if test -n "$CC"; then
13782 ac_cv_prog_CC="$CC" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787 IFS=$as_save_IFS
13788 case $as_dir in #(((
13789 '') as_dir=./ ;;
13790 */) ;;
13791 *) as_dir=$as_dir/ ;;
13792 esac
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13795 ac_cv_prog_CC="${ac_tool_prefix}clang"
13796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13797 break 2
13798 fi
13799 done
13800 done
13801 IFS=$as_save_IFS
13802
13803 fi
13804 fi
13805 CC=$ac_cv_prog_CC
13806 if test -n "$CC"; then
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13808 printf "%s\n" "$CC" >&6; }
13809 else
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 printf "%s\n" "no" >&6; }
13812 fi
13813
13814
13815 fi
13816 if test -z "$ac_cv_prog_CC"; then
13817 ac_ct_CC=$CC
13818 # Extract the first word of "clang", so it can be a program name with args.
13819 set dummy clang; ac_word=$2
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 printf %s "checking for $ac_word... " >&6; }
13822 if test ${ac_cv_prog_ac_ct_CC+y}
13823 then :
13824 printf %s "(cached) " >&6
13825 else $as_nop
13826 if test -n "$ac_ct_CC"; then
13827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832 IFS=$as_save_IFS
13833 case $as_dir in #(((
13834 '') as_dir=./ ;;
13835 */) ;;
13836 *) as_dir=$as_dir/ ;;
13837 esac
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13840 ac_cv_prog_ac_ct_CC="clang"
13841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13842 break 2
13843 fi
13844 done
13845 done
13846 IFS=$as_save_IFS
13847
13848 fi
13849 fi
13850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13851 if test -n "$ac_ct_CC"; then
13852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13853 printf "%s\n" "$ac_ct_CC" >&6; }
13854 else
13855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 printf "%s\n" "no" >&6; }
13857 fi
13858
13859 if test "x$ac_ct_CC" = x; then
13860 CC=""
13861 else
13862 case $cross_compiling:$ac_tool_warned in
13863 yes:)
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13866 ac_tool_warned=yes ;;
13867 esac
13868 CC=$ac_ct_CC
13869 fi
13870 else
13871 CC="$ac_cv_prog_CC"
13872 fi
13873
13874 fi
13875
13876
13877 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13878 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12926
12927
12928 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1387912930 as_fn_error $? "no acceptable C compiler found in \$PATH
1388012931 See \`config.log' for more details" "$LINENO" 5; }
1388112932
1388212933 # Provide some information about the compiler.
13883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12934 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1388412935 set X $ac_compile
1388512936 ac_compiler=$2
13886 for ac_option in --version -v -V -qversion -version; do
12937 for ac_option in --version -v -V -qversion; do
1388712938 { { ac_try="$ac_compiler $ac_option >&5"
1388812939 case "(($ac_try" in
1388912940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1389012941 *) ac_try_echo=$ac_try;;
1389112942 esac
1389212943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13893 printf "%s\n" "$ac_try_echo"; } >&5
12944 $as_echo "$ac_try_echo"; } >&5
1389412945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1389512946 ac_status=$?
1389612947 if test -s conftest.err; then
1390012951 cat conftest.er1 >&5
1390112952 fi
1390212953 rm -f conftest.er1 conftest.err
13903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1390412955 test $ac_status = 0; }
1390512956 done
1390612957
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13908 printf %s "checking whether the compiler supports GNU C... " >&6; }
13909 if test ${ac_cv_c_compiler_gnu+y}
13910 then :
13911 printf %s "(cached) " >&6
13912 else $as_nop
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12960 if ${ac_cv_c_compiler_gnu+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
1391312963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1391412964 /* end confdefs.h. */
1391512965
1391612966 int
13917 main (void)
12967 main ()
1391812968 {
1391912969 #ifndef __GNUC__
1392012970 choke me
1392412974 return 0;
1392512975 }
1392612976 _ACEOF
13927 if ac_fn_c_try_compile "$LINENO"
13928 then :
12977 if ac_fn_c_try_compile "$LINENO"; then :
1392912978 ac_compiler_gnu=yes
13930 else $as_nop
12979 else
1393112980 ac_compiler_gnu=no
1393212981 fi
13933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1393412983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1393512984
1393612985 fi
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13938 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13940
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
1394112988 if test $ac_compiler_gnu = yes; then
1394212989 GCC=yes
1394312990 else
1394412991 GCC=
1394512992 fi
13946 ac_test_CFLAGS=${CFLAGS+y}
12993 ac_test_CFLAGS=${CFLAGS+set}
1394712994 ac_save_CFLAGS=$CFLAGS
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13949 printf %s "checking whether $CC accepts -g... " >&6; }
13950 if test ${ac_cv_prog_cc_g+y}
13951 then :
13952 printf %s "(cached) " >&6
13953 else $as_nop
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12997 if ${ac_cv_prog_cc_g+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
1395413000 ac_save_c_werror_flag=$ac_c_werror_flag
1395513001 ac_c_werror_flag=yes
1395613002 ac_cv_prog_cc_g=no
1395913005 /* end confdefs.h. */
1396013006
1396113007 int
13962 main (void)
13008 main ()
1396313009 {
1396413010
1396513011 ;
1396613012 return 0;
1396713013 }
1396813014 _ACEOF
13969 if ac_fn_c_try_compile "$LINENO"
13970 then :
13015 if ac_fn_c_try_compile "$LINENO"; then :
1397113016 ac_cv_prog_cc_g=yes
13972 else $as_nop
13017 else
1397313018 CFLAGS=""
1397413019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1397513020 /* end confdefs.h. */
1397613021
1397713022 int
13978 main (void)
13023 main ()
1397913024 {
1398013025
1398113026 ;
1398213027 return 0;
1398313028 }
1398413029 _ACEOF
13985 if ac_fn_c_try_compile "$LINENO"
13986 then :
13987
13988 else $as_nop
13030 if ac_fn_c_try_compile "$LINENO"; then :
13031
13032 else
1398913033 ac_c_werror_flag=$ac_save_c_werror_flag
1399013034 CFLAGS="-g"
1399113035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1399213036 /* end confdefs.h. */
1399313037
1399413038 int
13995 main (void)
13039 main ()
1399613040 {
1399713041
1399813042 ;
1399913043 return 0;
1400013044 }
1400113045 _ACEOF
14002 if ac_fn_c_try_compile "$LINENO"
14003 then :
13046 if ac_fn_c_try_compile "$LINENO"; then :
1400413047 ac_cv_prog_cc_g=yes
1400513048 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14007 fi
14008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050 fi
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1401113054 ac_c_werror_flag=$ac_save_c_werror_flag
1401213055 fi
14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14014 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14015 if test $ac_test_CFLAGS; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13057 $as_echo "$ac_cv_prog_cc_g" >&6; }
13058 if test "$ac_test_CFLAGS" = set; then
1401613059 CFLAGS=$ac_save_CFLAGS
1401713060 elif test $ac_cv_prog_cc_g = yes; then
1401813061 if test "$GCC" = yes; then
1402713070 CFLAGS=
1402813071 fi
1402913072 fi
14030 ac_prog_cc_stdc=no
14031 if test x$ac_prog_cc_stdc = xno
14032 then :
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14034 printf %s "checking for $CC option to enable C11 features... " >&6; }
14035 if test ${ac_cv_prog_cc_c11+y}
14036 then :
14037 printf %s "(cached) " >&6
14038 else $as_nop
14039 ac_cv_prog_cc_c11=no
14040 ac_save_CC=$CC
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 $ac_c_conftest_c11_program
14044 _ACEOF
14045 for ac_arg in '' -std=gnu11
14046 do
14047 CC="$ac_save_CC $ac_arg"
14048 if ac_fn_c_try_compile "$LINENO"
14049 then :
14050 ac_cv_prog_cc_c11=$ac_arg
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.beam
14053 test "x$ac_cv_prog_cc_c11" != "xno" && break
14054 done
14055 rm -f conftest.$ac_ext
14056 CC=$ac_save_CC
14057 fi
14058
14059 if test "x$ac_cv_prog_cc_c11" = xno
14060 then :
14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14062 printf "%s\n" "unsupported" >&6; }
14063 else $as_nop
14064 if test "x$ac_cv_prog_cc_c11" = x
14065 then :
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14067 printf "%s\n" "none needed" >&6; }
14068 else $as_nop
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14070 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14071 CC="$CC $ac_cv_prog_cc_c11"
14072 fi
14073 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14074 ac_prog_cc_stdc=c11
14075 fi
14076 fi
14077 if test x$ac_prog_cc_stdc = xno
14078 then :
14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14080 printf %s "checking for $CC option to enable C99 features... " >&6; }
14081 if test ${ac_cv_prog_cc_c99+y}
14082 then :
14083 printf %s "(cached) " >&6
14084 else $as_nop
14085 ac_cv_prog_cc_c99=no
14086 ac_save_CC=$CC
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 $ac_c_conftest_c99_program
14090 _ACEOF
14091 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14092 do
14093 CC="$ac_save_CC $ac_arg"
14094 if ac_fn_c_try_compile "$LINENO"
14095 then :
14096 ac_cv_prog_cc_c99=$ac_arg
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.beam
14099 test "x$ac_cv_prog_cc_c99" != "xno" && break
14100 done
14101 rm -f conftest.$ac_ext
14102 CC=$ac_save_CC
14103 fi
14104
14105 if test "x$ac_cv_prog_cc_c99" = xno
14106 then :
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14108 printf "%s\n" "unsupported" >&6; }
14109 else $as_nop
14110 if test "x$ac_cv_prog_cc_c99" = x
14111 then :
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14113 printf "%s\n" "none needed" >&6; }
14114 else $as_nop
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14116 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14117 CC="$CC $ac_cv_prog_cc_c99"
14118 fi
14119 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14120 ac_prog_cc_stdc=c99
14121 fi
14122 fi
14123 if test x$ac_prog_cc_stdc = xno
14124 then :
14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14126 printf %s "checking for $CC option to enable C89 features... " >&6; }
14127 if test ${ac_cv_prog_cc_c89+y}
14128 then :
14129 printf %s "(cached) " >&6
14130 else $as_nop
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13074 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13075 if ${ac_cv_prog_cc_c89+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077 else
1413113078 ac_cv_prog_cc_c89=no
1413213079 ac_save_CC=$CC
1413313080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1413413081 /* end confdefs.h. */
14135 $ac_c_conftest_c89_program
13082 #include <stdarg.h>
13083 #include <stdio.h>
13084 struct stat;
13085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13086 struct buf { int x; };
13087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13088 static char *e (p, i)
13089 char **p;
13090 int i;
13091 {
13092 return p[i];
13093 }
13094 static char *f (char * (*g) (char **, int), char **p, ...)
13095 {
13096 char *s;
13097 va_list v;
13098 va_start (v,p);
13099 s = g (p, va_arg (v,int));
13100 va_end (v);
13101 return s;
13102 }
13103
13104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13105 function prototypes and stuff, but not '\xHH' hex character constants.
13106 These don't provoke an error unfortunately, instead are silently treated
13107 as 'x'. The following induces an error, until -std is added to get
13108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13109 array size at least. It's necessary to write '\x00'==0 to get something
13110 that's true only with -std. */
13111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13112
13113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13114 inside strings and character constants. */
13115 #define FOO(x) 'x'
13116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13117
13118 int test (int i, double x);
13119 struct s1 {int (*f) (int a);};
13120 struct s2 {int (*f) (double a);};
13121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13122 int argc;
13123 char **argv;
13124 int
13125 main ()
13126 {
13127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13128 ;
13129 return 0;
13130 }
1413613131 _ACEOF
14137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1413813134 do
1413913135 CC="$ac_save_CC $ac_arg"
14140 if ac_fn_c_try_compile "$LINENO"
14141 then :
13136 if ac_fn_c_try_compile "$LINENO"; then :
1414213137 ac_cv_prog_cc_c89=$ac_arg
1414313138 fi
14144 rm -f core conftest.err conftest.$ac_objext conftest.beam
13139 rm -f core conftest.err conftest.$ac_objext
1414513140 test "x$ac_cv_prog_cc_c89" != "xno" && break
1414613141 done
1414713142 rm -f conftest.$ac_ext
1414813143 CC=$ac_save_CC
14149 fi
14150
14151 if test "x$ac_cv_prog_cc_c89" = xno
14152 then :
14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14154 printf "%s\n" "unsupported" >&6; }
14155 else $as_nop
14156 if test "x$ac_cv_prog_cc_c89" = x
14157 then :
14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14159 printf "%s\n" "none needed" >&6; }
14160 else $as_nop
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14162 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14163 CC="$CC $ac_cv_prog_cc_c89"
14164 fi
14165 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14166 ac_prog_cc_stdc=c89
14167 fi
13144
13145 fi
13146 # AC_CACHE_VAL
13147 case "x$ac_cv_prog_cc_c89" in
13148 x)
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13150 $as_echo "none needed" >&6; } ;;
13151 xno)
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13153 $as_echo "unsupported" >&6; } ;;
13154 *)
13155 CC="$CC $ac_cv_prog_cc_c89"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13157 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13158 esac
13159 if test "x$ac_cv_prog_cc_c89" != xno; then :
13160
1416813161 fi
1416913162
1417013163 ac_ext=c
1417313166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1417413167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1417513168
14176
14177 ac_ext=c
13169 ac_ext=c
1417813170 ac_cpp='$CPP $CPPFLAGS'
1417913171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1418013172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418113173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14183 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14184 if test ${am_cv_prog_cc_c_o+y}
14185 then :
14186 printf %s "(cached) " >&6
14187 else $as_nop
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13175 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13176 if ${am_cv_prog_cc_c_o+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
1418813179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1418913180 /* end confdefs.h. */
1419013181
1419113182 int
14192 main (void)
13183 main ()
1419313184 {
1419413185
1419513186 ;
1421713208 rm -f core conftest*
1421813209 unset am_i
1421913210 fi
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14221 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13212 $as_echo "$am_cv_prog_cc_c_o" >&6; }
1422213213 if test "$am_cv_prog_cc_c_o" != yes; then
1422313214 # Losing compiler, so override with the script.
1422413215 # FIXME: It is wrong to rewrite CC.
1424013231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1424113232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1424213233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14244 printf %s "checking how to run the C preprocessor... " >&6; }
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13235 $as_echo_n "checking how to run the C preprocessor... " >&6; }
1424513236 # On Suns, sometimes $CPP names a directory.
1424613237 if test -n "$CPP" && test -d "$CPP"; then
1424713238 CPP=
1424813239 fi
1424913240 if test -z "$CPP"; then
14250 if test ${ac_cv_prog_CPP+y}
14251 then :
14252 printf %s "(cached) " >&6
14253 else $as_nop
14254 # Double quotes because $CC needs to be expanded
14255 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13241 if ${ac_cv_prog_CPP+:} false; then :
13242 $as_echo_n "(cached) " >&6
13243 else
13244 # Double quotes because CPP needs to be expanded
13245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1425613246 do
1425713247 ac_preproc_ok=false
1425813248 for ac_c_preproc_warn_flag in '' yes
1425913249 do
1426013250 # Use a header file that comes with gcc, so configuring glibc
1426113251 # with a fresh cross-compiler works.
13252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13253 # <limits.h> exists even on freestanding compilers.
1426213254 # On the NeXT, cc -E runs the code through the compiler's parser,
1426313255 # not just through cpp. "Syntax error" is here to catch this case.
1426413256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1426513257 /* end confdefs.h. */
14266 #include <limits.h>
13258 #ifdef __STDC__
13259 # include <limits.h>
13260 #else
13261 # include <assert.h>
13262 #endif
1426713263 Syntax error
1426813264 _ACEOF
14269 if ac_fn_c_try_cpp "$LINENO"
14270 then :
14271
14272 else $as_nop
13265 if ac_fn_c_try_cpp "$LINENO"; then :
13266
13267 else
1427313268 # Broken: fails on valid input.
1427413269 continue
1427513270 fi
1428113276 /* end confdefs.h. */
1428213277 #include <ac_nonexistent.h>
1428313278 _ACEOF
14284 if ac_fn_c_try_cpp "$LINENO"
14285 then :
13279 if ac_fn_c_try_cpp "$LINENO"; then :
1428613280 # Broken: success on invalid input.
1428713281 continue
14288 else $as_nop
13282 else
1428913283 # Passes both tests.
1429013284 ac_preproc_ok=:
1429113285 break
1429513289 done
1429613290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1429713291 rm -f conftest.i conftest.err conftest.$ac_ext
14298 if $ac_preproc_ok
14299 then :
13292 if $ac_preproc_ok; then :
1430013293 break
1430113294 fi
1430213295
1430813301 else
1430913302 ac_cv_prog_CPP=$CPP
1431013303 fi
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14312 printf "%s\n" "$CPP" >&6; }
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13305 $as_echo "$CPP" >&6; }
1431313306 ac_preproc_ok=false
1431413307 for ac_c_preproc_warn_flag in '' yes
1431513308 do
1431613309 # Use a header file that comes with gcc, so configuring glibc
1431713310 # with a fresh cross-compiler works.
13311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13312 # <limits.h> exists even on freestanding compilers.
1431813313 # On the NeXT, cc -E runs the code through the compiler's parser,
1431913314 # not just through cpp. "Syntax error" is here to catch this case.
1432013315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1432113316 /* end confdefs.h. */
14322 #include <limits.h>
13317 #ifdef __STDC__
13318 # include <limits.h>
13319 #else
13320 # include <assert.h>
13321 #endif
1432313322 Syntax error
1432413323 _ACEOF
14325 if ac_fn_c_try_cpp "$LINENO"
14326 then :
14327
14328 else $as_nop
13324 if ac_fn_c_try_cpp "$LINENO"; then :
13325
13326 else
1432913327 # Broken: fails on valid input.
1433013328 continue
1433113329 fi
1433713335 /* end confdefs.h. */
1433813336 #include <ac_nonexistent.h>
1433913337 _ACEOF
14340 if ac_fn_c_try_cpp "$LINENO"
14341 then :
13338 if ac_fn_c_try_cpp "$LINENO"; then :
1434213339 # Broken: success on invalid input.
1434313340 continue
14344 else $as_nop
13341 else
1434513342 # Passes both tests.
1434613343 ac_preproc_ok=:
1434713344 break
1435113348 done
1435213349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1435313350 rm -f conftest.i conftest.err conftest.$ac_ext
14354 if $ac_preproc_ok
14355 then :
14356
14357 else $as_nop
14358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14359 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13351 if $ac_preproc_ok; then :
13352
13353 else
13354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1436013356 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1436113357 See \`config.log' for more details" "$LINENO" 5; }
1436213358 fi
1436813364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436913365
1437013366
14371 if test "$ac_prog_cc_stdc" != no; then
14372
14373 printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h
14374
14375
14376 printf "%s\n" "#define __PROTOTYPES 1" >>confdefs.h
14377
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
13368 $as_echo_n "checking for function prototypes... " >&6; }
13369 if test "$ac_cv_prog_cc_c89" != no; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13371 $as_echo "yes" >&6; }
13372
13373 $as_echo "#define PROTOTYPES 1" >>confdefs.h
13374
13375
13376 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
13377
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
1437813381 fi
1437913382
1438013383 test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
14381
1438213384
1438313385
1438413386
1440513407 ax_pthread_save_CC="$CC"
1440613408 ax_pthread_save_CFLAGS="$CFLAGS"
1440713409 ax_pthread_save_LIBS="$LIBS"
14408 if test "x$PTHREAD_CC" != "x"
14409 then :
13410 if test "x$PTHREAD_CC" != "x"; then :
1441013411 CC="$PTHREAD_CC"
1441113412 fi
14412 if test "x$PTHREAD_CXX" != "x"
14413 then :
13413 if test "x$PTHREAD_CXX" != "x"; then :
1441413414 CXX="$PTHREAD_CXX"
1441513415 fi
1441613416 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1441713417 LIBS="$PTHREAD_LIBS $LIBS"
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14419 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13419 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
1442013420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1442113421 /* end confdefs.h. */
1442213422
1442313423 /* Override any GCC internal prototype to avoid an error.
1442413424 Use char because int might match the return type of a GCC
1442513425 builtin and then its argument prototype would still apply. */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
1442613429 char pthread_join ();
1442713430 int
14428 main (void)
13431 main ()
1442913432 {
1443013433 return pthread_join ();
1443113434 ;
1443213435 return 0;
1443313436 }
1443413437 _ACEOF
14435 if ac_fn_c_try_link "$LINENO"
14436 then :
13438 if ac_fn_c_try_link "$LINENO"; then :
1443713439 ax_pthread_ok=yes
1443813440 fi
14439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13441 rm -f core conftest.err conftest.$ac_objext \
1444013442 conftest$ac_exeext conftest.$ac_ext
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14442 printf "%s\n" "$ax_pthread_ok" >&6; }
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13444 $as_echo "$ax_pthread_ok" >&6; }
1444313445 if test "x$ax_pthread_ok" = "xno"; then
1444413446 PTHREAD_LIBS=""
1444513447 PTHREAD_CFLAGS=""
1451713519
1451813520 _ACEOF
1451913521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14520 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
14521 then :
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14523 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14524 fi
14525 rm -rf conftest*
13522 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13524 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13525 fi
13526 rm -f conftest*
1452613527
1452713528 ;;
1452813529
1454213543
1454313544 # Are we compiling with Clang?
1454413545
14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14546 printf %s "checking whether $CC is Clang... " >&6; }
14547 if test ${ax_cv_PTHREAD_CLANG+y}
14548 then :
14549 printf %s "(cached) " >&6
14550 else $as_nop
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13547 $as_echo_n "checking whether $CC is Clang... " >&6; }
13548 if ${ax_cv_PTHREAD_CLANG+:} false; then :
13549 $as_echo_n "(cached) " >&6
13550 else
1455113551 ax_cv_PTHREAD_CLANG=no
1455213552 # Note that Autoconf sets GCC=yes for Clang as well as GCC
1455313553 if test "x$GCC" = "xyes"; then
1456013560
1456113561 _ACEOF
1456213562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14563 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
14564 then :
13563 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
1456513564 ax_cv_PTHREAD_CLANG=yes
1456613565 fi
14567 rm -rf conftest*
13566 rm -f conftest*
1456813567
1456913568 fi
1457013569
1457113570 fi
14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14573 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13572 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
1457413573 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
1457513574
1457613575
1458413583 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
1458513584 # To solve this, first try -pthread together with -lpthread for GCC
1458613585
14587 if test "x$GCC" = "xyes"
14588 then :
13586 if test "x$GCC" = "xyes"; then :
1458913587 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
1459013588 fi
1459113589
1459213590 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
1459313591
14594 if test "x$ax_pthread_clang" = "xyes"
14595 then :
13592 if test "x$ax_pthread_clang" = "xyes"; then :
1459613593 ax_pthread_flags="-pthread,-lpthread -pthread"
1459713594 fi
1459813595
1461413611 ax_pthread_check_macro="--"
1461513612 ;;
1461613613 esac
14617 if test "x$ax_pthread_check_macro" = "x--"
14618 then :
13614 if test "x$ax_pthread_check_macro" = "x--"; then :
1461913615 ax_pthread_check_cond=0
14620 else $as_nop
13616 else
1462113617 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
1462213618 fi
1462313619
1462713623
1462813624 case $ax_pthread_try_flag in
1462913625 none)
14630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14631 printf %s "checking whether pthreads work without any flags... " >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13627 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
1463213628 ;;
1463313629
1463413630 *,*)
1463513631 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
1463613632 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
14637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
14638 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
13634 $as_echo_n "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
1463913635 ;;
1464013636
1464113637 -*)
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14643 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13639 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
1464413640 PTHREAD_CFLAGS="$ax_pthread_try_flag"
1464513641 ;;
1464613642
1464713643 pthread-config)
1464813644 # Extract the first word of "pthread-config", so it can be a program name with args.
1464913645 set dummy pthread-config; ac_word=$2
14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14651 printf %s "checking for $ac_word... " >&6; }
14652 if test ${ac_cv_prog_ax_pthread_config+y}
14653 then :
14654 printf %s "(cached) " >&6
14655 else $as_nop
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647 $as_echo_n "checking for $ac_word... " >&6; }
13648 if ${ac_cv_prog_ax_pthread_config+:} false; then :
13649 $as_echo_n "(cached) " >&6
13650 else
1465613651 if test -n "$ax_pthread_config"; then
1465713652 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
1465813653 else
1466013655 for as_dir in $PATH
1466113656 do
1466213657 IFS=$as_save_IFS
14663 case $as_dir in #(((
14664 '') as_dir=./ ;;
14665 */) ;;
14666 *) as_dir=$as_dir/ ;;
14667 esac
13658 test -z "$as_dir" && as_dir=.
1466813659 for ac_exec_ext in '' $ac_executable_extensions; do
14669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467013661 ac_cv_prog_ax_pthread_config="yes"
14671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1467213663 break 2
1467313664 fi
1467413665 done
1468013671 fi
1468113672 ax_pthread_config=$ac_cv_prog_ax_pthread_config
1468213673 if test -n "$ax_pthread_config"; then
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14684 printf "%s\n" "$ax_pthread_config" >&6; }
14685 else
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687 printf "%s\n" "no" >&6; }
14688 fi
14689
14690
14691 if test "x$ax_pthread_config" = "xno"
14692 then :
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13675 $as_echo "$ax_pthread_config" >&6; }
13676 else
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13678 $as_echo "no" >&6; }
13679 fi
13680
13681
13682 if test "x$ax_pthread_config" = "xno"; then :
1469313683 continue
1469413684 fi
1469513685 PTHREAD_CFLAGS="`pthread-config --cflags`"
1469713687 ;;
1469813688
1469913689 *)
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14701 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13691 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
1470213692 PTHREAD_LIBS="-l$ax_pthread_try_flag"
1470313693 ;;
1470413694 esac
1473313723 }
1473413724 static void *start_routine(void *a) { return a; }
1473513725 int
14736 main (void)
13726 main ()
1473713727 {
1473813728 pthread_t th; pthread_attr_t attr;
1473913729 pthread_create(&th, 0, start_routine, 0);
1474513735 return 0;
1474613736 }
1474713737 _ACEOF
14748 if ac_fn_c_try_link "$LINENO"
14749 then :
13738 if ac_fn_c_try_link "$LINENO"; then :
1475013739 ax_pthread_ok=yes
1475113740 fi
14752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13741 rm -f core conftest.err conftest.$ac_objext \
1475313742 conftest$ac_exeext conftest.$ac_ext
1475413743
1475513744 CFLAGS="$ax_pthread_save_CFLAGS"
1475613745 LIBS="$ax_pthread_save_LIBS"
1475713746
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14759 printf "%s\n" "$ax_pthread_ok" >&6; }
14760 if test "x$ax_pthread_ok" = "xyes"
14761 then :
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13748 $as_echo "$ax_pthread_ok" >&6; }
13749 if test "x$ax_pthread_ok" = "xyes"; then :
1476213750 break
1476313751 fi
1476413752
1480413792 # that build with -Werror. So if the active version of Clang has
1480513793 # this misfeature, we search for an option to squash it.
1480613794
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14808 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14809 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
14810 then :
14811 printf %s "(cached) " >&6
14812 else $as_nop
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13796 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13797 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
1481313800 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
1481413801 # Create an alternate version of $ac_link that compiles and
1481513802 # links in two steps (.c -> .o, .o -> exe) instead of one
1481713804 # step
1481813805 ax_pthread_save_ac_link="$ac_link"
1481913806 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14820 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
13807 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
1482113808 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
1482213809 ax_pthread_save_CFLAGS="$CFLAGS"
1482313810 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
14824 if test "x$ax_pthread_try" = "xunknown"
14825 then :
13811 if test "x$ax_pthread_try" = "xunknown"; then :
1482613812 break
1482713813 fi
1482813814 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
1483113817 /* end confdefs.h. */
1483213818 int main(void){return 0;}
1483313819 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"
14835 then :
13820 if ac_fn_c_try_link "$LINENO"; then :
1483613821 ac_link="$ax_pthread_2step_ac_link"
1483713822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1483813823 /* end confdefs.h. */
1483913824 int main(void){return 0;}
1484013825 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"
14842 then :
13826 if ac_fn_c_try_link "$LINENO"; then :
1484313827 break
1484413828 fi
14845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13829 rm -f core conftest.err conftest.$ac_objext \
1484613830 conftest$ac_exeext conftest.$ac_ext
1484713831
1484813832 fi
14849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13833 rm -f core conftest.err conftest.$ac_objext \
1485013834 conftest$ac_exeext conftest.$ac_ext
1485113835 done
1485213836 ac_link="$ax_pthread_save_ac_link"
1485313837 CFLAGS="$ax_pthread_save_CFLAGS"
14854 if test "x$ax_pthread_try" = "x"
14855 then :
13838 if test "x$ax_pthread_try" = "x"; then :
1485613839 ax_pthread_try=no
1485713840 fi
1485813841 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
1485913842
1486013843 fi
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14862 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13845 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
1486313846
1486413847 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
1486513848 no | unknown) ;;
1487813861 LIBS="$PTHREAD_LIBS $LIBS"
1487913862
1488013863 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14882 printf %s "checking for joinable pthread attribute... " >&6; }
14883 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
14884 then :
14885 printf %s "(cached) " >&6
14886 else $as_nop
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13865 $as_echo_n "checking for joinable pthread attribute... " >&6; }
13866 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
1488713869 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
1488813870 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
1488913871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1489013872 /* end confdefs.h. */
1489113873 #include <pthread.h>
1489213874 int
14893 main (void)
13875 main ()
1489413876 {
1489513877 int attr = $ax_pthread_attr; return attr /* ; */
1489613878 ;
1489713879 return 0;
1489813880 }
1489913881 _ACEOF
14900 if ac_fn_c_try_link "$LINENO"
14901 then :
13882 if ac_fn_c_try_link "$LINENO"; then :
1490213883 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
1490313884 fi
14904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13885 rm -f core conftest.err conftest.$ac_objext \
1490513886 conftest$ac_exeext conftest.$ac_ext
1490613887 done
1490713888
1490813889 fi
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14910 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
13891 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
1491113892 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
1491213893 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14913 test "x$ax_pthread_joinable_attr_defined" != "xyes"
14914 then :
14915
14916 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
13894 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
13895
13896 cat >>confdefs.h <<_ACEOF
13897 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
13898 _ACEOF
1491713899
1491813900 ax_pthread_joinable_attr_defined=yes
1491913901
1492013902 fi
1492113903
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14923 printf %s "checking whether more special flags are required for pthreads... " >&6; }
14924 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
14925 then :
14926 printf %s "(cached) " >&6
14927 else $as_nop
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
13905 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
13906 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
13907 $as_echo_n "(cached) " >&6
13908 else
1492813909 ax_cv_PTHREAD_SPECIAL_FLAGS=no
1492913910 case $host_os in
1493013911 solaris*)
1493313914 esac
1493413915
1493513916 fi
14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14937 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
13918 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
1493813919 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14939 test "x$ax_pthread_special_flags_added" != "xyes"
14940 then :
13920 test "x$ax_pthread_special_flags_added" != "xyes"; then :
1494113921 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
1494213922 ax_pthread_special_flags_added=yes
1494313923 fi
1494413924
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14946 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14947 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
14948 then :
14949 printf %s "(cached) " >&6
14950 else $as_nop
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13926 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13927 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
13928 $as_echo_n "(cached) " >&6
13929 else
1495113930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1495213931 /* end confdefs.h. */
1495313932 #include <pthread.h>
1495413933 int
14955 main (void)
13934 main ()
1495613935 {
1495713936 int i = PTHREAD_PRIO_INHERIT;
1495813937 return i;
1496013939 return 0;
1496113940 }
1496213941 _ACEOF
14963 if ac_fn_c_try_link "$LINENO"
14964 then :
13942 if ac_fn_c_try_link "$LINENO"; then :
1496513943 ax_cv_PTHREAD_PRIO_INHERIT=yes
14966 else $as_nop
13944 else
1496713945 ax_cv_PTHREAD_PRIO_INHERIT=no
1496813946 fi
14969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13947 rm -f core conftest.err conftest.$ac_objext \
1497013948 conftest$ac_exeext conftest.$ac_ext
1497113949
1497213950 fi
14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14974 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13952 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
1497513953 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14976 test "x$ax_pthread_prio_inherit_defined" != "xyes"
14977 then :
14978
14979 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13954 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
13955
13956 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
1498013957
1498113958 ax_pthread_prio_inherit_defined=yes
1498213959
1499513972 case "x$CC" in #(
1499613973 x/*) :
1499713974
14998 if as_fn_executable_p ${CC}_r
14999 then :
13975 if as_fn_executable_p ${CC}_r; then :
1500013976 PTHREAD_CC="${CC}_r"
1500113977 fi
15002 if test "x${CXX}" != "x"
15003 then :
15004 if as_fn_executable_p ${CXX}_r
15005 then :
13978 if test "x${CXX}" != "x"; then :
13979 if as_fn_executable_p ${CXX}_r; then :
1500613980 PTHREAD_CXX="${CXX}_r"
1500713981 fi
1500813982 fi
1501313987 do
1501413988 # Extract the first word of "$ac_prog", so it can be a program name with args.
1501513989 set dummy $ac_prog; ac_word=$2
15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15017 printf %s "checking for $ac_word... " >&6; }
15018 if test ${ac_cv_prog_PTHREAD_CC+y}
15019 then :
15020 printf %s "(cached) " >&6
15021 else $as_nop
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13993 $as_echo_n "(cached) " >&6
13994 else
1502213995 if test -n "$PTHREAD_CC"; then
1502313996 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
1502413997 else
1502613999 for as_dir in $PATH
1502714000 do
1502814001 IFS=$as_save_IFS
15029 case $as_dir in #(((
15030 '') as_dir=./ ;;
15031 */) ;;
15032 *) as_dir=$as_dir/ ;;
15033 esac
14002 test -z "$as_dir" && as_dir=.
1503414003 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503614005 ac_cv_prog_PTHREAD_CC="$ac_prog"
15037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1503814007 break 2
1503914008 fi
1504014009 done
1504514014 fi
1504614015 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
1504714016 if test -n "$PTHREAD_CC"; then
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15049 printf "%s\n" "$PTHREAD_CC" >&6; }
15050 else
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 printf "%s\n" "no" >&6; }
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14018 $as_echo "$PTHREAD_CC" >&6; }
14019 else
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
1505314022 fi
1505414023
1505514024
1505714026 done
1505814027 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
1505914028
15060 if test "x${CXX}" != "x"
15061 then :
14029 if test "x${CXX}" != "x"; then :
1506214030 for ac_prog in ${CXX}_r
1506314031 do
1506414032 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506514033 set dummy $ac_prog; ac_word=$2
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067 printf %s "checking for $ac_word... " >&6; }
15068 if test ${ac_cv_prog_PTHREAD_CXX+y}
15069 then :
15070 printf %s "(cached) " >&6
15071 else $as_nop
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14035 $as_echo_n "checking for $ac_word... " >&6; }
14036 if ${ac_cv_prog_PTHREAD_CXX+:} false; then :
14037 $as_echo_n "(cached) " >&6
14038 else
1507214039 if test -n "$PTHREAD_CXX"; then
1507314040 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
1507414041 else
1507614043 for as_dir in $PATH
1507714044 do
1507814045 IFS=$as_save_IFS
15079 case $as_dir in #(((
15080 '') as_dir=./ ;;
15081 */) ;;
15082 *) as_dir=$as_dir/ ;;
15083 esac
14046 test -z "$as_dir" && as_dir=.
1508414047 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508614049 ac_cv_prog_PTHREAD_CXX="$ac_prog"
15087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1508814051 break 2
1508914052 fi
1509014053 done
1509514058 fi
1509614059 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
1509714060 if test -n "$PTHREAD_CXX"; then
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
15099 printf "%s\n" "$PTHREAD_CXX" >&6; }
15100 else
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 printf "%s\n" "no" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
14062 $as_echo "$PTHREAD_CXX" >&6; }
14063 else
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
1510314066 fi
1510414067
1510514068
1513114094 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
1513214095 if test "x$ax_pthread_ok" = "xyes"; then
1513314096
15134 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
14097 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
1513514098
1513614099 :
1513714100 else
1514314106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514414107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514514108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15146
15147
15148
15149
15150
15151
1515214109
1515314110
1515414111
1516214119 CXX=$CCC
1516314120 else
1516414121 if test -n "$ac_tool_prefix"; then
15165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14122 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1516614123 do
1516714124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1516814125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15170 printf %s "checking for $ac_word... " >&6; }
15171 if test ${ac_cv_prog_CXX+y}
15172 then :
15173 printf %s "(cached) " >&6
15174 else $as_nop
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14127 $as_echo_n "checking for $ac_word... " >&6; }
14128 if ${ac_cv_prog_CXX+:} false; then :
14129 $as_echo_n "(cached) " >&6
14130 else
1517514131 if test -n "$CXX"; then
1517614132 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1517714133 else
1517914135 for as_dir in $PATH
1518014136 do
1518114137 IFS=$as_save_IFS
15182 case $as_dir in #(((
15183 '') as_dir=./ ;;
15184 */) ;;
15185 *) as_dir=$as_dir/ ;;
15186 esac
14138 test -z "$as_dir" && as_dir=.
1518714139 for ac_exec_ext in '' $ac_executable_extensions; do
15188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518914141 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1519114143 break 2
1519214144 fi
1519314145 done
1519814150 fi
1519914151 CXX=$ac_cv_prog_CXX
1520014152 if test -n "$CXX"; then
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15202 printf "%s\n" "$CXX" >&6; }
15203 else
15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15205 printf "%s\n" "no" >&6; }
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14154 $as_echo "$CXX" >&6; }
14155 else
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157 $as_echo "no" >&6; }
1520614158 fi
1520714159
1520814160
1521114163 fi
1521214164 if test -z "$CXX"; then
1521314165 ac_ct_CXX=$CXX
15214 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1521514167 do
1521614168 # Extract the first word of "$ac_prog", so it can be a program name with args.
1521714169 set dummy $ac_prog; ac_word=$2
15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15219 printf %s "checking for $ac_word... " >&6; }
15220 if test ${ac_cv_prog_ac_ct_CXX+y}
15221 then :
15222 printf %s "(cached) " >&6
15223 else $as_nop
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
1522414175 if test -n "$ac_ct_CXX"; then
1522514176 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1522614177 else
1522814179 for as_dir in $PATH
1522914180 do
1523014181 IFS=$as_save_IFS
15231 case $as_dir in #(((
15232 '') as_dir=./ ;;
15233 */) ;;
15234 *) as_dir=$as_dir/ ;;
15235 esac
14182 test -z "$as_dir" && as_dir=.
1523614183 for ac_exec_ext in '' $ac_executable_extensions; do
15237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523814185 ac_cv_prog_ac_ct_CXX="$ac_prog"
15239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1524014187 break 2
1524114188 fi
1524214189 done
1524714194 fi
1524814195 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1524914196 if test -n "$ac_ct_CXX"; then
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15251 printf "%s\n" "$ac_ct_CXX" >&6; }
15252 else
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15254 printf "%s\n" "no" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14198 $as_echo "$ac_ct_CXX" >&6; }
14199 else
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
1525514202 fi
1525614203
1525714204
1526314210 else
1526414211 case $cross_compiling:$ac_tool_warned in
1526514212 yes:)
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1526814215 ac_tool_warned=yes ;;
1526914216 esac
1527014217 CXX=$ac_ct_CXX
1527414221 fi
1527514222 fi
1527614223 # Provide some information about the compiler.
15277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
1527814225 set X $ac_compile
1527914226 ac_compiler=$2
1528014227 for ac_option in --version -v -V -qversion; do
1528414231 *) ac_try_echo=$ac_try;;
1528514232 esac
1528614233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15287 printf "%s\n" "$ac_try_echo"; } >&5
14234 $as_echo "$ac_try_echo"; } >&5
1528814235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1528914236 ac_status=$?
1529014237 if test -s conftest.err; then
1529414241 cat conftest.er1 >&5
1529514242 fi
1529614243 rm -f conftest.er1 conftest.err
15297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529814245 test $ac_status = 0; }
1529914246 done
1530014247
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15302 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15303 if test ${ac_cv_cxx_compiler_gnu+y}
15304 then :
15305 printf %s "(cached) " >&6
15306 else $as_nop
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14249 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14250 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
1530714253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530814254 /* end confdefs.h. */
1530914255
1531014256 int
15311 main (void)
14257 main ()
1531214258 {
1531314259 #ifndef __GNUC__
1531414260 choke me
1531814264 return 0;
1531914265 }
1532014266 _ACEOF
15321 if ac_fn_cxx_try_compile "$LINENO"
15322 then :
14267 if ac_fn_cxx_try_compile "$LINENO"; then :
1532314268 ac_compiler_gnu=yes
15324 else $as_nop
14269 else
1532514270 ac_compiler_gnu=no
1532614271 fi
15327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1532814273 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1532914274
1533014275 fi
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15332 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15334
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14277 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
1533514278 if test $ac_compiler_gnu = yes; then
1533614279 GXX=yes
1533714280 else
1533814281 GXX=
1533914282 fi
15340 ac_test_CXXFLAGS=${CXXFLAGS+y}
14283 ac_test_CXXFLAGS=${CXXFLAGS+set}
1534114284 ac_save_CXXFLAGS=$CXXFLAGS
15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15343 printf %s "checking whether $CXX accepts -g... " >&6; }
15344 if test ${ac_cv_prog_cxx_g+y}
15345 then :
15346 printf %s "(cached) " >&6
15347 else $as_nop
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14286 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14287 if ${ac_cv_prog_cxx_g+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
1534814290 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1534914291 ac_cxx_werror_flag=yes
1535014292 ac_cv_prog_cxx_g=no
1535314295 /* end confdefs.h. */
1535414296
1535514297 int
15356 main (void)
14298 main ()
1535714299 {
1535814300
1535914301 ;
1536014302 return 0;
1536114303 }
1536214304 _ACEOF
15363 if ac_fn_cxx_try_compile "$LINENO"
15364 then :
14305 if ac_fn_cxx_try_compile "$LINENO"; then :
1536514306 ac_cv_prog_cxx_g=yes
15366 else $as_nop
14307 else
1536714308 CXXFLAGS=""
1536814309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1536914310 /* end confdefs.h. */
1537014311
1537114312 int
15372 main (void)
14313 main ()
1537314314 {
1537414315
1537514316 ;
1537614317 return 0;
1537714318 }
1537814319 _ACEOF
15379 if ac_fn_cxx_try_compile "$LINENO"
15380 then :
15381
15382 else $as_nop
14320 if ac_fn_cxx_try_compile "$LINENO"; then :
14321
14322 else
1538314323 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1538414324 CXXFLAGS="-g"
1538514325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538614326 /* end confdefs.h. */
1538714327
1538814328 int
15389 main (void)
14329 main ()
1539014330 {
1539114331
1539214332 ;
1539314333 return 0;
1539414334 }
1539514335 _ACEOF
15396 if ac_fn_cxx_try_compile "$LINENO"
15397 then :
14336 if ac_fn_cxx_try_compile "$LINENO"; then :
1539814337 ac_cv_prog_cxx_g=yes
1539914338 fi
15400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 fi
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1540514344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1540614345 fi
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15408 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15409 if test $ac_test_CXXFLAGS; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14347 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14348 if test "$ac_test_CXXFLAGS" = set; then
1541014349 CXXFLAGS=$ac_save_CXXFLAGS
1541114350 elif test $ac_cv_prog_cxx_g = yes; then
1541214351 if test "$GXX" = yes; then
1542114360 CXXFLAGS=
1542214361 fi
1542314362 fi
15424 ac_prog_cxx_stdcxx=no
15425 if test x$ac_prog_cxx_stdcxx = xno
15426 then :
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15428 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15429 if test ${ac_cv_prog_cxx_11+y}
15430 then :
15431 printf %s "(cached) " >&6
15432 else $as_nop
15433 ac_cv_prog_cxx_11=no
15434 ac_save_CXX=$CXX
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437 $ac_cxx_conftest_cxx11_program
15438 _ACEOF
15439 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15440 do
15441 CXX="$ac_save_CXX $ac_arg"
15442 if ac_fn_cxx_try_compile "$LINENO"
15443 then :
15444 ac_cv_prog_cxx_cxx11=$ac_arg
15445 fi
15446 rm -f core conftest.err conftest.$ac_objext conftest.beam
15447 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15448 done
15449 rm -f conftest.$ac_ext
15450 CXX=$ac_save_CXX
15451 fi
15452
15453 if test "x$ac_cv_prog_cxx_cxx11" = xno
15454 then :
15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15456 printf "%s\n" "unsupported" >&6; }
15457 else $as_nop
15458 if test "x$ac_cv_prog_cxx_cxx11" = x
15459 then :
15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15461 printf "%s\n" "none needed" >&6; }
15462 else $as_nop
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15464 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15465 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15466 fi
15467 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15468 ac_prog_cxx_stdcxx=cxx11
15469 fi
15470 fi
15471 if test x$ac_prog_cxx_stdcxx = xno
15472 then :
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15474 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15475 if test ${ac_cv_prog_cxx_98+y}
15476 then :
15477 printf %s "(cached) " >&6
15478 else $as_nop
15479 ac_cv_prog_cxx_98=no
15480 ac_save_CXX=$CXX
15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15483 $ac_cxx_conftest_cxx98_program
15484 _ACEOF
15485 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15486 do
15487 CXX="$ac_save_CXX $ac_arg"
15488 if ac_fn_cxx_try_compile "$LINENO"
15489 then :
15490 ac_cv_prog_cxx_cxx98=$ac_arg
15491 fi
15492 rm -f core conftest.err conftest.$ac_objext conftest.beam
15493 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15494 done
15495 rm -f conftest.$ac_ext
15496 CXX=$ac_save_CXX
15497 fi
15498
15499 if test "x$ac_cv_prog_cxx_cxx98" = xno
15500 then :
15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15502 printf "%s\n" "unsupported" >&6; }
15503 else $as_nop
15504 if test "x$ac_cv_prog_cxx_cxx98" = x
15505 then :
15506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15507 printf "%s\n" "none needed" >&6; }
15508 else $as_nop
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15510 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15511 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15512 fi
15513 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15514 ac_prog_cxx_stdcxx=cxx98
15515 fi
15516 fi
15517
1551814363 ac_ext=c
1551914364 ac_cpp='$CPP $CPPFLAGS'
1552014365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1552314368
1552414369 depcc="$CXX" am_compiler_list=
1552514370
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15527 printf %s "checking dependency style of $depcc... " >&6; }
15528 if test ${am_cv_CXX_dependencies_compiler_type+y}
15529 then :
15530 printf %s "(cached) " >&6
15531 else $as_nop
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14372 $as_echo_n "checking dependency style of $depcc... " >&6; }
14373 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
1553214376 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1553314377 # We make a subdir and do the tests there. Otherwise we can end up
1553414378 # making bogus files that we don't know about and never remove. For
1563514479 fi
1563614480
1563714481 fi
15638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15639 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14483 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1564014484 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
1564114485
1564214486 if
1566814512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1566914513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1567014514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15672 printf %s "checking how to run the C++ preprocessor... " >&6; }
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14516 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1567314517 if test -z "$CXXCPP"; then
15674 if test ${ac_cv_prog_CXXCPP+y}
15675 then :
15676 printf %s "(cached) " >&6
15677 else $as_nop
15678 # Double quotes because $CXX needs to be expanded
15679 for CXXCPP in "$CXX -E" cpp /lib/cpp
14518 if ${ac_cv_prog_CXXCPP+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 # Double quotes because CXXCPP needs to be expanded
14522 for CXXCPP in "$CXX -E" "/lib/cpp"
1568014523 do
1568114524 ac_preproc_ok=false
1568214525 for ac_cxx_preproc_warn_flag in '' yes
1568314526 do
1568414527 # Use a header file that comes with gcc, so configuring glibc
1568514528 # with a fresh cross-compiler works.
14529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14530 # <limits.h> exists even on freestanding compilers.
1568614531 # On the NeXT, cc -E runs the code through the compiler's parser,
1568714532 # not just through cpp. "Syntax error" is here to catch this case.
1568814533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568914534 /* end confdefs.h. */
15690 #include <limits.h>
14535 #ifdef __STDC__
14536 # include <limits.h>
14537 #else
14538 # include <assert.h>
14539 #endif
1569114540 Syntax error
1569214541 _ACEOF
15693 if ac_fn_cxx_try_cpp "$LINENO"
15694 then :
15695
15696 else $as_nop
14542 if ac_fn_cxx_try_cpp "$LINENO"; then :
14543
14544 else
1569714545 # Broken: fails on valid input.
1569814546 continue
1569914547 fi
1570514553 /* end confdefs.h. */
1570614554 #include <ac_nonexistent.h>
1570714555 _ACEOF
15708 if ac_fn_cxx_try_cpp "$LINENO"
15709 then :
14556 if ac_fn_cxx_try_cpp "$LINENO"; then :
1571014557 # Broken: success on invalid input.
1571114558 continue
15712 else $as_nop
14559 else
1571314560 # Passes both tests.
1571414561 ac_preproc_ok=:
1571514562 break
1571914566 done
1572014567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1572114568 rm -f conftest.i conftest.err conftest.$ac_ext
15722 if $ac_preproc_ok
15723 then :
14569 if $ac_preproc_ok; then :
1572414570 break
1572514571 fi
1572614572
1573214578 else
1573314579 ac_cv_prog_CXXCPP=$CXXCPP
1573414580 fi
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15736 printf "%s\n" "$CXXCPP" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14582 $as_echo "$CXXCPP" >&6; }
1573714583 ac_preproc_ok=false
1573814584 for ac_cxx_preproc_warn_flag in '' yes
1573914585 do
1574014586 # Use a header file that comes with gcc, so configuring glibc
1574114587 # with a fresh cross-compiler works.
14588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14589 # <limits.h> exists even on freestanding compilers.
1574214590 # On the NeXT, cc -E runs the code through the compiler's parser,
1574314591 # not just through cpp. "Syntax error" is here to catch this case.
1574414592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574514593 /* end confdefs.h. */
15746 #include <limits.h>
14594 #ifdef __STDC__
14595 # include <limits.h>
14596 #else
14597 # include <assert.h>
14598 #endif
1574714599 Syntax error
1574814600 _ACEOF
15749 if ac_fn_cxx_try_cpp "$LINENO"
15750 then :
15751
15752 else $as_nop
14601 if ac_fn_cxx_try_cpp "$LINENO"; then :
14602
14603 else
1575314604 # Broken: fails on valid input.
1575414605 continue
1575514606 fi
1576114612 /* end confdefs.h. */
1576214613 #include <ac_nonexistent.h>
1576314614 _ACEOF
15764 if ac_fn_cxx_try_cpp "$LINENO"
15765 then :
14615 if ac_fn_cxx_try_cpp "$LINENO"; then :
1576614616 # Broken: success on invalid input.
1576714617 continue
15768 else $as_nop
14618 else
1576914619 # Passes both tests.
1577014620 ac_preproc_ok=:
1577114621 break
1577514625 done
1577614626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1577714627 rm -f conftest.i conftest.err conftest.$ac_ext
15778 if $ac_preproc_ok
15779 then :
15780
15781 else $as_nop
15782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15783 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14628 if $ac_preproc_ok; then :
14629
14630 else
14631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1578414633 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
1578514634 See \`config.log' for more details" "$LINENO" 5; }
1578614635 fi
1591614765
1591714766
1591814767 # Check whether --with-gnu-ld was given.
15919 if test ${with_gnu_ld+y}
15920 then :
14768 if test "${with_gnu_ld+set}" = set; then :
1592114769 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15922 else $as_nop
14770 else
1592314771 with_gnu_ld=no
1592414772 fi
1592514773
1592614774 ac_prog=ld
1592714775 if test yes = "$GCC"; then
1592814776 # Check if gcc -print-prog-name=ld gives a path.
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15930 printf %s "checking for ld used by $CC... " >&6; }
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14778 $as_echo_n "checking for ld used by $CC... " >&6; }
1593114779 case $host in
1593214780 *-*-mingw*)
1593314781 # gcc leaves a trailing carriage return, which upsets mingw
1595614804 ;;
1595714805 esac
1595814806 elif test yes = "$with_gnu_ld"; then
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15960 printf %s "checking for GNU ld... " >&6; }
15961 else
15962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15963 printf %s "checking for non-GNU ld... " >&6; }
15964 fi
15965 if test ${lt_cv_path_LD+y}
15966 then :
15967 printf %s "(cached) " >&6
15968 else $as_nop
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14808 $as_echo_n "checking for GNU ld... " >&6; }
14809 else
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14811 $as_echo_n "checking for non-GNU ld... " >&6; }
14812 fi
14813 if ${lt_cv_path_LD+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
1596914816 if test -z "$LD"; then
1597014817 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1597114818 for ac_dir in $PATH; do
1599414841
1599514842 LD=$lt_cv_path_LD
1599614843 if test -n "$LD"; then
15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15998 printf "%s\n" "$LD" >&6; }
15999 else
16000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16001 printf "%s\n" "no" >&6; }
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14845 $as_echo "$LD" >&6; }
14846 else
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
1600214849 fi
1600314850 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16005 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16006 if test ${lt_cv_prog_gnu_ld+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else $as_nop
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14852 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14853 if ${lt_cv_prog_gnu_ld+:} false; then :
14854 $as_echo_n "(cached) " >&6
14855 else
1601014856 # I'd rather use --version here, but apparently some GNU lds only accept -v.
1601114857 case `$LD -v 2>&1 </dev/null` in
1601214858 *GNU* | *'with BFD'*)
1601714863 ;;
1601814864 esac
1601914865 fi
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16021 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14867 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1602214868 with_gnu_ld=$lt_cv_prog_gnu_ld
1602314869
1602414870
1607214918 fi
1607314919
1607414920 # PORTME: fill in a description of your system's C++ link characteristics
16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16076 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1607714923 ld_shlibs_CXX=yes
1607814924 case $host_os in
1607914925 aix3*)
1621115057 if test set = "${lt_cv_aix_libpath+set}"; then
1621215058 aix_libpath=$lt_cv_aix_libpath
1621315059 else
16214 if test ${lt_cv_aix_libpath__CXX+y}
16215 then :
16216 printf %s "(cached) " >&6
16217 else $as_nop
15060 if ${lt_cv_aix_libpath__CXX+:} false; then :
15061 $as_echo_n "(cached) " >&6
15062 else
1621815063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621915064 /* end confdefs.h. */
1622015065
1622115066 int
16222 main (void)
15067 main ()
1622315068 {
1622415069
1622515070 ;
1622615071 return 0;
1622715072 }
1622815073 _ACEOF
16229 if ac_fn_cxx_try_link "$LINENO"
16230 then :
15074 if ac_fn_cxx_try_link "$LINENO"; then :
1623115075
1623215076 lt_aix_libpath_sed='
1623315077 /Import File Strings/,/^$/ {
1624215086 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1624315087 fi
1624415088 fi
16245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15089 rm -f core conftest.err conftest.$ac_objext \
1624615090 conftest$ac_exeext conftest.$ac_ext
1624715091 if test -z "$lt_cv_aix_libpath__CXX"; then
1624815092 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1626715111 if test set = "${lt_cv_aix_libpath+set}"; then
1626815112 aix_libpath=$lt_cv_aix_libpath
1626915113 else
16270 if test ${lt_cv_aix_libpath__CXX+y}
16271 then :
16272 printf %s "(cached) " >&6
16273 else $as_nop
15114 if ${lt_cv_aix_libpath__CXX+:} false; then :
15115 $as_echo_n "(cached) " >&6
15116 else
1627415117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627515118 /* end confdefs.h. */
1627615119
1627715120 int
16278 main (void)
15121 main ()
1627915122 {
1628015123
1628115124 ;
1628215125 return 0;
1628315126 }
1628415127 _ACEOF
16285 if ac_fn_cxx_try_link "$LINENO"
16286 then :
15128 if ac_fn_cxx_try_link "$LINENO"; then :
1628715129
1628815130 lt_aix_libpath_sed='
1628915131 /Import File Strings/,/^$/ {
1629815140 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1629915141 fi
1630015142 fi
16301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15143 rm -f core conftest.err conftest.$ac_objext \
1630215144 conftest$ac_exeext conftest.$ac_ext
1630315145 if test -z "$lt_cv_aix_libpath__CXX"; then
1630415146 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1714915991 ;;
1715015992 esac
1715115993
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17153 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15995 $as_echo "$ld_shlibs_CXX" >&6; }
1715415996 test no = "$ld_shlibs_CXX" && can_build_shared=no
1715515997
1715615998 GCC_CXX=$GXX
1718816030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1718916031 (eval $ac_compile) 2>&5
1719016032 ac_status=$?
17191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719216034 test $ac_status = 0; }; then
1719316035 # Parse the compiler output and extract the necessary
1719416036 # objects, libraries and library flags.
1766916511 ;;
1767016512 esac
1767116513
17672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17673 printf %s "checking for $compiler option to produce PIC... " >&6; }
17674 if test ${lt_cv_prog_compiler_pic_CXX+y}
17675 then :
17676 printf %s "(cached) " >&6
17677 else $as_nop
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16515 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16516 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16517 $as_echo_n "(cached) " >&6
16518 else
1767816519 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
1767916520 fi
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17681 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16522 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1768216523 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
1768316524
1768416525 #
1768516526 # Check to make sure the PIC flag actually works.
1768616527 #
1768716528 if test -n "$lt_prog_compiler_pic_CXX"; then
17688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17689 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17690 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17691 then :
17692 printf %s "(cached) " >&6
17693 else $as_nop
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16530 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16531 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16532 $as_echo_n "(cached) " >&6
16533 else
1769416534 lt_cv_prog_compiler_pic_works_CXX=no
1769516535 ac_outfile=conftest.$ac_objext
1769616536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1772116561 $RM conftest*
1772216562
1772316563 fi
17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17725 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16565 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1772616566
1772716567 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1772816568 case $lt_prog_compiler_pic_CXX in
1774416584 # Check to make sure the static flag actually works.
1774516585 #
1774616586 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17748 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17749 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17750 then :
17751 printf %s "(cached) " >&6
17752 else $as_nop
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16589 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16590 $as_echo_n "(cached) " >&6
16591 else
1775316592 lt_cv_prog_compiler_static_works_CXX=no
1775416593 save_LDFLAGS=$LDFLAGS
1775516594 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1777316612 LDFLAGS=$save_LDFLAGS
1777416613
1777516614 fi
17776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17777 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16616 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1777816617
1777916618 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1778016619 :
1778516624
1778616625
1778716626
17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17789 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17790 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17791 then :
17792 printf %s "(cached) " >&6
17793 else $as_nop
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16629 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16630 $as_echo_n "(cached) " >&6
16631 else
1779416632 lt_cv_prog_compiler_c_o_CXX=no
1779516633 $RM -r conftest 2>/dev/null
1779616634 mkdir conftest
1783316671 $RM conftest*
1783416672
1783516673 fi
17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17837 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17838
17839
17840
17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17842 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17843 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17844 then :
17845 printf %s "(cached) " >&6
17846 else $as_nop
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16675 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16676
16677
16678
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16681 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16682 $as_echo_n "(cached) " >&6
16683 else
1784716684 lt_cv_prog_compiler_c_o_CXX=no
1784816685 $RM -r conftest 2>/dev/null
1784916686 mkdir conftest
1788616723 $RM conftest*
1788716724
1788816725 fi
17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17890 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16727 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1789116728
1789216729
1789316730
1789516732 hard_links=nottested
1789616733 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1789716734 # do not overwrite the value of need_locks provided by the user
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17899 printf %s "checking if we can lock with hard links... " >&6; }
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16736 $as_echo_n "checking if we can lock with hard links... " >&6; }
1790016737 hard_links=yes
1790116738 $RM conftest*
1790216739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1790316740 touch conftest.a
1790416741 ln conftest.a conftest.b 2>&5 || hard_links=no
1790516742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17907 printf "%s\n" "$hard_links" >&6; }
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16744 $as_echo "$hard_links" >&6; }
1790816745 if test no = "$hard_links"; then
17909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17910 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16747 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1791116748 need_locks=warn
1791216749 fi
1791316750 else
1791616753
1791716754
1791816755
17919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17920 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1792116758
1792216759 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1792316760 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1795616793 ;;
1795716794 esac
1795816795
17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17960 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16797 $as_echo "$ld_shlibs_CXX" >&6; }
1796116798 test no = "$ld_shlibs_CXX" && can_build_shared=no
1796216799
1796316800 with_gnu_ld_CXX=$with_gnu_ld
1798416821 # Test whether the compiler implicitly links with -lc since on some
1798516822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1798616823 # to ld, don't add -lc before -lgcc.
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17988 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17989 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17990 then :
17991 printf %s "(cached) " >&6
17992 else $as_nop
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16825 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16826 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
1799316829 $RM conftest*
1799416830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1799516831
1799616832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1799716833 (eval $ac_compile) 2>&5
1799816834 ac_status=$?
17999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800016836 test $ac_status = 0; } 2>conftest.err; then
1800116837 soname=conftest
1800216838 lib=conftest
1801416850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1801516851 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1801616852 ac_status=$?
18017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801816854 test $ac_status = 0; }
1801916855 then
1802016856 lt_cv_archive_cmds_need_lc_CXX=no
1802816864 $RM conftest*
1802916865
1803016866 fi
18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18032 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16868 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1803316869 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1803416870 ;;
1803516871 esac
1809816934
1809916935
1810016936
18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18102 printf %s "checking dynamic linker characteristics... " >&6; }
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16938 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1810316939
1810416940 library_names_spec=
1810516941 libname_spec='lib$name'
1858717423 shlibpath_overrides_runpath=no
1858817424
1858917425 # Some binutils ld are patched to set DT_RUNPATH
18590 if test ${lt_cv_shlibpath_overrides_runpath+y}
18591 then :
18592 printf %s "(cached) " >&6
18593 else $as_nop
17426 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17427 $as_echo_n "(cached) " >&6
17428 else
1859417429 lt_cv_shlibpath_overrides_runpath=no
1859517430 save_LDFLAGS=$LDFLAGS
1859617431 save_libdir=$libdir
1860017435 /* end confdefs.h. */
1860117436
1860217437 int
18603 main (void)
17438 main ()
1860417439 {
1860517440
1860617441 ;
1860717442 return 0;
1860817443 }
1860917444 _ACEOF
18610 if ac_fn_cxx_try_link "$LINENO"
18611 then :
18612 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18613 then :
17445 if ac_fn_cxx_try_link "$LINENO"; then :
17446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1861417447 lt_cv_shlibpath_overrides_runpath=yes
1861517448 fi
1861617449 fi
18617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17450 rm -f core conftest.err conftest.$ac_objext \
1861817451 conftest$ac_exeext conftest.$ac_ext
1861917452 LDFLAGS=$save_LDFLAGS
1862017453 libdir=$save_libdir
1884917682 dynamic_linker=no
1885017683 ;;
1885117684 esac
18852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18853 printf "%s\n" "$dynamic_linker" >&6; }
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17686 $as_echo "$dynamic_linker" >&6; }
1885417687 test no = "$dynamic_linker" && can_build_shared=no
1885517688
1885617689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1891417747
1891517748
1891617749
18917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18918 printf %s "checking how to hardcode library paths into programs... " >&6; }
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17751 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1891917752 hardcode_action_CXX=
1892017753 if test -n "$hardcode_libdir_flag_spec_CXX" ||
1892117754 test -n "$runpath_var_CXX" ||
1893917772 # directories.
1894017773 hardcode_action_CXX=unsupported
1894117774 fi
18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18943 printf "%s\n" "$hardcode_action_CXX" >&6; }
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17776 $as_echo "$hardcode_action_CXX" >&6; }
1894417777
1894517778 if test relink = "$hardcode_action_CXX" ||
1894617779 test yes = "$inherit_rpath_CXX"; then
1898017813
1898117814
1898217815
18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler really really works" >&5
18984 printf %s "checking if the C++ compiler really really works... " >&6; }
18985 if $CXX --version >&5 2>&1
18986 then :
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler really really works" >&5
17817 $as_echo_n "checking if the C++ compiler really really works... " >&6; }
17818 if $CXX --version >&5 2>&1; then :
1898717819 have_cxx=yes
18988 else $as_nop
17820 else
1898917821 have_cxx=no
1899017822 fi
18991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cxx" >&5
18992 printf "%s\n" "$have_cxx" >&6; }
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cxx" >&5
17824 $as_echo "$have_cxx" >&6; }
1899317825 if test "$have_cxx" = "yes"; then
1899417826 HAVE_CXX_TRUE=
1899517827 HAVE_CXX_FALSE='#'
1900017832
1900117833
1900217834 # Check whether --enable-gcc-warnings was given.
19003 if test ${enable_gcc_warnings+y}
19004 then :
17835 if test "${enable_gcc_warnings+set}" = set; then :
1900517836 enableval=$enable_gcc_warnings; case $enableval in
1900617837 yes|no) ;;
1900717838 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
1900817839 esac
1900917840 gcc_warnings=$enableval
19010 else $as_nop
17841 else
1901117842 gcc_warnings=no
1901217843
1901317844 fi
1902117852 CFLAGS_FOR_TEST="$CFLAGS -Werror"
1902217853 for flag in -Wvla -Wframe-larger-than=5000 -Wstack-usage=10000
1902317854 do
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $flag" >&5
19025 printf %s "checking whether the compiler supports $flag... " >&6; }
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $flag" >&5
17856 $as_echo_n "checking whether the compiler supports $flag... " >&6; }
1902617857 SAVED_CFLAGS="$CFLAGS"
1902717858 CFLAGS="$CFLAGS_FOR_TEST $flag"
1902817859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902917860 /* end confdefs.h. */
1903017861
1903117862 int
19032 main (void)
17863 main ()
1903317864 {
1903417865
1903517866 ;
1903717868 }
1903817869
1903917870 _ACEOF
19040 if ac_fn_c_try_compile "$LINENO"
19041 then :
19042
19043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19044 printf "%s\n" "yes" >&6; }
17871 if ac_fn_c_try_compile "$LINENO"; then :
17872
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17874 $as_echo "yes" >&6; }
1904517875 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} $flag"
1904617876
19047 else $as_nop
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19049 printf "%s\n" "no" >&6; }
19050 fi
19051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17877 else
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879 $as_echo "no" >&6; }
17880 fi
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905217882 CFLAGS="$SAVED_CFLAGS"
1905317883 done
1905417884
1905517885
1905617886 fi
1905717887
19058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __auto_type is available in this compiler" >&5
19059 printf %s "checking if __auto_type is available in this compiler... " >&6; }
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __auto_type is available in this compiler" >&5
17889 $as_echo_n "checking if __auto_type is available in this compiler... " >&6; }
1906017890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906117891 /* end confdefs.h. */
1906217892
1907017900
1907117901
1907217902 _ACEOF
19073 if ac_fn_c_try_compile "$LINENO"
19074 then :
19075
19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19077 printf "%s\n" "yes" >&6; }
19078
19079 printf "%s\n" "#define HAVE_AUTO_TYPE 1" >>confdefs.h
19080
19081
19082 else $as_nop
19083
19084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 printf "%s\n" "no" >&6; }
19086
19087
19088 fi
19089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19090
19091 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19092 if test "x$ac_cv_header_byteswap_h" = xyes
19093 then :
19094 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
19095
19096 fi
19097 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
19098 if test "x$ac_cv_header_endian_h" = xyes
19099 then :
19100 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
19101
19102 fi
19103 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
19104 if test "x$ac_cv_header_stdatomic_h" = xyes
19105 then :
19106 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
19107
19108 fi
19109 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19110 if test "x$ac_cv_header_sys_endian_h" = xyes
19111 then :
19112 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
19113
19114 fi
19115
19116
19117 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "#include <sys/socket.h>
17903 if ac_fn_c_try_compile "$LINENO"; then :
17904
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17906 $as_echo "yes" >&6; }
17907
17908 $as_echo "#define HAVE_AUTO_TYPE 1" >>confdefs.h
17909
17910
17911 else
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17915
17916
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919
17920 for ac_header in \
17921 byteswap.h \
17922 endian.h \
17923 stdatomic.h \
17924 sys/endian.h
17925 do :
17926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17929 cat >>confdefs.h <<_ACEOF
17930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17931 _ACEOF
17932
17933 fi
17934
17935 done
17936
17937
17938 for ac_header in linux/vm_sockets.h sys/vsock.h
17939 do :
17940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17941 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/socket.h>
1911817942 "
19119 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
19120 then :
19121 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
19122
19123 fi
19124 ac_fn_c_check_header_compile "$LINENO" "sys/vsock.h" "ac_cv_header_sys_vsock_h" "#include <sys/socket.h>
19125 "
19126 if test "x$ac_cv_header_sys_vsock_h" = xyes
19127 then :
19128 printf "%s\n" "#define HAVE_SYS_VSOCK_H 1" >>confdefs.h
19129
19130 fi
19131
19132
19133 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
19134 if test "x$ac_cv_func_posix_fadvise" = xyes
19135 then :
19136 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
19137
19138 fi
19139
19140
19141 ac_fn_c_check_func "$LINENO" "strerrordesc_np" "ac_cv_func_strerrordesc_np"
19142 if test "x$ac_cv_func_strerrordesc_np" = xyes
19143 then :
19144 printf "%s\n" "#define HAVE_STRERRORDESC_NP 1" >>confdefs.h
19145
19146 fi
19147
19148
19149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
19150 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
19151 if test ${ac_cv_c_undeclared_builtin_options+y}
19152 then :
19153 printf %s "(cached) " >&6
19154 else $as_nop
19155 ac_save_CFLAGS=$CFLAGS
19156 ac_cv_c_undeclared_builtin_options='cannot detect'
19157 for ac_arg in '' -fno-builtin; do
19158 CFLAGS="$ac_save_CFLAGS $ac_arg"
19159 # This test program should *not* compile successfully.
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162
19163 int
19164 main (void)
19165 {
19166 (void) strchr;
19167 ;
19168 return 0;
19169 }
17943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17944 cat >>confdefs.h <<_ACEOF
17945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1917017946 _ACEOF
19171 if ac_fn_c_try_compile "$LINENO"
19172 then :
19173
19174 else $as_nop
19175 # This test program should compile successfully.
19176 # No library function is consistently available on
19177 # freestanding implementations, so test against a dummy
19178 # declaration. Include always-available headers on the
19179 # off chance that they somehow elicit warnings.
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19182 #include <float.h>
19183 #include <limits.h>
19184 #include <stdarg.h>
19185 #include <stddef.h>
19186 extern void ac_decl (int, char *);
19187
19188 int
19189 main (void)
19190 {
19191 (void) ac_decl (0, (char *) 0);
19192 (void) ac_decl;
19193
19194 ;
19195 return 0;
19196 }
17947
17948 fi
17949
17950 done
17951
17952
17953 for ac_func in posix_fadvise
17954 do :
17955 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
17956 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
17957 cat >>confdefs.h <<_ACEOF
17958 #define HAVE_POSIX_FADVISE 1
1919717959 _ACEOF
19198 if ac_fn_c_try_compile "$LINENO"
19199 then :
19200 if test x"$ac_arg" = x
19201 then :
19202 ac_cv_c_undeclared_builtin_options='none needed'
19203 else $as_nop
19204 ac_cv_c_undeclared_builtin_options=$ac_arg
19205 fi
19206 break
19207 fi
19208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19209 fi
19210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19211 done
19212 CFLAGS=$ac_save_CFLAGS
19213
19214 fi
19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19216 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19217 case $ac_cv_c_undeclared_builtin_options in #(
19218 'cannot detect') :
19219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19220 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19221 as_fn_error $? "cannot make $CC report undeclared builtins
19222 See \`config.log' for more details" "$LINENO" 5; } ;; #(
19223 'none needed') :
19224 ac_c_undeclared_builtin_options='' ;; #(
19225 *) :
19226 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
19227 esac
19228
19229 ac_fn_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19230 if test "x$ac_cv_have_decl_sys_errlist" = xyes
19231 then :
17960
17961 fi
17962 done
17963
17964
17965 for ac_func in strerrordesc_np
17966 do :
17967 ac_fn_c_check_func "$LINENO" "strerrordesc_np" "ac_cv_func_strerrordesc_np"
17968 if test "x$ac_cv_func_strerrordesc_np" = xyes; then :
17969 cat >>confdefs.h <<_ACEOF
17970 #define HAVE_STRERRORDESC_NP 1
17971 _ACEOF
17972
17973 fi
17974 done
17975
17976
17977 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "$ac_includes_default"
17978 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
1923217979 ac_have_decl=1
19233 else $as_nop
17980 else
1923417981 ac_have_decl=0
1923517982 fi
19236 printf "%s\n" "#define HAVE_DECL_SYS_ERRLIST $ac_have_decl" >>confdefs.h
19237
19238
19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19240 printf %s "checking for dlopen in -ldl... " >&6; }
19241 if test ${ac_cv_lib_dl_dlopen+y}
19242 then :
19243 printf %s "(cached) " >&6
19244 else $as_nop
17983
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
17986 _ACEOF
17987
17988
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17991 if ${ac_cv_lib_dl_dlopen+:} false; then :
17992 $as_echo_n "(cached) " >&6
17993 else
1924517994 ac_check_lib_save_LIBS=$LIBS
1924617995 LIBS="-ldl $LIBS"
1924717996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925017999 /* Override any GCC internal prototype to avoid an error.
1925118000 Use char because int might match the return type of a GCC
1925218001 builtin and then its argument prototype would still apply. */
18002 #ifdef __cplusplus
18003 extern "C"
18004 #endif
1925318005 char dlopen ();
1925418006 int
19255 main (void)
18007 main ()
1925618008 {
1925718009 return dlopen ();
1925818010 ;
1925918011 return 0;
1926018012 }
1926118013 _ACEOF
19262 if ac_fn_c_try_link "$LINENO"
19263 then :
18014 if ac_fn_c_try_link "$LINENO"; then :
1926418015 ac_cv_lib_dl_dlopen=yes
19265 else $as_nop
18016 else
1926618017 ac_cv_lib_dl_dlopen=no
1926718018 fi
19268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18019 rm -f core conftest.err conftest.$ac_objext \
1926918020 conftest$ac_exeext conftest.$ac_ext
1927018021 LIBS=$ac_check_lib_save_LIBS
1927118022 fi
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19273 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19274 if test "x$ac_cv_lib_dl_dlopen" = xyes
19275 then :
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1927618026 have_libdl=yes
19277 else $as_nop
18027 else
1927818028 have_libdl=no
1927918029 fi
1928018030
19281 for ac_header in dlfcn.h
18031 for ac_header in dlfcn.h
1928218032 do :
19283 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
19284 if test "x$ac_cv_header_dlfcn_h" = xyes
19285 then :
19286 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
18033 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
18034 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_DLFCN_H 1
18037 _ACEOF
1928718038 have_dlfcn=yes
19288 else $as_nop
18039 else
1928918040 have_dlfcn=no
1929018041 fi
1929118042
1929218043 done
18044
1929318045 if test "x$have_libdl" = "xyes" && test "x$have_dlfcn" = "xyes"; then
1929418046 HAVE_LIBDL_TRUE=
1929518047 HAVE_LIBDL_FALSE='#'
1929918051 fi
1930018052
1930118053
19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this is glibc >= 2.34" >&5
19303 printf %s "checking if this is glibc >= 2.34... " >&6; }
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is glibc >= 2.34" >&5
18055 $as_echo_n "checking if this is glibc >= 2.34... " >&6; }
1930418056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930518057 /* end confdefs.h. */
1930618058
1931018062 #endif
1931118063
1931218064 int
19313 main (void)
18065 main ()
1931418066 {
1931518067
1931618068 ;
1931718069 return 0;
1931818070 }
1931918071 _ACEOF
19320 if ac_fn_c_try_compile "$LINENO"
19321 then :
18072 if ac_fn_c_try_compile "$LINENO"; then :
1932218073 is_glibc_234=yes
19323 else $as_nop
18074 else
1932418075 is_glibc_234=no
1932518076
1932618077 fi
19327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $is_glibc_234" >&5
19329 printf "%s\n" "$is_glibc_234" >&6; }
18078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_glibc_234" >&5
18080 $as_echo "$is_glibc_234" >&6; }
1933018081 if test "x$is_glibc_234" = "xyes"; then
1933118082 HAVE_GLIBC_234_TRUE=
1933218083 HAVE_GLIBC_234_FALSE='#'
1933818089
1933918090
1934018091 # Check whether --with-gnutls was given.
19341 if test ${with_gnutls+y}
19342 then :
18092 if test "${with_gnutls+set}" = set; then :
1934318093 withval=$with_gnutls;
19344 else $as_nop
18094 else
1934518095 with_gnutls=check
1934618096 fi
1934718097
1935618106 if test -n "$ac_tool_prefix"; then
1935718107 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1935818108 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19360 printf %s "checking for $ac_word... " >&6; }
19361 if test ${ac_cv_path_PKG_CONFIG+y}
19362 then :
19363 printf %s "(cached) " >&6
19364 else $as_nop
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18110 $as_echo_n "checking for $ac_word... " >&6; }
18111 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18112 $as_echo_n "(cached) " >&6
18113 else
1936518114 case $PKG_CONFIG in
1936618115 [\\/]* | ?:[\\/]*)
1936718116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1937118120 for as_dir in $PATH
1937218121 do
1937318122 IFS=$as_save_IFS
19374 case $as_dir in #(((
19375 '') as_dir=./ ;;
19376 */) ;;
19377 *) as_dir=$as_dir/ ;;
19378 esac
18123 test -z "$as_dir" && as_dir=.
1937918124 for ac_exec_ext in '' $ac_executable_extensions; do
19380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19381 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18126 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1938318128 break 2
1938418129 fi
1938518130 done
1939118136 fi
1939218137 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1939318138 if test -n "$PKG_CONFIG"; then
19394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19395 printf "%s\n" "$PKG_CONFIG" >&6; }
19396 else
19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398 printf "%s\n" "no" >&6; }
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18140 $as_echo "$PKG_CONFIG" >&6; }
18141 else
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18143 $as_echo "no" >&6; }
1939918144 fi
1940018145
1940118146
1940418149 ac_pt_PKG_CONFIG=$PKG_CONFIG
1940518150 # Extract the first word of "pkg-config", so it can be a program name with args.
1940618151 set dummy pkg-config; ac_word=$2
19407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19408 printf %s "checking for $ac_word... " >&6; }
19409 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19410 then :
19411 printf %s "(cached) " >&6
19412 else $as_nop
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18153 $as_echo_n "checking for $ac_word... " >&6; }
18154 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18155 $as_echo_n "(cached) " >&6
18156 else
1941318157 case $ac_pt_PKG_CONFIG in
1941418158 [\\/]* | ?:[\\/]*)
1941518159 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1941918163 for as_dir in $PATH
1942018164 do
1942118165 IFS=$as_save_IFS
19422 case $as_dir in #(((
19423 '') as_dir=./ ;;
19424 */) ;;
19425 *) as_dir=$as_dir/ ;;
19426 esac
18166 test -z "$as_dir" && as_dir=.
1942718167 for ac_exec_ext in '' $ac_executable_extensions; do
19428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18169 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1943118171 break 2
1943218172 fi
1943318173 done
1943918179 fi
1944018180 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1944118181 if test -n "$ac_pt_PKG_CONFIG"; then
19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19443 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
19444 else
19445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19446 printf "%s\n" "no" >&6; }
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18183 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18184 else
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18186 $as_echo "no" >&6; }
1944718187 fi
1944818188
1944918189 if test "x$ac_pt_PKG_CONFIG" = x; then
1945118191 else
1945218192 case $cross_compiling:$ac_tool_warned in
1945318193 yes:)
19454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19455 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1945618196 ac_tool_warned=yes ;;
1945718197 esac
1945818198 PKG_CONFIG=$ac_pt_PKG_CONFIG
1946418204 fi
1946518205 if test -n "$PKG_CONFIG"; then
1946618206 _pkg_min_version=0.9.0
19467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19468 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18208 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1946918209 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19471 printf "%s\n" "yes" >&6; }
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18211 $as_echo "yes" >&6; }
1947218212 else
19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19474 printf "%s\n" "no" >&6; }
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18214 $as_echo "no" >&6; }
1947518215 PKG_CONFIG=""
1947618216 fi
1947718217 fi
19478 if test "$with_gnutls" != "no"
19479 then :
18218 if test "$with_gnutls" != "no"; then :
1948018219
1948118220
1948218221 pkg_failed=no
19483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
19484 printf %s "checking for GNUTLS... " >&6; }
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
18223 $as_echo_n "checking for GNUTLS... " >&6; }
1948518224
1948618225 if test -n "$GNUTLS_CFLAGS"; then
1948718226 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
1948818227 elif test -n "$PKG_CONFIG"; then
1948918228 if test -n "$PKG_CONFIG" && \
19490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5
18229 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5
1949118230 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3.0") 2>&5
1949218231 ac_status=$?
19493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949418233 test $ac_status = 0; }; then
1949518234 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.3.0" 2>/dev/null`
1949618235 test "x$?" != "x0" && pkg_failed=yes
1950418243 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
1950518244 elif test -n "$PKG_CONFIG"; then
1950618245 if test -n "$PKG_CONFIG" && \
19507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5
18246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.3.0\""; } >&5
1950818247 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.3.0") 2>&5
1950918248 ac_status=$?
19510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951118250 test $ac_status = 0; }; then
1951218251 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.3.0" 2>/dev/null`
1951318252 test "x$?" != "x0" && pkg_failed=yes
1952118260
1952218261
1952318262 if test $pkg_failed = yes; then
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19525 printf "%s\n" "no" >&6; }
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18264 $as_echo "no" >&6; }
1952618265
1952718266 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1952818267 _pkg_short_errors_supported=yes
1953818277 echo "$GNUTLS_PKG_ERRORS" >&5
1953918278
1954018279
19541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&5
19542 printf "%s\n" "$as_me: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&2;}
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&5
18281 $as_echo "$as_me: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&2;}
1954318282
1954418283 elif test $pkg_failed = untried; then
19545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19546 printf "%s\n" "no" >&6; }
19547
19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&5
19549 printf "%s\n" "$as_me: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&2;}
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285 $as_echo "no" >&6; }
18286
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&5
18288 $as_echo "$as_me: WARNING: gnutls not found or < 3.3.0, TLS support will be disabled." >&2;}
1955018289
1955118290 else
1955218291 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
1955318292 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19555 printf "%s\n" "yes" >&6; }
19556
19557
19558
19559
19560 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18294 $as_echo "yes" >&6; }
18295
18296
18297
18298
18299 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
1956118300
1956218301
1956318302 fi
1957218311 fi
1957318312
1957418313
19575 if test "$GNUTLS_LIBS" != ""
19576 then :
19577
19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default TLS session priority string" >&5
19579 printf %s "checking for default TLS session priority string... " >&6; }
18314 if test "$GNUTLS_LIBS" != ""; then :
18315
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default TLS session priority string" >&5
18317 $as_echo_n "checking for default TLS session priority string... " >&6; }
1958018318
1958118319 # Check whether --with-tls-priority was given.
19582 if test ${with_tls_priority+y}
19583 then :
18320 if test "${with_tls_priority+set}" = set; then :
1958418321 withval=$with_tls_priority; tls_priority=$withval
19585 else $as_nop
18322 else
1958618323 tls_priority=NORMAL
1958718324 fi
1958818325
19589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tls_priority" >&5
19590 printf "%s\n" "$tls_priority" >&6; }
19591
19592 printf "%s\n" "#define TLS_PRIORITY \"$tls_priority\"" >>confdefs.h
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tls_priority" >&5
18327 $as_echo "$tls_priority" >&6; }
18328
18329 cat >>confdefs.h <<_ACEOF
18330 #define TLS_PRIORITY "$tls_priority"
18331 _ACEOF
1959318332
1959418333
1959518334 # Check for APIs which may not be present.
1959618335 old_LIBS="$LIBS"
1959718336 LIBS="$GNUTLS_LIBS $LIBS"
19598 ac_fn_c_check_func "$LINENO" "gnutls_session_set_verify_cert" "ac_cv_func_gnutls_session_set_verify_cert"
19599 if test "x$ac_cv_func_gnutls_session_set_verify_cert" = xyes
19600 then :
19601 printf "%s\n" "#define HAVE_GNUTLS_SESSION_SET_VERIFY_CERT 1" >>confdefs.h
19602
19603 fi
18337 for ac_func in \
18338 gnutls_session_set_verify_cert
18339 do :
18340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18342 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18343 cat >>confdefs.h <<_ACEOF
18344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18345 _ACEOF
18346
18347 fi
18348 done
1960418349
1960518350 LIBS="$old_LIBS"
1960618351
1960818353
1960918354 # Extract the first word of "certtool", so it can be a program name with args.
1961018355 set dummy certtool; ac_word=$2
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19612 printf %s "checking for $ac_word... " >&6; }
19613 if test ${ac_cv_prog_CERTTOOL+y}
19614 then :
19615 printf %s "(cached) " >&6
19616 else $as_nop
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18357 $as_echo_n "checking for $ac_word... " >&6; }
18358 if ${ac_cv_prog_CERTTOOL+:} false; then :
18359 $as_echo_n "(cached) " >&6
18360 else
1961718361 if test -n "$CERTTOOL"; then
1961818362 ac_cv_prog_CERTTOOL="$CERTTOOL" # Let the user override the test.
1961918363 else
1962118365 for as_dir in $PATH
1962218366 do
1962318367 IFS=$as_save_IFS
19624 case $as_dir in #(((
19625 '') as_dir=./ ;;
19626 */) ;;
19627 *) as_dir=$as_dir/ ;;
19628 esac
18368 test -z "$as_dir" && as_dir=.
1962918369 for ac_exec_ext in '' $ac_executable_extensions; do
19630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963118371 ac_cv_prog_CERTTOOL="certtool"
19632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1963318373 break 2
1963418374 fi
1963518375 done
1964018380 fi
1964118381 CERTTOOL=$ac_cv_prog_CERTTOOL
1964218382 if test -n "$CERTTOOL"; then
19643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CERTTOOL" >&5
19644 printf "%s\n" "$CERTTOOL" >&6; }
19645 else
19646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19647 printf "%s\n" "no" >&6; }
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CERTTOOL" >&5
18384 $as_echo "$CERTTOOL" >&6; }
18385 else
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
1964818388 fi
1964918389
1965018390
1965918399
1966018400 # Extract the first word of "psktool", so it can be a program name with args.
1966118401 set dummy psktool; ac_word=$2
19662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19663 printf %s "checking for $ac_word... " >&6; }
19664 if test ${ac_cv_prog_PSKTOOL+y}
19665 then :
19666 printf %s "(cached) " >&6
19667 else $as_nop
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18403 $as_echo_n "checking for $ac_word... " >&6; }
18404 if ${ac_cv_prog_PSKTOOL+:} false; then :
18405 $as_echo_n "(cached) " >&6
18406 else
1966818407 if test -n "$PSKTOOL"; then
1966918408 ac_cv_prog_PSKTOOL="$PSKTOOL" # Let the user override the test.
1967018409 else
1967218411 for as_dir in $PATH
1967318412 do
1967418413 IFS=$as_save_IFS
19675 case $as_dir in #(((
19676 '') as_dir=./ ;;
19677 */) ;;
19678 *) as_dir=$as_dir/ ;;
19679 esac
18414 test -z "$as_dir" && as_dir=.
1968018415 for ac_exec_ext in '' $ac_executable_extensions; do
19681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968218417 ac_cv_prog_PSKTOOL="psktool"
19683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968418419 break 2
1968518420 fi
1968618421 done
1969118426 fi
1969218427 PSKTOOL=$ac_cv_prog_PSKTOOL
1969318428 if test -n "$PSKTOOL"; then
19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PSKTOOL" >&5
19695 printf "%s\n" "$PSKTOOL" >&6; }
19696 else
19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19698 printf "%s\n" "no" >&6; }
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSKTOOL" >&5
18430 $as_echo "$PSKTOOL" >&6; }
18431 else
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433 $as_echo "no" >&6; }
1969918434 fi
1970018435
1970118436
1971018445
1971118446
1971218447 # Check whether --with-libxml2 was given.
19713 if test ${with_libxml2+y}
19714 then :
18448 if test "${with_libxml2+set}" = set; then :
1971518449 withval=$with_libxml2;
19716 else $as_nop
18450 else
1971718451 with_libxml2=check
1971818452 fi
1971918453
19720 if test "$with_libxml2" != "no"
19721 then :
18454 if test "$with_libxml2" != "no"; then :
1972218455
1972318456
1972418457 pkg_failed=no
19725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19726 printf %s "checking for LIBXML2... " >&6; }
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
18459 $as_echo_n "checking for LIBXML2... " >&6; }
1972718460
1972818461 if test -n "$LIBXML2_CFLAGS"; then
1972918462 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
1973018463 elif test -n "$PKG_CONFIG"; then
1973118464 if test -n "$PKG_CONFIG" && \
19732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
18465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
1973318466 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
1973418467 ac_status=$?
19735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973618469 test $ac_status = 0; }; then
1973718470 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
1973818471 test "x$?" != "x0" && pkg_failed=yes
1974618479 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
1974718480 elif test -n "$PKG_CONFIG"; then
1974818481 if test -n "$PKG_CONFIG" && \
19749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
18482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
1975018483 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
1975118484 ac_status=$?
19752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975318486 test $ac_status = 0; }; then
1975418487 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
1975518488 test "x$?" != "x0" && pkg_failed=yes
1976318496
1976418497
1976518498 if test $pkg_failed = yes; then
19766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19767 printf "%s\n" "no" >&6; }
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 $as_echo "no" >&6; }
1976818501
1976918502 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1977018503 _pkg_short_errors_supported=yes
1978018513 echo "$LIBXML2_PKG_ERRORS" >&5
1978118514
1978218515
19783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libxml2 not found, NBD URI support will be disabled." >&5
19784 printf "%s\n" "$as_me: WARNING: libxml2 not found, NBD URI support will be disabled." >&2;}
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxml2 not found, NBD URI support will be disabled." >&5
18517 $as_echo "$as_me: WARNING: libxml2 not found, NBD URI support will be disabled." >&2;}
1978518518
1978618519 elif test $pkg_failed = untried; then
19787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19788 printf "%s\n" "no" >&6; }
19789
19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libxml2 not found, NBD URI support will be disabled." >&5
19791 printf "%s\n" "$as_me: WARNING: libxml2 not found, NBD URI support will be disabled." >&2;}
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18521 $as_echo "no" >&6; }
18522
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxml2 not found, NBD URI support will be disabled." >&5
18524 $as_echo "$as_me: WARNING: libxml2 not found, NBD URI support will be disabled." >&2;}
1979218525
1979318526 else
1979418527 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
1979518528 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19797 printf "%s\n" "yes" >&6; }
19798
19799
19800
19801
19802 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18530 $as_echo "yes" >&6; }
18531
18532
18533
18534
18535 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
1980318536
1980418537
1980518538 fi
1981818551 nbdkit_min_minor="12" ;# 1.12
1981918552 # Extract the first word of "nbdkit", so it can be a program name with args.
1982018553 set dummy nbdkit; ac_word=$2
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19822 printf %s "checking for $ac_word... " >&6; }
19823 if test ${ac_cv_prog_NBDKIT+y}
19824 then :
19825 printf %s "(cached) " >&6
19826 else $as_nop
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18555 $as_echo_n "checking for $ac_word... " >&6; }
18556 if ${ac_cv_prog_NBDKIT+:} false; then :
18557 $as_echo_n "(cached) " >&6
18558 else
1982718559 if test -n "$NBDKIT"; then
1982818560 ac_cv_prog_NBDKIT="$NBDKIT" # Let the user override the test.
1982918561 else
1983118563 for as_dir in $PATH
1983218564 do
1983318565 IFS=$as_save_IFS
19834 case $as_dir in #(((
19835 '') as_dir=./ ;;
19836 */) ;;
19837 *) as_dir=$as_dir/ ;;
19838 esac
18566 test -z "$as_dir" && as_dir=.
1983918567 for ac_exec_ext in '' $ac_executable_extensions; do
19840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984118569 ac_cv_prog_NBDKIT="nbdkit"
19842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1984318571 break 2
1984418572 fi
1984518573 done
1985018578 fi
1985118579 NBDKIT=$ac_cv_prog_NBDKIT
1985218580 if test -n "$NBDKIT"; then
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NBDKIT" >&5
19854 printf "%s\n" "$NBDKIT" >&6; }
19855 else
19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19857 printf "%s\n" "no" >&6; }
19858 fi
19859
19860
19861 if test "x$NBDKIT" != "x"
19862 then :
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NBDKIT" >&5
18582 $as_echo "$NBDKIT" >&6; }
18583 else
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18585 $as_echo "no" >&6; }
18586 fi
18587
18588
18589 if test "x$NBDKIT" != "x"; then :
1986318590
1986418591 have_nbdkit_features=yes
1986518592
19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nbdkit >= 1.$nbdkit_min_minor" >&5
19867 printf %s "checking for nbdkit >= 1.$nbdkit_min_minor... " >&6; }
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nbdkit >= 1.$nbdkit_min_minor" >&5
18594 $as_echo_n "checking for nbdkit >= 1.$nbdkit_min_minor... " >&6; }
1986818595 nbdkit_minor="$(
1986918596 $NBDKIT --version | $SED 's/^nbdkit 1\.\([0-9]*\)\..*/\1/'
1987018597 )"
19871 if test $nbdkit_minor -ge $nbdkit_min_minor
19872 then :
19873
19874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (1.$nbdkit_minor)" >&5
19875 printf "%s\n" "yes (1.$nbdkit_minor)" >&6; }
19876
19877 else $as_nop
19878
19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (1.$nbdkit_minor)" >&5
19880 printf "%s\n" "no (1.$nbdkit_minor)" >&6; }
19881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nbdkit is too old, some tests will be disabled" >&5
19882 printf "%s\n" "$as_me: WARNING: nbdkit is too old, some tests will be disabled" >&2;}
18598 if test $nbdkit_minor -ge $nbdkit_min_minor; then :
18599
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (1.$nbdkit_minor)" >&5
18601 $as_echo "yes (1.$nbdkit_minor)" >&6; }
18602
18603 else
18604
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (1.$nbdkit_minor)" >&5
18606 $as_echo "no (1.$nbdkit_minor)" >&6; }
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nbdkit is too old, some tests will be disabled" >&5
18608 $as_echo "$as_me: WARNING: nbdkit is too old, some tests will be disabled" >&2;}
1988318609 have_nbdkit_features=no
1988418610
1988518611 fi
1988618612
1988718613 for p in $nbdkit_plugins; do
19888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nbdkit $p plugin" >&5
19889 printf %s "checking for nbdkit $p plugin... " >&6; }
19890 if $NBDKIT $p --version >&5 2>&1
19891 then :
19892
19893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19894 printf "%s\n" "yes" >&6; }
19895
19896 else $as_nop
19897
19898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19899 printf "%s\n" "no" >&6; }
19900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nbdkit $p plugin is missing, some tests will be disabled" >&5
19901 printf "%s\n" "$as_me: WARNING: nbdkit $p plugin is missing, some tests will be disabled" >&2;}
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nbdkit $p plugin" >&5
18615 $as_echo_n "checking for nbdkit $p plugin... " >&6; }
18616 if $NBDKIT $p --version >&5 2>&1; then :
18617
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619 $as_echo "yes" >&6; }
18620
18621 else
18622
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nbdkit $p plugin is missing, some tests will be disabled" >&5
18626 $as_echo "$as_me: WARNING: nbdkit $p plugin is missing, some tests will be disabled" >&2;}
1990218627 have_nbdkit_features=no
1990318628
1990418629 fi
1991618641
1991718642 # Extract the first word of "nbd-server", so it can be a program name with args.
1991818643 set dummy nbd-server; ac_word=$2
19919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19920 printf %s "checking for $ac_word... " >&6; }
19921 if test ${ac_cv_prog_NBD_SERVER+y}
19922 then :
19923 printf %s "(cached) " >&6
19924 else $as_nop
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18645 $as_echo_n "checking for $ac_word... " >&6; }
18646 if ${ac_cv_prog_NBD_SERVER+:} false; then :
18647 $as_echo_n "(cached) " >&6
18648 else
1992518649 if test -n "$NBD_SERVER"; then
1992618650 ac_cv_prog_NBD_SERVER="$NBD_SERVER" # Let the user override the test.
1992718651 else
1992918653 for as_dir in $PATH
1993018654 do
1993118655 IFS=$as_save_IFS
19932 case $as_dir in #(((
19933 '') as_dir=./ ;;
19934 */) ;;
19935 *) as_dir=$as_dir/ ;;
19936 esac
18656 test -z "$as_dir" && as_dir=.
1993718657 for ac_exec_ext in '' $ac_executable_extensions; do
19938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993918659 ac_cv_prog_NBD_SERVER="nbd-server"
19940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1994118661 break 2
1994218662 fi
1994318663 done
1994818668 fi
1994918669 NBD_SERVER=$ac_cv_prog_NBD_SERVER
1995018670 if test -n "$NBD_SERVER"; then
19951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NBD_SERVER" >&5
19952 printf "%s\n" "$NBD_SERVER" >&6; }
19953 else
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955 printf "%s\n" "no" >&6; }
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NBD_SERVER" >&5
18672 $as_echo "$NBD_SERVER" >&6; }
18673 else
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 $as_echo "no" >&6; }
1995618676 fi
1995718677
1995818678
1996618686
1996718687 # Extract the first word of "qemu-nbd", so it can be a program name with args.
1996818688 set dummy qemu-nbd; ac_word=$2
19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19970 printf %s "checking for $ac_word... " >&6; }
19971 if test ${ac_cv_prog_QEMU_NBD+y}
19972 then :
19973 printf %s "(cached) " >&6
19974 else $as_nop
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18690 $as_echo_n "checking for $ac_word... " >&6; }
18691 if ${ac_cv_prog_QEMU_NBD+:} false; then :
18692 $as_echo_n "(cached) " >&6
18693 else
1997518694 if test -n "$QEMU_NBD"; then
1997618695 ac_cv_prog_QEMU_NBD="$QEMU_NBD" # Let the user override the test.
1997718696 else
1997918698 for as_dir in $PATH
1998018699 do
1998118700 IFS=$as_save_IFS
19982 case $as_dir in #(((
19983 '') as_dir=./ ;;
19984 */) ;;
19985 *) as_dir=$as_dir/ ;;
19986 esac
18701 test -z "$as_dir" && as_dir=.
1998718702 for ac_exec_ext in '' $ac_executable_extensions; do
19988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998918704 ac_cv_prog_QEMU_NBD="qemu-nbd"
19990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1999118706 break 2
1999218707 fi
1999318708 done
1999818713 fi
1999918714 QEMU_NBD=$ac_cv_prog_QEMU_NBD
2000018715 if test -n "$QEMU_NBD"; then
20001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QEMU_NBD" >&5
20002 printf "%s\n" "$QEMU_NBD" >&6; }
20003 else
20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20005 printf "%s\n" "no" >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QEMU_NBD" >&5
18717 $as_echo "$QEMU_NBD" >&6; }
18718 else
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720 $as_echo "no" >&6; }
2000618721 fi
2000718722
2000818723
2001618731
2001718732 # Extract the first word of "qemu-storage-daemon", so it can be a program name with args.
2001818733 set dummy qemu-storage-daemon; ac_word=$2
20019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20020 printf %s "checking for $ac_word... " >&6; }
20021 if test ${ac_cv_prog_QEMU_STORAGE_DAEMON+y}
20022 then :
20023 printf %s "(cached) " >&6
20024 else $as_nop
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18735 $as_echo_n "checking for $ac_word... " >&6; }
18736 if ${ac_cv_prog_QEMU_STORAGE_DAEMON+:} false; then :
18737 $as_echo_n "(cached) " >&6
18738 else
2002518739 if test -n "$QEMU_STORAGE_DAEMON"; then
2002618740 ac_cv_prog_QEMU_STORAGE_DAEMON="$QEMU_STORAGE_DAEMON" # Let the user override the test.
2002718741 else
2002918743 for as_dir in $PATH
2003018744 do
2003118745 IFS=$as_save_IFS
20032 case $as_dir in #(((
20033 '') as_dir=./ ;;
20034 */) ;;
20035 *) as_dir=$as_dir/ ;;
20036 esac
18746 test -z "$as_dir" && as_dir=.
2003718747 for ac_exec_ext in '' $ac_executable_extensions; do
20038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003918749 ac_cv_prog_QEMU_STORAGE_DAEMON="qemu-storage-daemon"
20040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2004118751 break 2
2004218752 fi
2004318753 done
2004818758 fi
2004918759 QEMU_STORAGE_DAEMON=$ac_cv_prog_QEMU_STORAGE_DAEMON
2005018760 if test -n "$QEMU_STORAGE_DAEMON"; then
20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QEMU_STORAGE_DAEMON" >&5
20052 printf "%s\n" "$QEMU_STORAGE_DAEMON" >&6; }
20053 else
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055 printf "%s\n" "no" >&6; }
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QEMU_STORAGE_DAEMON" >&5
18762 $as_echo "$QEMU_STORAGE_DAEMON" >&6; }
18763 else
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765 $as_echo "no" >&6; }
2005618766 fi
2005718767
2005818768
2006718777
2006818778
2006918779 pkg_failed=no
20070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20071 printf %s "checking for GLIB... " >&6; }
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
18781 $as_echo_n "checking for GLIB... " >&6; }
2007218782
2007318783 if test -n "$GLIB_CFLAGS"; then
2007418784 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
2007518785 elif test -n "$PKG_CONFIG"; then
2007618786 if test -n "$PKG_CONFIG" && \
20077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
18787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
2007818788 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
2007918789 ac_status=$?
20080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008118791 test $ac_status = 0; }; then
2008218792 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
2008318793 test "x$?" != "x0" && pkg_failed=yes
2009118801 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
2009218802 elif test -n "$PKG_CONFIG"; then
2009318803 if test -n "$PKG_CONFIG" && \
20094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
18804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
2009518805 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
2009618806 ac_status=$?
20097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009818808 test $ac_status = 0; }; then
2009918809 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
2010018810 test "x$?" != "x0" && pkg_failed=yes
2010818818
2010918819
2011018820 if test $pkg_failed = yes; then
20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20112 printf "%s\n" "no" >&6; }
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18822 $as_echo "no" >&6; }
2011318823
2011418824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2011518825 _pkg_short_errors_supported=yes
2012518835 echo "$GLIB_PKG_ERRORS" >&5
2012618836
2012718837
20128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: glib2 not found, some examples will not be compiled" >&5
20129 printf "%s\n" "$as_me: WARNING: glib2 not found, some examples will not be compiled" >&2;}
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: glib2 not found, some examples will not be compiled" >&5
18839 $as_echo "$as_me: WARNING: glib2 not found, some examples will not be compiled" >&2;}
2013018840
2013118841 elif test $pkg_failed = untried; then
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133 printf "%s\n" "no" >&6; }
20134
20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: glib2 not found, some examples will not be compiled" >&5
20136 printf "%s\n" "$as_me: WARNING: glib2 not found, some examples will not be compiled" >&2;}
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 $as_echo "no" >&6; }
18844
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: glib2 not found, some examples will not be compiled" >&5
18846 $as_echo "$as_me: WARNING: glib2 not found, some examples will not be compiled" >&2;}
2013718847
2013818848 else
2013918849 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
2014018850 GLIB_LIBS=$pkg_cv_GLIB_LIBS
20141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20142 printf "%s\n" "yes" >&6; }
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18852 $as_echo "yes" >&6; }
2014318853
2014418854
2014518855
2015618866
2015718867
2015818868 pkg_failed=no
20159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
20160 printf %s "checking for LIBEV... " >&6; }
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
18870 $as_echo_n "checking for LIBEV... " >&6; }
2016118871
2016218872 if test -n "$LIBEV_CFLAGS"; then
2016318873 pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
2016418874 elif test -n "$PKG_CONFIG"; then
2016518875 if test -n "$PKG_CONFIG" && \
20166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
18876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
2016718877 ($PKG_CONFIG --exists --print-errors "libev") 2>&5
2016818878 ac_status=$?
20169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017018880 test $ac_status = 0; }; then
2017118881 pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
2017218882 test "x$?" != "x0" && pkg_failed=yes
2018018890 pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
2018118891 elif test -n "$PKG_CONFIG"; then
2018218892 if test -n "$PKG_CONFIG" && \
20183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
18893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
2018418894 ($PKG_CONFIG --exists --print-errors "libev") 2>&5
2018518895 ac_status=$?
20186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018718897 test $ac_status = 0; }; then
2018818898 pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
2018918899 test "x$?" != "x0" && pkg_failed=yes
2019718907
2019818908
2019918909 if test $pkg_failed = yes; then
20200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20201 printf "%s\n" "no" >&6; }
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911 $as_echo "no" >&6; }
2020218912
2020318913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2020418914 _pkg_short_errors_supported=yes
2021418924 echo "$LIBEV_PKG_ERRORS" >&5
2021518925
2021618926
20217 for ac_header in ev.h
18927 for ac_header in ev.h
2021818928 do :
20219 ac_fn_c_check_header_compile "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
20220 if test "x$ac_cv_header_ev_h" = xyes
20221 then :
20222 printf "%s\n" "#define HAVE_EV_H 1" >>confdefs.h
20223
20224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
20225 printf %s "checking for ev_time in -lev... " >&6; }
20226 if test ${ac_cv_lib_ev_ev_time+y}
20227 then :
20228 printf %s "(cached) " >&6
20229 else $as_nop
18929 ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
18930 if test "x$ac_cv_header_ev_h" = xyes; then :
18931 cat >>confdefs.h <<_ACEOF
18932 #define HAVE_EV_H 1
18933 _ACEOF
18934
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
18936 $as_echo_n "checking for ev_time in -lev... " >&6; }
18937 if ${ac_cv_lib_ev_ev_time+:} false; then :
18938 $as_echo_n "(cached) " >&6
18939 else
2023018940 ac_check_lib_save_LIBS=$LIBS
2023118941 LIBS="-lev $LIBS"
2023218942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023518945 /* Override any GCC internal prototype to avoid an error.
2023618946 Use char because int might match the return type of a GCC
2023718947 builtin and then its argument prototype would still apply. */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
2023818951 char ev_time ();
2023918952 int
20240 main (void)
18953 main ()
2024118954 {
2024218955 return ev_time ();
2024318956 ;
2024418957 return 0;
2024518958 }
2024618959 _ACEOF
20247 if ac_fn_c_try_link "$LINENO"
20248 then :
18960 if ac_fn_c_try_link "$LINENO"; then :
2024918961 ac_cv_lib_ev_ev_time=yes
20250 else $as_nop
18962 else
2025118963 ac_cv_lib_ev_ev_time=no
2025218964 fi
20253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18965 rm -f core conftest.err conftest.$ac_objext \
2025418966 conftest$ac_exeext conftest.$ac_ext
2025518967 LIBS=$ac_check_lib_save_LIBS
2025618968 fi
20257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
20258 printf "%s\n" "$ac_cv_lib_ev_ev_time" >&6; }
20259 if test "x$ac_cv_lib_ev_ev_time" = xyes
20260 then :
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
18970 $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
18971 if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
2026118972
2026218973 LIBEV_LIBS="-lev"
2026318974
2026418975
20265 else $as_nop
20266
20267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libev not found, some examples will not be compiled" >&5
20268 printf "%s\n" "$as_me: WARNING: libev not found, some examples will not be compiled" >&2;}
20269
20270 fi
20271
20272
20273 else $as_nop
20274
20275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ev.h not found, some examples will not be compiled" >&5
20276 printf "%s\n" "$as_me: WARNING: ev.h not found, some examples will not be compiled" >&2;}
18976 else
18977
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libev not found, some examples will not be compiled" >&5
18979 $as_echo "$as_me: WARNING: libev not found, some examples will not be compiled" >&2;}
18980
18981 fi
18982
18983
18984 else
18985
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ev.h not found, some examples will not be compiled" >&5
18987 $as_echo "$as_me: WARNING: ev.h not found, some examples will not be compiled" >&2;}
2027718988
2027818989 fi
2027918990
2028018991 done
2028118992
18993
2028218994 elif test $pkg_failed = untried; then
20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20284 printf "%s\n" "no" >&6; }
20285
20286 for ac_header in ev.h
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18996 $as_echo "no" >&6; }
18997
18998 for ac_header in ev.h
2028718999 do :
20288 ac_fn_c_check_header_compile "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
20289 if test "x$ac_cv_header_ev_h" = xyes
20290 then :
20291 printf "%s\n" "#define HAVE_EV_H 1" >>confdefs.h
20292
20293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
20294 printf %s "checking for ev_time in -lev... " >&6; }
20295 if test ${ac_cv_lib_ev_ev_time+y}
20296 then :
20297 printf %s "(cached) " >&6
20298 else $as_nop
19000 ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
19001 if test "x$ac_cv_header_ev_h" = xyes; then :
19002 cat >>confdefs.h <<_ACEOF
19003 #define HAVE_EV_H 1
19004 _ACEOF
19005
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
19007 $as_echo_n "checking for ev_time in -lev... " >&6; }
19008 if ${ac_cv_lib_ev_ev_time+:} false; then :
19009 $as_echo_n "(cached) " >&6
19010 else
2029919011 ac_check_lib_save_LIBS=$LIBS
2030019012 LIBS="-lev $LIBS"
2030119013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030419016 /* Override any GCC internal prototype to avoid an error.
2030519017 Use char because int might match the return type of a GCC
2030619018 builtin and then its argument prototype would still apply. */
19019 #ifdef __cplusplus
19020 extern "C"
19021 #endif
2030719022 char ev_time ();
2030819023 int
20309 main (void)
19024 main ()
2031019025 {
2031119026 return ev_time ();
2031219027 ;
2031319028 return 0;
2031419029 }
2031519030 _ACEOF
20316 if ac_fn_c_try_link "$LINENO"
20317 then :
19031 if ac_fn_c_try_link "$LINENO"; then :
2031819032 ac_cv_lib_ev_ev_time=yes
20319 else $as_nop
19033 else
2032019034 ac_cv_lib_ev_ev_time=no
2032119035 fi
20322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19036 rm -f core conftest.err conftest.$ac_objext \
2032319037 conftest$ac_exeext conftest.$ac_ext
2032419038 LIBS=$ac_check_lib_save_LIBS
2032519039 fi
20326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
20327 printf "%s\n" "$ac_cv_lib_ev_ev_time" >&6; }
20328 if test "x$ac_cv_lib_ev_ev_time" = xyes
20329 then :
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
19041 $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
19042 if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
2033019043
2033119044 LIBEV_LIBS="-lev"
2033219045
2033319046
20334 else $as_nop
20335
20336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libev not found, some examples will not be compiled" >&5
20337 printf "%s\n" "$as_me: WARNING: libev not found, some examples will not be compiled" >&2;}
20338
20339 fi
20340
20341
20342 else $as_nop
20343
20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ev.h not found, some examples will not be compiled" >&5
20345 printf "%s\n" "$as_me: WARNING: ev.h not found, some examples will not be compiled" >&2;}
19047 else
19048
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libev not found, some examples will not be compiled" >&5
19050 $as_echo "$as_me: WARNING: libev not found, some examples will not be compiled" >&2;}
19051
19052 fi
19053
19054
19055 else
19056
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ev.h not found, some examples will not be compiled" >&5
19058 $as_echo "$as_me: WARNING: ev.h not found, some examples will not be compiled" >&2;}
2034619059
2034719060 fi
2034819061
2034919062 done
19063
2035019064
2035119065 else
2035219066 LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
2035319067 LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20355 printf "%s\n" "yes" >&6; }
20356
20357
20358
20359
20360 fi
20361
20362 if test "x$LIBEV_LIBS" != "x"
20363 then :
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19069 $as_echo "yes" >&6; }
19070
19071
19072
19073
19074 fi
19075
19076 if test "x$LIBEV_LIBS" != "x"; then :
2036419077
2036519078 old_CFLAGS="$CFLAGS"
2036619079 CFLAGS="$CFLAGS $LIBEV_CFLAGS -Werror=strict-aliasing -O2"
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler is new enough for good aliasing rules" >&5
20368 printf %s "checking if the compiler is new enough for good aliasing rules... " >&6; }
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler is new enough for good aliasing rules" >&5
19081 $as_echo_n "checking if the compiler is new enough for good aliasing rules... " >&6; }
2036919082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037019083 /* end confdefs.h. */
2037119084
2037619089 static ev_timer timer;
2037719090
2037819091 int
20379 main (void)
19092 main ()
2038019093 {
2038119094
2038219095 ev_timer_init (&timer, cb, 0, .1);
2038619099 }
2038719100
2038819101 _ACEOF
20389 if ac_fn_c_try_compile "$LINENO"
20390 then :
20391
20392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20393 printf "%s\n" "yes" >&6; }
20394
20395 else $as_nop
20396
20397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20398 printf "%s\n" "no" >&6; }
19102 if ac_fn_c_try_compile "$LINENO"; then :
19103
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19105 $as_echo "yes" >&6; }
19106
19107 else
19108
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19110 $as_echo "no" >&6; }
2039919111 LIBEV_CFLAGS="$LIBEV_CFLAGS -Wno-strict-aliasing"
2040019112
2040119113 fi
20402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040319115 CFLAGS="$old_CFLAGS"
2040419116
2040519117 fi
2041319125
2041419126
2041519127 # Check whether --enable-fuse was given.
20416 if test ${enable_fuse+y}
20417 then :
19128 if test "${enable_fuse+set}" = set; then :
2041819129 enableval=$enable_fuse;
20419 else $as_nop
19130 else
2042019131 enable_fuse=yes
2042119132 fi
2042219133
20423 if test "x$enable_fuse" != "xno"
20424 then :
19134 if test "x$enable_fuse" != "xno"; then :
2042519135
2042619136
2042719137 pkg_failed=no
20428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUSE" >&5
20429 printf %s "checking for FUSE... " >&6; }
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE" >&5
19139 $as_echo_n "checking for FUSE... " >&6; }
2043019140
2043119141 if test -n "$FUSE_CFLAGS"; then
2043219142 pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
2043319143 elif test -n "$PKG_CONFIG"; then
2043419144 if test -n "$PKG_CONFIG" && \
20435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
19145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
2043619146 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
2043719147 ac_status=$?
20438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043919149 test $ac_status = 0; }; then
2044019150 pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
2044119151 test "x$?" != "x0" && pkg_failed=yes
2044919159 pkg_cv_FUSE_LIBS="$FUSE_LIBS"
2045019160 elif test -n "$PKG_CONFIG"; then
2045119161 if test -n "$PKG_CONFIG" && \
20452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
19162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
2045319163 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
2045419164 ac_status=$?
20455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045619166 test $ac_status = 0; }; then
2045719167 pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
2045819168 test "x$?" != "x0" && pkg_failed=yes
2046619176
2046719177
2046819178 if test $pkg_failed = yes; then
20469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20470 printf "%s\n" "no" >&6; }
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 $as_echo "no" >&6; }
2047119181
2047219182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2047319183 _pkg_short_errors_supported=yes
2048419194
2048519195
2048619196 enable_fuse=no
20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&5
20488 printf "%s\n" "$as_me: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&2;}
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&5
19198 $as_echo "$as_me: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&2;}
2048919199
2049019200 elif test $pkg_failed = untried; then
20491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20492 printf "%s\n" "no" >&6; }
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
2049319203
2049419204 enable_fuse=no
20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&5
20496 printf "%s\n" "$as_me: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&2;}
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&5
19206 $as_echo "$as_me: WARNING: FUSE 3 library and headers are missing, so optional nbdfuse program won't be built" >&2;}
2049719207
2049819208 else
2049919209 FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
2050019210 FUSE_LIBS=$pkg_cv_FUSE_LIBS
20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20502 printf "%s\n" "yes" >&6; }
20503
20504
20505
20506
20507 printf "%s\n" "#define HAVE_FUSE 1" >>confdefs.h
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19212 $as_echo "yes" >&6; }
19213
19214
19215
19216
19217 $as_echo "#define HAVE_FUSE 1" >>confdefs.h
2050819218
2050919219
2051019220 fi
2052119231
2052219232 # Extract the first word of "perl", so it can be a program name with args.
2052319233 set dummy perl; ac_word=$2
20524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20525 printf %s "checking for $ac_word... " >&6; }
20526 if test ${ac_cv_prog_PERL+y}
20527 then :
20528 printf %s "(cached) " >&6
20529 else $as_nop
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19235 $as_echo_n "checking for $ac_word... " >&6; }
19236 if ${ac_cv_prog_PERL+:} false; then :
19237 $as_echo_n "(cached) " >&6
19238 else
2053019239 if test -n "$PERL"; then
2053119240 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2053219241 else
2053419243 for as_dir in $PATH
2053519244 do
2053619245 IFS=$as_save_IFS
20537 case $as_dir in #(((
20538 '') as_dir=./ ;;
20539 */) ;;
20540 *) as_dir=$as_dir/ ;;
20541 esac
19246 test -z "$as_dir" && as_dir=.
2054219247 for ac_exec_ext in '' $ac_executable_extensions; do
20543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054419249 ac_cv_prog_PERL="perl"
20545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2054619251 break 2
2054719252 fi
2054819253 done
2055419259 fi
2055519260 PERL=$ac_cv_prog_PERL
2055619261 if test -n "$PERL"; then
20557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20558 printf "%s\n" "$PERL" >&6; }
20559 else
20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20561 printf "%s\n" "no" >&6; }
20562 fi
20563
20564
20565 if test "x$PERL" != "xno"
20566 then :
20567
20568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have perl Pod::Man and Pod::Simple" >&5
20569 printf %s "checking if we have perl Pod::Man and Pod::Simple... " >&6; }
20570 if $PERL -MPod::Man -MPod::Simple -e 1 >&5 2>&1
20571 then :
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19263 $as_echo "$PERL" >&6; }
19264 else
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 $as_echo "no" >&6; }
19267 fi
19268
19269
19270 if test "x$PERL" != "xno"; then :
19271
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have perl Pod::Man and Pod::Simple" >&5
19273 $as_echo_n "checking if we have perl Pod::Man and Pod::Simple... " >&6; }
19274 if $PERL -MPod::Man -MPod::Simple -e 1 >&5 2>&1; then :
2057219275
2057319276 enable_pod=yes
2057419277
20575 else $as_nop
19278 else
2057619279
2057719280 enable_pod=no
2057819281
2057919282 fi
20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pod" >&5
20581 printf "%s\n" "$enable_pod" >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pod" >&5
19284 $as_echo "$enable_pod" >&6; }
2058219285
2058319286 fi
2058419287 if test "x$PERL" != "xno" && test "x$enable_pod" = "xyes"; then
2059419297
2059519298
2059619299 # Check whether --enable-libfuzzer was given.
20597 if test ${enable_libfuzzer+y}
20598 then :
19300 if test "${enable_libfuzzer+set}" = set; then :
2059919301 enableval=$enable_libfuzzer;
20600 else $as_nop
19302 else
2060119303 enable_libfuzzer=no
2060219304 fi
2060319305
2061219314
2061319315
2061419316 pkg_failed=no
20615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BASH_COMPLETION" >&5
20616 printf %s "checking for BASH_COMPLETION... " >&6; }
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH_COMPLETION" >&5
19318 $as_echo_n "checking for BASH_COMPLETION... " >&6; }
2061719319
2061819320 if test -n "$BASH_COMPLETION_CFLAGS"; then
2061919321 pkg_cv_BASH_COMPLETION_CFLAGS="$BASH_COMPLETION_CFLAGS"
2062019322 elif test -n "$PKG_CONFIG"; then
2062119323 if test -n "$PKG_CONFIG" && \
20622 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
19324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
2062319325 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
2062419326 ac_status=$?
20625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062619328 test $ac_status = 0; }; then
2062719329 pkg_cv_BASH_COMPLETION_CFLAGS=`$PKG_CONFIG --cflags "bash-completion >= 2.0" 2>/dev/null`
2062819330 test "x$?" != "x0" && pkg_failed=yes
2063619338 pkg_cv_BASH_COMPLETION_LIBS="$BASH_COMPLETION_LIBS"
2063719339 elif test -n "$PKG_CONFIG"; then
2063819340 if test -n "$PKG_CONFIG" && \
20639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
19341 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
2064019342 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
2064119343 ac_status=$?
20642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064319345 test $ac_status = 0; }; then
2064419346 pkg_cv_BASH_COMPLETION_LIBS=`$PKG_CONFIG --libs "bash-completion >= 2.0" 2>/dev/null`
2064519347 test "x$?" != "x0" && pkg_failed=yes
2065319355
2065419356
2065519357 if test $pkg_failed = yes; then
20656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20657 printf "%s\n" "no" >&6; }
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19359 $as_echo "no" >&6; }
2065819360
2065919361 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2066019362 _pkg_short_errors_supported=yes
2067119373
2067219374
2067319375 bash_completion=no
20674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bash-completion not installed" >&5
20675 printf "%s\n" "$as_me: WARNING: bash-completion not installed" >&2;}
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bash-completion not installed" >&5
19377 $as_echo "$as_me: WARNING: bash-completion not installed" >&2;}
2067619378
2067719379 elif test $pkg_failed = untried; then
20678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20679 printf "%s\n" "no" >&6; }
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19381 $as_echo "no" >&6; }
2068019382
2068119383 bash_completion=no
20682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bash-completion not installed" >&5
20683 printf "%s\n" "$as_me: WARNING: bash-completion not installed" >&2;}
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bash-completion not installed" >&5
19385 $as_echo "$as_me: WARNING: bash-completion not installed" >&2;}
2068419386
2068519387 else
2068619388 BASH_COMPLETION_CFLAGS=$pkg_cv_BASH_COMPLETION_CFLAGS
2068719389 BASH_COMPLETION_LIBS=$pkg_cv_BASH_COMPLETION_LIBS
20688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20689 printf "%s\n" "yes" >&6; }
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19391 $as_echo "yes" >&6; }
2069019392
2069119393 bash_completion=yes
20692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bash-completions directory" >&5
20693 printf %s "checking for bash-completions directory... " >&6; }
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bash-completions directory" >&5
19395 $as_echo_n "checking for bash-completions directory... " >&6; }
2069419396
2069519397
2069619398 if test -n "$bashcompdir"; then
2069719399 pkg_cv_bashcompdir="$bashcompdir"
2069819400 elif test -n "$PKG_CONFIG"; then
2069919401 if test -n "$PKG_CONFIG" && \
20700 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion\""; } >&5
19402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion\""; } >&5
2070119403 ($PKG_CONFIG --exists --print-errors "bash-completion") 2>&5
2070219404 ac_status=$?
20703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070419406 test $ac_status = 0; }; then
2070519407 pkg_cv_bashcompdir=`$PKG_CONFIG --variable="completionsdir" "bash-completion" 2>/dev/null`
2070619408 test "x$?" != "x0" && pkg_failed=yes
2071219414 fi
2071319415 bashcompdir=$pkg_cv_bashcompdir
2071419416
20715 if test "x$bashcompdir" = x""
20716 then :
20717
20718 fi
20719
20720 if test -z "$bashcompdir"
20721 then :
19417 if test "x$bashcompdir" = x""; then :
19418
19419 fi
19420
19421 if test -z "$bashcompdir"; then :
2072219422
2072319423 bashcompdir="${sysconfdir}/bash_completion.d"
2072419424
2072519425 fi
20726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bashcompdir" >&5
20727 printf "%s\n" "$bashcompdir" >&6; }
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bashcompdir" >&5
19427 $as_echo "$bashcompdir" >&6; }
2072819428
2072919429
2073019430 fi
2074119441 if test -n "$ac_tool_prefix"; then
2074219442 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args.
2074319443 set dummy ${ac_tool_prefix}ocamlc; ac_word=$2
20744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20745 printf %s "checking for $ac_word... " >&6; }
20746 if test ${ac_cv_prog_OCAMLC+y}
20747 then :
20748 printf %s "(cached) " >&6
20749 else $as_nop
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19445 $as_echo_n "checking for $ac_word... " >&6; }
19446 if ${ac_cv_prog_OCAMLC+:} false; then :
19447 $as_echo_n "(cached) " >&6
19448 else
2075019449 if test -n "$OCAMLC"; then
2075119450 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
2075219451 else
2075419453 for as_dir in $PATH
2075519454 do
2075619455 IFS=$as_save_IFS
20757 case $as_dir in #(((
20758 '') as_dir=./ ;;
20759 */) ;;
20760 *) as_dir=$as_dir/ ;;
20761 esac
19456 test -z "$as_dir" && as_dir=.
2076219457 for ac_exec_ext in '' $ac_executable_extensions; do
20763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076419459 ac_cv_prog_OCAMLC="${ac_tool_prefix}ocamlc"
20765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2076619461 break 2
2076719462 fi
2076819463 done
2077319468 fi
2077419469 OCAMLC=$ac_cv_prog_OCAMLC
2077519470 if test -n "$OCAMLC"; then
20776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
20777 printf "%s\n" "$OCAMLC" >&6; }
20778 else
20779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20780 printf "%s\n" "no" >&6; }
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
19472 $as_echo "$OCAMLC" >&6; }
19473 else
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19475 $as_echo "no" >&6; }
2078119476 fi
2078219477
2078319478
2078619481 ac_ct_OCAMLC=$OCAMLC
2078719482 # Extract the first word of "ocamlc", so it can be a program name with args.
2078819483 set dummy ocamlc; ac_word=$2
20789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20790 printf %s "checking for $ac_word... " >&6; }
20791 if test ${ac_cv_prog_ac_ct_OCAMLC+y}
20792 then :
20793 printf %s "(cached) " >&6
20794 else $as_nop
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19485 $as_echo_n "checking for $ac_word... " >&6; }
19486 if ${ac_cv_prog_ac_ct_OCAMLC+:} false; then :
19487 $as_echo_n "(cached) " >&6
19488 else
2079519489 if test -n "$ac_ct_OCAMLC"; then
2079619490 ac_cv_prog_ac_ct_OCAMLC="$ac_ct_OCAMLC" # Let the user override the test.
2079719491 else
2079919493 for as_dir in $PATH
2080019494 do
2080119495 IFS=$as_save_IFS
20802 case $as_dir in #(((
20803 '') as_dir=./ ;;
20804 */) ;;
20805 *) as_dir=$as_dir/ ;;
20806 esac
19496 test -z "$as_dir" && as_dir=.
2080719497 for ac_exec_ext in '' $ac_executable_extensions; do
20808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080919499 ac_cv_prog_ac_ct_OCAMLC="ocamlc"
20810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2081119501 break 2
2081219502 fi
2081319503 done
2081819508 fi
2081919509 ac_ct_OCAMLC=$ac_cv_prog_ac_ct_OCAMLC
2082019510 if test -n "$ac_ct_OCAMLC"; then
20821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLC" >&5
20822 printf "%s\n" "$ac_ct_OCAMLC" >&6; }
20823 else
20824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825 printf "%s\n" "no" >&6; }
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLC" >&5
19512 $as_echo "$ac_ct_OCAMLC" >&6; }
19513 else
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
2082619516 fi
2082719517
2082819518 if test "x$ac_ct_OCAMLC" = x; then
2083019520 else
2083119521 case $cross_compiling:$ac_tool_warned in
2083219522 yes:)
20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2083519525 ac_tool_warned=yes ;;
2083619526 esac
2083719527 OCAMLC=$ac_ct_OCAMLC
2084319533
2084419534 if test "$OCAMLC" != "no"; then
2084519535 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'`
20846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
20847 printf "%s\n" "OCaml version is $OCAMLVERSION" >&6; }
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
19537 $as_echo "OCaml version is $OCAMLVERSION" >&6; }
2084819538 # If OCAMLLIB is set, use it
2084919539 if test "$OCAMLLIB" = ""; then
2085019540 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
2085119541 else
20852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5
20853 printf "%s\n" "OCAMLLIB previously set; preserving it." >&6; }
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5
19543 $as_echo "OCAMLLIB previously set; preserving it." >&6; }
2085419544 fi
20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
20856 printf "%s\n" "OCaml library path is $OCAMLLIB" >&6; }
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
19546 $as_echo "OCaml library path is $OCAMLLIB" >&6; }
2085719547
2085819548
2085919549
2086219552 if test -n "$ac_tool_prefix"; then
2086319553 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args.
2086419554 set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2
20865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20866 printf %s "checking for $ac_word... " >&6; }
20867 if test ${ac_cv_prog_OCAMLOPT+y}
20868 then :
20869 printf %s "(cached) " >&6
20870 else $as_nop
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19556 $as_echo_n "checking for $ac_word... " >&6; }
19557 if ${ac_cv_prog_OCAMLOPT+:} false; then :
19558 $as_echo_n "(cached) " >&6
19559 else
2087119560 if test -n "$OCAMLOPT"; then
2087219561 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
2087319562 else
2087519564 for as_dir in $PATH
2087619565 do
2087719566 IFS=$as_save_IFS
20878 case $as_dir in #(((
20879 '') as_dir=./ ;;
20880 */) ;;
20881 *) as_dir=$as_dir/ ;;
20882 esac
19567 test -z "$as_dir" && as_dir=.
2088319568 for ac_exec_ext in '' $ac_executable_extensions; do
20884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088519570 ac_cv_prog_OCAMLOPT="${ac_tool_prefix}ocamlopt"
20886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2088719572 break 2
2088819573 fi
2088919574 done
2089419579 fi
2089519580 OCAMLOPT=$ac_cv_prog_OCAMLOPT
2089619581 if test -n "$OCAMLOPT"; then
20897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
20898 printf "%s\n" "$OCAMLOPT" >&6; }
20899 else
20900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20901 printf "%s\n" "no" >&6; }
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
19583 $as_echo "$OCAMLOPT" >&6; }
19584 else
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19586 $as_echo "no" >&6; }
2090219587 fi
2090319588
2090419589
2090719592 ac_ct_OCAMLOPT=$OCAMLOPT
2090819593 # Extract the first word of "ocamlopt", so it can be a program name with args.
2090919594 set dummy ocamlopt; ac_word=$2
20910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20911 printf %s "checking for $ac_word... " >&6; }
20912 if test ${ac_cv_prog_ac_ct_OCAMLOPT+y}
20913 then :
20914 printf %s "(cached) " >&6
20915 else $as_nop
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19596 $as_echo_n "checking for $ac_word... " >&6; }
19597 if ${ac_cv_prog_ac_ct_OCAMLOPT+:} false; then :
19598 $as_echo_n "(cached) " >&6
19599 else
2091619600 if test -n "$ac_ct_OCAMLOPT"; then
2091719601 ac_cv_prog_ac_ct_OCAMLOPT="$ac_ct_OCAMLOPT" # Let the user override the test.
2091819602 else
2092019604 for as_dir in $PATH
2092119605 do
2092219606 IFS=$as_save_IFS
20923 case $as_dir in #(((
20924 '') as_dir=./ ;;
20925 */) ;;
20926 *) as_dir=$as_dir/ ;;
20927 esac
19607 test -z "$as_dir" && as_dir=.
2092819608 for ac_exec_ext in '' $ac_executable_extensions; do
20929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093019610 ac_cv_prog_ac_ct_OCAMLOPT="ocamlopt"
20931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2093219612 break 2
2093319613 fi
2093419614 done
2093919619 fi
2094019620 ac_ct_OCAMLOPT=$ac_cv_prog_ac_ct_OCAMLOPT
2094119621 if test -n "$ac_ct_OCAMLOPT"; then
20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPT" >&5
20943 printf "%s\n" "$ac_ct_OCAMLOPT" >&6; }
20944 else
20945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20946 printf "%s\n" "no" >&6; }
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPT" >&5
19623 $as_echo "$ac_ct_OCAMLOPT" >&6; }
19624 else
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626 $as_echo "no" >&6; }
2094719627 fi
2094819628
2094919629 if test "x$ac_ct_OCAMLOPT" = x; then
2095119631 else
2095219632 case $cross_compiling:$ac_tool_warned in
2095319633 yes:)
20954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2095619636 ac_tool_warned=yes ;;
2095719637 esac
2095819638 OCAMLOPT=$ac_ct_OCAMLOPT
2096319643
2096419644 OCAMLBEST=byte
2096519645 if test "$OCAMLOPT" = "no"; then
20966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
20967 printf "%s\n" "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
19647 $as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
2096819648 else
2096919649 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
2097019650 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
20971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
20972 printf "%s\n" "versions differs from ocamlc; ocamlopt discarded." >&6; }
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
19652 $as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; }
2097319653 OCAMLOPT=no
2097419654 else
2097519655 OCAMLBEST=opt
2098219662 if test -n "$ac_tool_prefix"; then
2098319663 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args.
2098419664 set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2
20985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20986 printf %s "checking for $ac_word... " >&6; }
20987 if test ${ac_cv_prog_OCAMLCDOTOPT+y}
20988 then :
20989 printf %s "(cached) " >&6
20990 else $as_nop
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19666 $as_echo_n "checking for $ac_word... " >&6; }
19667 if ${ac_cv_prog_OCAMLCDOTOPT+:} false; then :
19668 $as_echo_n "(cached) " >&6
19669 else
2099119670 if test -n "$OCAMLCDOTOPT"; then
2099219671 ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test.
2099319672 else
2099519674 for as_dir in $PATH
2099619675 do
2099719676 IFS=$as_save_IFS
20998 case $as_dir in #(((
20999 '') as_dir=./ ;;
21000 */) ;;
21001 *) as_dir=$as_dir/ ;;
21002 esac
19677 test -z "$as_dir" && as_dir=.
2100319678 for ac_exec_ext in '' $ac_executable_extensions; do
21004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100519680 ac_cv_prog_OCAMLCDOTOPT="${ac_tool_prefix}ocamlc.opt"
21006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2100719682 break 2
2100819683 fi
2100919684 done
2101419689 fi
2101519690 OCAMLCDOTOPT=$ac_cv_prog_OCAMLCDOTOPT
2101619691 if test -n "$OCAMLCDOTOPT"; then
21017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
21018 printf "%s\n" "$OCAMLCDOTOPT" >&6; }
21019 else
21020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21021 printf "%s\n" "no" >&6; }
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
19693 $as_echo "$OCAMLCDOTOPT" >&6; }
19694 else
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19696 $as_echo "no" >&6; }
2102219697 fi
2102319698
2102419699
2102719702 ac_ct_OCAMLCDOTOPT=$OCAMLCDOTOPT
2102819703 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
2102919704 set dummy ocamlc.opt; ac_word=$2
21030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21031 printf %s "checking for $ac_word... " >&6; }
21032 if test ${ac_cv_prog_ac_ct_OCAMLCDOTOPT+y}
21033 then :
21034 printf %s "(cached) " >&6
21035 else $as_nop
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19706 $as_echo_n "checking for $ac_word... " >&6; }
19707 if ${ac_cv_prog_ac_ct_OCAMLCDOTOPT+:} false; then :
19708 $as_echo_n "(cached) " >&6
19709 else
2103619710 if test -n "$ac_ct_OCAMLCDOTOPT"; then
2103719711 ac_cv_prog_ac_ct_OCAMLCDOTOPT="$ac_ct_OCAMLCDOTOPT" # Let the user override the test.
2103819712 else
2104019714 for as_dir in $PATH
2104119715 do
2104219716 IFS=$as_save_IFS
21043 case $as_dir in #(((
21044 '') as_dir=./ ;;
21045 */) ;;
21046 *) as_dir=$as_dir/ ;;
21047 esac
19717 test -z "$as_dir" && as_dir=.
2104819718 for ac_exec_ext in '' $ac_executable_extensions; do
21049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105019720 ac_cv_prog_ac_ct_OCAMLCDOTOPT="ocamlc.opt"
21051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2105219722 break 2
2105319723 fi
2105419724 done
2105919729 fi
2106019730 ac_ct_OCAMLCDOTOPT=$ac_cv_prog_ac_ct_OCAMLCDOTOPT
2106119731 if test -n "$ac_ct_OCAMLCDOTOPT"; then
21062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLCDOTOPT" >&5
21063 printf "%s\n" "$ac_ct_OCAMLCDOTOPT" >&6; }
21064 else
21065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21066 printf "%s\n" "no" >&6; }
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLCDOTOPT" >&5
19733 $as_echo "$ac_ct_OCAMLCDOTOPT" >&6; }
19734 else
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19736 $as_echo "no" >&6; }
2106719737 fi
2106819738
2106919739 if test "x$ac_ct_OCAMLCDOTOPT" = x; then
2107119741 else
2107219742 case $cross_compiling:$ac_tool_warned in
2107319743 yes:)
21074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2107619746 ac_tool_warned=yes ;;
2107719747 esac
2107819748 OCAMLCDOTOPT=$ac_ct_OCAMLCDOTOPT
2108419754 if test "$OCAMLCDOTOPT" != "no"; then
2108519755 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
2108619756 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
21088 printf "%s\n" "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
19758 $as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
2108919759 else
2109019760 OCAMLC=$OCAMLCDOTOPT
2109119761 fi
2109619766 if test -n "$ac_tool_prefix"; then
2109719767 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args.
2109819768 set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2
21099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21100 printf %s "checking for $ac_word... " >&6; }
21101 if test ${ac_cv_prog_OCAMLOPTDOTOPT+y}
21102 then :
21103 printf %s "(cached) " >&6
21104 else $as_nop
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19770 $as_echo_n "checking for $ac_word... " >&6; }
19771 if ${ac_cv_prog_OCAMLOPTDOTOPT+:} false; then :
19772 $as_echo_n "(cached) " >&6
19773 else
2110519774 if test -n "$OCAMLOPTDOTOPT"; then
2110619775 ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test.
2110719776 else
2110919778 for as_dir in $PATH
2111019779 do
2111119780 IFS=$as_save_IFS
21112 case $as_dir in #(((
21113 '') as_dir=./ ;;
21114 */) ;;
21115 *) as_dir=$as_dir/ ;;
21116 esac
19781 test -z "$as_dir" && as_dir=.
2111719782 for ac_exec_ext in '' $ac_executable_extensions; do
21118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111919784 ac_cv_prog_OCAMLOPTDOTOPT="${ac_tool_prefix}ocamlopt.opt"
21120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2112119786 break 2
2112219787 fi
2112319788 done
2112819793 fi
2112919794 OCAMLOPTDOTOPT=$ac_cv_prog_OCAMLOPTDOTOPT
2113019795 if test -n "$OCAMLOPTDOTOPT"; then
21131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
21132 printf "%s\n" "$OCAMLOPTDOTOPT" >&6; }
21133 else
21134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21135 printf "%s\n" "no" >&6; }
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
19797 $as_echo "$OCAMLOPTDOTOPT" >&6; }
19798 else
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19800 $as_echo "no" >&6; }
2113619801 fi
2113719802
2113819803
2114119806 ac_ct_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT
2114219807 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
2114319808 set dummy ocamlopt.opt; ac_word=$2
21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21145 printf %s "checking for $ac_word... " >&6; }
21146 if test ${ac_cv_prog_ac_ct_OCAMLOPTDOTOPT+y}
21147 then :
21148 printf %s "(cached) " >&6
21149 else $as_nop
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19810 $as_echo_n "checking for $ac_word... " >&6; }
19811 if ${ac_cv_prog_ac_ct_OCAMLOPTDOTOPT+:} false; then :
19812 $as_echo_n "(cached) " >&6
19813 else
2115019814 if test -n "$ac_ct_OCAMLOPTDOTOPT"; then
2115119815 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="$ac_ct_OCAMLOPTDOTOPT" # Let the user override the test.
2115219816 else
2115419818 for as_dir in $PATH
2115519819 do
2115619820 IFS=$as_save_IFS
21157 case $as_dir in #(((
21158 '') as_dir=./ ;;
21159 */) ;;
21160 *) as_dir=$as_dir/ ;;
21161 esac
19821 test -z "$as_dir" && as_dir=.
2116219822 for ac_exec_ext in '' $ac_executable_extensions; do
21163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116419824 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="ocamlopt.opt"
21165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2116619826 break 2
2116719827 fi
2116819828 done
2117319833 fi
2117419834 ac_ct_OCAMLOPTDOTOPT=$ac_cv_prog_ac_ct_OCAMLOPTDOTOPT
2117519835 if test -n "$ac_ct_OCAMLOPTDOTOPT"; then
21176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPTDOTOPT" >&5
21177 printf "%s\n" "$ac_ct_OCAMLOPTDOTOPT" >&6; }
21178 else
21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21180 printf "%s\n" "no" >&6; }
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPTDOTOPT" >&5
19837 $as_echo "$ac_ct_OCAMLOPTDOTOPT" >&6; }
19838 else
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19840 $as_echo "no" >&6; }
2118119841 fi
2118219842
2118319843 if test "x$ac_ct_OCAMLOPTDOTOPT" = x; then
2118519845 else
2118619846 case $cross_compiling:$ac_tool_warned in
2118719847 yes:)
21188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2119019850 ac_tool_warned=yes ;;
2119119851 esac
2119219852 OCAMLOPTDOTOPT=$ac_ct_OCAMLOPTDOTOPT
2119819858 if test "$OCAMLOPTDOTOPT" != "no"; then
2119919859 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
2120019860 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
21201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
21202 printf "%s\n" "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
19862 $as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
2120319863 else
2120419864 OCAMLOPT=$OCAMLOPTDOTOPT
2120519865 fi
2121519875 if test -n "$ac_tool_prefix"; then
2121619876 # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args.
2121719877 set dummy ${ac_tool_prefix}ocaml; ac_word=$2
21218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21219 printf %s "checking for $ac_word... " >&6; }
21220 if test ${ac_cv_prog_OCAML+y}
21221 then :
21222 printf %s "(cached) " >&6
21223 else $as_nop
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19879 $as_echo_n "checking for $ac_word... " >&6; }
19880 if ${ac_cv_prog_OCAML+:} false; then :
19881 $as_echo_n "(cached) " >&6
19882 else
2122419883 if test -n "$OCAML"; then
2122519884 ac_cv_prog_OCAML="$OCAML" # Let the user override the test.
2122619885 else
2122819887 for as_dir in $PATH
2122919888 do
2123019889 IFS=$as_save_IFS
21231 case $as_dir in #(((
21232 '') as_dir=./ ;;
21233 */) ;;
21234 *) as_dir=$as_dir/ ;;
21235 esac
19890 test -z "$as_dir" && as_dir=.
2123619891 for ac_exec_ext in '' $ac_executable_extensions; do
21237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123819893 ac_cv_prog_OCAML="${ac_tool_prefix}ocaml"
21239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2124019895 break 2
2124119896 fi
2124219897 done
2124719902 fi
2124819903 OCAML=$ac_cv_prog_OCAML
2124919904 if test -n "$OCAML"; then
21250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5
21251 printf "%s\n" "$OCAML" >&6; }
21252 else
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254 printf "%s\n" "no" >&6; }
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5
19906 $as_echo "$OCAML" >&6; }
19907 else
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19909 $as_echo "no" >&6; }
2125519910 fi
2125619911
2125719912
2126019915 ac_ct_OCAML=$OCAML
2126119916 # Extract the first word of "ocaml", so it can be a program name with args.
2126219917 set dummy ocaml; ac_word=$2
21263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21264 printf %s "checking for $ac_word... " >&6; }
21265 if test ${ac_cv_prog_ac_ct_OCAML+y}
21266 then :
21267 printf %s "(cached) " >&6
21268 else $as_nop
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19919 $as_echo_n "checking for $ac_word... " >&6; }
19920 if ${ac_cv_prog_ac_ct_OCAML+:} false; then :
19921 $as_echo_n "(cached) " >&6
19922 else
2126919923 if test -n "$ac_ct_OCAML"; then
2127019924 ac_cv_prog_ac_ct_OCAML="$ac_ct_OCAML" # Let the user override the test.
2127119925 else
2127319927 for as_dir in $PATH
2127419928 do
2127519929 IFS=$as_save_IFS
21276 case $as_dir in #(((
21277 '') as_dir=./ ;;
21278 */) ;;
21279 *) as_dir=$as_dir/ ;;
21280 esac
19930 test -z "$as_dir" && as_dir=.
2128119931 for ac_exec_ext in '' $ac_executable_extensions; do
21282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128319933 ac_cv_prog_ac_ct_OCAML="ocaml"
21284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2128519935 break 2
2128619936 fi
2128719937 done
2129219942 fi
2129319943 ac_ct_OCAML=$ac_cv_prog_ac_ct_OCAML
2129419944 if test -n "$ac_ct_OCAML"; then
21295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAML" >&5
21296 printf "%s\n" "$ac_ct_OCAML" >&6; }
21297 else
21298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 printf "%s\n" "no" >&6; }
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAML" >&5
19946 $as_echo "$ac_ct_OCAML" >&6; }
19947 else
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19949 $as_echo "no" >&6; }
2130019950 fi
2130119951
2130219952 if test "x$ac_ct_OCAML" = x; then
2130419954 else
2130519955 case $cross_compiling:$ac_tool_warned in
2130619956 yes:)
21307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2130919959 ac_tool_warned=yes ;;
2131019960 esac
2131119961 OCAML=$ac_ct_OCAML
2131919969 if test -n "$ac_tool_prefix"; then
2132019970 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args.
2132119971 set dummy ${ac_tool_prefix}ocamldep; ac_word=$2
21322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21323 printf %s "checking for $ac_word... " >&6; }
21324 if test ${ac_cv_prog_OCAMLDEP+y}
21325 then :
21326 printf %s "(cached) " >&6
21327 else $as_nop
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19973 $as_echo_n "checking for $ac_word... " >&6; }
19974 if ${ac_cv_prog_OCAMLDEP+:} false; then :
19975 $as_echo_n "(cached) " >&6
19976 else
2132819977 if test -n "$OCAMLDEP"; then
2132919978 ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
2133019979 else
2133219981 for as_dir in $PATH
2133319982 do
2133419983 IFS=$as_save_IFS
21335 case $as_dir in #(((
21336 '') as_dir=./ ;;
21337 */) ;;
21338 *) as_dir=$as_dir/ ;;
21339 esac
19984 test -z "$as_dir" && as_dir=.
2134019985 for ac_exec_ext in '' $ac_executable_extensions; do
21341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134219987 ac_cv_prog_OCAMLDEP="${ac_tool_prefix}ocamldep"
21343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2134419989 break 2
2134519990 fi
2134619991 done
2135119996 fi
2135219997 OCAMLDEP=$ac_cv_prog_OCAMLDEP
2135319998 if test -n "$OCAMLDEP"; then
21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
21355 printf "%s\n" "$OCAMLDEP" >&6; }
21356 else
21357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21358 printf "%s\n" "no" >&6; }
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
20000 $as_echo "$OCAMLDEP" >&6; }
20001 else
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20003 $as_echo "no" >&6; }
2135920004 fi
2136020005
2136120006
2136420009 ac_ct_OCAMLDEP=$OCAMLDEP
2136520010 # Extract the first word of "ocamldep", so it can be a program name with args.
2136620011 set dummy ocamldep; ac_word=$2
21367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21368 printf %s "checking for $ac_word... " >&6; }
21369 if test ${ac_cv_prog_ac_ct_OCAMLDEP+y}
21370 then :
21371 printf %s "(cached) " >&6
21372 else $as_nop
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20013 $as_echo_n "checking for $ac_word... " >&6; }
20014 if ${ac_cv_prog_ac_ct_OCAMLDEP+:} false; then :
20015 $as_echo_n "(cached) " >&6
20016 else
2137320017 if test -n "$ac_ct_OCAMLDEP"; then
2137420018 ac_cv_prog_ac_ct_OCAMLDEP="$ac_ct_OCAMLDEP" # Let the user override the test.
2137520019 else
2137720021 for as_dir in $PATH
2137820022 do
2137920023 IFS=$as_save_IFS
21380 case $as_dir in #(((
21381 '') as_dir=./ ;;
21382 */) ;;
21383 *) as_dir=$as_dir/ ;;
21384 esac
20024 test -z "$as_dir" && as_dir=.
2138520025 for ac_exec_ext in '' $ac_executable_extensions; do
21386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138720027 ac_cv_prog_ac_ct_OCAMLDEP="ocamldep"
21388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2138920029 break 2
2139020030 fi
2139120031 done
2139620036 fi
2139720037 ac_ct_OCAMLDEP=$ac_cv_prog_ac_ct_OCAMLDEP
2139820038 if test -n "$ac_ct_OCAMLDEP"; then
21399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDEP" >&5
21400 printf "%s\n" "$ac_ct_OCAMLDEP" >&6; }
21401 else
21402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21403 printf "%s\n" "no" >&6; }
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDEP" >&5
20040 $as_echo "$ac_ct_OCAMLDEP" >&6; }
20041 else
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043 $as_echo "no" >&6; }
2140420044 fi
2140520045
2140620046 if test "x$ac_ct_OCAMLDEP" = x; then
2140820048 else
2140920049 case $cross_compiling:$ac_tool_warned in
2141020050 yes:)
21411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21412 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2141320053 ac_tool_warned=yes ;;
2141420054 esac
2141520055 OCAMLDEP=$ac_ct_OCAMLDEP
2142320063 if test -n "$ac_tool_prefix"; then
2142420064 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args.
2142520065 set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2
21426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21427 printf %s "checking for $ac_word... " >&6; }
21428 if test ${ac_cv_prog_OCAMLMKTOP+y}
21429 then :
21430 printf %s "(cached) " >&6
21431 else $as_nop
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20067 $as_echo_n "checking for $ac_word... " >&6; }
20068 if ${ac_cv_prog_OCAMLMKTOP+:} false; then :
20069 $as_echo_n "(cached) " >&6
20070 else
2143220071 if test -n "$OCAMLMKTOP"; then
2143320072 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
2143420073 else
2143620075 for as_dir in $PATH
2143720076 do
2143820077 IFS=$as_save_IFS
21439 case $as_dir in #(((
21440 '') as_dir=./ ;;
21441 */) ;;
21442 *) as_dir=$as_dir/ ;;
21443 esac
20078 test -z "$as_dir" && as_dir=.
2144420079 for ac_exec_ext in '' $ac_executable_extensions; do
21445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144620081 ac_cv_prog_OCAMLMKTOP="${ac_tool_prefix}ocamlmktop"
21447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2144820083 break 2
2144920084 fi
2145020085 done
2145520090 fi
2145620091 OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
2145720092 if test -n "$OCAMLMKTOP"; then
21458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
21459 printf "%s\n" "$OCAMLMKTOP" >&6; }
21460 else
21461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21462 printf "%s\n" "no" >&6; }
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
20094 $as_echo "$OCAMLMKTOP" >&6; }
20095 else
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20097 $as_echo "no" >&6; }
2146320098 fi
2146420099
2146520100
2146820103 ac_ct_OCAMLMKTOP=$OCAMLMKTOP
2146920104 # Extract the first word of "ocamlmktop", so it can be a program name with args.
2147020105 set dummy ocamlmktop; ac_word=$2
21471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21472 printf %s "checking for $ac_word... " >&6; }
21473 if test ${ac_cv_prog_ac_ct_OCAMLMKTOP+y}
21474 then :
21475 printf %s "(cached) " >&6
21476 else $as_nop
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20107 $as_echo_n "checking for $ac_word... " >&6; }
20108 if ${ac_cv_prog_ac_ct_OCAMLMKTOP+:} false; then :
20109 $as_echo_n "(cached) " >&6
20110 else
2147720111 if test -n "$ac_ct_OCAMLMKTOP"; then
2147820112 ac_cv_prog_ac_ct_OCAMLMKTOP="$ac_ct_OCAMLMKTOP" # Let the user override the test.
2147920113 else
2148120115 for as_dir in $PATH
2148220116 do
2148320117 IFS=$as_save_IFS
21484 case $as_dir in #(((
21485 '') as_dir=./ ;;
21486 */) ;;
21487 *) as_dir=$as_dir/ ;;
21488 esac
20118 test -z "$as_dir" && as_dir=.
2148920119 for ac_exec_ext in '' $ac_executable_extensions; do
21490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149120121 ac_cv_prog_ac_ct_OCAMLMKTOP="ocamlmktop"
21492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2149320123 break 2
2149420124 fi
2149520125 done
2150020130 fi
2150120131 ac_ct_OCAMLMKTOP=$ac_cv_prog_ac_ct_OCAMLMKTOP
2150220132 if test -n "$ac_ct_OCAMLMKTOP"; then
21503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKTOP" >&5
21504 printf "%s\n" "$ac_ct_OCAMLMKTOP" >&6; }
21505 else
21506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21507 printf "%s\n" "no" >&6; }
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKTOP" >&5
20134 $as_echo "$ac_ct_OCAMLMKTOP" >&6; }
20135 else
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20137 $as_echo "no" >&6; }
2150820138 fi
2150920139
2151020140 if test "x$ac_ct_OCAMLMKTOP" = x; then
2151220142 else
2151320143 case $cross_compiling:$ac_tool_warned in
2151420144 yes:)
21515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2151720147 ac_tool_warned=yes ;;
2151820148 esac
2151920149 OCAMLMKTOP=$ac_ct_OCAMLMKTOP
2152720157 if test -n "$ac_tool_prefix"; then
2152820158 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args.
2152920159 set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2
21530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21531 printf %s "checking for $ac_word... " >&6; }
21532 if test ${ac_cv_prog_OCAMLMKLIB+y}
21533 then :
21534 printf %s "(cached) " >&6
21535 else $as_nop
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20161 $as_echo_n "checking for $ac_word... " >&6; }
20162 if ${ac_cv_prog_OCAMLMKLIB+:} false; then :
20163 $as_echo_n "(cached) " >&6
20164 else
2153620165 if test -n "$OCAMLMKLIB"; then
2153720166 ac_cv_prog_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test.
2153820167 else
2154020169 for as_dir in $PATH
2154120170 do
2154220171 IFS=$as_save_IFS
21543 case $as_dir in #(((
21544 '') as_dir=./ ;;
21545 */) ;;
21546 *) as_dir=$as_dir/ ;;
21547 esac
20172 test -z "$as_dir" && as_dir=.
2154820173 for ac_exec_ext in '' $ac_executable_extensions; do
21549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155020175 ac_cv_prog_OCAMLMKLIB="${ac_tool_prefix}ocamlmklib"
21551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2155220177 break 2
2155320178 fi
2155420179 done
2155920184 fi
2156020185 OCAMLMKLIB=$ac_cv_prog_OCAMLMKLIB
2156120186 if test -n "$OCAMLMKLIB"; then
21562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
21563 printf "%s\n" "$OCAMLMKLIB" >&6; }
21564 else
21565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21566 printf "%s\n" "no" >&6; }
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
20188 $as_echo "$OCAMLMKLIB" >&6; }
20189 else
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20191 $as_echo "no" >&6; }
2156720192 fi
2156820193
2156920194
2157220197 ac_ct_OCAMLMKLIB=$OCAMLMKLIB
2157320198 # Extract the first word of "ocamlmklib", so it can be a program name with args.
2157420199 set dummy ocamlmklib; ac_word=$2
21575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21576 printf %s "checking for $ac_word... " >&6; }
21577 if test ${ac_cv_prog_ac_ct_OCAMLMKLIB+y}
21578 then :
21579 printf %s "(cached) " >&6
21580 else $as_nop
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20201 $as_echo_n "checking for $ac_word... " >&6; }
20202 if ${ac_cv_prog_ac_ct_OCAMLMKLIB+:} false; then :
20203 $as_echo_n "(cached) " >&6
20204 else
2158120205 if test -n "$ac_ct_OCAMLMKLIB"; then
2158220206 ac_cv_prog_ac_ct_OCAMLMKLIB="$ac_ct_OCAMLMKLIB" # Let the user override the test.
2158320207 else
2158520209 for as_dir in $PATH
2158620210 do
2158720211 IFS=$as_save_IFS
21588 case $as_dir in #(((
21589 '') as_dir=./ ;;
21590 */) ;;
21591 *) as_dir=$as_dir/ ;;
21592 esac
20212 test -z "$as_dir" && as_dir=.
2159320213 for ac_exec_ext in '' $ac_executable_extensions; do
21594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159520215 ac_cv_prog_ac_ct_OCAMLMKLIB="ocamlmklib"
21596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2159720217 break 2
2159820218 fi
2159920219 done
2160420224 fi
2160520225 ac_ct_OCAMLMKLIB=$ac_cv_prog_ac_ct_OCAMLMKLIB
2160620226 if test -n "$ac_ct_OCAMLMKLIB"; then
21607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKLIB" >&5
21608 printf "%s\n" "$ac_ct_OCAMLMKLIB" >&6; }
21609 else
21610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21611 printf "%s\n" "no" >&6; }
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKLIB" >&5
20228 $as_echo "$ac_ct_OCAMLMKLIB" >&6; }
20229 else
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20231 $as_echo "no" >&6; }
2161220232 fi
2161320233
2161420234 if test "x$ac_ct_OCAMLMKLIB" = x; then
2161620236 else
2161720237 case $cross_compiling:$ac_tool_warned in
2161820238 yes:)
21619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2162120241 ac_tool_warned=yes ;;
2162220242 esac
2162320243 OCAMLMKLIB=$ac_ct_OCAMLMKLIB
2163120251 if test -n "$ac_tool_prefix"; then
2163220252 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args.
2163320253 set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2
21634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21635 printf %s "checking for $ac_word... " >&6; }
21636 if test ${ac_cv_prog_OCAMLDOC+y}
21637 then :
21638 printf %s "(cached) " >&6
21639 else $as_nop
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20255 $as_echo_n "checking for $ac_word... " >&6; }
20256 if ${ac_cv_prog_OCAMLDOC+:} false; then :
20257 $as_echo_n "(cached) " >&6
20258 else
2164020259 if test -n "$OCAMLDOC"; then
2164120260 ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test.
2164220261 else
2164420263 for as_dir in $PATH
2164520264 do
2164620265 IFS=$as_save_IFS
21647 case $as_dir in #(((
21648 '') as_dir=./ ;;
21649 */) ;;
21650 *) as_dir=$as_dir/ ;;
21651 esac
20266 test -z "$as_dir" && as_dir=.
2165220267 for ac_exec_ext in '' $ac_executable_extensions; do
21653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165420269 ac_cv_prog_OCAMLDOC="${ac_tool_prefix}ocamldoc"
21655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2165620271 break 2
2165720272 fi
2165820273 done
2166320278 fi
2166420279 OCAMLDOC=$ac_cv_prog_OCAMLDOC
2166520280 if test -n "$OCAMLDOC"; then
21666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
21667 printf "%s\n" "$OCAMLDOC" >&6; }
21668 else
21669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21670 printf "%s\n" "no" >&6; }
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
20282 $as_echo "$OCAMLDOC" >&6; }
20283 else
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285 $as_echo "no" >&6; }
2167120286 fi
2167220287
2167320288
2167620291 ac_ct_OCAMLDOC=$OCAMLDOC
2167720292 # Extract the first word of "ocamldoc", so it can be a program name with args.
2167820293 set dummy ocamldoc; ac_word=$2
21679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21680 printf %s "checking for $ac_word... " >&6; }
21681 if test ${ac_cv_prog_ac_ct_OCAMLDOC+y}
21682 then :
21683 printf %s "(cached) " >&6
21684 else $as_nop
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20295 $as_echo_n "checking for $ac_word... " >&6; }
20296 if ${ac_cv_prog_ac_ct_OCAMLDOC+:} false; then :
20297 $as_echo_n "(cached) " >&6
20298 else
2168520299 if test -n "$ac_ct_OCAMLDOC"; then
2168620300 ac_cv_prog_ac_ct_OCAMLDOC="$ac_ct_OCAMLDOC" # Let the user override the test.
2168720301 else
2168920303 for as_dir in $PATH
2169020304 do
2169120305 IFS=$as_save_IFS
21692 case $as_dir in #(((
21693 '') as_dir=./ ;;
21694 */) ;;
21695 *) as_dir=$as_dir/ ;;
21696 esac
20306 test -z "$as_dir" && as_dir=.
2169720307 for ac_exec_ext in '' $ac_executable_extensions; do
21698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169920309 ac_cv_prog_ac_ct_OCAMLDOC="ocamldoc"
21700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2170120311 break 2
2170220312 fi
2170320313 done
2170820318 fi
2170920319 ac_ct_OCAMLDOC=$ac_cv_prog_ac_ct_OCAMLDOC
2171020320 if test -n "$ac_ct_OCAMLDOC"; then
21711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDOC" >&5
21712 printf "%s\n" "$ac_ct_OCAMLDOC" >&6; }
21713 else
21714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21715 printf "%s\n" "no" >&6; }
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDOC" >&5
20322 $as_echo "$ac_ct_OCAMLDOC" >&6; }
20323 else
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20325 $as_echo "no" >&6; }
2171620326 fi
2171720327
2171820328 if test "x$ac_ct_OCAMLDOC" = x; then
2172020330 else
2172120331 case $cross_compiling:$ac_tool_warned in
2172220332 yes:)
21723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2172520335 ac_tool_warned=yes ;;
2172620336 esac
2172720337 OCAMLDOC=$ac_ct_OCAMLDOC
2173520345 if test -n "$ac_tool_prefix"; then
2173620346 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args.
2173720347 set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2
21738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21739 printf %s "checking for $ac_word... " >&6; }
21740 if test ${ac_cv_prog_OCAMLBUILD+y}
21741 then :
21742 printf %s "(cached) " >&6
21743 else $as_nop
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20349 $as_echo_n "checking for $ac_word... " >&6; }
20350 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
20351 $as_echo_n "(cached) " >&6
20352 else
2174420353 if test -n "$OCAMLBUILD"; then
2174520354 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
2174620355 else
2174820357 for as_dir in $PATH
2174920358 do
2175020359 IFS=$as_save_IFS
21751 case $as_dir in #(((
21752 '') as_dir=./ ;;
21753 */) ;;
21754 *) as_dir=$as_dir/ ;;
21755 esac
20360 test -z "$as_dir" && as_dir=.
2175620361 for ac_exec_ext in '' $ac_executable_extensions; do
21757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175820363 ac_cv_prog_OCAMLBUILD="${ac_tool_prefix}ocamlbuild"
21759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2176020365 break 2
2176120366 fi
2176220367 done
2176720372 fi
2176820373 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
2176920374 if test -n "$OCAMLBUILD"; then
21770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
21771 printf "%s\n" "$OCAMLBUILD" >&6; }
21772 else
21773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21774 printf "%s\n" "no" >&6; }
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
20376 $as_echo "$OCAMLBUILD" >&6; }
20377 else
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20379 $as_echo "no" >&6; }
2177520380 fi
2177620381
2177720382
2178020385 ac_ct_OCAMLBUILD=$OCAMLBUILD
2178120386 # Extract the first word of "ocamlbuild", so it can be a program name with args.
2178220387 set dummy ocamlbuild; ac_word=$2
21783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21784 printf %s "checking for $ac_word... " >&6; }
21785 if test ${ac_cv_prog_ac_ct_OCAMLBUILD+y}
21786 then :
21787 printf %s "(cached) " >&6
21788 else $as_nop
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20389 $as_echo_n "checking for $ac_word... " >&6; }
20390 if ${ac_cv_prog_ac_ct_OCAMLBUILD+:} false; then :
20391 $as_echo_n "(cached) " >&6
20392 else
2178920393 if test -n "$ac_ct_OCAMLBUILD"; then
2179020394 ac_cv_prog_ac_ct_OCAMLBUILD="$ac_ct_OCAMLBUILD" # Let the user override the test.
2179120395 else
2179320397 for as_dir in $PATH
2179420398 do
2179520399 IFS=$as_save_IFS
21796 case $as_dir in #(((
21797 '') as_dir=./ ;;
21798 */) ;;
21799 *) as_dir=$as_dir/ ;;
21800 esac
20400 test -z "$as_dir" && as_dir=.
2180120401 for ac_exec_ext in '' $ac_executable_extensions; do
21802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180320403 ac_cv_prog_ac_ct_OCAMLBUILD="ocamlbuild"
21804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2180520405 break 2
2180620406 fi
2180720407 done
2181220412 fi
2181320413 ac_ct_OCAMLBUILD=$ac_cv_prog_ac_ct_OCAMLBUILD
2181420414 if test -n "$ac_ct_OCAMLBUILD"; then
21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLBUILD" >&5
21816 printf "%s\n" "$ac_ct_OCAMLBUILD" >&6; }
21817 else
21818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21819 printf "%s\n" "no" >&6; }
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLBUILD" >&5
20416 $as_echo "$ac_ct_OCAMLBUILD" >&6; }
20417 else
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419 $as_echo "no" >&6; }
2182020420 fi
2182120421
2182220422 if test "x$ac_ct_OCAMLBUILD" = x; then
2182420424 else
2182520425 case $cross_compiling:$ac_tool_warned in
2182620426 yes:)
21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21828 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2182920429 ac_tool_warned=yes ;;
2183020430 esac
2183120431 OCAMLBUILD=$ac_ct_OCAMLBUILD
2184020440 if test -n "$ac_tool_prefix"; then
2184120441 # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args.
2184220442 set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2
21843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21844 printf %s "checking for $ac_word... " >&6; }
21845 if test ${ac_cv_prog_OCAMLFIND+y}
21846 then :
21847 printf %s "(cached) " >&6
21848 else $as_nop
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20444 $as_echo_n "checking for $ac_word... " >&6; }
20445 if ${ac_cv_prog_OCAMLFIND+:} false; then :
20446 $as_echo_n "(cached) " >&6
20447 else
2184920448 if test -n "$OCAMLFIND"; then
2185020449 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
2185120450 else
2185320452 for as_dir in $PATH
2185420453 do
2185520454 IFS=$as_save_IFS
21856 case $as_dir in #(((
21857 '') as_dir=./ ;;
21858 */) ;;
21859 *) as_dir=$as_dir/ ;;
21860 esac
20455 test -z "$as_dir" && as_dir=.
2186120456 for ac_exec_ext in '' $ac_executable_extensions; do
21862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186320458 ac_cv_prog_OCAMLFIND="${ac_tool_prefix}ocamlfind"
21864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2186520460 break 2
2186620461 fi
2186720462 done
2187220467 fi
2187320468 OCAMLFIND=$ac_cv_prog_OCAMLFIND
2187420469 if test -n "$OCAMLFIND"; then
21875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
21876 printf "%s\n" "$OCAMLFIND" >&6; }
21877 else
21878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879 printf "%s\n" "no" >&6; }
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
20471 $as_echo "$OCAMLFIND" >&6; }
20472 else
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20474 $as_echo "no" >&6; }
2188020475 fi
2188120476
2188220477
2188520480 ac_ct_OCAMLFIND=$OCAMLFIND
2188620481 # Extract the first word of "ocamlfind", so it can be a program name with args.
2188720482 set dummy ocamlfind; ac_word=$2
21888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21889 printf %s "checking for $ac_word... " >&6; }
21890 if test ${ac_cv_prog_ac_ct_OCAMLFIND+y}
21891 then :
21892 printf %s "(cached) " >&6
21893 else $as_nop
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20484 $as_echo_n "checking for $ac_word... " >&6; }
20485 if ${ac_cv_prog_ac_ct_OCAMLFIND+:} false; then :
20486 $as_echo_n "(cached) " >&6
20487 else
2189420488 if test -n "$ac_ct_OCAMLFIND"; then
2189520489 ac_cv_prog_ac_ct_OCAMLFIND="$ac_ct_OCAMLFIND" # Let the user override the test.
2189620490 else
2189820492 for as_dir in $PATH
2189920493 do
2190020494 IFS=$as_save_IFS
21901 case $as_dir in #(((
21902 '') as_dir=./ ;;
21903 */) ;;
21904 *) as_dir=$as_dir/ ;;
21905 esac
20495 test -z "$as_dir" && as_dir=.
2190620496 for ac_exec_ext in '' $ac_executable_extensions; do
21907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190820498 ac_cv_prog_ac_ct_OCAMLFIND="ocamlfind"
21909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2191020500 break 2
2191120501 fi
2191220502 done
2191720507 fi
2191820508 ac_ct_OCAMLFIND=$ac_cv_prog_ac_ct_OCAMLFIND
2191920509 if test -n "$ac_ct_OCAMLFIND"; then
21920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLFIND" >&5
21921 printf "%s\n" "$ac_ct_OCAMLFIND" >&6; }
21922 else
21923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21924 printf "%s\n" "no" >&6; }
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLFIND" >&5
20511 $as_echo "$ac_ct_OCAMLFIND" >&6; }
20512 else
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20514 $as_echo "no" >&6; }
2192520515 fi
2192620516
2192720517 if test "x$ac_ct_OCAMLFIND" = x; then
2192920519 else
2193020520 case $cross_compiling:$ac_tool_warned in
2193120521 yes:)
21932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21933 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2193420524 ac_tool_warned=yes ;;
2193520525 esac
2193620526 OCAMLFIND=$ac_ct_OCAMLFIND
2194820538
2194920539
2195020540 # Check whether --enable-ocaml was given.
21951 if test ${enable_ocaml+y}
21952 then :
20541 if test "${enable_ocaml+set}" = set; then :
2195320542 enableval=$enable_ocaml;
21954 else $as_nop
20543 else
2195520544 enable_ocaml=yes
2195620545 fi
2195720546
2199220581
2199320582
2199420583 if test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno" && \
21995 test "x$enable_ocaml" = "xyes"
21996 then :
21997
21998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for caml_alloc_custom_mem" >&5
21999 printf %s "checking for caml_alloc_custom_mem... " >&6; }
20584 test "x$enable_ocaml" = "xyes"; then :
20585
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for caml_alloc_custom_mem" >&5
20587 $as_echo_n "checking for caml_alloc_custom_mem... " >&6; }
2200020588 cat >conftest.c <<'EOF'
2200120589 #include <caml/custom.h>
2200220590 int main () { char *p = (void *) caml_alloc_custom_mem; return 0; }
2200320591 EOF
22004 if $OCAMLC conftest.c >&5 2>&1
22005 then :
22006
22007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22008 printf "%s\n" "yes" >&6; }
22009
22010 printf "%s\n" "#define HAVE_CAML_ALLOC_CUSTOM_MEM 1" >>confdefs.h
22011
22012
22013 else $as_nop
22014
22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22016 printf "%s\n" "no" >&6; }
20592 if $OCAMLC conftest.c >&5 2>&1; then :
20593
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20595 $as_echo "yes" >&6; }
20596
20597 $as_echo "#define HAVE_CAML_ALLOC_CUSTOM_MEM 1" >>confdefs.h
20598
20599
20600 else
20601
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603 $as_echo "no" >&6; }
2201720604
2201820605 fi
2201920606 rm -f conftest.c conftest.o
2202120608 fi
2202220609
2202320610 if test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno" && \
22024 test "x$enable_ocaml" = "xyes"
22025 then :
22026
22027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for caml_alloc_initialized_string" >&5
22028 printf %s "checking for caml_alloc_initialized_string... " >&6; }
20611 test "x$enable_ocaml" = "xyes"; then :
20612
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for caml_alloc_initialized_string" >&5
20614 $as_echo_n "checking for caml_alloc_initialized_string... " >&6; }
2202920615 cat >conftest.c <<'EOF'
2203020616 #include <caml/alloc.h>
2203120617 int main () { char *p = (void *) caml_alloc_initialized_string; return 0; }
2203220618 EOF
22033 if $OCAMLC conftest.c >&5 2>&1
22034 then :
22035
22036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22037 printf "%s\n" "yes" >&6; }
22038
22039 printf "%s\n" "#define HAVE_CAML_ALLOC_INITIALIZED_STRING 1" >>confdefs.h
22040
22041
22042 else $as_nop
22043
22044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22045 printf "%s\n" "no" >&6; }
20619 if $OCAMLC conftest.c >&5 2>&1; then :
20620
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20622 $as_echo "yes" >&6; }
20623
20624 $as_echo "#define HAVE_CAML_ALLOC_INITIALIZED_STRING 1" >>confdefs.h
20625
20626
20627 else
20628
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20630 $as_echo "no" >&6; }
2204620631
2204720632 fi
2204820633 rm -f conftest.c conftest.o
2205420639 PYTHON_INSTALLDIR=
2205520640
2205620641 # Check whether --enable-python was given.
22057 if test ${enable_python+y}
22058 then :
20642 if test "${enable_python+set}" = set; then :
2205920643 enableval=$enable_python;
22060 else $as_nop
20644 else
2206120645 enable_python=yes
2206220646 fi
2206320647
22064 if test "x$enable_python" != "xno"
22065 then :
20648 if test "x$enable_python" != "xno"; then :
2206620649
2206720650 # Extract the first word of "python3", so it can be a program name with args.
2206820651 set dummy python3; ac_word=$2
22069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22070 printf %s "checking for $ac_word... " >&6; }
22071 if test ${ac_cv_prog_PYTHON+y}
22072 then :
22073 printf %s "(cached) " >&6
22074 else $as_nop
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20653 $as_echo_n "checking for $ac_word... " >&6; }
20654 if ${ac_cv_prog_PYTHON+:} false; then :
20655 $as_echo_n "(cached) " >&6
20656 else
2207520657 if test -n "$PYTHON"; then
2207620658 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
2207720659 else
2207920661 for as_dir in $PATH
2208020662 do
2208120663 IFS=$as_save_IFS
22082 case $as_dir in #(((
22083 '') as_dir=./ ;;
22084 */) ;;
22085 *) as_dir=$as_dir/ ;;
22086 esac
20664 test -z "$as_dir" && as_dir=.
2208720665 for ac_exec_ext in '' $ac_executable_extensions; do
22088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208920667 ac_cv_prog_PYTHON="python3"
22090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2209120669 break 2
2209220670 fi
2209320671 done
2209920677 fi
2210020678 PYTHON=$ac_cv_prog_PYTHON
2210120679 if test -n "$PYTHON"; then
22102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22103 printf "%s\n" "$PYTHON" >&6; }
22104 else
22105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22106 printf "%s\n" "no" >&6; }
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20681 $as_echo "$PYTHON" >&6; }
20682 else
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20684 $as_echo "no" >&6; }
2210720685 fi
2210820686
2210920687
2211020688
2211120689 if test "x$PYTHON" != "xno"; then
22112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
22113 printf %s "checking Python version... " >&6; }
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
20691 $as_echo_n "checking Python version... " >&6; }
2211420692 PYTHON_VERSION_MAJOR=`$PYTHON -c "import sys; print (sys.version_info[0])"`
2211520693 PYTHON_VERSION_MINOR=`$PYTHON -c "import sys; print (sys.version_info[1])"`
2211620694 PYTHON_VERSION="$PYTHON_VERSION_MAJOR.$PYTHON_VERSION_MINOR"
22117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
22118 printf "%s\n" "$PYTHON_VERSION" >&6; }
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
20696 $as_echo "$PYTHON_VERSION" >&6; }
2211920697
2212020698 # Debian: python-3.2.pc
2212120699
2212220700 pkg_failed=no
22123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
22124 printf %s "checking for PYTHON... " >&6; }
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
20702 $as_echo_n "checking for PYTHON... " >&6; }
2212520703
2212620704 if test -n "$PYTHON_CFLAGS"; then
2212720705 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
2212820706 elif test -n "$PKG_CONFIG"; then
2212920707 if test -n "$PKG_CONFIG" && \
22130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5
20708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5
2213120709 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"") 2>&5
2213220710 ac_status=$?
22133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2213420712 test $ac_status = 0; }; then
2213520713 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-"$PYTHON_VERSION"" 2>/dev/null`
2213620714 test "x$?" != "x0" && pkg_failed=yes
2214420722 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
2214520723 elif test -n "$PKG_CONFIG"; then
2214620724 if test -n "$PKG_CONFIG" && \
22147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5
20725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\"\$PYTHON_VERSION\"\""; } >&5
2214820726 ($PKG_CONFIG --exists --print-errors "python-"$PYTHON_VERSION"") 2>&5
2214920727 ac_status=$?
22150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215120729 test $ac_status = 0; }; then
2215220730 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-"$PYTHON_VERSION"" 2>/dev/null`
2215320731 test "x$?" != "x0" && pkg_failed=yes
2216120739
2216220740
2216320741 if test $pkg_failed = yes; then
22164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22165 printf "%s\n" "no" >&6; }
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 $as_echo "no" >&6; }
2216620744
2216720745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2216820746 _pkg_short_errors_supported=yes
2218020758
2218120759
2218220760 pkg_failed=no
22183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
22184 printf %s "checking for PYTHON... " >&6; }
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
20762 $as_echo_n "checking for PYTHON... " >&6; }
2218520763
2218620764 if test -n "$PYTHON_CFLAGS"; then
2218720765 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
2218820766 elif test -n "$PKG_CONFIG"; then
2218920767 if test -n "$PKG_CONFIG" && \
22190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
20768 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
2219120769 ($PKG_CONFIG --exists --print-errors "python") 2>&5
2219220770 ac_status=$?
22193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2219420772 test $ac_status = 0; }; then
2219520773 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null`
2219620774 test "x$?" != "x0" && pkg_failed=yes
2220420782 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
2220520783 elif test -n "$PKG_CONFIG"; then
2220620784 if test -n "$PKG_CONFIG" && \
22207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
20785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
2220820786 ($PKG_CONFIG --exists --print-errors "python") 2>&5
2220920787 ac_status=$?
22210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221120789 test $ac_status = 0; }; then
2221220790 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null`
2221320791 test "x$?" != "x0" && pkg_failed=yes
2222120799
2222220800
2222320801 if test $pkg_failed = yes; then
22224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22225 printf "%s\n" "no" >&6; }
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20803 $as_echo "no" >&6; }
2222620804
2222720805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2222820806 _pkg_short_errors_supported=yes
2223820816 echo "$PYTHON_PKG_ERRORS" >&5
2223920817
2224020818
22241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
22242 printf "%s\n" "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
20820 $as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
2224320821
2224420822 elif test $pkg_failed = untried; then
22245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22246 printf "%s\n" "no" >&6; }
22247
22248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
22249 printf "%s\n" "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20824 $as_echo "no" >&6; }
20825
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
20827 $as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
2225020828
2225120829 else
2225220830 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
2225320831 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
22254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22255 printf "%s\n" "yes" >&6; }
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20833 $as_echo "yes" >&6; }
2225620834
2225720835 have_python_module=1
2225820836
2225920837
2226020838
2226120839
22262 printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h
20840 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
2226320841
2226420842
2226520843 fi
2226620844
2226720845 elif test $pkg_failed = untried; then
22268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269 printf "%s\n" "no" >&6; }
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20847 $as_echo "no" >&6; }
2227020848
2227120849
2227220850 pkg_failed=no
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
22274 printf %s "checking for PYTHON... " >&6; }
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
20852 $as_echo_n "checking for PYTHON... " >&6; }
2227520853
2227620854 if test -n "$PYTHON_CFLAGS"; then
2227720855 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
2227820856 elif test -n "$PKG_CONFIG"; then
2227920857 if test -n "$PKG_CONFIG" && \
22280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
20858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
2228120859 ($PKG_CONFIG --exists --print-errors "python") 2>&5
2228220860 ac_status=$?
22283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228420862 test $ac_status = 0; }; then
2228520863 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null`
2228620864 test "x$?" != "x0" && pkg_failed=yes
2229420872 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
2229520873 elif test -n "$PKG_CONFIG"; then
2229620874 if test -n "$PKG_CONFIG" && \
22297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
20875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
2229820876 ($PKG_CONFIG --exists --print-errors "python") 2>&5
2229920877 ac_status=$?
22300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230120879 test $ac_status = 0; }; then
2230220880 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null`
2230320881 test "x$?" != "x0" && pkg_failed=yes
2231120889
2231220890
2231320891 if test $pkg_failed = yes; then
22314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22315 printf "%s\n" "no" >&6; }
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20893 $as_echo "no" >&6; }
2231620894
2231720895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2231820896 _pkg_short_errors_supported=yes
2232820906 echo "$PYTHON_PKG_ERRORS" >&5
2232920907
2233020908
22331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
22332 printf "%s\n" "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
20910 $as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
2233320911
2233420912 elif test $pkg_failed = untried; then
22335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22336 printf "%s\n" "no" >&6; }
22337
22338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
22339 printf "%s\n" "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20914 $as_echo "no" >&6; }
20915
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python $PYTHON_VERSION not found" >&5
20917 $as_echo "$as_me: WARNING: python $PYTHON_VERSION not found" >&2;}
2234020918
2234120919 else
2234220920 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
2234320921 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
22344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22345 printf "%s\n" "yes" >&6; }
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20923 $as_echo "yes" >&6; }
2234620924
2234720925 have_python_module=1
2234820926
2234920927
2235020928
2235120929
22352 printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h
20930 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
2235320931
2235420932
2235520933 fi
2235720935 else
2235820936 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
2235920937 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
22360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22361 printf "%s\n" "yes" >&6; }
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20939 $as_echo "yes" >&6; }
2236220940
2236320941 have_python_module=1
2236420942
2236520943
2236620944
2236720945
22368 printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h
22369
22370
22371 fi
22372
22373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python prefix" >&5
22374 printf %s "checking Python prefix... " >&6; }
20946 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
20947
20948
20949 fi
20950
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python prefix" >&5
20952 $as_echo_n "checking Python prefix... " >&6; }
2237520953 PYTHON_PREFIX=`$PYTHON -c "import sys; print (sys.prefix)"`
22376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PREFIX" >&5
22377 printf "%s\n" "$PYTHON_PREFIX" >&6; }
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PREFIX" >&5
20955 $as_echo "$PYTHON_PREFIX" >&6; }
2237820956
2237920957
2238020958 # Check whether --with-python-installdir was given.
22381 if test ${with_python_installdir+y}
22382 then :
20959 if test "${with_python_installdir+set}" = set; then :
2238320960 withval=$with_python_installdir; PYTHON_INSTALLDIR="$withval"
22384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Python install dir $PYTHON_INSTALLDIR" >&5
22385 printf "%s\n" "$as_me: Python install dir $PYTHON_INSTALLDIR" >&6;}
22386 else $as_nop
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: Python install dir $PYTHON_INSTALLDIR" >&5
20962 $as_echo "$as_me: Python install dir $PYTHON_INSTALLDIR" >&6;}
20963 else
2238720964 PYTHON_INSTALLDIR=check
2238820965 fi
2238920966
2239020967
2239120968 if test "x$PYTHON_INSTALLDIR" = "xcheck"; then
2239220969 PYTHON_INSTALLDIR=
22393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22394 printf %s "checking for Python site-packages path... " >&6; }
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20971 $as_echo_n "checking for Python site-packages path... " >&6; }
2239520972 if test -z "$PYTHON_INSTALLDIR"; then
2239620973 PYTHON_INSTALLDIR=`$PYTHON -c "import distutils.sysconfig; \
2239720974 print (distutils.sysconfig.get_python_lib(1,0));"`
2239820975 fi
22399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INSTALLDIR" >&5
22400 printf "%s\n" "$PYTHON_INSTALLDIR" >&6; }
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INSTALLDIR" >&5
20977 $as_echo "$PYTHON_INSTALLDIR" >&6; }
2240120978 fi
2240220979
22403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python extension suffix (PEP-3149)" >&5
22404 printf %s "checking for Python extension suffix (PEP-3149)... " >&6; }
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python extension suffix (PEP-3149)" >&5
20981 $as_echo_n "checking for Python extension suffix (PEP-3149)... " >&6; }
2240520982 if test -z "$PYTHON_EXT_SUFFIX"; then
2240620983 python_ext_suffix=`$PYTHON -c "import distutils.sysconfig; \
2240720984 print (distutils.sysconfig.get_config_var('EXT_SUFFIX') or distutils.sysconfig.get_config_var('SO'))"`
2240820985 PYTHON_EXT_SUFFIX=$python_ext_suffix
2240920986 fi
22410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXT_SUFFIX" >&5
22411 printf "%s\n" "$PYTHON_EXT_SUFFIX" >&6; }
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXT_SUFFIX" >&5
20988 $as_echo "$PYTHON_EXT_SUFFIX" >&6; }
2241220989 fi
2241320990
2241420991
2242721004
2242821005
2242921006 # Check whether --enable-python-code-style was given.
22430 if test ${enable_python_code_style+y}
22431 then :
21007 if test "${enable_python_code_style+set}" = set; then :
2243221008 enableval=$enable_python_code_style; enable_pycodestyle=$enableval
22433 else $as_nop
21009 else
2243421010 enable_pycodestyle=no
2243521011 fi
2243621012
2244421020
2244521021
2244621022 # Check whether --enable-golang was given.
22447 if test ${enable_golang+y}
22448 then :
21023 if test "${enable_golang+set}" = set; then :
2244921024 enableval=$enable_golang;
22450 else $as_nop
21025 else
2245121026 enable_golang=yes
2245221027 fi
2245321028
22454 if test "x$enable_golang" != "xno"
22455 then :
21029 if test "x$enable_golang" != "xno"; then :
2245621030
2245721031 # Extract the first word of "go", so it can be a program name with args.
2245821032 set dummy go; ac_word=$2
22459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22460 printf %s "checking for $ac_word... " >&6; }
22461 if test ${ac_cv_prog_GOLANG+y}
22462 then :
22463 printf %s "(cached) " >&6
22464 else $as_nop
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21034 $as_echo_n "checking for $ac_word... " >&6; }
21035 if ${ac_cv_prog_GOLANG+:} false; then :
21036 $as_echo_n "(cached) " >&6
21037 else
2246521038 if test -n "$GOLANG"; then
2246621039 ac_cv_prog_GOLANG="$GOLANG" # Let the user override the test.
2246721040 else
2246921042 for as_dir in $PATH
2247021043 do
2247121044 IFS=$as_save_IFS
22472 case $as_dir in #(((
22473 '') as_dir=./ ;;
22474 */) ;;
22475 *) as_dir=$as_dir/ ;;
22476 esac
21045 test -z "$as_dir" && as_dir=.
2247721046 for ac_exec_ext in '' $ac_executable_extensions; do
22478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247921048 ac_cv_prog_GOLANG="go"
22480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2248121050 break 2
2248221051 fi
2248321052 done
2248921058 fi
2249021059 GOLANG=$ac_cv_prog_GOLANG
2249121060 if test -n "$GOLANG"; then
22492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GOLANG" >&5
22493 printf "%s\n" "$GOLANG" >&6; }
22494 else
22495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22496 printf "%s\n" "no" >&6; }
22497 fi
22498
22499
22500 if test "x$GOLANG" != "xno"
22501 then :
22502
22503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $GOLANG is usable" >&5
22504 printf %s "checking if $GOLANG is usable... " >&6; }
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOLANG" >&5
21062 $as_echo "$GOLANG" >&6; }
21063 else
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21065 $as_echo "no" >&6; }
21066 fi
21067
21068
21069 if test "x$GOLANG" != "xno"; then :
21070
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $GOLANG is usable" >&5
21072 $as_echo_n "checking if $GOLANG is usable... " >&6; }
2250521073 if $GOLANG run $srcdir/golang/config-test.go 2>&5 && \
22506 $GOLANG help modules 2>&5 1>&2
22507 then :
22508
22509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22510 printf "%s\n" "yes" >&6; }
21074 $GOLANG help modules 2>&5 1>&2 ; then :
21075
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21077 $as_echo "yes" >&6; }
2251121078
2251221079 # Print the version to help with debugging.
2251321080 $GOLANG version
2251421081
22515 else $as_nop
22516
22517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22518 printf "%s\n" "no" >&6; }
22519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: golang ($GOLANG) is installed but not usable" >&5
22520 printf "%s\n" "$as_me: WARNING: golang ($GOLANG) is installed but not usable" >&2;}
21082 else
21083
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21085 $as_echo "no" >&6; }
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: golang ($GOLANG) is installed but not usable" >&5
21087 $as_echo "$as_me: WARNING: golang ($GOLANG) is installed but not usable" >&2;}
2252121088 GOLANG=no
2252221089
2252321090 fi
2252421091
2252521092 fi
2252621093
22527 else $as_nop
21094 else
2252821095 GOLANG=no
2252921096 fi
2253021097 if test "x$GOLANG" != "xno"; then
2258821155 case $ac_val in #(
2258921156 *${as_nl}*)
2259021157 case $ac_var in #(
22591 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22592 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2259321160 esac
2259421161 case $ac_var in #(
2259521162 _ | IFS | as_nl) ;; #(
2261921186 /^ac_cv_env_/b end
2262021187 t clear
2262121188 :clear
22622 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21189 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2262321190 t end
2262421191 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2262521192 :end' >>confcache
2262621193 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2262721194 if test -w "$cache_file"; then
2262821195 if test "x$cache_file" != "x/dev/null"; then
22629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22630 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21197 $as_echo "$as_me: updating cache $cache_file" >&6;}
2263121198 if test ! -f "$cache_file" || test -h "$cache_file"; then
2263221199 cat confcache >"$cache_file"
2263321200 else
2264121208 fi
2264221209 fi
2264321210 else
22644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22645 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21212 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2264621213 fi
2264721214 fi
2264821215 rm -f confcache
2265921226 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2266021227 # 1. Remove the extension, and $U if already installed.
2266121228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22662 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21229 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2266321230 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2266421231 # will be set to the directory where LIBOBJS objects are built.
2266521232 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2267021237 LTLIBOBJS=$ac_ltlibobjs
2267121238
2267221239
22673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22674 printf %s "checking that generated files are newer than configure... " >&6; }
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21241 $as_echo_n "checking that generated files are newer than configure... " >&6; }
2267521242 if test -n "$am_sleep_pid"; then
2267621243 # Hide warnings about reused PIDs.
2267721244 wait $am_sleep_pid 2>/dev/null
2267821245 fi
22679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22680 printf "%s\n" "done" >&6; }
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21247 $as_echo "done" >&6; }
2268121248 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2268221249 as_fn_error $? "conditional \"AMDEP\" was never defined.
2268321250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2279921366 ac_write_fail=0
2280021367 ac_clean_files_save=$ac_clean_files
2280121368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22803 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2280421371 as_write_fail=0
2280521372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2280621373 #! $SHELL
2282321390
2282421391 # Be more Bourne compatible
2282521392 DUALCASE=1; export DUALCASE # for MKS sh
22826 as_nop=:
22827 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22828 then :
21393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2282921394 emulate sh
2283021395 NULLCMD=:
2283121396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2283221397 # is contrary to our usage. Disable this feature.
2283321398 alias -g '${1+"$@"}'='"$@"'
2283421399 setopt NO_GLOB_SUBST
22835 else $as_nop
21400 else
2283621401 case `(set -o) 2>/dev/null` in #(
2283721402 *posix*) :
2283821403 set -o posix ;; #(
2284221407 fi
2284321408
2284421409
22845
22846 # Reset variables that may have inherited troublesome values from
22847 # the environment.
22848
22849 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22850 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22851 # side effect of setting IFS to empty, thus disabling word splitting.)
22852 # Quoting is to prevent editors from complaining about space-tab.
2285321410 as_nl='
2285421411 '
2285521412 export as_nl
22856 IFS=" "" $as_nl"
22857
22858 PS1='$ '
22859 PS2='> '
22860 PS4='+ '
22861
22862 # Ensure predictable behavior from utilities with locale-dependent output.
22863 LC_ALL=C
22864 export LC_ALL
22865 LANGUAGE=C
22866 export LANGUAGE
22867
22868 # We cannot yet rely on "unset" to work, but we need these variables
22869 # to be unset--not just set to an empty or harmless value--now, to
22870 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22871 # also avoids known problems related to "unset" and subshell syntax
22872 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22873 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22874 do eval test \${$as_var+y} \
22875 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22876 done
22877
22878 # Ensure that fds 0, 1, and 2 are open.
22879 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22880 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22881 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21417 # Prefer a ksh shell builtin over an external printf program on Solaris,
21418 # but without wasting forks for bash or zsh.
21419 if test -z "$BASH_VERSION$ZSH_VERSION" \
21420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21421 as_echo='print -r --'
21422 as_echo_n='print -rn --'
21423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21424 as_echo='printf %s\n'
21425 as_echo_n='printf %s'
21426 else
21427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21429 as_echo_n='/usr/ucb/echo -n'
21430 else
21431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21432 as_echo_n_body='eval
21433 arg=$1;
21434 case $arg in #(
21435 *"$as_nl"*)
21436 expr "X$arg" : "X\\(.*\\)$as_nl";
21437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21438 esac;
21439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21440 '
21441 export as_echo_n_body
21442 as_echo_n='sh -c $as_echo_n_body as_echo'
21443 fi
21444 export as_echo_body
21445 as_echo='sh -c $as_echo_body as_echo'
21446 fi
2288221447
2288321448 # The user is always right.
22884 if ${PATH_SEPARATOR+false} :; then
21449 if test "${PATH_SEPARATOR+set}" != set; then
2288521450 PATH_SEPARATOR=:
2288621451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2288721452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2288921454 }
2289021455 fi
2289121456
21457
21458 # IFS
21459 # We need space, tab and new line, in precisely that order. Quoting is
21460 # there to prevent editors from complaining about space-tab.
21461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21462 # splitting by setting IFS to empty value.)
21463 IFS=" "" $as_nl"
2289221464
2289321465 # Find who we are. Look in the path if we contain no directory separator.
2289421466 as_myself=
2289821470 for as_dir in $PATH
2289921471 do
2290021472 IFS=$as_save_IFS
22901 case $as_dir in #(((
22902 '') as_dir=./ ;;
22903 */) ;;
22904 *) as_dir=$as_dir/ ;;
22905 esac
22906 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21473 test -z "$as_dir" && as_dir=.
21474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2290721475 done
2290821476 IFS=$as_save_IFS
2290921477
2291521483 as_myself=$0
2291621484 fi
2291721485 if test ! -f "$as_myself"; then
22918 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2291921487 exit 1
2292021488 fi
2292121489
21490 # Unset variables that we do not need and which cause bugs (e.g. in
21491 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21492 # suppresses any "Segmentation fault" message there. '((' could
21493 # trigger a bug in pdksh 5.2.14.
21494 for as_var in BASH_ENV ENV MAIL MAILPATH
21495 do eval test x\${$as_var+set} = xset \
21496 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21497 done
21498 PS1='$ '
21499 PS2='> '
21500 PS4='+ '
21501
21502 # NLS nuisances.
21503 LC_ALL=C
21504 export LC_ALL
21505 LANGUAGE=C
21506 export LANGUAGE
21507
21508 # CDPATH.
21509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2292221510
2292321511
2292421512 # as_fn_error STATUS ERROR [LINENO LOG_FD]
2293121519 as_status=$1; test $as_status -eq 0 && as_status=1
2293221520 if test "$4"; then
2293321521 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21522 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2293521523 fi
22936 printf "%s\n" "$as_me: error: $2" >&2
21524 $as_echo "$as_me: error: $2" >&2
2293721525 as_fn_exit $as_status
2293821526 } # as_fn_error
22939
2294021527
2294121528
2294221529 # as_fn_set_status STATUS
2296521552 { eval $1=; unset $1;}
2296621553 }
2296721554 as_unset=as_fn_unset
22968
2296921555 # as_fn_append VAR VALUE
2297021556 # ----------------------
2297121557 # Append the text in VALUE to the end of the definition contained in VAR. Take
2297221558 # advantage of any shell optimizations that allow amortized linear growth over
2297321559 # repeated appends, instead of the typical quadratic growth present in naive
2297421560 # implementations.
22975 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22976 then :
21561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2297721562 eval 'as_fn_append ()
2297821563 {
2297921564 eval $1+=\$2
2298021565 }'
22981 else $as_nop
21566 else
2298221567 as_fn_append ()
2298321568 {
2298421569 eval $1=\$$1\$2
2299021575 # Perform arithmetic evaluation on the ARGs, and store the result in the
2299121576 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2299221577 # must be portable across $(()) and expr.
22993 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22994 then :
21578 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2299521579 eval 'as_fn_arith ()
2299621580 {
2299721581 as_val=$(( $* ))
2299821582 }'
22999 else $as_nop
21583 else
2300021584 as_fn_arith ()
2300121585 {
2300221586 as_val=`expr "$@" || test $? -eq 1`
2302721611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2302821612 X"$0" : 'X\(//\)$' \| \
2302921613 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23030 printf "%s\n" X/"$0" |
21614 $as_echo X/"$0" |
2303121615 sed '/^.*\/\([^/][^/]*\)\/*$/{
2303221616 s//\1/
2303321617 q
2304921633 as_cr_digits='0123456789'
2305021634 as_cr_alnum=$as_cr_Letters$as_cr_digits
2305121635
23052
23053 # Determine whether it's possible to make 'echo' print without a newline.
23054 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23055 # for compatibility with existing Makefiles.
2305621636 ECHO_C= ECHO_N= ECHO_T=
2305721637 case `echo -n x` in #(((((
2305821638 -n*)
2306521645 *)
2306621646 ECHO_N='-n';;
2306721647 esac
23068
23069 # For backward compatibility with old third-party macros, we provide
23070 # the shell variables $as_echo and $as_echo_n. New code should use
23071 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23072 as_echo='printf %s\n'
23073 as_echo_n='printf %s'
2307421648
2307521649 rm -f conf$$ conf$$.exe conf$$.file
2307621650 if test -d conf$$.dir; then
2311321687 as_dirs=
2311421688 while :; do
2311521689 case $as_dir in #(
23116 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21690 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2311721691 *) as_qdir=$as_dir;;
2311821692 esac
2311921693 as_dirs="'$as_qdir' $as_dirs"
2312221696 X"$as_dir" : 'X\(//\)[^/]' \| \
2312321697 X"$as_dir" : 'X\(//\)$' \| \
2312421698 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23125 printf "%s\n" X"$as_dir" |
21699 $as_echo X"$as_dir" |
2312621700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2312721701 s//\1/
2312821702 q
2318421758 # report actual input values of CONFIG_FILES etc. instead of their
2318521759 # values after options handling.
2318621760 ac_log="
23187 This file was extended by libnbd $as_me 1.10.3, which was
23188 generated by GNU Autoconf 2.71. Invocation command line was
21761 This file was extended by libnbd $as_me 1.10.4, which was
21762 generated by GNU Autoconf 2.69. Invocation command line was
2318921763
2319021764 CONFIG_FILES = $CONFIG_FILES
2319121765 CONFIG_HEADERS = $CONFIG_HEADERS
2324721821 Report bugs to the package provider."
2324821822
2324921823 _ACEOF
23250 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23251 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
2325221824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23253 ac_cs_config='$ac_cs_config_escaped'
21825 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2325421826 ac_cs_version="\\
23255 libnbd config.status 1.10.3
23256 configured by $0, generated by GNU Autoconf 2.71,
21827 libnbd config.status 1.10.4
21828 configured by $0, generated by GNU Autoconf 2.69,
2325721829 with options \\"\$ac_cs_config\\"
2325821830
23259 Copyright (C) 2021 Free Software Foundation, Inc.
21831 Copyright (C) 2012 Free Software Foundation, Inc.
2326021832 This config.status script is free software; the Free Software Foundation
2326121833 gives unlimited permission to copy, distribute and modify it."
2326221834
2329621868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2329721869 ac_cs_recheck=: ;;
2329821870 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23299 printf "%s\n" "$ac_cs_version"; exit ;;
21871 $as_echo "$ac_cs_version"; exit ;;
2330021872 --config | --confi | --conf | --con | --co | --c )
23301 printf "%s\n" "$ac_cs_config"; exit ;;
21873 $as_echo "$ac_cs_config"; exit ;;
2330221874 --debug | --debu | --deb | --de | --d | -d )
2330321875 debug=: ;;
2330421876 --file | --fil | --fi | --f )
2330521877 $ac_shift
2330621878 case $ac_optarg in
23307 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2330821880 '') as_fn_error $? "missing file argument" ;;
2330921881 esac
2331021882 as_fn_append CONFIG_FILES " '$ac_optarg'"
2331221884 --header | --heade | --head | --hea )
2331321885 $ac_shift
2331421886 case $ac_optarg in
23315 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331621888 esac
2331721889 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
2331821890 ac_need_defaults=false;;
2332121893 as_fn_error $? "ambiguous option: \`$1'
2332221894 Try \`$0 --help' for more information.";;
2332321895 --help | --hel | -h )
23324 printf "%s\n" "$ac_cs_usage"; exit ;;
21896 $as_echo "$ac_cs_usage"; exit ;;
2332521897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332621898 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2332721899 ac_cs_silent=: ;;
2334921921 if \$ac_cs_recheck; then
2335021922 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2335121923 shift
23352 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21924 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
2335321925 CONFIG_SHELL='$SHELL'
2335421926 export CONFIG_SHELL
2335521927 exec "\$@"
2336321935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2336421936 ## Running $as_me. ##
2336521937 _ASBOX
23366 printf "%s\n" "$ac_log"
21938 $as_echo "$ac_log"
2336721939 } >&5
2336821940
2336921941 _ACEOF
2380822380 # We use the long form for the default assignment because of an extremely
2380922381 # bizarre bug on SunOS 4.1.3.
2381022382 if $ac_need_defaults; then
23811 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23812 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
23813 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22385 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2381422386 fi
2381522387
2381622388 # Have a temporary directory for convenience. Make it in the build tree
2414622718 esac ||
2414722719 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
2414822720 esac
24149 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22721 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
2415022722 as_fn_append ac_file_inputs " '$ac_f'"
2415122723 done
2415222724
2415422726 # use $as_me), people would be surprised to read:
2415522727 # /* config.h. Generated by config.status. */
2415622728 configure_input='Generated from '`
24157 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22729 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
2415822730 `' by configure.'
2415922731 if test x"$ac_file" != x-; then
2416022732 configure_input="$ac_file. $configure_input"
24161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24162 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22734 $as_echo "$as_me: creating $ac_file" >&6;}
2416322735 fi
2416422736 # Neutralize special characters interpreted by sed in replacement strings.
2416522737 case $configure_input in #(
2416622738 *\&* | *\|* | *\\* )
24167 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22739 ac_sed_conf_input=`$as_echo "$configure_input" |
2416822740 sed 's/[\\\\&|]/\\\\&/g'`;; #(
2416922741 *) ac_sed_conf_input=$configure_input;;
2417022742 esac
2418122753 X"$ac_file" : 'X\(//\)[^/]' \| \
2418222754 X"$ac_file" : 'X\(//\)$' \| \
2418322755 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24184 printf "%s\n" X"$ac_file" |
22756 $as_echo X"$ac_file" |
2418522757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2418622758 s//\1/
2418722759 q
2420522777 case "$ac_dir" in
2420622778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2420722779 *)
24208 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22780 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2420922781 # A ".." for each directory in $ac_dir_suffix.
24210 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22782 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2421122783 case $ac_top_builddir_sub in
2421222784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2421322785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2426922841 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
2427022842 *datarootdir*) ac_datarootdir_seen=yes;;
2427122843 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24273 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22845 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2427422846 _ACEOF
2427522847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2427622848 ac_datarootdir_hack='
2431422886 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
2431522887 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
2431622888 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2431822890 which seems to be undefined. Please make sure it is defined" >&5
24319 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2432022892 which seems to be undefined. Please make sure it is defined" >&2;}
2432122893
2432222894 rm -f "$ac_tmp/stdin"
2433222904 #
2433322905 if test x"$ac_file" != x-; then
2433422906 {
24335 printf "%s\n" "/* $configure_input */" >&1 \
22907 $as_echo "/* $configure_input */" \
2433622908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
2433722909 } >"$ac_tmp/config.h" \
2433822910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2433922911 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24341 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22913 $as_echo "$as_me: $ac_file is unchanged" >&6;}
2434222914 else
2434322915 rm -f "$ac_file"
2434422916 mv "$ac_tmp/config.h" "$ac_file" \
2434522917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2434622918 fi
2434722919 else
24348 printf "%s\n" "/* $configure_input */" >&1 \
22920 $as_echo "/* $configure_input */" \
2434922921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
2435022922 || as_fn_error $? "could not create -" "$LINENO" 5
2435122923 fi
2436522937 X"$_am_arg" : 'X\(//\)[^/]' \| \
2436622938 X"$_am_arg" : 'X\(//\)$' \| \
2436722939 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24368 printf "%s\n" X"$_am_arg" |
22940 $as_echo X"$_am_arg" |
2436922941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2437022942 s//\1/
2437122943 q
2438522957 s/.*/./; q'`/stamp-h$_am_stamp_count
2438622958 ;;
2438722959
24388 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24389 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22960 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22961 $as_echo "$as_me: executing $ac_file commands" >&6;}
2439022962 ;;
2439122963 esac
2439222964
2441222984 for am_mf
2441322985 do
2441422986 # Strip MF so we end up with the name of the file.
24415 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22987 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
2441622988 # Check whether this is an Automake generated Makefile which includes
2441722989 # dependency-tracking related rules and includes.
2441822990 # Grep'ing the whole file directly is not great: AIX grep has a line
2442422996 X"$am_mf" : 'X\(//\)[^/]' \| \
2442522997 X"$am_mf" : 'X\(//\)$' \| \
2442622998 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24427 printf "%s\n" X"$am_mf" |
22999 $as_echo X"$am_mf" |
2442823000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2442923001 s//\1/
2443023002 q
2444623018 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
2444723019 X"$am_mf" : 'X\(//\)$' \| \
2444823020 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24449 printf "%s\n" X/"$am_mf" |
23021 $as_echo X/"$am_mf" |
2445023022 sed '/^.*\/\([^/][^/]*\)\/*$/{
2445123023 s//\1/
2445223024 q
2447123043 (exit $ac_status); } || am_rc=$?
2447223044 done
2447323045 if test $am_rc -ne 0; then
24474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447623048 as_fn_error $? "Something went wrong bootstrapping makefile fragments
2447723049 for automatic dependency tracking. If GNU make was not used, consider
2447823050 re-running the configure script with MAKE=\"gmake\" (or whatever is
2503023602 esac
2503123603
2503223604
25033
2503423605 ltmain=$ac_aux_dir/ltmain.sh
2503523606
2503623607
2523723808 $ac_cs_success || as_fn_exit 1
2523823809 fi
2523923810 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25241 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23812 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2524223813 fi
2524323814
2524423815
2529023861 echo
2529123862 echo "Next you should type 'make' to build the package,"
2529223863 echo "then 'make check' to run the tests."
25293
00 # nbd client library in userspace
1 # Copyright (C) 2013-2021 Red Hat Inc.
1 # Copyright (C) 2013-2022 Red Hat Inc.
22 #
33 # This library is free software; you can redistribute it and/or
44 # modify it under the terms of the GNU Lesser General Public
1414 # License along with this library; if not, write to the Free Software
1515 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1616
17 AC_INIT([libnbd],[1.10.3])
17 AC_INIT([libnbd],[1.10.4])
1818
1919 AC_CONFIG_MACRO_DIR([m4])
2020 m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],[],
00 # nbd client library in userspace
1 # Copyright (C) 2020 Red Hat Inc.
1 # Copyright (C) 2020-2022 Red Hat Inc.
22 #
33 # This library is free software; you can redistribute it and/or
44 # modify it under the terms of the GNU Lesser General Public
3232 copy-nbd-to-small-nbd-error.sh \
3333 copy-nbd-to-sparse-file.sh \
3434 copy-nbd-to-stdout.sh \
35 copy-nbd-error.sh \
3536 copy-progress-bar.sh \
3637 copy-sparse.sh \
3738 copy-sparse-allocated.sh \
123124 copy-stdin-to-nbd.sh \
124125 copy-stdin-to-null.sh \
125126 copy-nbd-to-stdout.sh \
127 copy-nbd-error.sh \
126128 copy-progress-bar.sh \
127129 copy-sparse.sh \
128130 copy-sparse-allocated.sh \
1414 @SET_MAKE@
1515
1616 # nbd client library in userspace
17 # Copyright (C) 2020 Red Hat Inc.
17 # Copyright (C) 2020-2022 Red Hat Inc.
1818 #
1919 # This library is free software; you can redistribute it and/or
2020 # modify it under the terms of the GNU Lesser General Public
160160 @HAVE_LIBXML2_TRUE@ copy-stdin-to-nbd.sh \
161161 @HAVE_LIBXML2_TRUE@ copy-stdin-to-null.sh \
162162 @HAVE_LIBXML2_TRUE@ copy-nbd-to-stdout.sh \
163 @HAVE_LIBXML2_TRUE@ copy-nbd-error.sh \
163164 @HAVE_LIBXML2_TRUE@ copy-progress-bar.sh \
164165 @HAVE_LIBXML2_TRUE@ copy-sparse.sh \
165166 @HAVE_LIBXML2_TRUE@ copy-sparse-allocated.sh \
478479 @HAVE_LIBXML2_TRUE@ copy-nbd-to-small-nbd-error.sh \
479480 @HAVE_LIBXML2_TRUE@ copy-nbd-to-sparse-file.sh \
480481 @HAVE_LIBXML2_TRUE@ copy-stdin-to-nbd.sh copy-stdin-to-null.sh \
481 @HAVE_LIBXML2_TRUE@ copy-nbd-to-stdout.sh copy-progress-bar.sh \
482 @HAVE_LIBXML2_TRUE@ copy-sparse.sh copy-sparse-allocated.sh \
482 @HAVE_LIBXML2_TRUE@ copy-nbd-to-stdout.sh copy-nbd-error.sh \
483 @HAVE_LIBXML2_TRUE@ copy-progress-bar.sh copy-sparse.sh \
484 @HAVE_LIBXML2_TRUE@ copy-sparse-allocated.sh \
483485 @HAVE_LIBXML2_TRUE@ copy-sparse-no-extents.sh \
484486 @HAVE_LIBXML2_TRUE@ copy-sparse-request-size.sh \
485487 @HAVE_LIBXML2_TRUE@ copy-sparse-to-stream.sh \
722724 copy-nbd-to-small-nbd-error.sh \
723725 copy-nbd-to-sparse-file.sh \
724726 copy-nbd-to-stdout.sh \
727 copy-nbd-error.sh \
725728 copy-progress-bar.sh \
726729 copy-sparse.sh \
727730 copy-sparse-allocated.sh \
13631366 --log-file $$b.log --trs-file $$b.trs \
13641367 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
13651368 "$$tst" $(AM_TESTS_FD_REDIRECT)
1369 copy-nbd-error.sh.log: copy-nbd-error.sh
1370 @p='copy-nbd-error.sh'; \
1371 b='copy-nbd-error.sh'; \
1372 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1373 --log-file $$b.log --trs-file $$b.trs \
1374 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1375 "$$tst" $(AM_TESTS_FD_REDIRECT)
13661376 copy-progress-bar.sh.log: copy-progress-bar.sh
13671377 @p='copy-progress-bar.sh'; \
13681378 b='copy-progress-bar.sh'; \
0 #!/usr/bin/env bash
1 # nbd client library in userspace
2 # Copyright (C) 2022 Red Hat Inc.
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18 # Tests several scenarios of handling NBD server errors
19 # Serves as a regression test for the CVE-2022-0485 fix.
20
21 . ../tests/functions.sh
22
23 set -e
24 set -x
25
26 requires nbdkit --exit-with-parent --version
27 requires nbdkit --filter=noextents null --version
28 requires nbdkit --filter=error pattern --version
29 requires nbdkit --filter=nozero memory --version
30
31 fail=0
32
33 # Failure to get block status should not be fatal, but merely downgrade to
34 # reading the entire image as if data
35 echo "Testing extents failures on source"
36 $VG nbdcopy -- [ nbdkit --exit-with-parent -v --filter=error pattern 5M \
37 error-extents-rate=1 ] null: || fail=1
38
39 # Failure to read should be fatal
40 echo "Testing read failures on non-sparse source"
41 $VG nbdcopy -- [ nbdkit --exit-with-parent -v --filter=error pattern 5M \
42 error-pread-rate=0.5 ] null: && fail=1
43
44 # However, reliable block status on a sparse image can avoid the need to read
45 echo "Testing read failures on sparse source"
46 $VG nbdcopy -- [ nbdkit --exit-with-parent -v --filter=error null 5M \
47 error-pread-rate=1 ] null: || fail=1
48
49 # Failure to write data should be fatal
50 echo "Testing write data failures on arbitrary destination"
51 $VG nbdcopy -- [ nbdkit --exit-with-parent -v pattern 5M ] \
52 [ nbdkit --exit-with-parent -v --filter=error --filter=noextents \
53 memory 5M error-pwrite-rate=0.5 ] && fail=1
54
55 # However, writing zeroes can bypass the need for normal writes
56 echo "Testing write data failures from sparse source"
57 $VG nbdcopy -- [ nbdkit --exit-with-parent -v null 5M ] \
58 [ nbdkit --exit-with-parent -v --filter=error --filter=noextents \
59 memory 5M error-pwrite-rate=1 ] || fail=1
60
61 # Failure to write zeroes should be fatal
62 echo "Testing write zero failures on arbitrary destination"
63 $VG nbdcopy -- [ nbdkit --exit-with-parent -v null 5M ] \
64 [ nbdkit --exit-with-parent -v --filter=error memory 5M \
65 error-zero-rate=1 ] && fail=1
66
67 # However, assuming/learning destination is zero can skip need to write
68 echo "Testing write failures on pre-zeroed destination"
69 $VG nbdcopy --destination-is-zero -- \
70 [ nbdkit --exit-with-parent -v null 5M ] \
71 [ nbdkit --exit-with-parent -v --filter=error memory 5M \
72 error-pwrite-rate=1 error-zero-rate=1 ] || fail=1
73
74 # Likewise, when write zero is not advertised, fallback to normal write works
75 echo "Testing write zeroes to destination without zero support"
76 $VG nbdcopy -- [ nbdkit --exit-with-parent -v null 5M ] \
77 [ nbdkit --exit-with-parent -v --filter=nozero --filter=error memory 5M \
78 error-zero-rate=1 ] || fail=1
79
80 exit $fail
00 /* NBD client library in userspace.
1 * Copyright (C) 2020 Red Hat Inc.
1 * Copyright (C) 2020-2022 Red Hat Inc.
22 *
33 * This library is free software; you can redistribute it and/or
44 * modify it under the terms of the GNU Lesser General Public
586586 struct command *command,
587587 nbd_completion_callback cb)
588588 {
589 int dummy = 0;
590
589591 file_synch_read (rw, slice_ptr (command->slice),
590592 command->slice.len, command->offset);
591 errno = 0;
592 if (cb.callback (cb.user_data, &errno) == -1) {
593 perror (rw->name);
594 exit (EXIT_FAILURE);
595 }
593 /* file_synch_read called exit() on error */
594 cb.callback (cb.user_data, &dummy);
596595 }
597596
598597 static void
600599 struct command *command,
601600 nbd_completion_callback cb)
602601 {
602 int dummy = 0;
603
603604 file_synch_write (rw, slice_ptr (command->slice),
604605 command->slice.len, command->offset);
605 errno = 0;
606 if (cb.callback (cb.user_data, &errno) == -1) {
607 perror (rw->name);
608 exit (EXIT_FAILURE);
609 }
606 /* file_synch_write called exit() on error */
607 cb.callback (cb.user_data, &dummy);
610608 }
611609
612610 static bool
613611 file_asynch_zero (struct rw *rw, struct command *command,
614612 nbd_completion_callback cb, bool allocate)
615613 {
614 int dummy = 0;
615
616616 if (!file_synch_zero (rw, command->offset, command->slice.len, allocate))
617617 return false;
618 errno = 0;
619 if (cb.callback (cb.user_data, &errno) == -1) {
620 perror (rw->name);
621 exit (EXIT_FAILURE);
622 }
618 cb.callback (cb.user_data, &dummy);
623619 return true;
624620 }
625621
00 /* NBD client library in userspace.
1 * Copyright (C) 2020 Red Hat Inc.
1 * Copyright (C) 2020-2022 Red Hat Inc.
22 *
33 * This library is free software; you can redistribute it and/or
44 * modify it under the terms of the GNU Lesser General Public
2727 #include <errno.h>
2828 #include <assert.h>
2929 #include <sys/stat.h>
30 #include <inttypes.h>
3031
3132 #include <pthread.h>
3233
375376 {
376377 struct command *command = vp;
377378
379 if (*error) {
380 fprintf (stderr, "read at offset %" PRId64 " failed: %s\n",
381 command->offset, strerror (*error));
382 exit (EXIT_FAILURE);
383 }
384
378385 if (allocated || sparse_size == 0) {
379386 /* If sparseness detection (see below) is turned off then we write
380387 * the whole command.
392399 bool last_is_hole = false;
393400 uint64_t i;
394401 struct command *newcommand;
402 int dummy = 0;
395403
396404 /* Iterate over whole blocks in the command, starting on a block
397405 * boundary.
474482 /* Free the original command since it has been split into
475483 * subcommands and the original is no longer needed.
476484 */
477 free_command (command, &errno);
485 free_command (command, &dummy);
478486 }
479487
480488 return 1; /* auto-retires the command */
501509 {
502510 char *data;
503511 size_t data_size;
512 int dummy = 0;
504513
505514 if (destination_is_zero)
506515 goto free_and_return;
536545 free (data);
537546
538547 free_and_return:
539 free_command (command, &errno);
548 free_command (command, &dummy);
540549 }
541550
542551 static int
544553 {
545554 struct command *command = vp;
546555 struct buffer *buffer = command->slice.buffer;
556
557 if (*error) {
558 fprintf (stderr, "write at offset %" PRId64 " failed: %s\n",
559 command->offset, strerror (*error));
560 exit (EXIT_FAILURE);
561 }
547562
548563 if (buffer != NULL) {
549564 if (--buffer->refs == 0) {
00 /* NBD client library in userspace.
1 * Copyright (C) 2020 Red Hat Inc.
1 * Copyright (C) 2020-2022 Red Hat Inc.
22 *
33 * This library is free software; you can redistribute it and/or
44 * modify it under the terms of the GNU Lesser General Public
336336 extent_list *ret = vp;
337337 size_t i;
338338
339 if (strcmp (metacontext, "base:allocation") != 0)
339 if (strcmp (metacontext, "base:allocation") != 0 || *error)
340340 return 0;
341341
342342 for (i = 0; i < nr_entries; i += 2) {
00 /* NBD client library in userspace.
1 * Copyright (C) 2020-2021 Red Hat Inc.
1 * Copyright (C) 2020-2022 Red Hat Inc.
22 *
33 * This library is free software; you can redistribute it and/or
44 * modify it under the terms of the GNU Lesser General Public
156156 bool allocate);
157157
158158 /* Asynchronous I/O operations. These start the operation and call
159 * 'cb' on completion.
159 * 'cb' on completion. 'cb' will return 1, for auto-retiring with
160 * asynchronous libnbd calls.
160161 *
161162 * The file_ops versions are actually implemented synchronously, but
162163 * still call 'cb'.
172173 nbd_completion_callback cb);
173174
174175 /* Asynchronously zero. command->slice.buffer is not used. If not possible,
175 * returns false.
176 * returns false. 'cb' must be called only if returning true.
176177 */
177178 bool (*asynch_zero) (struct rw *rw, struct command *command,
178179 nbd_completion_callback cb, bool allocate);
00 /* NBD client library in userspace.
1 * Copyright (C) 2020-2021 Red Hat Inc.
1 * Copyright (C) 2020-2022 Red Hat Inc.
22 *
33 * This library is free software; you can redistribute it and/or
44 * modify it under the terms of the GNU Lesser General Public
116116 struct command *command,
117117 nbd_completion_callback cb)
118118 {
119 errno = 0;
120 if (cb.callback (cb.user_data, &errno) == -1) {
121 perror (rw->name);
122 exit (EXIT_FAILURE);
123 }
119 int dummy = 0;
120
121 cb.callback (cb.user_data, &dummy);
124122 }
125123
126124 static bool
127125 null_asynch_zero (struct rw *rw, struct command *command,
128126 nbd_completion_callback cb, bool allocate)
129127 {
130 errno = 0;
131 if (cb.callback (cb.user_data, &errno) == -1) {
132 perror (rw->name);
133 exit (EXIT_FAILURE);
134 }
128 int dummy = 0;
129
130 cb.callback (cb.user_data, &dummy);
135131 return true;
136132 }
137133
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
825825 (nbd_chunk_callback) { .callback = my_fn,
826826 .user_data = my_data,
827827 .free = free },
828 NBD_NULL_CALLBACK(completion),
828 NBD_NULL_COMPLETION,
829829 0);
830830
831 will call L<free(3)> on C<my_data> after the last time that the
832 S<C<chunk.callback = my_fn>> function is called.
831 will call L<free(3)> once on C<my_data> after the point where it is
832 known that the S<C<chunk.callback = my_fn>> function can no longer be
833 called, regardless of how many times C<my_fn> was actually called. If
834 both a mid-command and completion callback are supplied, the functions
835 will be reached in this order: mid-function callbacks, completion
836 callback, mid-function free, and finally completion free.
833837
834838 The free function is only accessible in the C API as it is not needed
835839 in garbage collected programming languages.
857861
858862 =head2 Completion callbacks
859863
860 All of the low-level commands have a completion callback variant that
861 registers a callback function used right before the command is marked
862 complete.
864 All of the asychronous commands have an optional completion callback
865 function that is used right before the command is marked complete,
866 after any mid-command callbacks have finished, and before any free
867 functions.
863868
864869 When the completion callback returns C<1>, the command is
865870 automatically retired (there is no need to call
866 L<nbd_aio_command_completed(3)>); for any other return value, the command
867 still needs to be retired.
871 L<nbd_aio_command_completed(3)>); for any other return value, the
872 command still needs to be manually retired (otherwise, the command
873 will tie up resources until L<nbd_close(3)> is eventually reached).
868874
869875 =head2 Callbacks with C<int *error> parameter
870876
871877 Some of the high-level commands (L<nbd_pread_structured(3)>,
872 L<nbd_block_status(3)>) involve the use of a callback function invoked by
873 the state machine at appropriate points in the server's reply before
874 the overall command is complete. These callback functions, along with
875 all of the completion callbacks, include a parameter C<error>
876 containing the value of any error detected so far; if the callback
877 function fails, it should assign back into C<error> and return C<-1>
878 to change the resulting error of the overall command. Assignments
879 into C<error> are ignored for any other return value; similarly,
880 assigning C<0> into C<error> does not have an effect.
878 L<nbd_block_status(3)>) involve the use of a callback function invoked
879 by the state machine at appropriate points in the server's reply
880 before the overall command is complete. These callback functions,
881 along with all of the completion callbacks, include a parameter
882 C<error> which is a pointer containing the value of any error detected
883 so far. If a callback function fails and wants to change the
884 resulting error of the overall command visible later in the API
885 sequence, it should assign back into C<error> and return C<-1> in the
886 C API. Assignments into C<error> are ignored for any other return
887 value; similarly, assigning C<0> into C<error> does not have an
888 effect. In other language bindings, reporting callback errors is
889 generally done by raising an exception rather than by return value.
890
891 Note that a mid-command callback might never be reached, such as if
892 libnbd detects that the command was invalid to send (see
893 L<nbd_set_strict_mode(3)>) or if the server reports a failure that
894 concludes the command. It is safe for a mid-command callback to
895 ignore non-zero C<error>: all the other parameters to the mid-command
896 callback will still be valid (corresponding to the current portion of
897 the server's reply), and the overall command will still fail (at the
898 completion callback or L<nbd_aio_command_completed(3)> for an
899 asynchronous command, or as the result of the overall synchronous
900 command). Returing C<-1> from a mid-command callback does not prevent
901 that callback from being reached again, if the server sends more
902 mid-command replies that warrant another use of that callback. A
903 mid-command callback may be reached more times than expected if the
904 server is non-compliant.
905
906 On the other hand, if a completion callback is supplied (only possible
907 with asynchronous commands), it will always be reached exactly once,
908 and the completion callback must not ignore the value pointed to by
909 C<error>. In particular, the content of a buffer passed to
910 L<nbd_aio_pread(3)> or L<nbd_aio_pread_structured(3)> is undefined
911 if C<*error> is non-zero on entry to the completion callback. It is
912 recommended that if you choose to use automatic command retirement
913 (where the completion callback returns C<1> to avoid needing to call
914 L<nbd_aio_command_completed(3)> later), your completion function
915 should return C<1> on all control paths, even when handling errors
916 (note that with automatic retirement, assigning into C<error> is
917 pointless as there is no later API to see that value).
881918
882919 =head1 COMPILING YOUR PROGRAM
883920
6969 #include <stdlib.h>
7070 #include <stdint.h>
7171 #include <inttypes.h>
72 #include <errno.h>
7273 #include <assert.h>
7374
7475 #include <libnbd.h>
8687 {
8788 struct data *data = user_data;
8889 FILE *pp;
90
91 if (*error) {
92 errno = *error;
93 perror ("failed to read");
94 exit (EXIT_FAILURE);
95 }
8996
9097 printf ("sector at offset 0x%" PRIx64 ":\n",
9198 data->offset);
6969 #include <stdlib.h>
7070 #include <stdint.h>
7171 #include <inttypes.h>
72 #include <errno.h>
7273 #include <assert.h>
7374
7475 #include <libnbd.h>
8687 {
8788 struct data *data = user_data;
8889 FILE *pp;
90
91 if (*error) {
92 errno = *error;
93 perror ("failed to read");
94 exit (EXIT_FAILURE);
95 }
8996
9097 printf ("sector at offset 0x%" PRIx64 ":\n",
9198 data->offset);
2525 as described in L<libnbd(3)/Completion callbacks>.
2626
2727 Note that you must ensure C<buf> is valid until the command has
28 completed. Other parameters behave as documented in L<nbd_pread(3)>.
28 completed. Furthermore, the contents of C<buf> are undefined if the
29 C<error> parameter to C<completion_callback> is set, or if
30 L<nbd_aio_command_completed(3)> reports failure. Other parameters behave
31 as documented in L<nbd_pread(3)>.
2932
3033 By default, libnbd will reject attempts to use this function with
3134 parameters that are likely to result in server failure, such as
8588 #include <stdlib.h>
8689 #include <stdint.h>
8790 #include <inttypes.h>
91 #include <errno.h>
8892 #include <assert.h>
8993
9094 #include <libnbd.h>
102106 {
103107 struct data *data = user_data;
104108 FILE *pp;
109
110 if (*error) {
111 errno = *error;
112 perror ("failed to read");
113 exit (EXIT_FAILURE);
114 }
105115
106116 printf ("sector at offset 0x%" PRIx64 ":\n",
107117 data->offset);
3434 Or supply the optional C<completion_callback> which will be invoked
3535 as described in L<libnbd(3)/Completion callbacks>.
3636
37 Other parameters behave as documented in L<nbd_pread_structured(3)>.
37 Note that you must ensure C<buf> is valid until the command has
38 completed. Furthermore, the contents of C<buf> are undefined if the
39 C<error> parameter to C<completion_callback> is set, or if
40 L<nbd_aio_command_completed(3)> reports failure. Other parameters behave
41 as documented in L<nbd_pread_structured(3)>.
3842
3943 By default, libnbd will reject attempts to use this function with
4044 parameters that are likely to result in server failure, such as
5454 for contexts known to libnbd, B<E<lt>libnbd.hE<gt>> contains constants
5555 beginning with C<LIBNBD_STATE_> that may help decipher the values.
5656 On entry to the callback, the C<error> parameter contains the errno
57 value of any previously detected error.
57 value of any previously detected error, but even if an earlier error
58 was detected, the current C<metacontext> and C<entries> are valid.
5859
5960 It is possible for the extent function to be called
6061 more times than you expect (if the server is buggy),
6666 #include <stdlib.h>
6767 #include <stdint.h>
6868 #include <inttypes.h>
69 #include <errno.h>
6970 #include <assert.h>
7071
7172 #include <libnbd.h>
8384 {
8485 struct data *data = user_data;
8586 FILE *pp;
87
88 if (*error) {
89 errno = *error;
90 perror ("failed to read");
91 exit (EXIT_FAILURE);
92 }
8693
8794 printf ("sector at offset 0x%" PRIx64 ":\n",
8895 data->offset);
2121
2222 The C<flags> parameter must be C<0> for now (it exists for future NBD
2323 protocol extensions).
24
25 Note that if this command fails, the contents of C<buf> are undefined.
2426
2527 By default, libnbd will reject attempts to use this function with
2628 parameters that are likely to result in server failure, such as
8585 this, see L<nbd_can_df(3)>). Libnbd does not validate that the server
8686 actually obeys the flag.
8787
88 Note that if this command fails, the contents of C<buf> are undefined.
89
8890 By default, libnbd will reject attempts to use this function with
8991 parameters that are likely to result in server failure, such as
9092 requesting an unknown command flag. The L<nbd_set_strict_mode(3)>
1616 #include <stdlib.h>
1717 #include <stdint.h>
1818 #include <inttypes.h>
19 #include <errno.h>
1920 #include <assert.h>
2021
2122 #include <libnbd.h>
3334 {
3435 struct data *data = user_data;
3536 FILE *pp;
37
38 if (*error) {
39 errno = *error;
40 perror ("failed to read");
41 exit (EXIT_FAILURE);
42 }
3643
3744 printf ("sector at offset 0x%" PRIx64 ":\n",
3845 data->offset);
187187
188188 if (strcmp (metacontext, LIBNBD_CONTEXT_BASE_ALLOCATION) != 0) {
189189 DEBUG ("Unexpected meta context: %s", metacontext);
190 return 1;
191 }
192
193 if (*error) {
194 DEBUG ("r%zu: extent callback for %s failed: %s",
195 r->index, LIBNBD_CONTEXT_BASE_ALLOCATION, strerror (*error));
190196 return 1;
191197 }
192198
245251 r->index, ev_now (loop) - r->started);
246252
247253 extents_in_progress = false;
254
255 /*
256 * If extents failed (*error != 0), the extent callback was not
257 * called, or called with an error, so we did not allocate new
258 * extents array.
259 */
248260
249261 if (extents == NULL) {
250262 DEBUG ("r%zu: received no extents, disabling extents", r->index);
440452 {
441453 struct request *r = (struct request *)user_data;
442454
455 if (*error)
456 FAIL ("r%zu: read failed: %s", r->index, strerror (*error));
457
443458 DEBUG ("r%zu: read completed offset=%" PRIi64 " len=%zu",
444459 r->index, r->offset, r->length);
445460
494509 request_completed (void *user_data, int *error)
495510 {
496511 struct request *r = (struct request *)user_data;
512
513 if (*error)
514 FAIL ("r%zu: %s failed: %s",
515 r->index, request_state (r), strerror (*error));
497516
498517 written += r->length;
499518
640659 for (i = 0; i < MAX_REQUESTS; i++) {
641660 struct request *r = &requests[i];
642661 r->index = i;
643 r->data = malloc (REQUEST_SIZE);
662
663 /*
664 * Clear the buffer before starting the copy, so if we fail to
665 * handle a read error we will not write uninitilized data to
666 * the destination server, which may leak sensitive data to
667 * remote host.
668 */
669 r->data = calloc (1, REQUEST_SIZE);
644670 if (r->data == NULL)
645671 FAIL ("Cannot allocate buffer: %s", strerror (errno));
646672
399399 struct buffer *buffer = vp;
400400
401401 if (gssrc == NULL)
402 return 0;
402 return 1; /* Nothing we can do, auto-retire the callback */
403
404 if (*error) {
405 fprintf (stderr, "finished_read: read failed: %s\n", strerror (*error));
406 exit (EXIT_FAILURE);
407 }
403408
404409 DEBUG (gssrc, "finished_read: read completed");
405410
445450 struct buffer *buffer = vp;
446451
447452 if (gsdest == NULL)
448 return 0;
453 return 1; /* Nothing we can do, auto-retire the callback */
454
455 if (*error) {
456 fprintf (stderr, "finished_write: write failed: %s\n", strerror (*error));
457 exit (EXIT_FAILURE);
458 }
449459
450460 DEBUG (gsdest, "finished_write: write completed");
451461
00 (* hey emacs, this is OCaml code: -*- tuareg -*- *)
11 (* nbd client library in userspace: the API
2 * Copyright (C) 2013-2020 Red Hat Inc.
2 * Copyright (C) 2013-2022 Red Hat Inc.
33 *
44 * This library is free software; you can redistribute it and/or
55 * modify it under the terms of the GNU Lesser General Public
18221822 C<LIBNBD_CMD_FLAG_DF>.
18231823
18241824 The C<flags> parameter must be C<0> for now (it exists for future NBD
1825 protocol extensions)."
1825 protocol extensions).
1826
1827 Note that if this command fails, the contents of C<buf> are undefined."
18261828 ^ strict_call_description;
18271829 see_also = [Link "aio_pread"; Link "pread_structured";
18281830 Link "get_block_size"; Link "set_strict_mode"];
19011903 C<LIBNBD_CMD_FLAG_DF> meaning that the server should not reply with
19021904 more than one fragment (if that is supported - some servers cannot do
19031905 this, see L<nbd_can_df(3)>). Libnbd does not validate that the server
1904 actually obeys the flag."
1906 actually obeys the flag.
1907
1908 Note that if this command fails, the contents of C<buf> are undefined."
19051909 ^ strict_call_description;
19061910 see_also = [Link "can_df"; Link "pread";
19071911 Link "aio_pread_structured"; Link "get_block_size";
21112115 for contexts known to libnbd, B<E<lt>libnbd.hE<gt>> contains constants
21122116 beginning with C<LIBNBD_STATE_> that may help decipher the values.
21132117 On entry to the callback, the C<error> parameter contains the errno
2114 value of any previously detected error.
2118 value of any previously detected error, but even if an earlier error
2119 was detected, the current C<metacontext> and C<entries> are valid.
21152120
21162121 It is possible for the extent function to be called
21172122 more times than you expect (if the server is buggy),
24102415 as described in L<libnbd(3)/Completion callbacks>.
24112416
24122417 Note that you must ensure C<buf> is valid until the command has
2413 completed. Other parameters behave as documented in L<nbd_pread(3)>."
2418 completed. Furthermore, the contents of C<buf> are undefined if the
2419 C<error> parameter to C<completion_callback> is set, or if
2420 L<nbd_aio_command_completed(3)> reports failure. Other parameters behave
2421 as documented in L<nbd_pread(3)>."
24142422 ^ strict_call_description;
24152423 example = Some "examples/aio-connect-read.c";
24162424 see_also = [SectionLink "Issuing asynchronous commands";
24342442 Or supply the optional C<completion_callback> which will be invoked
24352443 as described in L<libnbd(3)/Completion callbacks>.
24362444
2437 Other parameters behave as documented in L<nbd_pread_structured(3)>."
2445 Note that you must ensure C<buf> is valid until the command has
2446 completed. Furthermore, the contents of C<buf> are undefined if the
2447 C<error> parameter to C<completion_callback> is set, or if
2448 L<nbd_aio_command_completed(3)> reports failure. Other parameters behave
2449 as documented in L<nbd_pread_structured(3)>."
24382450 ^ strict_call_description;
24392451 see_also = [SectionLink "Issuing asynchronous commands";
24402452 Link "aio_pread"; Link "pread_structured";
105105 soff_copy := soff
106106 var optargs AioPreadOptargs
107107 optargs.CompletionCallbackSet = true
108 optargs.CompletionCallback = func(*int) int {
108 optargs.CompletionCallback = func(error *int) int {
109 if *error != 0 {
110 err := syscall.Errno(*error).Error()
111 panic(err)
112 }
109113 return read_completed(buf, soff_copy)
110114 }
111115 src.AioPread(buf, soff, &optargs)
117121 for _, wb := range writes {
118122 var optargs AioPwriteOptargs
119123 optargs.CompletionCallbackSet = true
120 optargs.CompletionCallback = func(*int) int {
124 optargs.CompletionCallback = func(error *int) int {
125 if *error != 0 {
126 err := syscall.Errno(*error).Error()
127 panic(err)
128 }
121129 return write_completed(wb.buf)
122130 }
123131 dst.AioPwrite(wb.buf, wb.offset, &optargs)
450450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451451
452452 # Copy the file name to the temp name.
453 (umask $cp_umask &&
454 { test -z "$stripcmd" || {
455 # Create $dsttmp read-write so that cp doesn't create it read-only,
456 # which would cause strip to fail.
457 if test -z "$doit"; then
458 : >"$dsttmp" # No need to fork-exec 'touch'.
459 else
460 $doit touch "$dsttmp"
461 fi
462 }
463 } &&
464 $doit_exec $cpprog "$src" "$dsttmp") &&
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
465454
466455 # and set any options; do chmod last to preserve setuid bits.
467456 #
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
14231423 The "flags" parameter must be 0 for now (it exists for
14241424 future NBD protocol extensions).
14251425
1426 Note that if this command fails, the contents of "buf"
1427 are undefined.
1428
14261429 By default, libnbd will reject attempts to use this
14271430 function with parameters that are likely to result in
14281431 server failure, such as requesting an unknown command
15051508 nbd_can_df(3)). Libnbd does not validate that the server
15061509 actually obeys the flag.
15071510
1511 Note that if this command fails, the contents of "buf"
1512 are undefined.
1513
15081514 By default, libnbd will reject attempts to use this
15091515 function with parameters that are likely to result in
15101516 server failure, such as requesting an unknown command
17041710 to libnbd, <libnbd.h> contains constants beginning with
17051711 "LIBNBD_STATE_" that may help decipher the values. On
17061712 entry to the callback, the "error" parameter contains
1707 the errno value of any previously detected error.
1713 the errno value of any previously detected error, but
1714 even if an earlier error was detected, the current
1715 "metacontext" and "entries" are valid.
17081716
17091717 It is possible for the extent function to be called more
17101718 times than you expect (if the server is buggy), so
19521960 in "Completion callbacks" in libnbd(3).
19531961
19541962 Note that you must ensure "buf" is valid until the
1955 command has completed. Other parameters behave as
1956 documented in nbd_pread(3).
1963 command has completed. Furthermore, the contents of
1964 "buf" are undefined if the "error" parameter to
1965 "completion_callback" is set, or if
1966 nbd_aio_command_completed(3) reports failure. Other
1967 parameters behave as documented in nbd_pread(3).
19571968
19581969 By default, libnbd will reject attempts to use this
19591970 function with parameters that are likely to result in
19731984 "completion_callback" which will be invoked as described
19741985 in "Completion callbacks" in libnbd(3).
19751986
1976 Other parameters behave as documented in
1987 Note that you must ensure "buf" is valid until the
1988 command has completed. Furthermore, the contents of
1989 "buf" are undefined if the "error" parameter to
1990 "completion_callback" is set, or if
1991 nbd_aio_command_completed(3) reports failure. Other
1992 parameters behave as documented in
19771993 nbd_pread_structured(3).
19781994
19791995 By default, libnbd will reject attempts to use this
00 /* NBD client library in userspace
1 * Copyright (C) 2013-2019 Red Hat Inc.
1 * Copyright (C) 2013-2022 Red Hat Inc.
22 *
33 * This library is free software; you can redistribute it and/or
44 * modify it under the terms of the GNU Lesser General Public
111111 CAMLreturn (rv);
112112 }
113113
114 /* Common code when an exception is raised in an OCaml callback and
115 * the wrapper has to deal with it. Callbacks are not supposed to
116 * raise exceptions, so we print it. We also handle Assert_failure
117 * specially by abort()-ing.
114 /* Common code when an exception is raised in an OCaml callback.
115 *
116 * We handle Assert_failure specially by abort()-ing. Other
117 * exceptions are printed to make sure we don't lose information.
118118 */
119119 void
120120 nbd_internal_ocaml_exception_in_wrapper (const char *cbname, value rv)
125125 char *s;
126126
127127 exn = Extract_exception (rv);
128 s = caml_format_exception (exn);
129 fprintf (stderr,
130 "libnbd: %s: uncaught OCaml exception: %s\n", cbname, s);
131 free (s);
128132
129133 /* For how we're getting the exception name, see:
130134 * https://github.com/libguestfs/libguestfs/blob/5d94be2583d557cfc7f8a8cfee7988abfa45a3f8/daemon/daemon-c.c#L40
134138 else
135139 exn_name = String_val (Field (Field (exn, 0), 0));
136140
137 s = caml_format_exception (exn);
138 fprintf (stderr,
139 "libnbd: %s: uncaught OCaml exception: %s\n", cbname, s);
140 free (s);
141
142141 /* If the exception is fatal (like Assert_failure) then abort. */
143142 if (exn_name && strcmp (exn_name, "Assert_failure") == 0)
144143 abort ();
00 (* hey emacs, this is OCaml code: -*- tuareg -*- *)
11 (* libnbd OCaml test case
2 * Copyright (C) 2013-2019 Red Hat Inc.
2 * Copyright (C) 2013-2022 Red Hat Inc.
33 *
44 * This library is free software; you can redistribute it and/or
55 * modify it under the terms of the GNU Lesser General Public
4444 * next iteration of the loop.
4545 *)
4646 let writes = ref [] in
47 let read_completed buf offset _ =
47 let read_completed buf offset err =
48 assert (!err = 0);
4849 bytes_read := !bytes_read + NBD.Buffer.size buf;
4950 (* Get ready to issue a write command. *)
5051 writes := (buf, offset) :: !writes;
5556 (* This callback is called when any pwrite to the destination
5657 * has completed.
5758 *)
58 let write_completed buf _ =
59 let write_completed buf err =
60 assert (!err = 0);
5961 bytes_written := !bytes_written + NBD.Buffer.size buf;
6062 (* By returning 1 here we auto-retire the pwrite command. *)
6163 1
14901490 The "flags" parameter must be 0 for now (it exists for
14911491 future NBD protocol extensions).
14921492
1493 Note that if this command fails, the contents of "buf"
1494 are undefined.
1495
14931496 By default, libnbd will reject attempts to use this
14941497 function with parameters that are likely to result in
14951498 server failure, such as requesting an unknown command
15721575 does not validate that the server actually obeys the
15731576 flag.
15741577
1578 Note that if this command fails, the contents of "buf"
1579 are undefined.
1580
15751581 By default, libnbd will reject attempts to use this
15761582 function with parameters that are likely to result in
15771583 server failure, such as requesting an unknown command
17791785 to libnbd, <libnbd.h> contains constants beginning with
17801786 "STATE_" that may help decipher the values. On entry to
17811787 the callback, the "error" parameter contains the errno
1782 value of any previously detected error.
1788 value of any previously detected error, but even if an
1789 earlier error was detected, the current "metacontext"
1790 and "entries" are valid.
17831791
17841792 It is possible for the extent function to be called more
17851793 times than you expect (if the server is buggy), so
20432051 in "Completion callbacks" in libnbd(3).
20442052
20452053 Note that you must ensure "buf" is valid until the
2046 command has completed. Other parameters behave as
2047 documented in "nbd.pread".
2054 command has completed. Furthermore, the contents of
2055 "buf" are undefined if the "error" parameter to
2056 "completion_callback" is set, or if
2057 "nbd.aio_command_completed" reports failure. Other
2058 parameters behave as documented in "nbd.pread".
20482059
20492060 By default, libnbd will reject attempts to use this
20502061 function with parameters that are likely to result in
20672078 "completion_callback" which will be invoked as described
20682079 in "Completion callbacks" in libnbd(3).
20692080
2070 Other parameters behave as documented in
2081 Note that you must ensure "buf" is valid until the
2082 command has completed. Furthermore, the contents of
2083 "buf" are undefined if the "error" parameter to
2084 "completion_callback" is set, or if
2085 "nbd.aio_command_completed" reports failure. Other
2086 parameters behave as documented in
20712087 "nbd.pread_structured".
20722088
20732089 By default, libnbd will reject attempts to use this
00 # libnbd Python bindings
1 # Copyright (C) 2010-2019 Red Hat Inc.
1 # Copyright (C) 2010-2022 Red Hat Inc.
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1616
1717 import select
1818 import nbd
19 import os
1920
2021 disk_size = 512 * 1024 * 1024
2122 bs = 65536
3536 # This callback is called when any pread from the source
3637 # has completed.
3738 def read_completed(buf, offset, error):
39 if error.value != 0:
40 raise RuntimeError(f"read: {os.strerror(error.value)}")
3841 global bytes_read
3942 bytes_read += buf.size()
4043 wr = (buf, offset)
4548 # This callback is called when any pwrite to the destination
4649 # has completed.
4750 def write_completed(buf, error):
51 if error.value != 0:
52 raise RuntimeError(f"write: {os.strerror(error.value)}")
4853 global bytes_written
4954 bytes_written += buf.size()
5055 # By returning 1 here we auto-retire the pwrite command.
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2020 Free Software Foundation, Inc.
5 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by