diff --git a/.gitmodules b/.gitmodules index ae14e02ecc165..95d4bccf7cd16 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,6 +7,6 @@ [submodule "deps/openspecfun"] path = deps/openspecfun url = git://github.com/JuliaLang/openspecfun.git -[submodule "deps/libmojibake"] - path = deps/libmojibake - url = git://github.com/JuliaLang/libmojibake.git +[submodule "deps/utf8proc"] + path = deps/utf8proc + url = git://github.com/JuliaLang/utf8proc.git diff --git a/Make.inc b/Make.inc index ccf6cbd9cceac..99c3758cd54d0 100644 --- a/Make.inc +++ b/Make.inc @@ -35,7 +35,7 @@ USE_SYSTEM_SUITESPARSE=0 USE_SYSTEM_RMATH=0 USE_SYSTEM_LIBUV=0 USE_SYSTEM_UTF8PROC=0 -USE_SYSTEM_MOJIBAKE=0 +USE_SYSTEM_UTF8PROC=0 USE_SYSTEM_LIBGIT2=0 # Link to the LLVM shared library @@ -594,14 +594,10 @@ else LIBUV_INC = $(JULIAHOME)/deps/libuv/include endif -ifeq ($(USE_SYSTEM_MOJIBAKE), 1) - LIBMOJIBAKE = -lmojibake +ifeq ($(USE_SYSTEM_UTF8PROC), 1) + LIBUTF8PROC = -lutf8proc else - ifeq ($(USE_SYSTEM_UTF8PROC), 1) - LIBMOJIBAKE = -lutf8proc - else - LIBMOJIBAKE = $(build_libdir)/libmojibake.a - endif + LIBUTF8PROC = $(build_libdir)/libutf8proc.a endif # OS specific stuff diff --git a/deps/Makefile b/deps/Makefile index a48e8b28385dd..9c762d1ce8623 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -11,10 +11,10 @@ include $(JULIAHOME)/Make.inc # if you are adding a new target, it can help to copy an similar, existing target # # autoconf configure-driven scripts: llvm pcre arpack fftw unwind gmp mpfr patchelf uv -# custom Makefile rules: openlibm Rmath-julia dsfmt suitesparse-wrapper suitesparse lapack openblas mojibake objconv +# custom Makefile rules: openlibm Rmath-julia dsfmt suitesparse-wrapper suitesparse lapack openblas utf8proc objconv # CMake libs: libgit2 # -# downloaded from git: llvm-svn, uv, libopenlibm, mojibake, openspecfun +# downloaded from git: llvm-svn, uv, libopenlibm, utf8proc, openspecfun # # there are rules in this file with the . replaced by a % # this is some magic Makefile trick that tells make @@ -150,8 +150,8 @@ ifeq ($(USE_SYSTEM_SUITESPARSE), 0) STAGE2_DEPS += suitesparse endif -ifeq ($(USE_SYSTEM_MOJIBAKE), 0) -STAGE2_DEPS += mojibake +ifeq ($(USE_SYSTEM_UTF8PROC), 0) +STAGE2_DEPS += utf8proc endif # Only compile standalone LAPACK if we are not using OpenBLAS. @@ -183,7 +183,7 @@ install: $(addprefix install-, $(DEP_LIBS)) cleanall: $(addprefix clean-, $(DEP_LIBS)) distcleanall: $(addprefix distclean-, $(DEP_LIBS)) rm -rf $(build_prefix) -getall: get-llvm get-uv get-pcre get-openlibm get-openspecfun get-dsfmt get-Rmath-julia get-openblas get-lapack get-fftw get-suitesparse get-arpack get-unwind get-osxunwind get-gmp get-mpfr get-patchelf get-mojibake get-virtualenv get-objconv get-libgit2 +getall: get-llvm get-uv get-pcre get-openlibm get-openspecfun get-dsfmt get-Rmath-julia get-openblas get-lapack get-fftw get-suitesparse get-arpack get-unwind get-osxunwind get-gmp get-mpfr get-patchelf get-utf8proc get-virtualenv get-objconv get-libgit2 ## PATHS ## # sort is used to remove potential duplicates @@ -1344,47 +1344,47 @@ compile-fftw-double: $(FFTW_DOUBLE_OBJ_TARGET) check-fftw-double: fftw-$(FFTW_VER)-double/checked install-fftw-double: $(FFTW_DOUBLE_OBJ_TARGET) -## MOJIBAKE ## +## UTF8PROC ## -MOJIBAKE_SRC_TARGET = libmojibake/libmojibake.a -MOJIBAKE_OBJ_LIB = $(build_libdir)/libmojibake.a -MOJIBAKE_OBJ_HEADER = $(build_includedir)/mojibake.h -MOJIBAKE_OBJ_TARGET = $(MOJIBAKE_OBJ_LIB) $(MOJIBAKE_OBJ_HEADER) +UTF8PROC_SRC_TARGET = utf8proc/libutf8proc.a +UTF8PROC_OBJ_LIB = $(build_libdir)/libutf8proc.a +UTF8PROC_OBJ_HEADER = $(build_includedir)/utf8proc.h +UTF8PROC_OBJ_TARGET = $(UTF8PROC_OBJ_LIB) $(UTF8PROC_OBJ_HEADER) -libmojibake/Makefile: +utf8proc/Makefile: (cd .. && git submodule init && git submodule update) -ifeq (exists, $(shell [ -d libmojibake/.git ] && echo exists )) -$(MOJIBAKE_SRC_TARGET): libmojibake/.git/HEAD +ifeq (exists, $(shell [ -d utf8proc/.git ] && echo exists )) +$(UTF8PROC_SRC_TARGET): utf8proc/.git/HEAD endif -ifeq (exists, $(shell [ -d $(JULIAHOME)/.git/modules/deps/libmojibake ] && echo exists )) -$(MOJIBAKE_SRC_TARGET): $(JULIAHOME)/.git/modules/deps/libmojibake/HEAD +ifeq (exists, $(shell [ -d $(JULIAHOME)/.git/modules/deps/utf8proc ] && echo exists )) +$(UTF8PROC_SRC_TARGET): $(JULIAHOME)/.git/modules/deps/utf8proc/HEAD endif -$(MOJIBAKE_SRC_TARGET): libmojibake/Makefile - $(MAKE) -C libmojibake cc="$(CC) -O2 -std=c99 $(fPIC) -DMOJIBAKE_EXPORTS" AR="$(AR)" libmojibake.a +$(UTF8PROC_SRC_TARGET): utf8proc/Makefile + $(MAKE) -C utf8proc cc="$(CC) -O2 -std=c99 $(fPIC) -DUTF8PROC_EXPORTS" AR="$(AR)" libutf8proc.a touch -c $@ -libmojibake/checked: $(MOJIBAKE_SRC_TARGET) +utf8proc/checked: $(UTF8PROC_SRC_TARGET) ifeq ($(OS),$(BUILD_OS)) - -$(MAKE) -C libmojibake check + -$(MAKE) -C utf8proc check endif echo 1 > $@ -$(MOJIBAKE_OBJ_LIB): $(MOJIBAKE_SRC_TARGET) +$(UTF8PROC_OBJ_LIB): $(UTF8PROC_SRC_TARGET) cp -f $< $@ -$(MOJIBAKE_OBJ_HEADER): libmojibake/Makefile - cp -f libmojibake/mojibake.h $@ +$(UTF8PROC_OBJ_HEADER): utf8proc/Makefile + cp -f utf8proc/utf8proc.h $@ -clean-mojibake: - -$(MAKE) -C libmojibake clean - -rm -rf $(build_libdir)/libmojibake.a $(build_includedir)/mojibake.h -distclean-mojibake: clean-mojibake +clean-utf8proc: + -$(MAKE) -C utf8proc clean + -rm -rf $(build_libdir)/libutf8proc.a $(build_includedir)/utf8proc.h +distclean-utf8proc: clean-utf8proc -get-mojibake: libmojibake/Makefile -configure-mojibake: get-mojibake -compile-mojibake: $(MOJIBAKE_SRC_TARGET) -check-mojibake: libmojibake/checked -install-mojibake: $(MOJIBAKE_OBJ_TARGET) +get-utf8proc: utf8proc/Makefile +configure-utf8proc: get-utf8proc +compile-utf8proc: $(UTF8PROC_SRC_TARGET) +check-utf8proc: utf8proc/checked +install-utf8proc: $(UTF8PROC_OBJ_TARGET) ## SUITESPARSE ## diff --git a/deps/libmojibake b/deps/libmojibake deleted file mode 160000 index 86447ad060d6f..0000000000000 --- a/deps/libmojibake +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 86447ad060d6f4edf01f2a64b9598dfeeb6e6f7d diff --git a/deps/utf8proc b/deps/utf8proc new file mode 160000 index 0000000000000..e1fdad0ca9dc5 --- /dev/null +++ b/deps/utf8proc @@ -0,0 +1 @@ +Subproject commit e1fdad0ca9dc518b429439b6f4eac546a1bdd0de diff --git a/src/Makefile b/src/Makefile index 136374c6e884f..2d7a32bf001fd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -30,7 +30,7 @@ ifeq ($(USE_LLVM_SHLIB),1) LLVMLINK = $(call exec,$(LLVM_CONFIG) --ldflags) -lLLVM-$(call exec,$(LLVM_CONFIG) --version) endif -COMMON_LIBS = -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBMOJIBAKE) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS) +COMMON_LIBS = -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBUTF8PROC) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS) DEBUG_LIBS = $(WHOLE_ARCHIVE) $(BUILDDIR)/flisp/libflisp-debug.a $(WHOLE_ARCHIVE) $(BUILDDIR)/support/libsupport-debug.a $(COMMON_LIBS) RELEASE_LIBS = $(WHOLE_ARCHIVE) $(BUILDDIR)/flisp/libflisp.a $(WHOLE_ARCHIVE) $(BUILDDIR)/support/libsupport.a $(COMMON_LIBS) diff --git a/src/flisp/Makefile b/src/flisp/Makefile index 4739af77dab1e..5289cbf765107 100644 --- a/src/flisp/Makefile +++ b/src/flisp/Makefile @@ -22,11 +22,11 @@ HEADERS = $(wildcard *.h) $(LIBUV_INC)/uv.h OBJS = $(SRCS:%.c=$(BUILDDIR)/%.o) DOBJS = $(SRCS:%.c=$(BUILDDIR)/%.dbg.obj) LLTDIR = ../support -LLT = $(BUILDDIR)/$(LLTDIR)/libsupport.a $(LIBUV) $(LIBMOJIBAKE) +LLT = $(BUILDDIR)/$(LLTDIR)/libsupport.a $(LIBUV) $(LIBUTF8PROC) FLAGS = -I$(LLTDIR) $(CFLAGS) $(HFILEDIRS:%=-I%) \ -I$(LIBUV_INC) -I$(build_includedir) $(LIBDIRS:%=-L%) \ - -DLIBRARY_EXPORTS -DMOJIBAKE_EXPORTS + -DLIBRARY_EXPORTS -DUTF8PROC_EXPORTS ifneq ($(USEMSVC), 1) FLAGS += -Wall -Wno-strict-aliasing -DUSE_COMPUTED_GOTO -fvisibility=hidden endif diff --git a/src/flisp/Windows.mk b/src/flisp/Windows.mk index 2f62b50a5cbc9..9e9b83db129ec 100644 --- a/src/flisp/Windows.mk +++ b/src/flisp/Windows.mk @@ -29,17 +29,17 @@ OBJECTS = \ dirname.obj LIBUV = $(MAKEDIR)\..\..\deps\libuv\libuv.lib -LIBMOJIBAKE = $(MAKEDIR)\..\..\deps\libmojibake\libmojibake.lib +LIBUTF8PROC = $(MAKEDIR)\..\..\deps\libutf8proc\libutf8proc.lib LIBSUPPORT = $(MAKEDIR)\..\support\libsupport.lib -INCLUDE = $(INCLUDE);$(MAKEDIR)\..\..\deps\libuv\include;$(MAKEDIR)\..\..\deps\libmojibake;$(MAKEDIR)\..\support +INCLUDE = $(INCLUDE);$(MAKEDIR)\..\..\deps\libuv\include;$(MAKEDIR)\..\..\deps\libutf8proc;$(MAKEDIR)\..\support CFLAGS = $(CFLAGS) /Qstd=c99 -D_CRT_SECURE_NO_WARNINGS -DLIBRARY_EXPORTS LFLAGS = $(LFLAGS) kernel32.lib ws2_32.lib psapi.lib advapi32.lib iphlpapi.lib default: $(NAME).exe -$(NAME).exe: lib$(NAME).lib flmain.obj $(LIBSUPPORT) $(LIBUV) $(LIBMOJIBAKE) +$(NAME).exe: lib$(NAME).lib flmain.obj $(LIBSUPPORT) $(LIBUV) $(LIBUTF8PROC) $(LINK) $(LFLAGS) /OUT:$(NAME).exe /PDB:$(NAME).pdb /MAP $** $(LIBSUPPORT): @@ -48,8 +48,8 @@ $(LIBSUPPORT): $(LIBUV): PUSHD $(MAKEDIR)\..\..\deps\libuv && $(MAKE) /NOLOGO /F Windows.mk && POPD -$(LIBMOJIBAKE): - PUSHD $(MAKEDIR)\..\..\deps\libmojibake && cl -nologo /c utf8proc.c && $(AR) /OUT:libmojibake.lib utf8proc.obj && POPD +$(LIBUTF8PROC): + PUSHD $(MAKEDIR)\..\..\deps\libutf8proc && cl -nologo /c utf8proc.c && $(AR) /OUT:libutf8proc.lib utf8proc.obj && POPD lib$(NAME).lib: $(OBJECTS) $(AR) /OUT:lib$(NAME).lib $** diff --git a/src/flisp/julia_extensions.c b/src/flisp/julia_extensions.c index c5d584f10ce30..d5a9c2cfcfaf7 100644 --- a/src/flisp/julia_extensions.c +++ b/src/flisp/julia_extensions.c @@ -3,7 +3,7 @@ #include #include #include "flisp.h" -#include "mojibake.h" +#include "utf8proc.h" #ifdef __cplusplus extern "C" {