llvm.org GIT mirror llvm / bbf7a8a
For PR351: Make LLVM_ON_UNIX and LLVM_ON_WIN32 available in the makefiles git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19205 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 14 years ago
3 changed file(s) with 48 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
2525 LLVM_MANDIR := @LLVM_MANDIR@
2626 LLVM_CONFIGTIME := @LLVM_CONFIGTIME@
2727 LLVM_TARBALL_NAME := @PACKAGE_NAME@-@PACKAGE_VERSION@
28
29 # Determine if we're on a unix type operating system
30 LLVM_ON_UNIX:=@LLVM_ON_UNIX@
31 LLVM_ON_WIN32:=@LLVM_ON_WIN32@
2832
2933 # Target operating system for which LLVM will be compiled.
3034 OS=@OS@
146146 case $llvm_cv_platform_type in
147147 Unix)
148148 AC_DEFINE([LLVM_ON_UNIX],[1],[Define if this is Unixish platform])
149 AC_SUBST(LLVM_ON_UNIX,[1])
150 AC_SUBST(LLVM_ON_WIN32,[0])
149151 ;;
150152 Win32)
151153 AC_DEFINE([LLVM_ON_WIN32],[1],[Define if this is Win32ish platform])
154 AC_SUBST(LLVM_ON_UNIX,[0])
155 AC_SUBST(LLVM_ON_WIN32,[1])
152156 ;;
153157 esac
154158
475475 # include
476476 #endif"
477477
478 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
478 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479479 ac_subst_files=''
480480
481481 # Initialize some variables set by options.
17551755 #define LLVM_ON_UNIX 1
17561756 _ACEOF
17571757
1758 LLVM_ON_UNIX=1
1759
1760 LLVM_ON_WIN32=0
1761
17581762 ;;
17591763 Win32)
17601764
17611765 cat >>confdefs.h <<\_ACEOF
17621766 #define LLVM_ON_WIN32 1
17631767 _ACEOF
1768
1769 LLVM_ON_UNIX=0
1770
1771 LLVM_ON_WIN32=1
17641772
17651773 ;;
17661774 esac
82168224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
82178225 lt_status=$lt_dlunknown
82188226 cat > conftest.$ac_ext <
8219 #line 8220 "configure"
8227 #line 8228 "configure"
82208228 #include "confdefs.h"
82218229
82228230 #if HAVE_DLFCN_H
1020710215 ;;
1020810216 *-*-irix6*)
1020910217 # Find out which ABI we are using.
10210 echo '#line 10211 "configure"' > conftest.$ac_ext
10218 echo '#line 10219 "configure"' > conftest.$ac_ext
1021110219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1021210220 (eval $ac_compile) 2>&5
1021310221 ac_status=$?
1069210700
1069310701
1069410702 # Provide some information about the compiler.
10695 echo "$as_me:10696:" \
10703 echo "$as_me:10704:" \
1069610704 "checking for Fortran 77 compiler version" >&5
1069710705 ac_compiler=`set X $ac_compile; echo $2`
1069810706 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1174911757 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1175011758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1175111759 -e 's:$: $lt_compiler_flag:'`
11752 (eval echo "\"\$as_me:11753: $lt_compile\"" >&5)
11760 (eval echo "\"\$as_me:11761: $lt_compile\"" >&5)
1175311761 (eval "$lt_compile" 2>conftest.err)
1175411762 ac_status=$?
1175511763 cat conftest.err >&5
11756 echo "$as_me:11757: \$? = $ac_status" >&5
11764 echo "$as_me:11765: \$? = $ac_status" >&5
1175711765 if (exit $ac_status) && test -s "$ac_outfile"; then
1175811766 # The compiler can only warn and ignore the option if not recognized
1175911767 # So say no if there are warnings
1199212000 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1199312001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1199412002 -e 's:$: $lt_compiler_flag:'`
11995 (eval echo "\"\$as_me:11996: $lt_compile\"" >&5)
12003 (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
1199612004 (eval "$lt_compile" 2>conftest.err)
1199712005 ac_status=$?
1199812006 cat conftest.err >&5
11999 echo "$as_me:12000: \$? = $ac_status" >&5
12007 echo "$as_me:12008: \$? = $ac_status" >&5
1200012008 if (exit $ac_status) && test -s "$ac_outfile"; then
1200112009 # The compiler can only warn and ignore the option if not recognized
1200212010 # So say no if there are warnings
1205212060 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1205312061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1205412062 -e 's:$: $lt_compiler_flag:'`
12055 (eval echo "\"\$as_me:12056: $lt_compile\"" >&5)
12063 (eval echo "\"\$as_me:12064: $lt_compile\"" >&5)
1205612064 (eval "$lt_compile" 2>out/conftest.err)
1205712065 ac_status=$?
1205812066 cat out/conftest.err >&5
12059 echo "$as_me:12060: \$? = $ac_status" >&5
12067 echo "$as_me:12068: \$? = $ac_status" >&5
1206012068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1206112069 then
1206212070 # The compiler can only warn and ignore the option if not recognized
1423714245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1423814246 lt_status=$lt_dlunknown
1423914247 cat > conftest.$ac_ext <
14240 #line 14241 "configure"
14248 #line 14249 "configure"
1424114249 #include "confdefs.h"
1424214250
1424314251 #if HAVE_DLFCN_H
1433514343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1433614344 lt_status=$lt_dlunknown
1433714345 cat > conftest.$ac_ext <
14338 #line 14339 "configure"
14346 #line 14347 "configure"
1433914347 #include "confdefs.h"
1434014348
1434114349 #if HAVE_DLFCN_H
1652816536 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1652916537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1653016538 -e 's:$: $lt_compiler_flag:'`
16531 (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16539 (eval echo "\"\$as_me:16540: $lt_compile\"" >&5)
1653216540 (eval "$lt_compile" 2>conftest.err)
1653316541 ac_status=$?
1653416542 cat conftest.err >&5
16535 echo "$as_me:16536: \$? = $ac_status" >&5
16543 echo "$as_me:16544: \$? = $ac_status" >&5
1653616544 if (exit $ac_status) && test -s "$ac_outfile"; then
1653716545 # The compiler can only warn and ignore the option if not recognized
1653816546 # So say no if there are warnings
1658816596 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1658916597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1659016598 -e 's:$: $lt_compiler_flag:'`
16591 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16599 (eval echo "\"\$as_me:16600: $lt_compile\"" >&5)
1659216600 (eval "$lt_compile" 2>out/conftest.err)
1659316601 ac_status=$?
1659416602 cat out/conftest.err >&5
16595 echo "$as_me:16596: \$? = $ac_status" >&5
16603 echo "$as_me:16604: \$? = $ac_status" >&5
1659616604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1659716605 then
1659816606 # The compiler can only warn and ignore the option if not recognized
1794917957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1795017958 lt_status=$lt_dlunknown
1795117959 cat > conftest.$ac_ext <
17952 #line 17953 "configure"
17960 #line 17961 "configure"
1795317961 #include "confdefs.h"
1795417962
1795517963 #if HAVE_DLFCN_H
1804718055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1804818056 lt_status=$lt_dlunknown
1804918057 cat > conftest.$ac_ext <
18050 #line 18051 "configure"
18058 #line 18059 "configure"
1805118059 #include "confdefs.h"
1805218060
1805318061 #if HAVE_DLFCN_H
1888418892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1888518893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1888618894 -e 's:$: $lt_compiler_flag:'`
18887 (eval echo "\"\$as_me:18888: $lt_compile\"" >&5)
18895 (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
1888818896 (eval "$lt_compile" 2>conftest.err)
1888918897 ac_status=$?
1889018898 cat conftest.err >&5
18891 echo "$as_me:18892: \$? = $ac_status" >&5
18899 echo "$as_me:18900: \$? = $ac_status" >&5
1889218900 if (exit $ac_status) && test -s "$ac_outfile"; then
1889318901 # The compiler can only warn and ignore the option if not recognized
1889418902 # So say no if there are warnings
1894418952 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1894518953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1894618954 -e 's:$: $lt_compiler_flag:'`
18947 (eval echo "\"\$as_me:18948: $lt_compile\"" >&5)
18955 (eval echo "\"\$as_me:18956: $lt_compile\"" >&5)
1894818956 (eval "$lt_compile" 2>out/conftest.err)
1894918957 ac_status=$?
1895018958 cat out/conftest.err >&5
18951 echo "$as_me:18952: \$? = $ac_status" >&5
18959 echo "$as_me:18960: \$? = $ac_status" >&5
1895218960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1895318961 then
1895418962 # The compiler can only warn and ignore the option if not recognized
2098320991 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2098420992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2098520993 -e 's:$: $lt_compiler_flag:'`
20986 (eval echo "\"\$as_me:20987: $lt_compile\"" >&5)
20994 (eval echo "\"\$as_me:20995: $lt_compile\"" >&5)
2098720995 (eval "$lt_compile" 2>conftest.err)
2098820996 ac_status=$?
2098920997 cat conftest.err >&5
20990 echo "$as_me:20991: \$? = $ac_status" >&5
20998 echo "$as_me:20999: \$? = $ac_status" >&5
2099120999 if (exit $ac_status) && test -s "$ac_outfile"; then
2099221000 # The compiler can only warn and ignore the option if not recognized
2099321001 # So say no if there are warnings
2122621234 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2122721235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2122821236 -e 's:$: $lt_compiler_flag:'`
21229 (eval echo "\"\$as_me:21230: $lt_compile\"" >&5)
21237 (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
2123021238 (eval "$lt_compile" 2>conftest.err)
2123121239 ac_status=$?
2123221240 cat conftest.err >&5
21233 echo "$as_me:21234: \$? = $ac_status" >&5
21241 echo "$as_me:21242: \$? = $ac_status" >&5
2123421242 if (exit $ac_status) && test -s "$ac_outfile"; then
2123521243 # The compiler can only warn and ignore the option if not recognized
2123621244 # So say no if there are warnings
2128621294 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2128721295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2128821296 -e 's:$: $lt_compiler_flag:'`
21289 (eval echo "\"\$as_me:21290: $lt_compile\"" >&5)
21297 (eval echo "\"\$as_me:21298: $lt_compile\"" >&5)
2129021298 (eval "$lt_compile" 2>out/conftest.err)
2129121299 ac_status=$?
2129221300 cat out/conftest.err >&5
21293 echo "$as_me:21294: \$? = $ac_status" >&5
21301 echo "$as_me:21302: \$? = $ac_status" >&5
2129421302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2129521303 then
2129621304 # The compiler can only warn and ignore the option if not recognized
2347123479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2347223480 lt_status=$lt_dlunknown
2347323481 cat > conftest.$ac_ext <
23474 #line 23475 "configure"
23482 #line 23483 "configure"
2347523483 #include "confdefs.h"
2347623484
2347723485 #if HAVE_DLFCN_H
2356923577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2357023578 lt_status=$lt_dlunknown
2357123579 cat > conftest.$ac_ext <
23572 #line 23573 "configure"
23580 #line 23581 "configure"
2357323581 #include "confdefs.h"
2357423582
2357523583 #if HAVE_DLFCN_H
3083230840 s,@target_vendor@,$target_vendor,;t t
3083330841 s,@target_os@,$target_os,;t t
3083430842 s,@OS@,$OS,;t t
30843 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30844 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
3083530845 s,@ARCH@,$ARCH,;t t
3083630846 s,@ENDIAN@,$ENDIAN,;t t
3083730847 s,@CC@,$CC,;t t