11 exec_prefix=@exec_prefix@
13 # Unless you are creating a package conforming to some OS's standards, you
14 # probably do not want to modify the following directories:
18 # Configuration .lua files
19 ETCDIR=@sysconfdir@/@PACKAGE_TARNAME@
20 # Some .lua files and ion-* shell scripts
21 SHAREDIR=@datadir@/@PACKAGE_TARNAME@
25 DOCDIR=@datadir@/doc/@PACKAGE_TARNAME@
26 # Nothing at the moment
28 # Nothing at the moment
31 MODULEDIR=@libdir@/@PACKAGE_TARNAME@/mod
32 # Compiled Lua source code
33 LCDIR=@libdir@/@PACKAGE_TARNAME@/lc
34 # ion-completefile (does not belong in SHAREDIR being a binary file)
35 EXTRABINDIR=@libexecdir@/@PACKAGE_TARNAME@/bin
36 # For ion-completeman system-wide cache
37 #VARDIR=@localstatedir@/cache/@PACKAGE_TARNAME@
38 VARDIR=/var/cache/@PACKAGE_TARNAME@
40 LOCALEDIR=@prefix@/share/locale
47 # Set PRELOAD_MODULES=1 if your system does not support dynamically loaded
48 # modules through 'libdl' or has non-standard naming conventions.
49 PRELOAD_MODULES=@PRELOAD_MODULES@
51 # Flags to link with libdl.
59 # If you have installed Lua 5.0 from the official tarball without changing
60 # paths, this should do it.
63 LUA_INCLUDES = @LUA_INCLUDES@
67 # If you are using the Debian packages, the following settings should be
69 #LUA_LIBS=`lua-config50 --libs`
70 #LUA_INCLUDES=`lua-config50 --include`
76 ## X libraries, includes and options
79 #X11_PREFIX=/usr/X11R6
81 #X11_PREFIX=/usr/openwin
83 X11_LIBS=@X_EXTRA_LIBS@ @X_PRE_LIBS@ -lX11 @X_LIBS@
84 X11_INCLUDES=@X_CFLAGS@
86 # Change commenting to disable Xinerama support
87 XINERAMA_LIBS=@XINERAMA_LIBS@
88 DEFINES += @_DCF_NO_XINERAMA@
90 # XFree86 libraries up to 4.3.0 have a bug that will cause Ion to segfault
91 # if Opera is used when i18n support is enabled. The following setting
92 # should work around that situation.
93 DEFINES += @_DCF_XFREE86_TEXTPROP_BUG_WORKAROUND@
95 # Use the Xutf8 routines (XFree86 extension) instead of Xmb routines in
97 DEFINES += @_DCF_DE_USE_XUTF8@
99 # Remap F11 key to SunF36 and F12 to SunF37? You may want to set this
101 DEFINES += @_DCF_SUN_F1X_REMAP@
108 # You may uncomment this if you know your system has
109 # asprintf and vasprintf in the c library. (gnu libc has.)
110 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
111 # in sprintf_2.2/ is used.
112 HAS_SYSTEM_ASPRINTF=@HAS_SYSTEM_ASPRINTF@
115 # If you're on an archaic system (such as relatively recent *BSD releases)
116 # without even dummy multibyte/widechar and localisation support, you may
117 # have to uncomment the following line:
118 DEFINES += @_DCF_NO_LOCALE@
127 # Same as '-Wall -pedantic' without '-Wunused' as callbacks often
128 # have unused variables.
129 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
130 -Wtrigraphs -Wformat -Wchar-subscripts \
131 -Wparentheses -pedantic -Wuninitialized
133 CFLAGS=@CFLAGS@ $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
134 LDFLAGS=@LDFLAGS@ $(EXTRA_LIBS) $(LIBS)
135 EXPORT_DYNAMIC=-Xlinker --export-dynamic
137 # The following options are mainly for development use and can be used
138 # to check that the code seems to conform to some standards. Depending
139 # on the version and vendor of you libc, the options may or may not have
140 # expected results. If you define one of C99_SOURCE or XOPEN_SOURCE, you
141 # may also have to define the other.
145 #POSIX_SOURCE=@_D_POSIX_SOURCE@
148 #XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
150 #XOPEN_SOURCE=-D__EXTENSIONS__
152 #C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
154 # The -DCF_HAS_VA_COPY option should allow for some optimisations, and
155 # in some cases simply defining
156 C99_SOURCE=@_DCF_HAS_VA_COPY@
157 # might allow for those optimisations to be taken without any special
158 # libc or compiler options.
166 DO_MAKE_DEPEND=$(CC) -MM $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
167 MAKE_DEPEND=$(DO_MAKE_DEPEND) $(SOURCES) > $(DEPEND_FILE)