10:135c0599f883 | 11:215b49563679 |
---|---|
184 return 0 | 184 return 0 |
185 fi | 185 fi |
186 done | 186 done |
187 return 1 | 187 return 1 |
188 } | 188 } |
189 isnotplatform() | |
190 { | |
191 for p in $PLATFORM | |
192 do | |
193 if [ $p = $1 ]; then | |
194 return 1 | |
195 fi | |
196 done | |
197 return 0 | |
198 } | |
189 | 199 |
190 # generate config.mk and config.h | 200 # generate config.mk and config.h |
191 cat > $TEMP_DIR/config.mk << __EOF__ | 201 cat > $TEMP_DIR/config.mk << __EOF__ |
192 # | 202 # |
193 # config.mk generated by configure | 203 # config.mk generated by configure |
250 break | 260 break |
251 fi | 261 fi |
252 if ! $PKG_CONFIG libpq ; then | 262 if ! $PKG_CONFIG libpq ; then |
253 break | 263 break |
254 fi | 264 fi |
255 CFLAGS+=" `$PKG_CONFIG --cflags libpq`" | 265 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libpq`" |
256 LDFLAGS+=" `$PKG_CONFIG --libs libpq`" | 266 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libpq`" |
257 echo yes | 267 echo yes |
258 return 0 | 268 return 0 |
259 done | 269 done |
260 | 270 |
261 echo no | 271 echo no |
271 break | 281 break |
272 fi | 282 fi |
273 if ! $PKG_CONFIG openssl ; then | 283 if ! $PKG_CONFIG openssl ; then |
274 break | 284 break |
275 fi | 285 fi |
276 CFLAGS+=" `$PKG_CONFIG --cflags openssl`" | 286 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags openssl`" |
277 LDFLAGS+=" `$PKG_CONFIG --libs openssl`" | 287 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs openssl`" |
278 echo yes | 288 echo yes |
279 return 0 | 289 return 0 |
280 done | 290 done |
281 | 291 |
282 echo no | 292 echo no |
292 break | 302 break |
293 fi | 303 fi |
294 if ! $PKG_CONFIG libxml-2.0 ; then | 304 if ! $PKG_CONFIG libxml-2.0 ; then |
295 break | 305 break |
296 fi | 306 fi |
297 CFLAGS+=" `$PKG_CONFIG --cflags libxml-2.0`" | 307 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libxml-2.0`" |
298 LDFLAGS+=" `$PKG_CONFIG --libs libxml-2.0`" | 308 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libxml-2.0`" |
299 echo yes | 309 echo yes |
300 return 0 | 310 return 0 |
301 done | 311 done |
302 | 312 |
303 echo no | 313 echo no |
349 LDFLAGS= | 359 LDFLAGS= |
350 CXXFLAGS= | 360 CXXFLAGS= |
351 | 361 |
352 dependency_libxml2 | 362 dependency_libxml2 |
353 if [ $? -ne 0 ]; then | 363 if [ $? -ne 0 ]; then |
354 DEPENDENCIES_FAILED+="libxml2 " | 364 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libxml2 " |
355 ERROR=1 | 365 ERROR=1 |
356 fi | 366 fi |
357 dependency_openssl | 367 dependency_openssl |
358 if [ $? -ne 0 ]; then | 368 if [ $? -ne 0 ]; then |
359 DEPENDENCIES_FAILED+="openssl " | 369 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED openssl " |
360 ERROR=1 | 370 ERROR=1 |
361 fi | 371 fi |
362 | 372 |
363 | 373 |
364 echo >> $TEMP_DIR/config.mk | 374 echo >> $TEMP_DIR/config.mk |