"Fossies" - the Fresh Open Source Software Archive 
Member "mozplugger-2.1.6/configure.ac" (17 Apr 2014, 6397 Bytes) of package /linux/www/old/mozplugger-2.1.6.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #
2 # This file is part of mozplugger a fork of plugger, for list of developers
3 # see the README file.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
18 #
19
20 # Process this file with autoconf to produce a configure script.
21
22 AC_PREREQ([2.69])
23 AC_INIT([mozplugger], [2.1.6])
24 #AC_INIT([mozplugger], [CVS-2013-Feb-18])
25 AC_CONFIG_SRCDIR([child.c])
26 AC_CONFIG_HEADERS([config.h])
27
28 # Checks for programs.
29 AC_PROG_CC
30 AC_PROG_LN_S
31 AC_PROG_MAKE_SET
32
33 # Determine the linker flags for mozplugger.so
34 LDSHARED='-shared -Wl,--version-script=exportmap'
35 PLATFORM="x`uname`"
36 XCFLAGS="-fPIC -Wall -O2 -Wdeclaration-after-statement"
37 BIN2O="ld -r -b binary"
38 MOZPLUGGER_SO_BLOB="mozplugger_so_blob.o"
39
40 if test "${PLATFORM}" = xIRIX; then
41 XCFLAGS="-fPIC -O2"
42 LDSHARED='-shared -n32'
43 MOZPLUGGER_SO_BLOB=""
44 fi
45 if test "${PLATFORM}" = xAIX; then
46 XCFLAGS="-fPIC -O2"
47 LDSHARED='-G -bexpall'
48 MOZPLUGGER_SO_BLOB=""
49 fi
50 if test "${PLATFORM}${CC}" = "xHP-UXgcc"; then
51 XCFLAGS="-fPIC -O2"
52 LDSHARED='-b'
53 MOZPLUGGER_SO_BLOB=""
54 fi
55 if test "${PLATFORM}${CC}" = "xHP-UXcc"; then
56 XCFLAGS='+DAportable -Ae +z +02'
57 LDSHARED='-b +e NP_GetValue +e NP_Initialize +e NP_Shutdown +e NP_GetMIMEDescription'
58 MOZPLUGGER_SO_BLOB=""
59 fi
60 if test "${PLATFORM}${CC}" = "xSunOSgcc"; then
61 XCFLAGS="-fPIC -O2"
62 LDSHARED='-G'
63 MOZPLUGGER_SO_BLOB=""
64 fi
65 if test "${PLATFORM}${CC}" = "xSunOScc"; then
66 XCFLAGS='-Kpic -O'
67 LDSHARED='-G'
68 MOZPLUGGER_SO_BLOB=""
69 fi
70 if test "${PLATFORM}" = "xOSF1"; then
71 XCFLAGS='-shared'
72 LDSHARED='-expect_unresolved "*" -shared -msym -O3'
73 MOZPLUGGER_SO_BLOB=""
74 fi
75 #freebsd-aout:
76 # ${MAKE} all XCFLAGS='-fPIC -aout' XLDFLAGS='-shared -aout'
77
78
79 XCPPFLAGS=
80
81 # Checks for X path
82 AC_PATH_X
83 if test "x$x_includes" != x; then
84 XCPPFLAGS="$XCPPFLAGS -I$x_includes"
85 fi
86 if test "x$x_libraries" != x; then
87 LDFLAGS="$LDFLAGS -L$x_libraries"
88 fi
89
90 # Work out where plugins should be installed
91 PLUGINDIRS=
92 if test "$libdir" = '${exec_prefix}/lib64'; then
93 PLUGINLIB=lib64
94 else
95 PLUGINLIB=lib
96 fi
97
98 AC_ARG_VAR(PLUGINDIR,AS_HELP_STRING([The path where the plugin is to be installed]))
99 AC_CHECK_FILE([${PLUGINDIR}], [PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"])
100
101 #/usr/lib/mozilla/plugins/
102 #/usr/lib/netscape/plugins
103 #/usr/lib/firefox/plugins
104 #$MOZILLA_HOME/plugins
105 #/usr/lib/chromium/plugins
106 #/usr/local/lib/browser_plugins
107
108 PLUGINDIR=${MOZ_PLUGIN_PATH}
109 AC_CHECK_FILE([${PLUGINDIR}], [PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"])
110
111 PLUGINDIR=/usr/${PLUGINLIB}/mozilla/plugins
112 AC_CHECK_FILE([${PLUGINDIR}], [PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"])
113
114 PLUGINDIR=/usr/${PLUGINLIB}/firefox/plugins
115 AC_CHECK_FILE([${PLUGINDIR}], [PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"])
116
117 PLUGINDIR=/usr/local/lib/browser_plugins
118 AC_CHECK_FILE([${PLUGINDIR}], [PLUGINDIRS="${PLUGINDIRS} ${PLUGINDIR}"])
119
120 # Checks for libraries.
121 AC_CHECK_LIB([X11], [XDisplayName])
122
123
124 # Check to see if gcov required...
125 AC_ARG_ENABLE(gcov,
126 AS_HELP_STRING([--enable-gcov],
127 [enable test coverage with gcov @<:@default=no@:>@]),
128 [case "${enableval}" in
129 yes) gcov=true ;;
130 no) gcov=false ;;
131 *) AC_MSG_ERROR([bad value ${enableval} for --enable-gcov]) ;;
132 esac],
133 [gcov=false])
134 if test "x$gcov" = xtrue; then
135 AC_CHECK_LIB([gcov], [main],[LDFLAGS="${LDFLAGS} -lgcov"])
136 XCFLAGS="-g -fprofile-arcs -ftest-coverage -fstack-protector-all -Wall"
137 AC_DEFINE([GCOV])
138 fi
139
140 #Check to see if debug required...
141 AC_ARG_ENABLE(debug,
142 AS_HELP_STRING([--enable-debug],
143 [enable debug output @<:@default=no@:>@]),
144 [case "${enableval}" in
145 yes) debug=true ;;
146 no) debug=false ;;
147 *) AC_MSG_ERROR([Bad value ${enableval} for --enable-debug]) ;;
148 esac],
149 [debug=false])
150 if test "x$debug" = xtrue; then
151 AC_DEFINE([DEBUG])
152 else
153 AC_DEFINE([NODEBUG])
154 fi
155
156 #Check to see if Always Xembed...
157 AC_ARG_ENABLE(always-xembed,
158 AS_HELP_STRING([--enable-always-xembed],
159 [enable build with xembed always enabled @<:@default=no@:>@]),
160 [case "${enableval}" in
161 yes) xembed=true ;;
162 no) xembed=false ;;
163 *) AC_MSG_ERROR([Bad value ${enableval} for --enable-always-xembed]) ;;
164 esac],
165 [xembed=false])
166 if test "x${xembed}" = xtrue; then
167 AC_DEFINE([ALWAYS_NEEDS_XEMBED])
168 fi
169
170
171 # Checks for header files.
172 AC_CHECK_HEADERS([fcntl.h inttypes.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h utime.h])
173
174 # Checks for typedefs, structures, and compiler characteristics.
175 AC_HEADER_STDBOOL
176 AC_TYPE_INT16_T
177 AC_TYPE_INT32_T
178 AC_TYPE_PID_T
179 AC_TYPE_SIZE_T
180 AC_TYPE_SSIZE_T
181 AC_TYPE_UINT16_T
182 AC_TYPE_UINT32_T
183 AC_TYPE_UINT8_T
184
185 # Check to see if -lsocket and -lnsl is required (solaris)
186 AC_SEARCH_LIBS([gethostbyname], [nsl])
187 AC_SEARCH_LIBS([socket], [socket], [],
188 [AC_CHECK_LIB([socket], [socket],
189 [LIBS="-lsocket -lnsl $LIBS"], [], [-lnsl])])
190
191
192
193 # Checks for library functions.
194 AC_FUNC_FORK
195 AC_FUNC_MALLOC
196 AC_FUNC_REALLOC
197 AC_CHECK_FUNCS([alarm dup2 gethostname memmove memset mkdir putenv rmdir select strcasecmp strchr strcspn strncasecmp strrchr strstr strdup strtol getpwuid])
198
199 AC_CONFIG_FILES([Makefile])
200
201 AC_SUBST([XCFLAGS])
202 AC_SUBST([XCPPFLAGS])
203 AC_SUBST([LDSHARED])
204 AC_SUBST([PLUGINDIRS])
205 AC_SUBST([BIN2O])
206 AC_SUBST([MOZPLUGGER_SO_BLOB])
207
208 AC_DEFINE_UNQUOTED([VERSION], ["${PACKAGE_VERSION}"])
209 AC_DEFINE_UNQUOTED([GLOBAL_PLUGIN_DIRS], ["${PLUGINDIRS}"])
210 if test "x${MOZPLUGGER_SO_BLOB}" != x; then
211 AC_DEFINE([READ_FROM_INT_BLOB])
212 fi
213 AC_OUTPUT