Mercurial > mxe-octave
annotate src/pstoedit-4-winlibemf.patch @ 3814:a6140fcf5631
pstoedit: enable wmf/emf for windows
* src/pstoedit-4-winlibemf.patch: new file
* dist-files.mk: add pstoedit-4-winlibemf.patch
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 28 Feb 2015 14:27:27 -0500 |
parents | |
children | deed2268e330 |
rev | line source |
---|---|
3814
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 diff -ur pstoedit-3.62/configure.ac pstoedit-3.62.new/configure.ac |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 --- pstoedit-3.62/configure.ac 2013-03-10 14:45:43.000000000 -0400 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
3 +++ pstoedit-3.62.new/configure.ac 2015-02-28 14:17:10.000000000 -0500 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 @@ -324,6 +324,16 @@ |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 OLD_CPPFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
6 OLD_LIBS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
7 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
8 +dnl if windows we can just enable emf/wmf support |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
9 +AC_MSG_CHECKING(for windows.h) |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
10 +AC_CHECK_HEADER(windows.h, |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
11 + [have_windows_h=yes]) |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
12 + |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
13 +if test "${have_windows_h}" = "yes"; then |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
14 + AC_MSG_RESULT([yes]) |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
15 +else |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
16 + AC_MSG_RESULT([yes]) |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
17 +fi |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
18 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
19 AC_ARG_WITH(libemf-src, |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
20 [ --with-libemf-src=DIR look for libEMF src in dir (e.g. /usr/local/lib)], |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
21 @@ -382,8 +392,14 @@ |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
22 if test -n "${LIBEMF_LDFLAGS}" && test -n "${LIBEMF_CFLAGS}"; then |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
23 HAVE_LIBEMF=yes |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
24 else |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
25 - LIBEMF_CFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
26 - LIBEMF_LDFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
27 + if test "${have_windows_h}" = "yes"; then |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
28 + HAVE_LIBEMF=yes |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
29 + LIBEMF_CFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
30 + LIBEMF_LDFLAGS=-lgdi32 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
31 + else |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
32 + LIBEMF_CFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
33 + LIBEMF_LDFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
34 + fi |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
35 fi |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
36 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
37 AC_SUBST(LIBEMF_LDFLAGS) |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
38 Only in pstoedit-3.62.new: configure.orig |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
39 Only in pstoedit-3.62.new: tmp |