Changes in / [9b086ca:cde3891]
- Files:
-
- 317 added
- 264 deleted
- 149 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r9b086ca rcde3891 38 38 libcfa/prelude/gcc-builtins.cf 39 39 libcfa/prelude/gcc-builtins.c 40 libcfa/prelude/prelude.cf 40 libcfa/prelude/prelude.cfa 41 41 libcfa/x64-debug/ 42 42 libcfa/x64-nodebug/ -
INSTALL
r9b086ca rcde3891 22 22 it is important not to put quotes around the directory path; Cforall may 23 23 appear to build, but the installed version may not work properly. 24 25 --with-backend-compiler=PROGRAM specifies the installed path of gcc. It26 defaults to the first command named 'gcc' in the current PATH.27 28 cfa-cc itself is built with the version of g++ specified by the environment29 variable CXX. If CXX is unset, cfa-cc is built using the first command named30 'g++' in the current PATH. -
Jenkins/TestRegen
r9b086ca rcde3891 70 70 //escapes the sandbox 71 71 //Also specify the compiler by hand 72 sh "./configure CXX=clang++ --host=${arch} --with-backend-compiler=gcc-6 --prefix=${install_dir} --enable-silent-rules --quiet"72 sh "./configure CXX=clang++ CC=gcc-6 --host=${arch} --enable-silent-rules --quiet" 73 73 74 74 //Compile the project 75 sh 'make -j 8 --no-print-directory install'75 sh 'make -j 8 --no-print-directory' 76 76 77 77 //Regenerate the desired tests -
Jenkinsfile
r9b086ca rcde3891 4 4 // Main loop of the compilation 5 5 //=========================================================================================================== 6 node ('master'){ 7 6 7 node('master') { 8 8 // Globals 9 BuildDir = pwd tmp: true10 SrcDir = pwd tmp: false9 BuildDir = null 10 SrcDir = null 11 11 Settings = null 12 12 StageName = '' … … 26 26 Settings = prepare_build() 27 27 28 clean() 29 30 checkout() 31 32 notify_server(0) 33 34 build() 35 36 test() 37 38 benchmark() 39 40 build_doc() 41 42 publish() 28 node(Settings.Architecture.node) { 29 BuildDir = pwd tmp: true 30 SrcDir = pwd tmp: false 31 32 clean() 33 34 checkout() 35 36 notify_server(0) 37 38 build() 39 40 test() 41 42 benchmark() 43 44 build_doc() 45 46 publish() 47 } 43 48 44 49 notify_server(45) … … 75 80 } 76 81 } 77 78 82 //=========================================================================================================== 79 83 // Main compilation routines … … 114 118 } 115 119 116 sh "${SrcDir}/configure CXX=${Settings.Compiler. cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet"120 sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet" 117 121 118 122 //Compile the project … … 128 132 //Run the tests from the tests directory 129 133 if ( Settings.RunAllTests ) { 130 sh 'make --no-print-directory -C tests all-tests debug=yes'131 sh 'make --no-print-directory -C tests all-tests debug=no '134 sh 'make --no-print-directory -C tests timeouts="--timeout=600" all-tests debug=yes' 135 sh 'make --no-print-directory -C tests timeouts="--timeout=600" all-tests debug=no ' 132 136 } 133 137 else { … … 235 239 //Description of a compiler (Must be serializable since pipelines are persistent) 236 240 class CC_Desc implements Serializable { 237 public String cc_name238 public String cpp_cc239 public String cfa_cc240 241 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) {242 this. cc_name = cc_name243 this. cpp_cc = cpp_cc244 this. cfa_cc = cfa_cc241 public String name 242 public String CXX 243 public String CC 244 245 CC_Desc(String name, String CXX, String CC) { 246 this.name = name 247 this.CXX = CXX 248 this.CC = CC 245 249 } 246 250 } … … 250 254 public String name 251 255 public String flags 252 253 Arch_Desc(String name, String flags) { 256 public String node 257 258 Arch_Desc(String name, String flags, String node) { 254 259 this.name = name 255 260 this.flags = flags 261 this.node = node 256 262 } 257 263 } … … 292 298 switch( param.Architecture ) { 293 299 case 'x64': 294 this.Architecture = new Arch_Desc('x64', '--host=x86_64' )300 this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'master') 295 301 break 296 302 case 'x86': 297 this.Architecture = new Arch_Desc('x86', '--host=i386' )303 this.Architecture = new Arch_Desc('x86', '--host=i386', 'master') 298 304 break 299 305 default : … … 309 315 310 316 def full = param.RunAllTests ? " (Full)" : "" 311 this.DescShort = "${ this.Compiler. cc_name }:${ this.Architecture.name }${full}"312 313 this.DescLong = """Compiler : ${ this.Compiler. cc_name } (${ this.Compiler.cpp_cc }/${ this.Compiler.cfa_cc})317 this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}" 318 319 this.DescLong = """Compiler : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC }) 314 320 Architecture : ${ this.Architecture.name } 315 321 Arc Flags : ${ this.Architecture.flags } -
Makefile.am
r9b086ca rcde3891 16 16 17 17 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 18 BACKEND_CC = @BACKEND_CC@ # C compiler used to compile Cforall programs, versus C++ compiler used to build cfa command 18 ACLOCAL_AMFLAGS = -I automake 19 19 20 20 MAINTAINERCLEANFILES = lib/* bin/* tests/.deps/* tests/.out/* -
Makefile.in
r9b086ca rcde3891 94 94 subdir = . 95 95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 96 am__aclocal_m4_deps = $(top_srcdir)/automake/cfa.m4 \ 97 $(top_srcdir)/configure.ac 96 am__aclocal_m4_deps = $(top_srcdir)/automake/libtool.m4 \ 97 $(top_srcdir)/automake/ltoptions.m4 \ 98 $(top_srcdir)/automake/ltsugar.m4 \ 99 $(top_srcdir)/automake/ltversion.m4 \ 100 $(top_srcdir)/automake/lt~obsolete.m4 \ 101 $(top_srcdir)/automake/cfa.m4 $(top_srcdir)/configure.ac 98 102 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 99 103 $(ACLOCAL_M4) … … 198 202 $(top_srcdir)/automake/config.sub \ 199 203 $(top_srcdir)/automake/install-sh \ 204 $(top_srcdir)/automake/ltmain.sh \ 200 205 $(top_srcdir)/automake/missing $(top_srcdir)/src/config.h.in \ 201 206 INSTALL README automake/compile automake/config.guess \ 202 207 automake/config.sub automake/depcomp automake/install-sh \ 203 automake/ missing automake/ylwrap208 automake/ltmain.sh automake/missing automake/ylwrap 204 209 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 205 210 distdir = $(PACKAGE)-$(VERSION) … … 248 253 AMTAR = @AMTAR@ 249 254 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 255 AR = @AR@ 250 256 AUTOCONF = @AUTOCONF@ 251 257 AUTOHEADER = @AUTOHEADER@ 252 258 AUTOMAKE = @AUTOMAKE@ 253 259 AWK = @AWK@ 254 BACKEND_CC = @BACKEND_CC@ # C compiler used to compile Cforall programs, versus C++ compiler used to build cfa command255 260 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 256 261 CC = @CC@ … … 272 277 CPPFLAGS = @CPPFLAGS@ 273 278 CXX = @CXX@ 279 CXXCPP = @CXXCPP@ 274 280 CXXDEPMODE = @CXXDEPMODE@ 275 281 CXXFLAGS = @CXXFLAGS@ … … 277 283 DEFS = @DEFS@ 278 284 DEPDIR = @DEPDIR@ 285 DLLTOOL = @DLLTOOL@ 279 286 DRIVER_DIR = @DRIVER_DIR@ 287 DSYMUTIL = @DSYMUTIL@ 288 DUMPBIN = @DUMPBIN@ 280 289 ECHO_C = @ECHO_C@ 281 290 ECHO_N = @ECHO_N@ … … 283 292 EGREP = @EGREP@ 284 293 EXEEXT = @EXEEXT@ 294 FGREP = @FGREP@ 285 295 GREP = @GREP@ 286 296 HOST_FLAGS = @HOST_FLAGS@ … … 290 300 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 291 301 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 302 LD = @LD@ 292 303 LDFLAGS = @LDFLAGS@ 293 304 LEX = @LEX@ … … 298 309 LIBOBJS = @LIBOBJS@ 299 310 LIBS = @LIBS@ 311 LIBTOOL = @LIBTOOL@ 312 LIPO = @LIPO@ 313 LN_S = @LN_S@ 300 314 LTLIBOBJS = @LTLIBOBJS@ 315 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 301 316 MAKEINFO = @MAKEINFO@ 317 MANIFEST_TOOL = @MANIFEST_TOOL@ 302 318 MKDIR_P = @MKDIR_P@ 319 NM = @NM@ 320 NMEDIT = @NMEDIT@ 321 OBJDUMP = @OBJDUMP@ 303 322 OBJEXT = @OBJEXT@ 323 OTOOL = @OTOOL@ 324 OTOOL64 = @OTOOL64@ 304 325 PACKAGE = @PACKAGE@ 305 326 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 311 332 PATH_SEPARATOR = @PATH_SEPARATOR@ 312 333 RANLIB = @RANLIB@ 334 SED = @SED@ 313 335 SET_MAKE = @SET_MAKE@ 314 336 SHELL = @SHELL@ … … 322 344 abs_top_builddir = @abs_top_builddir@ 323 345 abs_top_srcdir = @abs_top_srcdir@ 346 ac_ct_AR = @ac_ct_AR@ 324 347 ac_ct_CC = @ac_ct_CC@ 325 348 ac_ct_CXX = @ac_ct_CXX@ 349 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 326 350 am__include = @am__include@ 327 351 am__leading_dot = @am__leading_dot@ … … 371 395 top_srcdir = @top_srcdir@ 372 396 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 397 ACLOCAL_AMFLAGS = -I automake 373 398 MAINTAINERCLEANFILES = lib/* bin/* tests/.deps/* tests/.out/* 374 399 SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@ … … 428 453 distclean-hdr: 429 454 -rm -f config.h stamp-h1 455 456 mostlyclean-libtool: 457 -rm -f *.lo 458 459 clean-libtool: 460 -rm -rf .libs _libs 461 462 distclean-libtool: 463 -rm -f libtool config.lt 430 464 install-man1: $(man1_MANS) 431 465 @$(NORMAL_INSTALL) … … 803 837 clean: clean-recursive 804 838 805 clean-am: clean-generic mostlyclean-am839 clean-am: clean-generic clean-libtool mostlyclean-am 806 840 807 841 distclean: distclean-recursive 808 842 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 809 843 -rm -f Makefile 810 distclean-am: clean-am distclean-generic distclean-hdr distclean-tags 844 distclean-am: clean-am distclean-generic distclean-hdr \ 845 distclean-libtool distclean-tags 811 846 812 847 dvi: dvi-recursive … … 858 893 mostlyclean: mostlyclean-recursive 859 894 860 mostlyclean-am: mostlyclean-generic 895 mostlyclean-am: mostlyclean-generic mostlyclean-libtool 861 896 862 897 pdf: pdf-recursive … … 876 911 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ 877 912 am--refresh check check-am clean clean-cscope clean-generic \ 878 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ 879 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ 880 distcheck distclean distclean-generic distclean-hdr \ 881 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 882 dvi-am html html-am info info-am install install-am \ 883 install-data install-data-am install-dvi install-dvi-am \ 884 install-exec install-exec-am install-html install-html-am \ 885 install-info install-info-am install-man install-man1 \ 886 install-pdf install-pdf-am install-ps install-ps-am \ 887 install-strip installcheck installcheck-am installdirs \ 888 installdirs-am maintainer-clean maintainer-clean-generic \ 889 mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ 890 tags-am uninstall uninstall-am uninstall-man uninstall-man1 913 clean-libtool cscope cscopelist-am ctags ctags-am dist \ 914 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ 915 dist-xz dist-zip distcheck distclean distclean-generic \ 916 distclean-hdr distclean-libtool distclean-tags distcleancheck \ 917 distdir distuninstallcheck dvi dvi-am html html-am info \ 918 info-am install install-am install-data install-data-am \ 919 install-dvi install-dvi-am install-exec install-exec-am \ 920 install-html install-html-am install-info install-info-am \ 921 install-man install-man1 install-pdf install-pdf-am install-ps \ 922 install-ps-am install-strip installcheck installcheck-am \ 923 installdirs installdirs-am maintainer-clean \ 924 maintainer-clean-generic mostlyclean mostlyclean-generic \ 925 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ 926 uninstall-am uninstall-man uninstall-man1 891 927 892 928 .PRECIOUS: Makefile -
aclocal.m4
r9b086ca rcde3891 1171 1171 ]) # _AM_PROG_TAR 1172 1172 1173 m4_include([automake/libtool.m4]) 1174 m4_include([automake/ltoptions.m4]) 1175 m4_include([automake/ltsugar.m4]) 1176 m4_include([automake/ltversion.m4]) 1177 m4_include([automake/lt~obsolete.m4]) -
automake/cfa.m4
r9b086ca rcde3891 73 73 "arm" ) cannon_arch_name="arm";; 74 74 "ARM" ) cannon_arch_name="arm";; 75 "armv7l" ) cannon_arch_name="arm";; 75 76 *) 76 77 >&2 echo "Unkown architecture " $arch_name; -
benchmark/Makefile.am
r9b086ca rcde3891 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Mon Jan 25 22:31:42 201614 ## Update Count : 2 513 ## Last Modified On : Tue Nov 6 09:01:23 2018 14 ## Update Count : 26 15 15 ############################################################################### 16 16 17 17 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 18 ACLOCAL_AMFLAGS = -I automake 18 19 19 20 # applies to both programs 20 21 include $(top_srcdir)/src/cfa.make 21 22 22 UPPCOMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS) 23 23 24 24 25 AM_CFLAGS = -O2 -Wall -I$(srcdir) -lrt -pthread … … 26 27 AM_UPPFLAGS = -quiet -nodebug -multi 27 28 28 TOOLSDIR = ${abs_top_ srcdir}/tools/29 REPEAT = ${ TOOLSDIR}repeat30 STATS = ${ TOOLSDIR}stat.py29 TOOLSDIR = ${abs_top_builddir}/tools/ 30 REPEAT = ${abs_top_builddir}/tools/repeat 31 STATS = ${abs_top_srcdir}/tools/stat.py 31 32 repeats = 30 32 33 skipcompile = no … … 34 35 PRINT_FORMAT = %20s: #Comments needed for spacing 35 36 36 LIBFIBRE_DIR ?= /home/tdelisle/software/KOS/src/ 37 # Dummy hack tricks 38 EXTRA_PROGRAMS = dummy # build but do not install 39 dummy_SOURCES = dummyC.c dummyCXX.cpp 40 41 dummyC.c: 42 @echo "int main() { return 0; }" > ${@} 43 44 dummyCXX.cpp: 45 @echo "int main() { return 0; }" > ${@} 37 46 38 47 .NOTPARALLEL: 39 48 40 noinst_PROGRAMS = 41 49 ## ========================================================================================================= 42 50 all : ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT) 43 51 … … 49 57 @${STATS} .result.log 50 58 @echo "------------------------------------------------------" 51 @rm -f a.out .result.log 59 @rm -f a.out .result.log *.class 52 60 53 61 %.runquiet : … … 61 69 62 70 ${REPEAT} : 63 @+make -C ${ TOOLSDIR}repeat71 @+make -C ${abs_top_builddir}/tools repeat 64 72 65 73 ## ========================================================================================================= … … 102 110 ## ========================================================================================================= 103 111 loop$(EXEEXT): 104 $( COMPILE) -DBENCH_N=5000000000loop.c112 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/loop.c 105 113 106 114 function$(EXEEXT): 107 $( COMPILE) -DBENCH_N=5000000000function.c115 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/function.c 108 116 109 117 fetch_add$(EXEEXT): 110 $( COMPILE) -DBENCH_N=500000000fetch_add.c111 112 ## ========================================================================================================= 113 ctxswitch$(EXEEXT):\118 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000000 $(srcdir)/fetch_add.c 119 120 ## ========================================================================================================= 121 CTXSWITCH_DEPEND = \ 114 122 loop.run \ 115 123 function.run \ … … 121 129 ctxswitch-upp_coroutine.run \ 122 130 ctxswitch-upp_thread.run \ 123 -ctxswitch-kos_fibre.run \124 -ctxswitch-kos_fibre2.run \125 131 ctxswitch-goroutine.run \ 126 132 ctxswitch-java_thread.run 127 133 134 if WITH_LIBFIBRE 135 CTXSWITCH_DEPEND += \ 136 ctxswitch-kos_fibre.run \ 137 ctxswitch-kos_fibre2.run 138 139 140 ctxswitch-kos_fibre$(EXEEXT): 141 $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 142 143 ctxswitch-kos_fibre2$(EXEEXT): 144 $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 145 endif 146 147 ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) 148 128 149 ctxswitch-pthread$(EXEEXT): 129 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c150 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c 130 151 131 152 ctxswitch-cfa_coroutine$(EXEEXT): 132 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.c153 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.cfa 133 154 134 155 ctxswitch-cfa_thread$(EXEEXT): 135 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.c156 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.cfa 136 157 137 158 ctxswitch-cfa_thread2$(EXEEXT): 138 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.c159 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.cfa 139 160 140 161 ctxswitch-upp_coroutine$(EXEEXT): 141 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc162 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc 142 163 143 164 ctxswitch-upp_thread$(EXEEXT): 144 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 145 146 ctxswitch-kos_fibre$(EXEEXT): 147 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 148 149 ctxswitch-kos_fibre2$(EXEEXT): 150 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 165 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 151 166 152 167 ctxswitch-goroutine$(EXEEXT): 153 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go168 $(AM_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go 154 169 155 170 ctxswitch-java_thread$(EXEEXT): 156 @javac$(srcdir)/ctxswitch/JavaThread.java171 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 157 172 @echo "#!/bin/sh" > a.out 158 @echo " cd ctxswitch &&java JavaThread" >> a.out173 @echo "java JavaThread" >> a.out 159 174 @chmod a+x a.out 160 175 … … 172 187 173 188 mutex-pthread_lock$(EXEEXT): 174 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c189 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c 175 190 176 191 mutex-upp$(EXEEXT): 177 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc192 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc 178 193 179 194 mutex-cfa1$(EXEEXT): 180 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.c195 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.cfa 181 196 182 197 mutex-cfa2$(EXEEXT): 183 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.c198 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.cfa 184 199 185 200 mutex-cfa4$(EXEEXT): 186 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.c201 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.cfa 187 202 188 203 mutex-java_thread$(EXEEXT): 189 @javac$(srcdir)/mutex/JavaThread.java204 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 190 205 @echo "#!/bin/sh" > a.out 191 @echo " cd mutex &&java JavaThread" >> a.out206 @echo "java JavaThread" >> a.out 192 207 @chmod a+x a.out 193 208 … … 202 217 203 218 signal-pthread_cond$(EXEEXT): 204 @$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c219 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c 205 220 206 221 signal-upp$(EXEEXT): 207 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc222 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc 208 223 209 224 signal-cfa1$(EXEEXT): 210 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.c225 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.cfa 211 226 212 227 signal-cfa2$(EXEEXT): 213 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.c228 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.cfa 214 229 215 230 signal-cfa4$(EXEEXT): 216 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.c231 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.cfa 217 232 218 233 signal-java_thread$(EXEEXT): 219 @javac$(srcdir)/schedint/JavaThread.java234 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 220 235 @echo "#!/bin/sh" > a.out 221 @echo " cd schedint &&java JavaThread" >> a.out236 @echo "java JavaThread" >> a.out 222 237 @chmod a+x a.out 223 238 … … 231 246 232 247 waitfor-upp$(EXEEXT): 233 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc248 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc 234 249 235 250 waitfor-cfa1$(EXEEXT): 236 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.c251 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.cfa 237 252 238 253 waitfor-cfa2$(EXEEXT): 239 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.c254 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.cfa 240 255 241 256 waitfor-cfa4$(EXEEXT): 242 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.c257 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.cfa 243 258 244 259 ## ========================================================================================================= … … 254 269 255 270 creation-cfa_coroutine$(EXEEXT): 256 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c271 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.cfa 257 272 258 273 creation-cfa_coroutine_eager$(EXEEXT): 259 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c274 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.cfa -DEAGER 260 275 261 276 creation-cfa_thread$(EXEEXT): 262 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.c277 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.cfa 263 278 264 279 creation-upp_coroutine$(EXEEXT): 265 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc280 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc 266 281 267 282 creation-upp_thread$(EXEEXT): 268 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc283 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc 269 284 270 285 creation-pthread$(EXEEXT): 271 @$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c286 $(AM_V_CC)$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c 272 287 273 288 creation-goroutine$(EXEEXT): 274 @go build -o a.out $(srcdir)/creation/goroutine.go289 $(AM_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go 275 290 276 291 creation-java_thread$(EXEEXT): 277 @javac$(srcdir)/creation/JavaThread.java292 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 278 293 @echo "#!/bin/sh" > a.out 279 @echo " cd creation &&java JavaThread" >> a.out294 @echo "java JavaThread" >> a.out 280 295 @chmod a+x a.out 281 296 … … 296 311 297 312 compile-array$(EXEEXT): 298 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.c313 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa 299 314 300 315 compile-attributes$(EXEEXT): 301 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.c316 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa 302 317 303 318 compile-empty$(EXEEXT): 304 @$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.c319 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa 305 320 306 321 compile-expression$(EXEEXT): 307 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.c322 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa 308 323 309 324 compile-io$(EXEEXT): 310 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.c325 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa 311 326 312 327 compile-monitor$(EXEEXT): 313 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.c328 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa 314 329 315 330 compile-operators$(EXEEXT): 316 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.c331 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa 317 332 318 333 compile-thread$(EXEEXT): 319 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.c334 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa 320 335 321 336 compile-typeof$(EXEEXT): 322 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.c323 337 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa 338 -
benchmark/Makefile.in
r9b086ca rcde3891 17 17 ######################## -*- Mode: Makefile-Automake -*- ###################### 18 18 ############################################################################### 19 20 19 VPATH = @srcdir@ 21 20 am__is_gnu_make = { \ … … 92 91 build_triplet = @build@ 93 92 host_triplet = @host@ 94 noinst_PROGRAMS = 93 EXTRA_PROGRAMS = dummy$(EXEEXT) 94 @WITH_LIBFIBRE_TRUE@am__append_1 = \ 95 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre.run \ 96 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre2.run 97 95 98 subdir = benchmark 96 99 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 97 am__aclocal_m4_deps = $(top_srcdir)/automake/cfa.m4 \ 98 $(top_srcdir)/configure.ac 100 am__aclocal_m4_deps = $(top_srcdir)/automake/libtool.m4 \ 101 $(top_srcdir)/automake/ltoptions.m4 \ 102 $(top_srcdir)/automake/ltsugar.m4 \ 103 $(top_srcdir)/automake/ltversion.m4 \ 104 $(top_srcdir)/automake/lt~obsolete.m4 \ 105 $(top_srcdir)/automake/cfa.m4 $(top_srcdir)/configure.ac 99 106 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 100 107 $(ACLOCAL_M4) … … 104 111 CONFIG_CLEAN_FILES = 105 112 CONFIG_CLEAN_VPATH_FILES = 106 PROGRAMS = $(noinst_PROGRAMS) 113 am_dummy_OBJECTS = dummyC.$(OBJEXT) dummyCXX.$(OBJEXT) 114 dummy_OBJECTS = $(am_dummy_OBJECTS) 115 dummy_LDADD = $(LDADD) 116 AM_V_lt = $(am__v_lt_@AM_V@) 117 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) 118 am__v_lt_0 = --silent 119 am__v_lt_1 = 107 120 AM_V_P = $(am__v_P_@AM_V@) 108 121 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) … … 117 130 am__v_at_0 = @ 118 131 am__v_at_1 = 119 SOURCES = 120 DIST_SOURCES = 132 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) 133 depcomp = $(SHELL) $(top_srcdir)/automake/depcomp 134 am__depfiles_maybe = depfiles 135 am__mv = mv -f 136 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 137 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 138 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 139 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ 140 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 141 $(AM_CFLAGS) $(CFLAGS) 142 AM_V_CC = $(am__v_CC_@AM_V@) 143 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) 144 am__v_CC_0 = @echo " CC " $@; 145 am__v_CC_1 = 146 CCLD = $(CC) 147 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 148 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 149 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 150 AM_V_CCLD = $(am__v_CCLD_@AM_V@) 151 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) 152 am__v_CCLD_0 = @echo " CCLD " $@; 153 am__v_CCLD_1 = 154 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 155 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) 156 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ 157 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ 158 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 159 $(AM_CXXFLAGS) $(CXXFLAGS) 160 AM_V_CXX = $(am__v_CXX_@AM_V@) 161 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) 162 am__v_CXX_0 = @echo " CXX " $@; 163 am__v_CXX_1 = 164 CXXLD = $(CXX) 165 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ 166 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ 167 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 168 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) 169 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) 170 am__v_CXXLD_0 = @echo " CXXLD " $@; 171 am__v_CXXLD_1 = 172 SOURCES = $(dummy_SOURCES) 173 DIST_SOURCES = $(dummy_SOURCES) 121 174 am__can_run_installinfo = \ 122 175 case $$AM_UPDATE_INFO_DIR in \ … … 125 178 esac 126 179 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 127 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/src/cfa.make \ 128 compile 180 # Read a list of newline-separated strings from the standard input, 181 # and print each of them once, without duplicates. Input order is 182 # *not* preserved. 183 am__uniquify_input = $(AWK) '\ 184 BEGIN { nonempty = 0; } \ 185 { items[$$0] = 1; nonempty = 1; } \ 186 END { if (nonempty) { for (i in items) print i; }; } \ 187 ' 188 # Make sure the list of sources is unique. This is necessary because, 189 # e.g., the same source file might be shared among _SOURCES variables 190 # for different programs/libraries. 191 am__define_uniq_tagged_files = \ 192 list='$(am__tagged_files)'; \ 193 unique=`for i in $$list; do \ 194 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 195 done | $(am__uniquify_input)` 196 ETAGS = etags 197 CTAGS = ctags 198 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/automake/depcomp \ 199 $(top_srcdir)/src/cfa.make compile 129 200 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 130 201 ACLOCAL = @ACLOCAL@ … … 132 203 AMTAR = @AMTAR@ 133 204 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 205 AR = @AR@ 134 206 AUTOCONF = @AUTOCONF@ 135 207 AUTOHEADER = @AUTOHEADER@ 136 208 AUTOMAKE = @AUTOMAKE@ 137 209 AWK = @AWK@ 138 BACKEND_CC = @BACKEND_CC@139 210 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 140 211 CC = @CC@ … … 156 227 CPPFLAGS = @CPPFLAGS@ 157 228 CXX = @CXX@ 229 CXXCPP = @CXXCPP@ 158 230 CXXDEPMODE = @CXXDEPMODE@ 159 231 CXXFLAGS = @CXXFLAGS@ … … 161 233 DEFS = @DEFS@ 162 234 DEPDIR = @DEPDIR@ 235 DLLTOOL = @DLLTOOL@ 163 236 DRIVER_DIR = @DRIVER_DIR@ 237 DSYMUTIL = @DSYMUTIL@ 238 DUMPBIN = @DUMPBIN@ 164 239 ECHO_C = @ECHO_C@ 165 240 ECHO_N = @ECHO_N@ … … 167 242 EGREP = @EGREP@ 168 243 EXEEXT = @EXEEXT@ 244 FGREP = @FGREP@ 169 245 GREP = @GREP@ 170 246 HOST_FLAGS = @HOST_FLAGS@ … … 174 250 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 175 251 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 252 LD = @LD@ 176 253 LDFLAGS = @LDFLAGS@ 177 254 LEX = @LEX@ … … 182 259 LIBOBJS = @LIBOBJS@ 183 260 LIBS = @LIBS@ 261 LIBTOOL = @LIBTOOL@ 262 LIPO = @LIPO@ 263 LN_S = @LN_S@ 184 264 LTLIBOBJS = @LTLIBOBJS@ 265 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 185 266 MAKEINFO = @MAKEINFO@ 267 MANIFEST_TOOL = @MANIFEST_TOOL@ 186 268 MKDIR_P = @MKDIR_P@ 269 NM = @NM@ 270 NMEDIT = @NMEDIT@ 271 OBJDUMP = @OBJDUMP@ 187 272 OBJEXT = @OBJEXT@ 273 OTOOL = @OTOOL@ 274 OTOOL64 = @OTOOL64@ 188 275 PACKAGE = @PACKAGE@ 189 276 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 195 282 PATH_SEPARATOR = @PATH_SEPARATOR@ 196 283 RANLIB = @RANLIB@ 284 SED = @SED@ 197 285 SET_MAKE = @SET_MAKE@ 198 286 SHELL = @SHELL@ … … 206 294 abs_top_builddir = @abs_top_builddir@ 207 295 abs_top_srcdir = @abs_top_srcdir@ 296 ac_ct_AR = @ac_ct_AR@ 208 297 ac_ct_CC = @ac_ct_CC@ 209 298 ac_ct_CXX = @ac_ct_CXX@ 299 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 210 300 am__include = @am__include@ 211 301 am__leading_dot = @am__leading_dot@ … … 255 345 top_srcdir = @top_srcdir@ 256 346 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 347 ACLOCAL_AMFLAGS = -I automake 257 348 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS) 349 LTCFACOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 350 $(LIBTOOLFLAGS) --mode=compile $(CFACC) $(DEFS) \ 351 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) \ 352 $(AM_CFLAGS) $(CFLAGS) 353 258 354 AM_V_CFA = $(am__v_CFA_@AM_V@) 259 355 am__v_CFA_ = $(am__v_CFA_@AM_DEFAULT_V@) 260 356 am__v_CFA_0 = @echo " CFA " $@; 261 357 am__v_CFA_1 = 358 AM_V_JAVAC = $(am__v_JAVAC_@AM_V@) 359 am__v_JAVAC_ = $(am__v_JAVAC_@AM_DEFAULT_V@) 360 am__v_JAVAC_0 = @echo " JAVAC " $@; 361 am__v_JAVAC_1 = 362 AM_V_GOC = $(am__v_GOC_@AM_V@) 363 am__v_GOC_ = $(am__v_GOC_@AM_DEFAULT_V@) 364 am__v_GOC_0 = @echo " GOC " $@; 365 am__v_GOC_1 = 366 UPPCC = u++ 367 UPPCOMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS) 368 AM_V_UPP = $(am__v_UPP_@AM_V@) 369 am__v_UPP_ = $(am__v_UPP_@AM_DEFAULT_V@) 370 am__v_UPP_0 = @echo " UPP " $@; 371 am__v_UPP_1 = 262 372 263 373 # applies to both programs 264 UPPCOMPILE = $(UPPCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_UPPFLAGS) $(UPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_CFLAGS) $(CFLAGS)265 374 AM_CFLAGS = -O2 -Wall -I$(srcdir) -lrt -pthread 266 375 AM_CFAFLAGS = -quiet -in-tree -nodebug 267 376 AM_UPPFLAGS = -quiet -nodebug -multi 268 TOOLSDIR = ${abs_top_ srcdir}/tools/269 REPEAT = ${ TOOLSDIR}repeat270 STATS = ${ TOOLSDIR}stat.py377 TOOLSDIR = ${abs_top_builddir}/tools/ 378 REPEAT = ${abs_top_builddir}/tools/repeat 379 STATS = ${abs_top_srcdir}/tools/stat.py 271 380 repeats = 30 272 381 skipcompile = no 273 382 TIME_FORMAT = "%E" 274 383 PRINT_FORMAT = %20s: #Comments needed for spacing 384 dummy_SOURCES = dummyC.c dummyCXX.cpp 385 CTXSWITCH_DEPEND = loop.run function.run fetch_add.run \ 386 ctxswitch-pthread.run ctxswitch-cfa_coroutine.run \ 387 ctxswitch-cfa_thread.run ctxswitch-cfa_thread2.run \ 388 ctxswitch-upp_coroutine.run ctxswitch-upp_thread.run \ 389 ctxswitch-goroutine.run ctxswitch-java_thread.run \ 390 $(am__append_1) 275 391 testdir = $(top_srcdir)/tests 276 392 all: all-am 277 393 278 394 .SUFFIXES: 279 .SUFFIXES: .c fa .o395 .SUFFIXES: .c .cfa .cpp .lo .o .obj 280 396 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/src/cfa.make $(am__configure_deps) 281 397 @for dep in $?; do \ … … 309 425 $(am__aclocal_m4_deps): 310 426 311 clean-noinstPROGRAMS: 312 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) 313 tags TAGS: 314 315 ctags CTAGS: 316 317 cscope cscopelist: 318 427 dummy$(EXEEXT): $(dummy_OBJECTS) $(dummy_DEPENDENCIES) $(EXTRA_dummy_DEPENDENCIES) 428 @rm -f dummy$(EXEEXT) 429 $(AM_V_CXXLD)$(CXXLINK) $(dummy_OBJECTS) $(dummy_LDADD) $(LIBS) 430 431 mostlyclean-compile: 432 -rm -f *.$(OBJEXT) 433 434 distclean-compile: 435 -rm -f *.tab.c 436 437 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummyC.Po@am__quote@ 438 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummyCXX.Po@am__quote@ 439 440 .c.o: 441 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 442 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 443 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 444 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 445 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 446 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< 447 448 .c.obj: 449 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ 450 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ 451 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 452 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 453 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 454 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 455 456 .c.lo: 457 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 458 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 459 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo 460 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 461 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 462 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< 463 464 .cpp.o: 465 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 466 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 467 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 468 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 469 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 470 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< 471 472 .cpp.obj: 473 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ 474 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ 475 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 476 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 477 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 478 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 479 480 .cpp.lo: 481 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 482 @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 483 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo 484 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 485 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 486 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< 487 488 mostlyclean-libtool: 489 -rm -f *.lo 490 491 clean-libtool: 492 -rm -rf .libs _libs 493 494 ID: $(am__tagged_files) 495 $(am__define_uniq_tagged_files); mkid -fID $$unique 496 tags: tags-am 497 TAGS: tags 498 499 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 500 set x; \ 501 here=`pwd`; \ 502 $(am__define_uniq_tagged_files); \ 503 shift; \ 504 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ 505 test -n "$$unique" || unique=$$empty_fix; \ 506 if test $$# -gt 0; then \ 507 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 508 "$$@" $$unique; \ 509 else \ 510 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 511 $$unique; \ 512 fi; \ 513 fi 514 ctags: ctags-am 515 516 CTAGS: ctags 517 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 518 $(am__define_uniq_tagged_files); \ 519 test -z "$(CTAGS_ARGS)$$unique" \ 520 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 521 $$unique 522 523 GTAGS: 524 here=`$(am__cd) $(top_builddir) && pwd` \ 525 && $(am__cd) $(top_srcdir) \ 526 && gtags -i $(GTAGS_ARGS) "$$here" 527 cscopelist: cscopelist-am 528 529 cscopelist-am: $(am__tagged_files) 530 list='$(am__tagged_files)'; \ 531 case "$(srcdir)" in \ 532 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ 533 *) sdir=$(subdir)/$(srcdir) ;; \ 534 esac; \ 535 for i in $$list; do \ 536 if test -f "$$i"; then \ 537 echo "$(subdir)/$$i"; \ 538 else \ 539 echo "$$sdir/$$i"; \ 540 fi; \ 541 done >> $(top_builddir)/cscope.files 542 543 distclean-tags: 544 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 319 545 320 546 distdir: $(DISTFILES) … … 350 576 check-am: all-am 351 577 check: check-am 352 all-am: Makefile $(PROGRAMS)578 all-am: Makefile 353 579 installdirs: 354 580 install: install-am … … 384 610 clean: clean-am 385 611 386 clean-am: clean-generic clean- noinstPROGRAMSmostlyclean-am612 clean-am: clean-generic clean-libtool mostlyclean-am 387 613 388 614 distclean: distclean-am 615 -rm -rf ./$(DEPDIR) 389 616 -rm -f Makefile 390 distclean-am: clean-am distclean-generic 617 distclean-am: clean-am distclean-compile distclean-generic \ 618 distclean-tags 391 619 392 620 dvi: dvi-am … … 431 659 432 660 maintainer-clean: maintainer-clean-am 661 -rm -rf ./$(DEPDIR) 433 662 -rm -f Makefile 434 663 maintainer-clean-am: distclean-am maintainer-clean-generic … … 436 665 mostlyclean: mostlyclean-am 437 666 438 mostlyclean-am: mostlyclean-generic 667 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 668 mostlyclean-libtool 439 669 440 670 pdf: pdf-am … … 450 680 .MAKE: install-am install-strip 451 681 452 .PHONY: all all-am check check-am clean clean-generic \ 453 clean-noinstPROGRAMS cscopelist-am ctags-am distclean \ 454 distclean-generic distdir dvi dvi-am html html-am info info-am \ 682 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ 683 clean-libtool cscopelist-am ctags ctags-am distclean \ 684 distclean-compile distclean-generic distclean-libtool \ 685 distclean-tags distdir dvi dvi-am html html-am info info-am \ 455 686 install install-am install-data install-data-am install-dvi \ 456 687 install-dvi-am install-exec install-exec-am install-html \ … … 459 690 install-strip installcheck installcheck-am installdirs \ 460 691 maintainer-clean maintainer-clean-generic mostlyclean \ 461 mostlyclean- generic pdf pdf-am ps ps-am tags-am uninstall \462 uninstall-am692 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 693 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am 463 694 464 695 .PRECIOUS: Makefile 465 696 466 697 467 .cfa.o: $(CFACC) $(CFACPP)698 .cfa.o: 468 699 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 469 700 $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 470 701 $(am__mv) $$depbase.Tpo $$depbase.Po 471 702 472 LIBFIBRE_DIR ?= /home/tdelisle/software/KOS/src/ 703 .cfa.lo: 704 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 705 $(LTCFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 706 $(am__mv) $$depbase.Tpo $$depbase.Plo 707 708 dummyC.c: 709 @echo "int main() { return 0; }" > ${@} 710 711 dummyCXX.cpp: 712 @echo "int main() { return 0; }" > ${@} 473 713 474 714 .NOTPARALLEL: … … 483 723 @${STATS} .result.log 484 724 @echo "------------------------------------------------------" 485 @rm -f a.out .result.log 725 @rm -f a.out .result.log *.class 486 726 487 727 %.runquiet : … … 495 735 496 736 ${REPEAT} : 497 @+make -C ${ TOOLSDIR}repeat737 @+make -C ${abs_top_builddir}/tools repeat 498 738 499 739 jenkins$(EXEEXT): … … 533 773 534 774 loop$(EXEEXT): 535 $( COMPILE) -DBENCH_N=5000000000loop.c775 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/loop.c 536 776 537 777 function$(EXEEXT): 538 $( COMPILE) -DBENCH_N=5000000000function.c778 $(AM_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/function.c 539 779 540 780 fetch_add$(EXEEXT): 541 $(COMPILE) -DBENCH_N=500000000 fetch_add.c 542 543 ctxswitch$(EXEEXT): \ 544 loop.run \ 545 function.run \ 546 fetch_add.run \ 547 ctxswitch-pthread.run \ 548 ctxswitch-cfa_coroutine.run \ 549 ctxswitch-cfa_thread.run \ 550 ctxswitch-cfa_thread2.run \ 551 ctxswitch-upp_coroutine.run \ 552 ctxswitch-upp_thread.run \ 553 -ctxswitch-kos_fibre.run \ 554 -ctxswitch-kos_fibre2.run \ 555 ctxswitch-goroutine.run \ 556 ctxswitch-java_thread.run 781 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000000 $(srcdir)/fetch_add.c 782 783 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre$(EXEEXT): 784 @WITH_LIBFIBRE_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 785 786 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre2$(EXEEXT): 787 @WITH_LIBFIBRE_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 788 789 ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) 557 790 558 791 ctxswitch-pthread$(EXEEXT): 559 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c792 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c 560 793 561 794 ctxswitch-cfa_coroutine$(EXEEXT): 562 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.c795 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.cfa 563 796 564 797 ctxswitch-cfa_thread$(EXEEXT): 565 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.c798 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.cfa 566 799 567 800 ctxswitch-cfa_thread2$(EXEEXT): 568 @$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.c801 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.cfa 569 802 570 803 ctxswitch-upp_coroutine$(EXEEXT): 571 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc804 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc 572 805 573 806 ctxswitch-upp_thread$(EXEEXT): 574 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 575 576 ctxswitch-kos_fibre$(EXEEXT): 577 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 578 579 ctxswitch-kos_fibre2$(EXEEXT): 580 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 807 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 581 808 582 809 ctxswitch-goroutine$(EXEEXT): 583 @go build -o a.out $(srcdir)/ctxswitch/goroutine.go810 $(AM_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go 584 811 585 812 ctxswitch-java_thread$(EXEEXT): 586 @javac$(srcdir)/ctxswitch/JavaThread.java813 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 587 814 @echo "#!/bin/sh" > a.out 588 @echo " cd ctxswitch &&java JavaThread" >> a.out815 @echo "java JavaThread" >> a.out 589 816 @chmod a+x a.out 590 817 … … 601 828 602 829 mutex-pthread_lock$(EXEEXT): 603 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c830 $(AM_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c 604 831 605 832 mutex-upp$(EXEEXT): 606 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc833 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/upp.cc 607 834 608 835 mutex-cfa1$(EXEEXT): 609 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.c836 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa1.cfa 610 837 611 838 mutex-cfa2$(EXEEXT): 612 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.c839 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa2.cfa 613 840 614 841 mutex-cfa4$(EXEEXT): 615 @$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.c842 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.cfa 616 843 617 844 mutex-java_thread$(EXEEXT): 618 @javac$(srcdir)/mutex/JavaThread.java845 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 619 846 @echo "#!/bin/sh" > a.out 620 @echo " cd mutex &&java JavaThread" >> a.out847 @echo "java JavaThread" >> a.out 621 848 @chmod a+x a.out 622 849 … … 630 857 631 858 signal-pthread_cond$(EXEEXT): 632 @$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c859 $(AM_V_CC)$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c 633 860 634 861 signal-upp$(EXEEXT): 635 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc862 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc 636 863 637 864 signal-cfa1$(EXEEXT): 638 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.c865 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa1.cfa 639 866 640 867 signal-cfa2$(EXEEXT): 641 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.c868 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa2.cfa 642 869 643 870 signal-cfa4$(EXEEXT): 644 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.c871 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.cfa 645 872 646 873 signal-java_thread$(EXEEXT): 647 @javac$(srcdir)/schedint/JavaThread.java874 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 648 875 @echo "#!/bin/sh" > a.out 649 @echo " cd schedint &&java JavaThread" >> a.out876 @echo "java JavaThread" >> a.out 650 877 @chmod a+x a.out 651 878 … … 657 884 658 885 waitfor-upp$(EXEEXT): 659 @$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc886 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedext/upp.cc 660 887 661 888 waitfor-cfa1$(EXEEXT): 662 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.c889 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa1.cfa 663 890 664 891 waitfor-cfa2$(EXEEXT): 665 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.c892 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa2.cfa 666 893 667 894 waitfor-cfa4$(EXEEXT): 668 @$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.c895 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.cfa 669 896 670 897 creation$(EXEEXT) :\ … … 679 906 680 907 creation-cfa_coroutine$(EXEEXT): 681 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c908 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.cfa 682 909 683 910 creation-cfa_coroutine_eager$(EXEEXT): 684 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.c911 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_cor.cfa -DEAGER 685 912 686 913 creation-cfa_thread$(EXEEXT): 687 @$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.c914 $(AM_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000 $(srcdir)/creation/cfa_thrd.cfa 688 915 689 916 creation-upp_coroutine$(EXEEXT): 690 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc917 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_cor.cc 691 918 692 919 creation-upp_thread$(EXEEXT): 693 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc920 $(AM_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/creation/upp_thrd.cc 694 921 695 922 creation-pthread$(EXEEXT): 696 @$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c923 $(AM_V_CC)$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c 697 924 698 925 creation-goroutine$(EXEEXT): 699 @go build -o a.out $(srcdir)/creation/goroutine.go926 $(AM_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go 700 927 701 928 creation-java_thread$(EXEEXT): 702 @javac$(srcdir)/creation/JavaThread.java929 $(AM_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 703 930 @echo "#!/bin/sh" > a.out 704 @echo " cd creation &&java JavaThread" >> a.out931 @echo "java JavaThread" >> a.out 705 932 @chmod a+x a.out 706 933 … … 716 943 717 944 compile-array$(EXEEXT): 718 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.c945 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa 719 946 720 947 compile-attributes$(EXEEXT): 721 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.c948 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa 722 949 723 950 compile-empty$(EXEEXT): 724 @$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.c951 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa 725 952 726 953 compile-expression$(EXEEXT): 727 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.c954 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa 728 955 729 956 compile-io$(EXEEXT): 730 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.c957 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa 731 958 732 959 compile-monitor$(EXEEXT): 733 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.c960 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa 734 961 735 962 compile-operators$(EXEEXT): 736 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.c963 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa 737 964 738 965 compile-thread$(EXEEXT): 739 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.c966 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa 740 967 741 968 compile-typeof$(EXEEXT): 742 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.c969 $(AM_V_CFA)$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa 743 970 744 971 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
benchmark/Monitor.c
r9b086ca rcde3891 29 29 EndTime = Time(); 30 30 31 sout | ( EndTime - StartTime ) / N | endl;31 sout | ( EndTime - StartTime ) / N; 32 32 } -
configure
r9b086ca rcde3891 199 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 201 209 test \$(( 1 + 1 )) = 2 || exit 1" 202 210 if (eval "$as_required") 2>/dev/null; then : … … 557 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 559 569 560 570 test -n "$DJDIR" || exec 7<&0 </dev/null … … 626 636 LTLIBOBJS 627 637 LIBOBJS 638 CFA_BACKEND_CC 628 639 ALLOCA 640 WITH_LIBFIBRE_FALSE 641 WITH_LIBFIBRE_TRUE 642 CXXCPP 643 CPP 644 LT_SYS_LIBRARY_PATH 645 OTOOL64 646 OTOOL 647 LIPO 648 NMEDIT 649 DSYMUTIL 650 MANIFEST_TOOL 651 RANLIB 652 ac_ct_AR 653 AR 654 DLLTOOL 655 OBJDUMP 656 LN_S 657 NM 658 ac_ct_DUMPBIN 659 DUMPBIN 660 LD 661 FGREP 629 662 EGREP 630 663 GREP 631 CPP 632 RANLIB 664 SED 665 LIBTOOL 633 666 LEXLIB 634 667 LEX_OUTPUT_ROOT … … 685 718 CFA_INCDIR 686 719 CFA_PREFIX 687 CFA_BACKEND_CC688 BACKEND_CC689 720 DOendif 690 721 DOifskipcompile … … 761 792 enable_silent_rules 762 793 with_cfa_name 763 with_backend_compiler764 794 with_target_hosts 765 795 enable_dependency_tracking 796 enable_shared 797 enable_static 798 with_pic 799 enable_fast_install 800 with_aix_soname 801 with_gnu_ld 802 with_sysroot 803 enable_libtool_lock 766 804 ' 767 805 ac_precious_vars='build_alias … … 780 818 YACC 781 819 YFLAGS 782 CPP' 820 LT_SYS_LIBRARY_PATH 821 CPP 822 CXXCPP' 783 823 784 824 … … 1416 1456 --disable-dependency-tracking 1417 1457 speeds up one-time build 1458 --enable-shared[=PKGS] build shared libraries [default=yes] 1459 --enable-static[=PKGS] build static libraries [default=yes] 1460 --enable-fast-install[=PKGS] 1461 optimize for fast installation [default=yes] 1462 --disable-libtool-lock avoid locking (might break parallel builds) 1418 1463 1419 1464 Optional Packages: … … 1421 1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1422 1467 --with-cfa-name=NAME NAME too which cfa will be installed 1423 --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible)1424 1468 --with-target-hosts=HOSTS HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib 1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1470 both] 1471 --with-aix-soname=aix|svr4|both 1472 shared library versioning (aka "SONAME") variant to 1473 provide on AIX, [default=aix]. 1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1476 compiler's sysroot if not specified). 1425 1477 1426 1478 Some influential environment variables: … … 1442 1494 This script will default YFLAGS to the empty string to avoid a 1443 1495 default value of `-d' given by some make applications. 1496 LT_SYS_LIBRARY_PATH 1497 User-defined run-time library search path. 1444 1498 CPP C preprocessor 1499 CXXCPP C++ preprocessor 1445 1500 1446 1501 Use these variables to override the choices made by `configure' or to help … … 1646 1701 } # ac_fn_c_try_link 1647 1702 1648 # ac_fn_c_check_ type LINENO TYPEVAR INCLUDES1649 # ------------------------------------------- 1650 # Tests whether TYPE exists after having included INCLUDES, setting cache1651 # variable VAR accordingly.1652 ac_fn_c_check_ type ()1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1704 # ------------------------------------------------------- 1705 # Tests whether HEADER exists and can be compiled using the include files in 1706 # INCLUDES, setting the cache variable VAR accordingly. 1707 ac_fn_c_check_header_compile () 1653 1708 { 1654 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack … … 1658 1713 $as_echo_n "(cached) " >&6 1659 1714 else 1660 eval "$3=no"1661 1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1662 1716 /* end confdefs.h. */ 1663 1717 $4 1664 int 1665 main () 1666 { 1667 if (sizeof ($2)) 1668 return 0; 1669 ; 1670 return 0; 1671 } 1718 #include <$2> 1672 1719 _ACEOF 1673 1720 if ac_fn_c_try_compile "$LINENO"; then : 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1675 /* end confdefs.h. */1676 $41677 int1678 main ()1679 {1680 if (sizeof (($2)))1681 return 0;1682 ;1683 return 0;1684 }1685 _ACEOF1686 if ac_fn_c_try_compile "$LINENO"; then :1687 1688 else1689 1721 eval "$3=yes" 1690 fi 1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1722 else 1723 eval "$3=no" 1692 1724 fi 1693 1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext … … 1698 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 1731 1700 } # ac_fn_c_check_ type1732 } # ac_fn_c_check_header_compile 1701 1733 1702 1734 # ac_fn_c_try_cpp LINENO … … 1779 1811 } # ac_fn_c_try_run 1780 1812 1781 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES1782 # -------------------------------------------------------1783 # Tests whether HEADER exists and can be compiled using the include files in1784 # INCLUDES, setting the cache variable VAR accordingly.1785 ac_fn_c_check_header_compile ()1786 {1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51789 $as_echo_n "checking for $2... " >&6; }1790 if eval \${$3+:} false; then :1791 $as_echo_n "(cached) " >&61792 else1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1794 /* end confdefs.h. */1795 $41796 #include <$2>1797 _ACEOF1798 if ac_fn_c_try_compile "$LINENO"; then :1799 eval "$3=yes"1800 else1801 eval "$3=no"1802 fi1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1804 fi1805 eval ac_res=\$$31806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51807 $as_echo "$ac_res" >&6; }1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1809 1810 } # ac_fn_c_check_header_compile1811 1812 1813 # ac_fn_c_check_func LINENO FUNC VAR 1813 1814 # ---------------------------------- … … 1876 1877 1877 1878 } # ac_fn_c_check_func 1879 1880 # ac_fn_cxx_try_cpp LINENO 1881 # ------------------------ 1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1883 ac_fn_cxx_try_cpp () 1884 { 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if { { ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 2>conftest.err 1894 ac_status=$? 1895 if test -s conftest.err; then 1896 grep -v '^ *+' conftest.err >conftest.er1 1897 cat conftest.er1 >&5 1898 mv -f conftest.er1 conftest.err 1899 fi 1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; } > conftest.i && { 1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1903 test ! -s conftest.err 1904 }; then : 1905 ac_retval=0 1906 else 1907 $as_echo "$as_me: failed program was:" >&5 1908 sed 's/^/| /' conftest.$ac_ext >&5 1909 1910 ac_retval=1 1911 fi 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 as_fn_set_status $ac_retval 1914 1915 } # ac_fn_cxx_try_cpp 1916 1917 # ac_fn_cxx_try_link LINENO 1918 # ------------------------- 1919 # Try to link conftest.$ac_ext, and return whether this succeeded. 1920 ac_fn_cxx_try_link () 1921 { 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 rm -f conftest.$ac_objext conftest$ac_exeext 1924 if { { ac_try="$ac_link" 1925 case "(($ac_try" in 1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1927 *) ac_try_echo=$ac_try;; 1928 esac 1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1930 $as_echo "$ac_try_echo"; } >&5 1931 (eval "$ac_link") 2>conftest.err 1932 ac_status=$? 1933 if test -s conftest.err; then 1934 grep -v '^ *+' conftest.err >conftest.er1 1935 cat conftest.er1 >&5 1936 mv -f conftest.er1 conftest.err 1937 fi 1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1939 test $ac_status = 0; } && { 1940 test -z "$ac_cxx_werror_flag" || 1941 test ! -s conftest.err 1942 } && test -s conftest$ac_exeext && { 1943 test "$cross_compiling" = yes || 1944 test -x conftest$ac_exeext 1945 }; then : 1946 ac_retval=0 1947 else 1948 $as_echo "$as_me: failed program was:" >&5 1949 sed 's/^/| /' conftest.$ac_ext >&5 1950 1951 ac_retval=1 1952 fi 1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1955 # interfere with the next link command; also delete a directory that is 1956 # left behind by Apple's compiler. We do this before executing the actions. 1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1959 as_fn_set_status $ac_retval 1960 1961 } # ac_fn_cxx_try_link 1962 1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1964 # ------------------------------------------- 1965 # Tests whether TYPE exists after having included INCLUDES, setting cache 1966 # variable VAR accordingly. 1967 ac_fn_c_check_type () 1968 { 1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1971 $as_echo_n "checking for $2... " >&6; } 1972 if eval \${$3+:} false; then : 1973 $as_echo_n "(cached) " >&6 1974 else 1975 eval "$3=no" 1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977 /* end confdefs.h. */ 1978 $4 1979 int 1980 main () 1981 { 1982 if (sizeof ($2)) 1983 return 0; 1984 ; 1985 return 0; 1986 } 1987 _ACEOF 1988 if ac_fn_c_try_compile "$LINENO"; then : 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990 /* end confdefs.h. */ 1991 $4 1992 int 1993 main () 1994 { 1995 if (sizeof (($2))) 1996 return 0; 1997 ; 1998 return 0; 1999 } 2000 _ACEOF 2001 if ac_fn_c_try_compile "$LINENO"; then : 2002 2003 else 2004 eval "$3=yes" 2005 fi 2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2007 fi 2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2009 fi 2010 eval ac_res=\$$3 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2012 $as_echo "$ac_res" >&6; } 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 2015 } # ac_fn_c_check_type 1878 2016 1879 2017 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES … … 2478 2616 2479 2617 2618 2480 2619 #AC_CONFIG_SRCDIR([src/main.cc]) 2481 2620 ac_config_headers="$ac_config_headers config.h:src/config.h.in" … … 3164 3303 3165 3304 #============================================================================== 3166 # backend compiler implementation3167 3168 # Check whether --with-backend-compiler was given.3169 if test "${with_backend_compiler+set}" = set; then :3170 withval=$with_backend_compiler; backendcompiler=$withval3171 else3172 backendcompiler=""3173 fi3174 3175 if test "x$backendcompiler" != "x"; then3176 BACKEND_CC=${backendcompiler}3177 else3178 # Extract the first word of "gcc", so it can be a program name with args.3179 set dummy gcc; ac_word=$23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53181 $as_echo_n "checking for $ac_word... " >&6; }3182 if ${ac_cv_path_BACKEND_CC+:} false; then :3183 $as_echo_n "(cached) " >&63184 else3185 case $BACKEND_CC in3186 [\\/]* | ?:[\\/]*)3187 ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path.3188 ;;3189 *)3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3191 for as_dir in $PATH3192 do3193 IFS=$as_save_IFS3194 test -z "$as_dir" && as_dir=.3195 for ac_exec_ext in '' $ac_executable_extensions; do3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then3197 ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext"3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53199 break 23200 fi3201 done3202 done3203 IFS=$as_save_IFS3204 3205 ;;3206 esac3207 fi3208 BACKEND_CC=$ac_cv_path_BACKEND_CC3209 if test -n "$BACKEND_CC"; then3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&53211 $as_echo "$BACKEND_CC" >&6; }3212 else3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&53214 $as_echo "no" >&6; }3215 fi3216 3217 # check gcc installed3218 if test "x$BACKEND_CC" = "x"; then3219 as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 53220 exit 13221 fi3222 fi3223 3224 cat >>confdefs.h <<_ACEOF3225 #define CFA_BACKEND_CC "${BACKEND_CC}"3226 _ACEOF3227 3228 3229 3230 #==============================================================================3231 3305 # Installation paths 3232 3306 … … 3476 3550 "arm" ) cannon_arch_name="arm";; 3477 3551 "ARM" ) cannon_arch_name="arm";; 3552 "armv7l" ) cannon_arch_name="arm";; 3478 3553 *) 3479 3554 >&2 echo "Unkown architecture " $arch_name; … … 3492 3567 echo -n "${LIBCFA_PATHS} " >> ${lib_dir}/config.data 3493 3568 echo -n "ARCHITECTURE=${lib_arch} " >> ${lib_dir}/config.data 3494 echo -n "CONFIGURATION=${lib_config}" >> ${lib_dir}/config.data 3569 echo -n "CONFIGURATION=${lib_config} " >> ${lib_dir}/config.data 3570 echo -n "CFA_VERSION=${ver_major}:${ver_minor}:${ver_patch}" >> ${lib_dir}/config.data 3495 3571 done 3496 3572 … … 3515 3591 "arm" ) cannon_arch_name="arm";; 3516 3592 "ARM" ) cannon_arch_name="arm";; 3593 "armv7l" ) cannon_arch_name="arm";; 3517 3594 *) 3518 3595 >&2 echo "Unkown architecture " $arch_name; … … 5313 5390 fi 5314 5391 if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi 5315 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5317 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5318 set x ${MAKE-make} 5319 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5320 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5392 case `pwd` in 5393 *\ * | *\ *) 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5395 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5396 esac 5397 5398 5399 5400 macro_version='2.4.6' 5401 macro_revision='2.4.6' 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 ltmain=$ac_aux_dir/ltmain.sh 5416 5417 # Backslashify metacharacters that are still active within 5418 # double-quoted strings. 5419 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5420 5421 # Same as above, but do not quote variable references. 5422 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5423 5424 # Sed substitution to delay expansion of an escaped shell variable in a 5425 # double_quote_subst'ed string. 5426 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5427 5428 # Sed substitution to delay expansion of an escaped single quote. 5429 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5430 5431 # Sed substitution to avoid accidental globbing in evaled expressions 5432 no_glob_subst='s/\*/\\\*/g' 5433 5434 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5437 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5439 $as_echo_n "checking how to print strings... " >&6; } 5440 # Test print first, because it will be a builtin if present. 5441 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5442 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5443 ECHO='print -r --' 5444 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5445 ECHO='printf %s\n' 5446 else 5447 # Use this function as a fallback that always works. 5448 func_fallback_echo () 5449 { 5450 eval 'cat <<_LTECHO_EOF 5451 $1 5452 _LTECHO_EOF' 5453 } 5454 ECHO='func_fallback_echo' 5455 fi 5456 5457 # func_echo_all arg... 5458 # Invoke $ECHO with all args, space-separated. 5459 func_echo_all () 5460 { 5461 $ECHO "" 5462 } 5463 5464 case $ECHO in 5465 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5466 $as_echo "printf" >&6; } ;; 5467 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5468 $as_echo "print -r" >&6; } ;; 5469 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5470 $as_echo "cat" >&6; } ;; 5471 esac 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5487 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5488 if ${ac_cv_path_SED+:} false; then : 5321 5489 $as_echo_n "(cached) " >&6 5322 5490 else 5323 cat >conftest.make <<\_ACEOF 5324 SHELL = /bin/sh 5325 all: 5326 @echo '@@@%%%=$(MAKE)=@@@%%%' 5327 _ACEOF 5328 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5329 case `${MAKE-make} -f conftest.make 2>/dev/null` in 5330 *@@@%%%=?*=@@@%%%*) 5331 eval ac_cv_prog_make_${ac_make}_set=yes;; 5332 *) 5333 eval ac_cv_prog_make_${ac_make}_set=no;; 5334 esac 5335 rm -f conftest.make 5336 fi 5337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5339 $as_echo "yes" >&6; } 5340 SET_MAKE= 5341 else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343 $as_echo "no" >&6; } 5344 SET_MAKE="MAKE=${MAKE-make}" 5345 fi 5346 5347 if test -n "$ac_tool_prefix"; then 5348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5351 $as_echo_n "checking for $ac_word... " >&6; } 5352 if ${ac_cv_prog_RANLIB+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354 else 5355 if test -n "$RANLIB"; then 5356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5357 else 5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5491 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5492 for ac_i in 1 2 3 4 5 6 7; do 5493 ac_script="$ac_script$as_nl$ac_script" 5494 done 5495 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5496 { ac_script=; unset ac_script;} 5497 if test -z "$SED"; then 5498 ac_path_SED_found=false 5499 # Loop through the user's path and test for each of PROGNAME-LIST 5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5359 5501 for as_dir in $PATH 5360 5502 do 5361 5503 IFS=$as_save_IFS 5362 5504 test -z "$as_dir" && as_dir=. 5505 for ac_prog in sed gsed; do 5363 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5367 break 2 5368 fi 5369 done 5507 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5508 as_fn_executable_p "$ac_path_SED" || continue 5509 # Check for GNU ac_path_SED and select it if it is found. 5510 # Check for GNU $ac_path_SED 5511 case `"$ac_path_SED" --version 2>&1` in 5512 *GNU*) 5513 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5514 *) 5515 ac_count=0 5516 $as_echo_n 0123456789 >"conftest.in" 5517 while : 5518 do 5519 cat "conftest.in" "conftest.in" >"conftest.tmp" 5520 mv "conftest.tmp" "conftest.in" 5521 cp "conftest.in" "conftest.nl" 5522 $as_echo '' >> "conftest.nl" 5523 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5525 as_fn_arith $ac_count + 1 && ac_count=$as_val 5526 if test $ac_count -gt ${ac_path_SED_max-0}; then 5527 # Best one so far, save it but keep looking for a better one 5528 ac_cv_path_SED="$ac_path_SED" 5529 ac_path_SED_max=$ac_count 5530 fi 5531 # 10*(2^10) chars as input seems more than enough 5532 test $ac_count -gt 10 && break 5533 done 5534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5535 esac 5536 5537 $ac_path_SED_found && break 3 5538 done 5539 done 5370 5540 done 5371 5541 IFS=$as_save_IFS 5372 5373 fi 5374 fi 5375 RANLIB=$ac_cv_prog_RANLIB 5376 if test -n "$RANLIB"; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5378 $as_echo "$RANLIB" >&6; } 5379 else 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5381 $as_echo "no" >&6; } 5382 fi 5383 5384 5385 fi 5386 if test -z "$ac_cv_prog_RANLIB"; then 5387 ac_ct_RANLIB=$RANLIB 5388 # Extract the first word of "ranlib", so it can be a program name with args. 5389 set dummy ranlib; ac_word=$2 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5391 $as_echo_n "checking for $ac_word... " >&6; } 5392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5393 $as_echo_n "(cached) " >&6 5394 else 5395 if test -n "$ac_ct_RANLIB"; then 5396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5397 else 5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5399 for as_dir in $PATH 5400 do 5401 IFS=$as_save_IFS 5402 test -z "$as_dir" && as_dir=. 5403 for ac_exec_ext in '' $ac_executable_extensions; do 5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5405 ac_cv_prog_ac_ct_RANLIB="ranlib" 5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5407 break 2 5542 if test -z "$ac_cv_path_SED"; then 5543 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5408 5544 fi 5409 done 5410 done 5411 IFS=$as_save_IFS 5412 5413 fi 5414 fi 5415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5416 if test -n "$ac_ct_RANLIB"; then 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5418 $as_echo "$ac_ct_RANLIB" >&6; } 5419 else 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5421 $as_echo "no" >&6; } 5422 fi 5423 5424 if test "x$ac_ct_RANLIB" = x; then 5425 RANLIB=":" 5426 else 5427 case $cross_compiling:$ac_tool_warned in 5428 yes:) 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5431 ac_tool_warned=yes ;; 5432 esac 5433 RANLIB=$ac_ct_RANLIB 5434 fi 5435 else 5436 RANLIB="$ac_cv_prog_RANLIB" 5437 fi 5438 5439 5440 # Checks for libraries. 5441 5442 # Checks for header files. 5443 ac_ext=c 5444 ac_cpp='$CPP $CPPFLAGS' 5445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5447 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5449 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5450 # On Suns, sometimes $CPP names a directory. 5451 if test -n "$CPP" && test -d "$CPP"; then 5452 CPP= 5453 fi 5454 if test -z "$CPP"; then 5455 if ${ac_cv_prog_CPP+:} false; then : 5456 $as_echo_n "(cached) " >&6 5457 else 5458 # Double quotes because CPP needs to be expanded 5459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5460 do 5461 ac_preproc_ok=false 5462 for ac_c_preproc_warn_flag in '' yes 5463 do 5464 # Use a header file that comes with gcc, so configuring glibc 5465 # with a fresh cross-compiler works. 5466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5467 # <limits.h> exists even on freestanding compilers. 5468 # On the NeXT, cc -E runs the code through the compiler's parser, 5469 # not just through cpp. "Syntax error" is here to catch this case. 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471 /* end confdefs.h. */ 5472 #ifdef __STDC__ 5473 # include <limits.h> 5474 #else 5475 # include <assert.h> 5476 #endif 5477 Syntax error 5478 _ACEOF 5479 if ac_fn_c_try_cpp "$LINENO"; then : 5480 5481 else 5482 # Broken: fails on valid input. 5483 continue 5484 fi 5485 rm -f conftest.err conftest.i conftest.$ac_ext 5486 5487 # OK, works on sane cases. Now check whether nonexistent headers 5488 # can be detected and how. 5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5490 /* end confdefs.h. */ 5491 #include <ac_nonexistent.h> 5492 _ACEOF 5493 if ac_fn_c_try_cpp "$LINENO"; then : 5494 # Broken: success on invalid input. 5495 continue 5496 else 5497 # Passes both tests. 5498 ac_preproc_ok=: 5499 break 5500 fi 5501 rm -f conftest.err conftest.i conftest.$ac_ext 5502 5503 done 5504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5505 rm -f conftest.i conftest.err conftest.$ac_ext 5506 if $ac_preproc_ok; then : 5507 break 5508 fi 5509 5510 done 5511 ac_cv_prog_CPP=$CPP 5512 5513 fi 5514 CPP=$ac_cv_prog_CPP 5515 else 5516 ac_cv_prog_CPP=$CPP 5517 fi 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5519 $as_echo "$CPP" >&6; } 5520 ac_preproc_ok=false 5521 for ac_c_preproc_warn_flag in '' yes 5522 do 5523 # Use a header file that comes with gcc, so configuring glibc 5524 # with a fresh cross-compiler works. 5525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5526 # <limits.h> exists even on freestanding compilers. 5527 # On the NeXT, cc -E runs the code through the compiler's parser, 5528 # not just through cpp. "Syntax error" is here to catch this case. 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530 /* end confdefs.h. */ 5531 #ifdef __STDC__ 5532 # include <limits.h> 5533 #else 5534 # include <assert.h> 5535 #endif 5536 Syntax error 5537 _ACEOF 5538 if ac_fn_c_try_cpp "$LINENO"; then : 5539 5540 else 5541 # Broken: fails on valid input. 5542 continue 5543 fi 5544 rm -f conftest.err conftest.i conftest.$ac_ext 5545 5546 # OK, works on sane cases. Now check whether nonexistent headers 5547 # can be detected and how. 5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5549 /* end confdefs.h. */ 5550 #include <ac_nonexistent.h> 5551 _ACEOF 5552 if ac_fn_c_try_cpp "$LINENO"; then : 5553 # Broken: success on invalid input. 5554 continue 5555 else 5556 # Passes both tests. 5557 ac_preproc_ok=: 5558 break 5559 fi 5560 rm -f conftest.err conftest.i conftest.$ac_ext 5561 5562 done 5563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5564 rm -f conftest.i conftest.err conftest.$ac_ext 5565 if $ac_preproc_ok; then : 5566 5567 else 5568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5570 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5571 See \`config.log' for more details" "$LINENO" 5; } 5572 fi 5573 5574 ac_ext=c 5575 ac_cpp='$CPP $CPPFLAGS' 5576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5578 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5545 else 5546 ac_cv_path_SED=$SED 5547 fi 5548 5549 fi 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5551 $as_echo "$ac_cv_path_SED" >&6; } 5552 SED="$ac_cv_path_SED" 5553 rm -f conftest.sed 5554 5555 test -z "$SED" && SED=sed 5556 Xsed="$SED -e 1s/^X//" 5557 5558 5559 5560 5561 5562 5563 5564 5565 5579 5566 5580 5567 … … 5709 5696 5710 5697 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5699 $as_echo_n "checking for fgrep... " >&6; } 5700 if ${ac_cv_path_FGREP+:} false; then : 5701 $as_echo_n "(cached) " >&6 5702 else 5703 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5704 then ac_cv_path_FGREP="$GREP -F" 5705 else 5706 if test -z "$FGREP"; then 5707 ac_path_FGREP_found=false 5708 # Loop through the user's path and test for each of PROGNAME-LIST 5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5711 do 5712 IFS=$as_save_IFS 5713 test -z "$as_dir" && as_dir=. 5714 for ac_prog in fgrep; do 5715 for ac_exec_ext in '' $ac_executable_extensions; do 5716 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5717 as_fn_executable_p "$ac_path_FGREP" || continue 5718 # Check for GNU ac_path_FGREP and select it if it is found. 5719 # Check for GNU $ac_path_FGREP 5720 case `"$ac_path_FGREP" --version 2>&1` in 5721 *GNU*) 5722 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5723 *) 5724 ac_count=0 5725 $as_echo_n 0123456789 >"conftest.in" 5726 while : 5727 do 5728 cat "conftest.in" "conftest.in" >"conftest.tmp" 5729 mv "conftest.tmp" "conftest.in" 5730 cp "conftest.in" "conftest.nl" 5731 $as_echo 'FGREP' >> "conftest.nl" 5732 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5734 as_fn_arith $ac_count + 1 && ac_count=$as_val 5735 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5736 # Best one so far, save it but keep looking for a better one 5737 ac_cv_path_FGREP="$ac_path_FGREP" 5738 ac_path_FGREP_max=$ac_count 5739 fi 5740 # 10*(2^10) chars as input seems more than enough 5741 test $ac_count -gt 10 && break 5742 done 5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5744 esac 5745 5746 $ac_path_FGREP_found && break 3 5747 done 5748 done 5749 done 5750 IFS=$as_save_IFS 5751 if test -z "$ac_cv_path_FGREP"; then 5752 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5753 fi 5754 else 5755 ac_cv_path_FGREP=$FGREP 5756 fi 5757 5758 fi 5759 fi 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5761 $as_echo "$ac_cv_path_FGREP" >&6; } 5762 FGREP="$ac_cv_path_FGREP" 5763 5764 5765 test -z "$GREP" && GREP=grep 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 # Check whether --with-gnu-ld was given. 5786 if test "${with_gnu_ld+set}" = set; then : 5787 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5788 else 5789 with_gnu_ld=no 5790 fi 5791 5792 ac_prog=ld 5793 if test yes = "$GCC"; then 5794 # Check if gcc -print-prog-name=ld gives a path. 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5796 $as_echo_n "checking for ld used by $CC... " >&6; } 5797 case $host in 5798 *-*-mingw*) 5799 # gcc leaves a trailing carriage return, which upsets mingw 5800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5801 *) 5802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5803 esac 5804 case $ac_prog in 5805 # Accept absolute paths. 5806 [\\/]* | ?:[\\/]*) 5807 re_direlt='/[^/][^/]*/\.\./' 5808 # Canonicalize the pathname of ld 5809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5812 done 5813 test -z "$LD" && LD=$ac_prog 5814 ;; 5815 "") 5816 # If it fails, then pretend we aren't using GCC. 5817 ac_prog=ld 5818 ;; 5819 *) 5820 # If it is relative, then search for the first ld in PATH. 5821 with_gnu_ld=unknown 5822 ;; 5823 esac 5824 elif test yes = "$with_gnu_ld"; then 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5826 $as_echo_n "checking for GNU ld... " >&6; } 5827 else 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5829 $as_echo_n "checking for non-GNU ld... " >&6; } 5830 fi 5831 if ${lt_cv_path_LD+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833 else 5834 if test -z "$LD"; then 5835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5836 for ac_dir in $PATH; do 5837 IFS=$lt_save_ifs 5838 test -z "$ac_dir" && ac_dir=. 5839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5840 lt_cv_path_LD=$ac_dir/$ac_prog 5841 # Check to see if the program is GNU ld. I'd rather use --version, 5842 # but apparently some variants of GNU ld only accept -v. 5843 # Break only if it was the GNU/non-GNU ld that we prefer. 5844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5845 *GNU* | *'with BFD'*) 5846 test no != "$with_gnu_ld" && break 5847 ;; 5848 *) 5849 test yes != "$with_gnu_ld" && break 5850 ;; 5851 esac 5852 fi 5853 done 5854 IFS=$lt_save_ifs 5855 else 5856 lt_cv_path_LD=$LD # Let the user override the test with a path. 5857 fi 5858 fi 5859 5860 LD=$lt_cv_path_LD 5861 if test -n "$LD"; then 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5863 $as_echo "$LD" >&6; } 5864 else 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5866 $as_echo "no" >&6; } 5867 fi 5868 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5871 if ${lt_cv_prog_gnu_ld+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873 else 5874 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5875 case `$LD -v 2>&1 </dev/null` in 5876 *GNU* | *'with BFD'*) 5877 lt_cv_prog_gnu_ld=yes 5878 ;; 5879 *) 5880 lt_cv_prog_gnu_ld=no 5881 ;; 5882 esac 5883 fi 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5885 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5886 with_gnu_ld=$lt_cv_prog_gnu_ld 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5897 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5898 if ${lt_cv_path_NM+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900 else 5901 if test -n "$NM"; then 5902 # Let the user override the test. 5903 lt_cv_path_NM=$NM 5904 else 5905 lt_nm_to_check=${ac_tool_prefix}nm 5906 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5907 lt_nm_to_check="$lt_nm_to_check nm" 5908 fi 5909 for lt_tmp_nm in $lt_nm_to_check; do 5910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5911 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5912 IFS=$lt_save_ifs 5913 test -z "$ac_dir" && ac_dir=. 5914 tmp_nm=$ac_dir/$lt_tmp_nm 5915 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5916 # Check to see if the nm accepts a BSD-compat flag. 5917 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5918 # nm: unknown option "B" ignored 5919 # Tru64's nm complains that /dev/null is an invalid object file 5920 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5921 case $build_os in 5922 mingw*) lt_bad_file=conftest.nm/nofile ;; 5923 *) lt_bad_file=/dev/null ;; 5924 esac 5925 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5926 *$lt_bad_file* | *'Invalid file or object type'*) 5927 lt_cv_path_NM="$tmp_nm -B" 5928 break 2 5929 ;; 5930 *) 5931 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5932 */dev/null*) 5933 lt_cv_path_NM="$tmp_nm -p" 5934 break 2 5935 ;; 5936 *) 5937 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5938 continue # so that we can try to find one that supports BSD flags 5939 ;; 5940 esac 5941 ;; 5942 esac 5943 fi 5944 done 5945 IFS=$lt_save_ifs 5946 done 5947 : ${lt_cv_path_NM=no} 5948 fi 5949 fi 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5951 $as_echo "$lt_cv_path_NM" >&6; } 5952 if test no != "$lt_cv_path_NM"; then 5953 NM=$lt_cv_path_NM 5954 else 5955 # Didn't find any BSD compatible name lister, look for dumpbin. 5956 if test -n "$DUMPBIN"; then : 5957 # Let the user override the test. 5958 else 5959 if test -n "$ac_tool_prefix"; then 5960 for ac_prog in dumpbin "link -dump" 5961 do 5962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5965 $as_echo_n "checking for $ac_word... " >&6; } 5966 if ${ac_cv_prog_DUMPBIN+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968 else 5969 if test -n "$DUMPBIN"; then 5970 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5971 else 5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973 for as_dir in $PATH 5974 do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5979 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983 done 5984 done 5985 IFS=$as_save_IFS 5986 5987 fi 5988 fi 5989 DUMPBIN=$ac_cv_prog_DUMPBIN 5990 if test -n "$DUMPBIN"; then 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5992 $as_echo "$DUMPBIN" >&6; } 5993 else 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5995 $as_echo "no" >&6; } 5996 fi 5997 5998 5999 test -n "$DUMPBIN" && break 6000 done 6001 fi 6002 if test -z "$DUMPBIN"; then 6003 ac_ct_DUMPBIN=$DUMPBIN 6004 for ac_prog in dumpbin "link -dump" 6005 do 6006 # Extract the first word of "$ac_prog", so it can be a program name with args. 6007 set dummy $ac_prog; ac_word=$2 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6009 $as_echo_n "checking for $ac_word... " >&6; } 6010 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012 else 6013 if test -n "$ac_ct_DUMPBIN"; then 6014 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6015 else 6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017 for as_dir in $PATH 6018 do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6023 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027 done 6028 done 6029 IFS=$as_save_IFS 6030 6031 fi 6032 fi 6033 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6034 if test -n "$ac_ct_DUMPBIN"; then 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6036 $as_echo "$ac_ct_DUMPBIN" >&6; } 6037 else 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6039 $as_echo "no" >&6; } 6040 fi 6041 6042 6043 test -n "$ac_ct_DUMPBIN" && break 6044 done 6045 6046 if test "x$ac_ct_DUMPBIN" = x; then 6047 DUMPBIN=":" 6048 else 6049 case $cross_compiling:$ac_tool_warned in 6050 yes:) 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6053 ac_tool_warned=yes ;; 6054 esac 6055 DUMPBIN=$ac_ct_DUMPBIN 6056 fi 6057 fi 6058 6059 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6060 *COFF*) 6061 DUMPBIN="$DUMPBIN -symbols -headers" 6062 ;; 6063 *) 6064 DUMPBIN=: 6065 ;; 6066 esac 6067 fi 6068 6069 if test : != "$DUMPBIN"; then 6070 NM=$DUMPBIN 6071 fi 6072 fi 6073 test -z "$NM" && NM=nm 6074 6075 6076 6077 6078 6079 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6081 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 6082 if ${lt_cv_nm_interface+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084 else 6085 lt_cv_nm_interface="BSD nm" 6086 echo "int some_variable = 0;" > conftest.$ac_ext 6087 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6088 (eval "$ac_compile" 2>conftest.err) 6089 cat conftest.err >&5 6090 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6091 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6092 cat conftest.err >&5 6093 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6094 cat conftest.out >&5 6095 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6096 lt_cv_nm_interface="MS dumpbin" 6097 fi 6098 rm -f conftest* 6099 fi 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6101 $as_echo "$lt_cv_nm_interface" >&6; } 6102 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6104 $as_echo_n "checking whether ln -s works... " >&6; } 6105 LN_S=$as_ln_s 6106 if test "$LN_S" = "ln -s"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6108 $as_echo "yes" >&6; } 6109 else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6111 $as_echo "no, using $LN_S" >&6; } 6112 fi 6113 6114 # find the maximum length of command line arguments 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6116 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 6117 if ${lt_cv_sys_max_cmd_len+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119 else 6120 i=0 6121 teststring=ABCD 6122 6123 case $build_os in 6124 msdosdjgpp*) 6125 # On DJGPP, this test can blow up pretty badly due to problems in libc 6126 # (any single argument exceeding 2000 bytes causes a buffer overrun 6127 # during glob expansion). Even if it were fixed, the result of this 6128 # check would be larger than it should be. 6129 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6130 ;; 6131 6132 gnu*) 6133 # Under GNU Hurd, this test is not required because there is 6134 # no limit to the length of command line arguments. 6135 # Libtool will interpret -1 as no limit whatsoever 6136 lt_cv_sys_max_cmd_len=-1; 6137 ;; 6138 6139 cygwin* | mingw* | cegcc*) 6140 # On Win9x/ME, this test blows up -- it succeeds, but takes 6141 # about 5 minutes as the teststring grows exponentially. 6142 # Worse, since 9x/ME are not pre-emptively multitasking, 6143 # you end up with a "frozen" computer, even though with patience 6144 # the test eventually succeeds (with a max line length of 256k). 6145 # Instead, let's just punt: use the minimum linelength reported by 6146 # all of the supported platforms: 8192 (on NT/2K/XP). 6147 lt_cv_sys_max_cmd_len=8192; 6148 ;; 6149 6150 mint*) 6151 # On MiNT this can take a long time and run out of memory. 6152 lt_cv_sys_max_cmd_len=8192; 6153 ;; 6154 6155 amigaos*) 6156 # On AmigaOS with pdksh, this test takes hours, literally. 6157 # So we just punt and use a minimum line length of 8192. 6158 lt_cv_sys_max_cmd_len=8192; 6159 ;; 6160 6161 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6162 # This has been around since 386BSD, at least. Likely further. 6163 if test -x /sbin/sysctl; then 6164 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6165 elif test -x /usr/sbin/sysctl; then 6166 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6167 else 6168 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6169 fi 6170 # And add a safety zone 6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6173 ;; 6174 6175 interix*) 6176 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6177 lt_cv_sys_max_cmd_len=196608 6178 ;; 6179 6180 os2*) 6181 # The test takes a long time on OS/2. 6182 lt_cv_sys_max_cmd_len=8192 6183 ;; 6184 6185 osf*) 6186 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6187 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6188 # nice to cause kernel panics so lets avoid the loop below. 6189 # First set a reasonable default. 6190 lt_cv_sys_max_cmd_len=16384 6191 # 6192 if test -x /sbin/sysconfig; then 6193 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6194 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6195 esac 6196 fi 6197 ;; 6198 sco3.2v5*) 6199 lt_cv_sys_max_cmd_len=102400 6200 ;; 6201 sysv5* | sco5v6* | sysv4.2uw2*) 6202 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6203 if test -n "$kargmax"; then 6204 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6205 else 6206 lt_cv_sys_max_cmd_len=32768 6207 fi 6208 ;; 6209 *) 6210 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6211 if test -n "$lt_cv_sys_max_cmd_len" && \ 6212 test undefined != "$lt_cv_sys_max_cmd_len"; then 6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6215 else 6216 # Make teststring a little bigger before we do anything with it. 6217 # a 1K string should be a reasonable start. 6218 for i in 1 2 3 4 5 6 7 8; do 6219 teststring=$teststring$teststring 6220 done 6221 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6222 # If test is not a shell built-in, we'll probably end up computing a 6223 # maximum length that is only half of the actual maximum length, but 6224 # we can't tell. 6225 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6226 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6227 test 17 != "$i" # 1/2 MB should be enough 6228 do 6229 i=`expr $i + 1` 6230 teststring=$teststring$teststring 6231 done 6232 # Only check the string length outside the loop. 6233 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6234 teststring= 6235 # Add a significant safety factor because C++ compilers can tack on 6236 # massive amounts of additional arguments before passing them to the 6237 # linker. It appears as though 1/2 is a usable value. 6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6239 fi 6240 ;; 6241 esac 6242 6243 fi 6244 6245 if test -n "$lt_cv_sys_max_cmd_len"; then 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6247 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6248 else 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6250 $as_echo "none" >&6; } 6251 fi 6252 max_cmd_len=$lt_cv_sys_max_cmd_len 6253 6254 6255 6256 6257 6258 6259 : ${CP="cp -f"} 6260 : ${MV="mv -f"} 6261 : ${RM="rm -f"} 6262 6263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6264 lt_unset=unset 6265 else 6266 lt_unset=false 6267 fi 6268 6269 6270 6271 6272 6273 # test EBCDIC or ASCII 6274 case `echo X|tr X '\101'` in 6275 A) # ASCII based system 6276 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6277 lt_SP2NL='tr \040 \012' 6278 lt_NL2SP='tr \015\012 \040\040' 6279 ;; 6280 *) # EBCDIC based system 6281 lt_SP2NL='tr \100 \n' 6282 lt_NL2SP='tr \r\n \100\100' 6283 ;; 6284 esac 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6295 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6296 if ${lt_cv_to_host_file_cmd+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298 else 6299 case $host in 6300 *-*-mingw* ) 6301 case $build in 6302 *-*-mingw* ) # actually msys 6303 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6304 ;; 6305 *-*-cygwin* ) 6306 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6307 ;; 6308 * ) # otherwise, assume *nix 6309 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6310 ;; 6311 esac 6312 ;; 6313 *-*-cygwin* ) 6314 case $build in 6315 *-*-mingw* ) # actually msys 6316 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6317 ;; 6318 *-*-cygwin* ) 6319 lt_cv_to_host_file_cmd=func_convert_file_noop 6320 ;; 6321 * ) # otherwise, assume *nix 6322 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6323 ;; 6324 esac 6325 ;; 6326 * ) # unhandled hosts (and "normal" native builds) 6327 lt_cv_to_host_file_cmd=func_convert_file_noop 6328 ;; 6329 esac 6330 6331 fi 6332 6333 to_host_file_cmd=$lt_cv_to_host_file_cmd 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6335 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 6336 6337 6338 6339 6340 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6342 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6343 if ${lt_cv_to_tool_file_cmd+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345 else 6346 #assume ordinary cross tools, or native build. 6347 lt_cv_to_tool_file_cmd=func_convert_file_noop 6348 case $host in 6349 *-*-mingw* ) 6350 case $build in 6351 *-*-mingw* ) # actually msys 6352 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6353 ;; 6354 esac 6355 ;; 6356 esac 6357 6358 fi 6359 6360 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6362 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6363 6364 6365 6366 6367 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6369 $as_echo_n "checking for $LD option to reload object files... " >&6; } 6370 if ${lt_cv_ld_reload_flag+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372 else 6373 lt_cv_ld_reload_flag='-r' 6374 fi 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6376 $as_echo "$lt_cv_ld_reload_flag" >&6; } 6377 reload_flag=$lt_cv_ld_reload_flag 6378 case $reload_flag in 6379 "" | " "*) ;; 6380 *) reload_flag=" $reload_flag" ;; 6381 esac 6382 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6383 case $host_os in 6384 cygwin* | mingw* | pw32* | cegcc*) 6385 if test yes != "$GCC"; then 6386 reload_cmds=false 6387 fi 6388 ;; 6389 darwin*) 6390 if test yes = "$GCC"; then 6391 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6392 else 6393 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6394 fi 6395 ;; 6396 esac 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 if test -n "$ac_tool_prefix"; then 6407 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6408 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6410 $as_echo_n "checking for $ac_word... " >&6; } 6411 if ${ac_cv_prog_OBJDUMP+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413 else 6414 if test -n "$OBJDUMP"; then 6415 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6416 else 6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6418 for as_dir in $PATH 6419 do 6420 IFS=$as_save_IFS 6421 test -z "$as_dir" && as_dir=. 6422 for ac_exec_ext in '' $ac_executable_extensions; do 6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6424 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6426 break 2 6427 fi 6428 done 6429 done 6430 IFS=$as_save_IFS 6431 6432 fi 6433 fi 6434 OBJDUMP=$ac_cv_prog_OBJDUMP 6435 if test -n "$OBJDUMP"; then 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6437 $as_echo "$OBJDUMP" >&6; } 6438 else 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6440 $as_echo "no" >&6; } 6441 fi 6442 6443 6444 fi 6445 if test -z "$ac_cv_prog_OBJDUMP"; then 6446 ac_ct_OBJDUMP=$OBJDUMP 6447 # Extract the first word of "objdump", so it can be a program name with args. 6448 set dummy objdump; ac_word=$2 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450 $as_echo_n "checking for $ac_word... " >&6; } 6451 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453 else 6454 if test -n "$ac_ct_OBJDUMP"; then 6455 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6456 else 6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458 for as_dir in $PATH 6459 do 6460 IFS=$as_save_IFS 6461 test -z "$as_dir" && as_dir=. 6462 for ac_exec_ext in '' $ac_executable_extensions; do 6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6464 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6466 break 2 6467 fi 6468 done 6469 done 6470 IFS=$as_save_IFS 6471 6472 fi 6473 fi 6474 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6475 if test -n "$ac_ct_OBJDUMP"; then 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6477 $as_echo "$ac_ct_OBJDUMP" >&6; } 6478 else 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6480 $as_echo "no" >&6; } 6481 fi 6482 6483 if test "x$ac_ct_OBJDUMP" = x; then 6484 OBJDUMP="false" 6485 else 6486 case $cross_compiling:$ac_tool_warned in 6487 yes:) 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6490 ac_tool_warned=yes ;; 6491 esac 6492 OBJDUMP=$ac_ct_OBJDUMP 6493 fi 6494 else 6495 OBJDUMP="$ac_cv_prog_OBJDUMP" 6496 fi 6497 6498 test -z "$OBJDUMP" && OBJDUMP=objdump 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6509 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 6510 if ${lt_cv_deplibs_check_method+:} false; then : 6511 $as_echo_n "(cached) " >&6 6512 else 6513 lt_cv_file_magic_cmd='$MAGIC_CMD' 6514 lt_cv_file_magic_test_file= 6515 lt_cv_deplibs_check_method='unknown' 6516 # Need to set the preceding variable on all platforms that support 6517 # interlibrary dependencies. 6518 # 'none' -- dependencies not supported. 6519 # 'unknown' -- same as none, but documents that we really don't know. 6520 # 'pass_all' -- all dependencies passed with no checks. 6521 # 'test_compile' -- check by making test program. 6522 # 'file_magic [[regex]]' -- check by looking for files in library path 6523 # that responds to the $file_magic_cmd with a given extended regex. 6524 # If you have 'file' or equivalent on your system and you're not sure 6525 # whether 'pass_all' will *always* work, you probably want this one. 6526 6527 case $host_os in 6528 aix[4-9]*) 6529 lt_cv_deplibs_check_method=pass_all 6530 ;; 6531 6532 beos*) 6533 lt_cv_deplibs_check_method=pass_all 6534 ;; 6535 6536 bsdi[45]*) 6537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6538 lt_cv_file_magic_cmd='/usr/bin/file -L' 6539 lt_cv_file_magic_test_file=/shlib/libc.so 6540 ;; 6541 6542 cygwin*) 6543 # func_win32_libid is a shell function defined in ltmain.sh 6544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6545 lt_cv_file_magic_cmd='func_win32_libid' 6546 ;; 6547 6548 mingw* | pw32*) 6549 # Base MSYS/MinGW do not provide the 'file' command needed by 6550 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6551 # unless we find 'file', for example because we are cross-compiling. 6552 if ( file / ) >/dev/null 2>&1; then 6553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6554 lt_cv_file_magic_cmd='func_win32_libid' 6555 else 6556 # Keep this pattern in sync with the one in func_win32_libid. 6557 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6558 lt_cv_file_magic_cmd='$OBJDUMP -f' 6559 fi 6560 ;; 6561 6562 cegcc*) 6563 # use the weaker test based on 'objdump'. See mingw*. 6564 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6565 lt_cv_file_magic_cmd='$OBJDUMP -f' 6566 ;; 6567 6568 darwin* | rhapsody*) 6569 lt_cv_deplibs_check_method=pass_all 6570 ;; 6571 6572 freebsd* | dragonfly*) 6573 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6574 case $host_cpu in 6575 i*86 ) 6576 # Not sure whether the presence of OpenBSD here was a mistake. 6577 # Let's accept both of them until this is cleared up. 6578 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6579 lt_cv_file_magic_cmd=/usr/bin/file 6580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6581 ;; 6582 esac 6583 else 6584 lt_cv_deplibs_check_method=pass_all 6585 fi 6586 ;; 6587 6588 haiku*) 6589 lt_cv_deplibs_check_method=pass_all 6590 ;; 6591 6592 hpux10.20* | hpux11*) 6593 lt_cv_file_magic_cmd=/usr/bin/file 6594 case $host_cpu in 6595 ia64*) 6596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6597 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6598 ;; 6599 hppa*64*) 6600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6601 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6602 ;; 6603 *) 6604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6605 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6606 ;; 6607 esac 6608 ;; 6609 6610 interix[3-9]*) 6611 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6613 ;; 6614 6615 irix5* | irix6* | nonstopux*) 6616 case $LD in 6617 *-32|*"-32 ") libmagic=32-bit;; 6618 *-n32|*"-n32 ") libmagic=N32;; 6619 *-64|*"-64 ") libmagic=64-bit;; 6620 *) libmagic=never-match;; 6621 esac 6622 lt_cv_deplibs_check_method=pass_all 6623 ;; 6624 6625 # This must be glibc/ELF. 6626 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6627 lt_cv_deplibs_check_method=pass_all 6628 ;; 6629 6630 netbsd* | netbsdelf*-gnu) 6631 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6633 else 6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6635 fi 6636 ;; 6637 6638 newos6*) 6639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6640 lt_cv_file_magic_cmd=/usr/bin/file 6641 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6642 ;; 6643 6644 *nto* | *qnx*) 6645 lt_cv_deplibs_check_method=pass_all 6646 ;; 6647 6648 openbsd* | bitrig*) 6649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6651 else 6652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6653 fi 6654 ;; 6655 6656 osf3* | osf4* | osf5*) 6657 lt_cv_deplibs_check_method=pass_all 6658 ;; 6659 6660 rdos*) 6661 lt_cv_deplibs_check_method=pass_all 6662 ;; 6663 6664 solaris*) 6665 lt_cv_deplibs_check_method=pass_all 6666 ;; 6667 6668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6669 lt_cv_deplibs_check_method=pass_all 6670 ;; 6671 6672 sysv4 | sysv4.3*) 6673 case $host_vendor in 6674 motorola) 6675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6677 ;; 6678 ncr) 6679 lt_cv_deplibs_check_method=pass_all 6680 ;; 6681 sequent) 6682 lt_cv_file_magic_cmd='/bin/file' 6683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6684 ;; 6685 sni) 6686 lt_cv_file_magic_cmd='/bin/file' 6687 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6688 lt_cv_file_magic_test_file=/lib/libc.so 6689 ;; 6690 siemens) 6691 lt_cv_deplibs_check_method=pass_all 6692 ;; 6693 pc) 6694 lt_cv_deplibs_check_method=pass_all 6695 ;; 6696 esac 6697 ;; 6698 6699 tpf*) 6700 lt_cv_deplibs_check_method=pass_all 6701 ;; 6702 os2*) 6703 lt_cv_deplibs_check_method=pass_all 6704 ;; 6705 esac 6706 6707 fi 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6709 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6710 6711 file_magic_glob= 6712 want_nocaseglob=no 6713 if test "$build" = "$host"; then 6714 case $host_os in 6715 mingw* | pw32*) 6716 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6717 want_nocaseglob=yes 6718 else 6719 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6720 fi 6721 ;; 6722 esac 6723 fi 6724 6725 file_magic_cmd=$lt_cv_file_magic_cmd 6726 deplibs_check_method=$lt_cv_deplibs_check_method 6727 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 if test -n "$ac_tool_prefix"; then 6751 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6752 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6754 $as_echo_n "checking for $ac_word... " >&6; } 6755 if ${ac_cv_prog_DLLTOOL+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757 else 6758 if test -n "$DLLTOOL"; then 6759 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6760 else 6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6762 for as_dir in $PATH 6763 do 6764 IFS=$as_save_IFS 6765 test -z "$as_dir" && as_dir=. 6766 for ac_exec_ext in '' $ac_executable_extensions; do 6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6768 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6770 break 2 6771 fi 6772 done 6773 done 6774 IFS=$as_save_IFS 6775 6776 fi 6777 fi 6778 DLLTOOL=$ac_cv_prog_DLLTOOL 6779 if test -n "$DLLTOOL"; then 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6781 $as_echo "$DLLTOOL" >&6; } 6782 else 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6784 $as_echo "no" >&6; } 6785 fi 6786 6787 6788 fi 6789 if test -z "$ac_cv_prog_DLLTOOL"; then 6790 ac_ct_DLLTOOL=$DLLTOOL 6791 # Extract the first word of "dlltool", so it can be a program name with args. 6792 set dummy dlltool; ac_word=$2 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6794 $as_echo_n "checking for $ac_word... " >&6; } 6795 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797 else 6798 if test -n "$ac_ct_DLLTOOL"; then 6799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6800 else 6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6802 for as_dir in $PATH 6803 do 6804 IFS=$as_save_IFS 6805 test -z "$as_dir" && as_dir=. 6806 for ac_exec_ext in '' $ac_executable_extensions; do 6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6808 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6810 break 2 6811 fi 6812 done 6813 done 6814 IFS=$as_save_IFS 6815 6816 fi 6817 fi 6818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6819 if test -n "$ac_ct_DLLTOOL"; then 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6821 $as_echo "$ac_ct_DLLTOOL" >&6; } 6822 else 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6824 $as_echo "no" >&6; } 6825 fi 6826 6827 if test "x$ac_ct_DLLTOOL" = x; then 6828 DLLTOOL="false" 6829 else 6830 case $cross_compiling:$ac_tool_warned in 6831 yes:) 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6834 ac_tool_warned=yes ;; 6835 esac 6836 DLLTOOL=$ac_ct_DLLTOOL 6837 fi 6838 else 6839 DLLTOOL="$ac_cv_prog_DLLTOOL" 6840 fi 6841 6842 test -z "$DLLTOOL" && DLLTOOL=dlltool 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6854 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6855 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857 else 6858 lt_cv_sharedlib_from_linklib_cmd='unknown' 6859 6860 case $host_os in 6861 cygwin* | mingw* | pw32* | cegcc*) 6862 # two different shell functions defined in ltmain.sh; 6863 # decide which one to use based on capabilities of $DLLTOOL 6864 case `$DLLTOOL --help 2>&1` in 6865 *--identify-strict*) 6866 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6867 ;; 6868 *) 6869 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6870 ;; 6871 esac 6872 ;; 6873 *) 6874 # fallback: assume linklib IS sharedlib 6875 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6876 ;; 6877 esac 6878 6879 fi 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6881 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6882 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6883 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6884 6885 6886 6887 6888 6889 6890 6891 if test -n "$ac_tool_prefix"; then 6892 for ac_prog in ar 6893 do 6894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6897 $as_echo_n "checking for $ac_word... " >&6; } 6898 if ${ac_cv_prog_AR+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900 else 6901 if test -n "$AR"; then 6902 ac_cv_prog_AR="$AR" # Let the user override the test. 6903 else 6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905 for as_dir in $PATH 6906 do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6911 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915 done 6916 done 6917 IFS=$as_save_IFS 6918 6919 fi 6920 fi 6921 AR=$ac_cv_prog_AR 6922 if test -n "$AR"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6924 $as_echo "$AR" >&6; } 6925 else 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6927 $as_echo "no" >&6; } 6928 fi 6929 6930 6931 test -n "$AR" && break 6932 done 6933 fi 6934 if test -z "$AR"; then 6935 ac_ct_AR=$AR 6936 for ac_prog in ar 6937 do 6938 # Extract the first word of "$ac_prog", so it can be a program name with args. 6939 set dummy $ac_prog; ac_word=$2 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941 $as_echo_n "checking for $ac_word... " >&6; } 6942 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944 else 6945 if test -n "$ac_ct_AR"; then 6946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6947 else 6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949 for as_dir in $PATH 6950 do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6955 ac_cv_prog_ac_ct_AR="$ac_prog" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959 done 6960 done 6961 IFS=$as_save_IFS 6962 6963 fi 6964 fi 6965 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6966 if test -n "$ac_ct_AR"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6968 $as_echo "$ac_ct_AR" >&6; } 6969 else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971 $as_echo "no" >&6; } 6972 fi 6973 6974 6975 test -n "$ac_ct_AR" && break 6976 done 6977 6978 if test "x$ac_ct_AR" = x; then 6979 AR="false" 6980 else 6981 case $cross_compiling:$ac_tool_warned in 6982 yes:) 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6985 ac_tool_warned=yes ;; 6986 esac 6987 AR=$ac_ct_AR 6988 fi 6989 fi 6990 6991 : ${AR=ar} 6992 : ${AR_FLAGS=cru} 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7005 $as_echo_n "checking for archiver @FILE support... " >&6; } 7006 if ${lt_cv_ar_at_file+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008 else 7009 lt_cv_ar_at_file=no 7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7011 /* end confdefs.h. */ 7012 7013 int 7014 main () 7015 { 7016 7017 ; 7018 return 0; 7019 } 7020 _ACEOF 7021 if ac_fn_c_try_compile "$LINENO"; then : 7022 echo conftest.$ac_objext > conftest.lst 7023 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7025 (eval $lt_ar_try) 2>&5 7026 ac_status=$? 7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7028 test $ac_status = 0; } 7029 if test 0 -eq "$ac_status"; then 7030 # Ensure the archiver fails upon bogus file names. 7031 rm -f conftest.$ac_objext libconftest.a 7032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7033 (eval $lt_ar_try) 2>&5 7034 ac_status=$? 7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7036 test $ac_status = 0; } 7037 if test 0 -ne "$ac_status"; then 7038 lt_cv_ar_at_file=@ 7039 fi 7040 fi 7041 rm -f conftest.* libconftest.a 7042 7043 fi 7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7045 7046 fi 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7048 $as_echo "$lt_cv_ar_at_file" >&6; } 7049 7050 if test no = "$lt_cv_ar_at_file"; then 7051 archiver_list_spec= 7052 else 7053 archiver_list_spec=$lt_cv_ar_at_file 7054 fi 7055 7056 7057 7058 7059 7060 7061 7062 if test -n "$ac_tool_prefix"; then 7063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7064 set dummy ${ac_tool_prefix}strip; ac_word=$2 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7066 $as_echo_n "checking for $ac_word... " >&6; } 7067 if ${ac_cv_prog_STRIP+:} false; then : 7068 $as_echo_n "(cached) " >&6 7069 else 7070 if test -n "$STRIP"; then 7071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7072 else 7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7074 for as_dir in $PATH 7075 do 7076 IFS=$as_save_IFS 7077 test -z "$as_dir" && as_dir=. 7078 for ac_exec_ext in '' $ac_executable_extensions; do 7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7080 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7082 break 2 7083 fi 7084 done 7085 done 7086 IFS=$as_save_IFS 7087 7088 fi 7089 fi 7090 STRIP=$ac_cv_prog_STRIP 7091 if test -n "$STRIP"; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7093 $as_echo "$STRIP" >&6; } 7094 else 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7096 $as_echo "no" >&6; } 7097 fi 7098 7099 7100 fi 7101 if test -z "$ac_cv_prog_STRIP"; then 7102 ac_ct_STRIP=$STRIP 7103 # Extract the first word of "strip", so it can be a program name with args. 7104 set dummy strip; ac_word=$2 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7106 $as_echo_n "checking for $ac_word... " >&6; } 7107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7108 $as_echo_n "(cached) " >&6 7109 else 7110 if test -n "$ac_ct_STRIP"; then 7111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7112 else 7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114 for as_dir in $PATH 7115 do 7116 IFS=$as_save_IFS 7117 test -z "$as_dir" && as_dir=. 7118 for ac_exec_ext in '' $ac_executable_extensions; do 7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7120 ac_cv_prog_ac_ct_STRIP="strip" 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7122 break 2 7123 fi 7124 done 7125 done 7126 IFS=$as_save_IFS 7127 7128 fi 7129 fi 7130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7131 if test -n "$ac_ct_STRIP"; then 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7133 $as_echo "$ac_ct_STRIP" >&6; } 7134 else 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7136 $as_echo "no" >&6; } 7137 fi 7138 7139 if test "x$ac_ct_STRIP" = x; then 7140 STRIP=":" 7141 else 7142 case $cross_compiling:$ac_tool_warned in 7143 yes:) 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7146 ac_tool_warned=yes ;; 7147 esac 7148 STRIP=$ac_ct_STRIP 7149 fi 7150 else 7151 STRIP="$ac_cv_prog_STRIP" 7152 fi 7153 7154 test -z "$STRIP" && STRIP=: 7155 7156 7157 7158 7159 7160 7161 if test -n "$ac_tool_prefix"; then 7162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165 $as_echo_n "checking for $ac_word... " >&6; } 7166 if ${ac_cv_prog_RANLIB+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168 else 7169 if test -n "$RANLIB"; then 7170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7171 else 7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173 for as_dir in $PATH 7174 do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183 done 7184 done 7185 IFS=$as_save_IFS 7186 7187 fi 7188 fi 7189 RANLIB=$ac_cv_prog_RANLIB 7190 if test -n "$RANLIB"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7192 $as_echo "$RANLIB" >&6; } 7193 else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195 $as_echo "no" >&6; } 7196 fi 7197 7198 7199 fi 7200 if test -z "$ac_cv_prog_RANLIB"; then 7201 ac_ct_RANLIB=$RANLIB 7202 # Extract the first word of "ranlib", so it can be a program name with args. 7203 set dummy ranlib; ac_word=$2 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7205 $as_echo_n "checking for $ac_word... " >&6; } 7206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208 else 7209 if test -n "$ac_ct_RANLIB"; then 7210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7211 else 7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213 for as_dir in $PATH 7214 do 7215 IFS=$as_save_IFS 7216 test -z "$as_dir" && as_dir=. 7217 for ac_exec_ext in '' $ac_executable_extensions; do 7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7219 ac_cv_prog_ac_ct_RANLIB="ranlib" 7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7221 break 2 7222 fi 7223 done 7224 done 7225 IFS=$as_save_IFS 7226 7227 fi 7228 fi 7229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7230 if test -n "$ac_ct_RANLIB"; then 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7232 $as_echo "$ac_ct_RANLIB" >&6; } 7233 else 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7235 $as_echo "no" >&6; } 7236 fi 7237 7238 if test "x$ac_ct_RANLIB" = x; then 7239 RANLIB=":" 7240 else 7241 case $cross_compiling:$ac_tool_warned in 7242 yes:) 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7245 ac_tool_warned=yes ;; 7246 esac 7247 RANLIB=$ac_ct_RANLIB 7248 fi 7249 else 7250 RANLIB="$ac_cv_prog_RANLIB" 7251 fi 7252 7253 test -z "$RANLIB" && RANLIB=: 7254 7255 7256 7257 7258 7259 7260 # Determine commands to create old-style static archives. 7261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7262 old_postinstall_cmds='chmod 644 $oldlib' 7263 old_postuninstall_cmds= 7264 7265 if test -n "$RANLIB"; then 7266 case $host_os in 7267 bitrig* | openbsd*) 7268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7269 ;; 7270 *) 7271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7272 ;; 7273 esac 7274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7275 fi 7276 7277 case $host_os in 7278 darwin*) 7279 lock_old_archive_extraction=yes ;; 7280 *) 7281 lock_old_archive_extraction=no ;; 7282 esac 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 # If no C compiler was specified, use CC. 7323 LTCC=${LTCC-"$CC"} 7324 7325 # If no C compiler flags were specified, use CFLAGS. 7326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7327 7328 # Allow CC to be a program name with arguments. 7329 compiler=$CC 7330 7331 7332 # Check for command to grab the raw symbol name followed by C symbol from nm. 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7334 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7335 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7336 $as_echo_n "(cached) " >&6 7337 else 7338 7339 # These are sane defaults that work on at least a few old systems. 7340 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7341 7342 # Character class describing NM global symbol codes. 7343 symcode='[BCDEGRST]' 7344 7345 # Regexp to match symbols that can be accessed directly from C. 7346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7347 7348 # Define system-specific variables. 7349 case $host_os in 7350 aix*) 7351 symcode='[BCDT]' 7352 ;; 7353 cygwin* | mingw* | pw32* | cegcc*) 7354 symcode='[ABCDGISTW]' 7355 ;; 7356 hpux*) 7357 if test ia64 = "$host_cpu"; then 7358 symcode='[ABCDEGRST]' 7359 fi 7360 ;; 7361 irix* | nonstopux*) 7362 symcode='[BCDEGRST]' 7363 ;; 7364 osf*) 7365 symcode='[BCDEGQRST]' 7366 ;; 7367 solaris*) 7368 symcode='[BDRT]' 7369 ;; 7370 sco3.2v5*) 7371 symcode='[DT]' 7372 ;; 7373 sysv4.2uw2*) 7374 symcode='[DT]' 7375 ;; 7376 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7377 symcode='[ABDT]' 7378 ;; 7379 sysv4) 7380 symcode='[DFNSTU]' 7381 ;; 7382 esac 7383 7384 # If we're using GNU nm, then use its standard symbol codes. 7385 case `$NM -V 2>&1` in 7386 *GNU* | *'with BFD'*) 7387 symcode='[ABCDGIRSTW]' ;; 7388 esac 7389 7390 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7391 # Gets list of data symbols to import. 7392 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7393 # Adjust the below global symbol transforms to fixup imported variables. 7394 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7395 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7396 lt_c_name_lib_hook="\ 7397 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7398 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7399 else 7400 # Disable hooks by default. 7401 lt_cv_sys_global_symbol_to_import= 7402 lt_cdecl_hook= 7403 lt_c_name_hook= 7404 lt_c_name_lib_hook= 7405 fi 7406 7407 # Transform an extracted symbol line into a proper C declaration. 7408 # Some systems (esp. on ia64) link data and code symbols differently, 7409 # so use this general approach. 7410 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7411 $lt_cdecl_hook\ 7412 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7413 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7414 7415 # Transform an extracted symbol line into symbol name and symbol address 7416 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7417 $lt_c_name_hook\ 7418 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7419 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7420 7421 # Transform an extracted symbol line into symbol name with lib prefix and 7422 # symbol address. 7423 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7424 $lt_c_name_lib_hook\ 7425 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7426 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7427 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7428 7429 # Handle CRLF in mingw tool chain 7430 opt_cr= 7431 case $build_os in 7432 mingw*) 7433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7434 ;; 7435 esac 7436 7437 # Try without a prefix underscore, then with it. 7438 for ac_symprfx in "" "_"; do 7439 7440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7441 symxfrm="\\1 $ac_symprfx\\2 \\2" 7442 7443 # Write the raw and C identifiers. 7444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7445 # Fake it for dumpbin and say T for any non-static function, 7446 # D for any global variable and I for any imported variable. 7447 # Also find C++ and __fastcall symbols from MSVC++, 7448 # which start with @ or ?. 7449 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7450 " {last_section=section; section=\$ 3};"\ 7451 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7452 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7453 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7454 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7455 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7456 " \$ 0!~/External *\|/{next};"\ 7457 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7458 " {if(hide[section]) next};"\ 7459 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7460 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7461 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7462 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7463 " ' prfx=^$ac_symprfx" 7464 else 7465 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7466 fi 7467 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7468 7469 # Check to see that the pipe works correctly. 7470 pipe_works=no 7471 7472 rm -f conftest* 7473 cat > conftest.$ac_ext <<_LT_EOF 7474 #ifdef __cplusplus 7475 extern "C" { 7476 #endif 7477 char nm_test_var; 7478 void nm_test_func(void); 7479 void nm_test_func(void){} 7480 #ifdef __cplusplus 7481 } 7482 #endif 7483 int main(){nm_test_var='a';nm_test_func();return(0);} 7484 _LT_EOF 7485 7486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7487 (eval $ac_compile) 2>&5 7488 ac_status=$? 7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7490 test $ac_status = 0; }; then 7491 # Now try to grab the symbols. 7492 nlist=conftest.nm 7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7494 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7495 ac_status=$? 7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7497 test $ac_status = 0; } && test -s "$nlist"; then 7498 # Try sorting and uniquifying the output. 7499 if sort "$nlist" | uniq > "$nlist"T; then 7500 mv -f "$nlist"T "$nlist" 7501 else 7502 rm -f "$nlist"T 7503 fi 7504 7505 # Make sure that we snagged all the symbols we need. 7506 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7507 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7508 cat <<_LT_EOF > conftest.$ac_ext 7509 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7510 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7511 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7512 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7513 # define LT_DLSYM_CONST 7514 #elif defined __osf__ 7515 /* This system does not cope well with relocations in const data. */ 7516 # define LT_DLSYM_CONST 7517 #else 7518 # define LT_DLSYM_CONST const 7519 #endif 7520 7521 #ifdef __cplusplus 7522 extern "C" { 7523 #endif 7524 7525 _LT_EOF 7526 # Now generate the symbol file. 7527 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7528 7529 cat <<_LT_EOF >> conftest.$ac_ext 7530 7531 /* The mapping between symbol names and symbols. */ 7532 LT_DLSYM_CONST struct { 7533 const char *name; 7534 void *address; 7535 } 7536 lt__PROGRAM__LTX_preloaded_symbols[] = 7537 { 7538 { "@PROGRAM@", (void *) 0 }, 7539 _LT_EOF 7540 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7541 cat <<\_LT_EOF >> conftest.$ac_ext 7542 {0, (void *) 0} 7543 }; 7544 7545 /* This works around a problem in FreeBSD linker */ 7546 #ifdef FREEBSD_WORKAROUND 7547 static const void *lt_preloaded_setup() { 7548 return lt__PROGRAM__LTX_preloaded_symbols; 7549 } 7550 #endif 7551 7552 #ifdef __cplusplus 7553 } 7554 #endif 7555 _LT_EOF 7556 # Now try linking the two files. 7557 mv conftest.$ac_objext conftstm.$ac_objext 7558 lt_globsym_save_LIBS=$LIBS 7559 lt_globsym_save_CFLAGS=$CFLAGS 7560 LIBS=conftstm.$ac_objext 7561 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7563 (eval $ac_link) 2>&5 7564 ac_status=$? 7565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7566 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7567 pipe_works=yes 7568 fi 7569 LIBS=$lt_globsym_save_LIBS 7570 CFLAGS=$lt_globsym_save_CFLAGS 7571 else 7572 echo "cannot find nm_test_func in $nlist" >&5 7573 fi 7574 else 7575 echo "cannot find nm_test_var in $nlist" >&5 7576 fi 7577 else 7578 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7579 fi 7580 else 7581 echo "$progname: failed program was:" >&5 7582 cat conftest.$ac_ext >&5 7583 fi 7584 rm -rf conftest* conftst* 7585 7586 # Do not use the global_symbol_pipe unless it works. 7587 if test yes = "$pipe_works"; then 7588 break 7589 else 7590 lt_cv_sys_global_symbol_pipe= 7591 fi 7592 done 7593 7594 fi 7595 7596 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7597 lt_cv_sys_global_symbol_to_cdecl= 7598 fi 7599 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7601 $as_echo "failed" >&6; } 7602 else 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7604 $as_echo "ok" >&6; } 7605 fi 7606 7607 # Response file support. 7608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7609 nm_file_list_spec='@' 7610 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7611 nm_file_list_spec='@' 7612 fi 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7651 $as_echo_n "checking for sysroot... " >&6; } 7652 7653 # Check whether --with-sysroot was given. 7654 if test "${with_sysroot+set}" = set; then : 7655 withval=$with_sysroot; 7656 else 7657 with_sysroot=no 7658 fi 7659 7660 7661 lt_sysroot= 7662 case $with_sysroot in #( 7663 yes) 7664 if test yes = "$GCC"; then 7665 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7666 fi 7667 ;; #( 7668 /*) 7669 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7670 ;; #( 7671 no|'') 7672 ;; #( 7673 *) 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7675 $as_echo "$with_sysroot" >&6; } 7676 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7677 ;; 7678 esac 7679 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7681 $as_echo "${lt_sysroot:-no}" >&6; } 7682 7683 7684 7685 7686 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7688 $as_echo_n "checking for a working dd... " >&6; } 7689 if ${ac_cv_path_lt_DD+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691 else 7692 printf 0123456789abcdef0123456789abcdef >conftest.i 7693 cat conftest.i conftest.i >conftest2.i 7694 : ${lt_DD:=$DD} 7695 if test -z "$lt_DD"; then 7696 ac_path_lt_DD_found=false 7697 # Loop through the user's path and test for each of PROGNAME-LIST 7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7699 for as_dir in $PATH 7700 do 7701 IFS=$as_save_IFS 7702 test -z "$as_dir" && as_dir=. 7703 for ac_prog in dd; do 7704 for ac_exec_ext in '' $ac_executable_extensions; do 7705 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7706 as_fn_executable_p "$ac_path_lt_DD" || continue 7707 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7708 cmp -s conftest.i conftest.out \ 7709 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7710 fi 7711 $ac_path_lt_DD_found && break 3 7712 done 7713 done 7714 done 7715 IFS=$as_save_IFS 7716 if test -z "$ac_cv_path_lt_DD"; then 7717 : 7718 fi 7719 else 7720 ac_cv_path_lt_DD=$lt_DD 7721 fi 7722 7723 rm -f conftest.i conftest2.i conftest.out 7724 fi 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7726 $as_echo "$ac_cv_path_lt_DD" >&6; } 7727 7728 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7730 $as_echo_n "checking how to truncate binary pipes... " >&6; } 7731 if ${lt_cv_truncate_bin+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733 else 7734 printf 0123456789abcdef0123456789abcdef >conftest.i 7735 cat conftest.i conftest.i >conftest2.i 7736 lt_cv_truncate_bin= 7737 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7738 cmp -s conftest.i conftest.out \ 7739 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7740 fi 7741 rm -f conftest.i conftest2.i conftest.out 7742 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7743 fi 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7745 $as_echo "$lt_cv_truncate_bin" >&6; } 7746 7747 7748 7749 7750 7751 7752 7753 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7754 func_cc_basename () 7755 { 7756 for cc_temp in $*""; do 7757 case $cc_temp in 7758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7760 \-*) ;; 7761 *) break;; 7762 esac 7763 done 7764 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7765 } 7766 7767 # Check whether --enable-libtool-lock was given. 7768 if test "${enable_libtool_lock+set}" = set; then : 7769 enableval=$enable_libtool_lock; 7770 fi 7771 7772 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7773 7774 # Some flags need to be propagated to the compiler or linker for good 7775 # libtool support. 7776 case $host in 7777 ia64-*-hpux*) 7778 # Find out what ABI is being produced by ac_compile, and set mode 7779 # options accordingly. 7780 echo 'int i;' > conftest.$ac_ext 7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7782 (eval $ac_compile) 2>&5 7783 ac_status=$? 7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7785 test $ac_status = 0; }; then 7786 case `/usr/bin/file conftest.$ac_objext` in 7787 *ELF-32*) 7788 HPUX_IA64_MODE=32 7789 ;; 7790 *ELF-64*) 7791 HPUX_IA64_MODE=64 7792 ;; 7793 esac 7794 fi 7795 rm -rf conftest* 7796 ;; 7797 *-*-irix6*) 7798 # Find out what ABI is being produced by ac_compile, and set linker 7799 # options accordingly. 7800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7802 (eval $ac_compile) 2>&5 7803 ac_status=$? 7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7805 test $ac_status = 0; }; then 7806 if test yes = "$lt_cv_prog_gnu_ld"; then 7807 case `/usr/bin/file conftest.$ac_objext` in 7808 *32-bit*) 7809 LD="${LD-ld} -melf32bsmip" 7810 ;; 7811 *N32*) 7812 LD="${LD-ld} -melf32bmipn32" 7813 ;; 7814 *64-bit*) 7815 LD="${LD-ld} -melf64bmip" 7816 ;; 7817 esac 7818 else 7819 case `/usr/bin/file conftest.$ac_objext` in 7820 *32-bit*) 7821 LD="${LD-ld} -32" 7822 ;; 7823 *N32*) 7824 LD="${LD-ld} -n32" 7825 ;; 7826 *64-bit*) 7827 LD="${LD-ld} -64" 7828 ;; 7829 esac 7830 fi 7831 fi 7832 rm -rf conftest* 7833 ;; 7834 7835 mips64*-*linux*) 7836 # Find out what ABI is being produced by ac_compile, and set linker 7837 # options accordingly. 7838 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7840 (eval $ac_compile) 2>&5 7841 ac_status=$? 7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7843 test $ac_status = 0; }; then 7844 emul=elf 7845 case `/usr/bin/file conftest.$ac_objext` in 7846 *32-bit*) 7847 emul="${emul}32" 7848 ;; 7849 *64-bit*) 7850 emul="${emul}64" 7851 ;; 7852 esac 7853 case `/usr/bin/file conftest.$ac_objext` in 7854 *MSB*) 7855 emul="${emul}btsmip" 7856 ;; 7857 *LSB*) 7858 emul="${emul}ltsmip" 7859 ;; 7860 esac 7861 case `/usr/bin/file conftest.$ac_objext` in 7862 *N32*) 7863 emul="${emul}n32" 7864 ;; 7865 esac 7866 LD="${LD-ld} -m $emul" 7867 fi 7868 rm -rf conftest* 7869 ;; 7870 7871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7873 # Find out what ABI is being produced by ac_compile, and set linker 7874 # options accordingly. Note that the listed cases only cover the 7875 # situations where additional linker options are needed (such as when 7876 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7877 # vice versa); the common cases where no linker options are needed do 7878 # not appear in the list. 7879 echo 'int i;' > conftest.$ac_ext 7880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7881 (eval $ac_compile) 2>&5 7882 ac_status=$? 7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7884 test $ac_status = 0; }; then 7885 case `/usr/bin/file conftest.o` in 7886 *32-bit*) 7887 case $host in 7888 x86_64-*kfreebsd*-gnu) 7889 LD="${LD-ld} -m elf_i386_fbsd" 7890 ;; 7891 x86_64-*linux*) 7892 case `/usr/bin/file conftest.o` in 7893 *x86-64*) 7894 LD="${LD-ld} -m elf32_x86_64" 7895 ;; 7896 *) 7897 LD="${LD-ld} -m elf_i386" 7898 ;; 7899 esac 7900 ;; 7901 powerpc64le-*linux*) 7902 LD="${LD-ld} -m elf32lppclinux" 7903 ;; 7904 powerpc64-*linux*) 7905 LD="${LD-ld} -m elf32ppclinux" 7906 ;; 7907 s390x-*linux*) 7908 LD="${LD-ld} -m elf_s390" 7909 ;; 7910 sparc64-*linux*) 7911 LD="${LD-ld} -m elf32_sparc" 7912 ;; 7913 esac 7914 ;; 7915 *64-bit*) 7916 case $host in 7917 x86_64-*kfreebsd*-gnu) 7918 LD="${LD-ld} -m elf_x86_64_fbsd" 7919 ;; 7920 x86_64-*linux*) 7921 LD="${LD-ld} -m elf_x86_64" 7922 ;; 7923 powerpcle-*linux*) 7924 LD="${LD-ld} -m elf64lppc" 7925 ;; 7926 powerpc-*linux*) 7927 LD="${LD-ld} -m elf64ppc" 7928 ;; 7929 s390*-*linux*|s390*-*tpf*) 7930 LD="${LD-ld} -m elf64_s390" 7931 ;; 7932 sparc*-*linux*) 7933 LD="${LD-ld} -m elf64_sparc" 7934 ;; 7935 esac 7936 ;; 7937 esac 7938 fi 7939 rm -rf conftest* 7940 ;; 7941 7942 *-*-sco3.2v5*) 7943 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7944 SAVE_CFLAGS=$CFLAGS 7945 CFLAGS="$CFLAGS -belf" 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7947 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7948 if ${lt_cv_cc_needs_belf+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950 else 7951 ac_ext=c 7952 ac_cpp='$CPP $CPPFLAGS' 7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7956 7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7958 /* end confdefs.h. */ 7959 7960 int 7961 main () 7962 { 7963 7964 ; 7965 return 0; 7966 } 7967 _ACEOF 7968 if ac_fn_c_try_link "$LINENO"; then : 7969 lt_cv_cc_needs_belf=yes 7970 else 7971 lt_cv_cc_needs_belf=no 7972 fi 7973 rm -f core conftest.err conftest.$ac_objext \ 7974 conftest$ac_exeext conftest.$ac_ext 7975 ac_ext=c 7976 ac_cpp='$CPP $CPPFLAGS' 7977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7979 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7980 7981 fi 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7983 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7984 if test yes != "$lt_cv_cc_needs_belf"; then 7985 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7986 CFLAGS=$SAVE_CFLAGS 7987 fi 7988 ;; 7989 *-*solaris*) 7990 # Find out what ABI is being produced by ac_compile, and set linker 7991 # options accordingly. 7992 echo 'int i;' > conftest.$ac_ext 7993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7994 (eval $ac_compile) 2>&5 7995 ac_status=$? 7996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7997 test $ac_status = 0; }; then 7998 case `/usr/bin/file conftest.o` in 7999 *64-bit*) 8000 case $lt_cv_prog_gnu_ld in 8001 yes*) 8002 case $host in 8003 i?86-*-solaris*|x86_64-*-solaris*) 8004 LD="${LD-ld} -m elf_x86_64" 8005 ;; 8006 sparc*-*-solaris*) 8007 LD="${LD-ld} -m elf64_sparc" 8008 ;; 8009 esac 8010 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8011 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8012 LD=${LD-ld}_sol2 8013 fi 8014 ;; 8015 *) 8016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8017 LD="${LD-ld} -64" 8018 fi 8019 ;; 8020 esac 8021 ;; 8022 esac 8023 fi 8024 rm -rf conftest* 8025 ;; 8026 esac 8027 8028 need_locks=$enable_libtool_lock 8029 8030 if test -n "$ac_tool_prefix"; then 8031 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8032 set dummy ${ac_tool_prefix}mt; ac_word=$2 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8034 $as_echo_n "checking for $ac_word... " >&6; } 8035 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037 else 8038 if test -n "$MANIFEST_TOOL"; then 8039 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8040 else 8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8042 for as_dir in $PATH 8043 do 8044 IFS=$as_save_IFS 8045 test -z "$as_dir" && as_dir=. 8046 for ac_exec_ext in '' $ac_executable_extensions; do 8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8048 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8050 break 2 8051 fi 8052 done 8053 done 8054 IFS=$as_save_IFS 8055 8056 fi 8057 fi 8058 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8059 if test -n "$MANIFEST_TOOL"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8061 $as_echo "$MANIFEST_TOOL" >&6; } 8062 else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064 $as_echo "no" >&6; } 8065 fi 8066 8067 8068 fi 8069 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8070 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8071 # Extract the first word of "mt", so it can be a program name with args. 8072 set dummy mt; ac_word=$2 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8074 $as_echo_n "checking for $ac_word... " >&6; } 8075 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077 else 8078 if test -n "$ac_ct_MANIFEST_TOOL"; then 8079 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8080 else 8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8082 for as_dir in $PATH 8083 do 8084 IFS=$as_save_IFS 8085 test -z "$as_dir" && as_dir=. 8086 for ac_exec_ext in '' $ac_executable_extensions; do 8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8088 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8090 break 2 8091 fi 8092 done 8093 done 8094 IFS=$as_save_IFS 8095 8096 fi 8097 fi 8098 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8099 if test -n "$ac_ct_MANIFEST_TOOL"; then 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8101 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8102 else 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8104 $as_echo "no" >&6; } 8105 fi 8106 8107 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8108 MANIFEST_TOOL=":" 8109 else 8110 case $cross_compiling:$ac_tool_warned in 8111 yes:) 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8114 ac_tool_warned=yes ;; 8115 esac 8116 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8117 fi 8118 else 8119 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8120 fi 8121 8122 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8124 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8125 if ${lt_cv_path_mainfest_tool+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127 else 8128 lt_cv_path_mainfest_tool=no 8129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8131 cat conftest.err >&5 8132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8133 lt_cv_path_mainfest_tool=yes 8134 fi 8135 rm -f conftest* 8136 fi 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8138 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 8139 if test yes != "$lt_cv_path_mainfest_tool"; then 8140 MANIFEST_TOOL=: 8141 fi 8142 8143 8144 8145 8146 8147 8148 case $host_os in 8149 rhapsody* | darwin*) 8150 if test -n "$ac_tool_prefix"; then 8151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8154 $as_echo_n "checking for $ac_word... " >&6; } 8155 if ${ac_cv_prog_DSYMUTIL+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157 else 8158 if test -n "$DSYMUTIL"; then 8159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8160 else 8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8162 for as_dir in $PATH 8163 do 8164 IFS=$as_save_IFS 8165 test -z "$as_dir" && as_dir=. 8166 for ac_exec_ext in '' $ac_executable_extensions; do 8167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8170 break 2 8171 fi 8172 done 8173 done 8174 IFS=$as_save_IFS 8175 8176 fi 8177 fi 8178 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8179 if test -n "$DSYMUTIL"; then 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8181 $as_echo "$DSYMUTIL" >&6; } 8182 else 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8184 $as_echo "no" >&6; } 8185 fi 8186 8187 8188 fi 8189 if test -z "$ac_cv_prog_DSYMUTIL"; then 8190 ac_ct_DSYMUTIL=$DSYMUTIL 8191 # Extract the first word of "dsymutil", so it can be a program name with args. 8192 set dummy dsymutil; ac_word=$2 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8194 $as_echo_n "checking for $ac_word... " >&6; } 8195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197 else 8198 if test -n "$ac_ct_DSYMUTIL"; then 8199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8200 else 8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8202 for as_dir in $PATH 8203 do 8204 IFS=$as_save_IFS 8205 test -z "$as_dir" && as_dir=. 8206 for ac_exec_ext in '' $ac_executable_extensions; do 8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8210 break 2 8211 fi 8212 done 8213 done 8214 IFS=$as_save_IFS 8215 8216 fi 8217 fi 8218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8219 if test -n "$ac_ct_DSYMUTIL"; then 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8221 $as_echo "$ac_ct_DSYMUTIL" >&6; } 8222 else 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8224 $as_echo "no" >&6; } 8225 fi 8226 8227 if test "x$ac_ct_DSYMUTIL" = x; then 8228 DSYMUTIL=":" 8229 else 8230 case $cross_compiling:$ac_tool_warned in 8231 yes:) 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8234 ac_tool_warned=yes ;; 8235 esac 8236 DSYMUTIL=$ac_ct_DSYMUTIL 8237 fi 8238 else 8239 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8240 fi 8241 8242 if test -n "$ac_tool_prefix"; then 8243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8246 $as_echo_n "checking for $ac_word... " >&6; } 8247 if ${ac_cv_prog_NMEDIT+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249 else 8250 if test -n "$NMEDIT"; then 8251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8252 else 8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8254 for as_dir in $PATH 8255 do 8256 IFS=$as_save_IFS 8257 test -z "$as_dir" && as_dir=. 8258 for ac_exec_ext in '' $ac_executable_extensions; do 8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8262 break 2 8263 fi 8264 done 8265 done 8266 IFS=$as_save_IFS 8267 8268 fi 8269 fi 8270 NMEDIT=$ac_cv_prog_NMEDIT 8271 if test -n "$NMEDIT"; then 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8273 $as_echo "$NMEDIT" >&6; } 8274 else 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8276 $as_echo "no" >&6; } 8277 fi 8278 8279 8280 fi 8281 if test -z "$ac_cv_prog_NMEDIT"; then 8282 ac_ct_NMEDIT=$NMEDIT 8283 # Extract the first word of "nmedit", so it can be a program name with args. 8284 set dummy nmedit; ac_word=$2 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8286 $as_echo_n "checking for $ac_word... " >&6; } 8287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289 else 8290 if test -n "$ac_ct_NMEDIT"; then 8291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8