configure

branch
webdav
changeset 270
4cfaa02055cd
parent 267
4ded424f4a5f
child 287
a171da778817
equal deleted inserted replaced
269:3dfbd0b91950 270:4cfaa02055cd
249 break 249 break
250 fi 250 fi
251 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libpq`" 251 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libpq`"
252 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libpq`" 252 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libpq`"
253 CFLAGS="$CFLAGS -DENABLE_POSTGRESQL" 253 CFLAGS="$CFLAGS -DENABLE_POSTGRESQL"
254 cat >> $TEMP_DIR/make.mk << __EOF__
255 # Dependency: libpq
256 PLUGINS += postgresql
257
258 __EOF__
254 echo yes 259 echo yes
255 return 0 260 return 0
256 done 261 done
257 262
258 echo no 263 echo no
460 dependency_openssl 465 dependency_openssl
461 if [ $? -ne 0 ]; then 466 if [ $? -ne 0 ]; then
462 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED openssl " 467 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED openssl "
463 ERROR=1 468 ERROR=1
464 fi 469 fi
470
471 # Features
472
473
474 echo >> $TEMP_DIR/config.mk
475 if [ ! -z "${CFLAGS}" ]; then
476 echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk
477 fi
478 if [ ! -z "${CXXFLAGS}" ]; then
479 echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk
480 fi
481 if [ ! -z "${LDFLAGS}" ]; then
482 echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
483 fi
484
485 # Target: postgresql
486 CFLAGS=
487 LDFLAGS=
488 CXXFLAGS=
489
465 490
466 # Features 491 # Features
467 if [ ! -z "$FEATURE_POSTGRESQL" ]; then 492 if [ ! -z "$FEATURE_POSTGRESQL" ]; then
468 # check dependency 493 # check dependency
469 dependency_libpq 494 dependency_libpq
477 fi 502 fi
478 503
479 504
480 echo >> $TEMP_DIR/config.mk 505 echo >> $TEMP_DIR/config.mk
481 if [ ! -z "${CFLAGS}" ]; then 506 if [ ! -z "${CFLAGS}" ]; then
482 echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk 507 echo "POSTGRESQL_CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk
483 fi 508 fi
484 if [ ! -z "${CXXFLAGS}" ]; then 509 if [ ! -z "${CXXFLAGS}" ]; then
485 echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk 510 echo "POSTGRESQL_CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk
486 fi 511 fi
487 if [ ! -z "${LDFLAGS}" ]; then 512 if [ ! -z "${LDFLAGS}" ]; then
488 echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk 513 echo "POSTGRESQL_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
489 fi 514 fi
490 515
491 if [ $ERROR -ne 0 ]; then 516 if [ $ERROR -ne 0 ]; then
492 echo 517 echo
493 echo "Error: Unresolved dependencies" 518 echo "Error: Unresolved dependencies"

mercurial