test/configure

changeset 4
6bf4c948d0ba
parent 3
9d60baefa4ed
child 5
895bf81d3b6e
equal deleted inserted replaced
3:9d60baefa4ed 4:6bf4c948d0ba
389 done 389 done
390 390
391 echo no 391 echo no
392 return 1 392 return 1
393 } 393 }
394 dependency_deptest()
395 {
396 printf "checking for deptest... "
397 # dependency deptest
398 while true
399 do
400 CFLAGS+="-DDEPTEST"
401 echo yes
402 return 0
403 done
404
405 echo no
406 return 1
407 }
394 dependency_libxml2() 408 dependency_libxml2()
395 { 409 {
396 printf "checking for libxml2... " 410 printf "checking for libxml2... "
397 # dependency libxml2 411 # dependency libxml2
398 while true 412 while true
609 fi 623 fi
610 if [[ ! -z ${LDFLAGS} ]]; then 624 if [[ ! -z ${LDFLAGS} ]]; then
611 echo "DAV_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk 625 echo "DAV_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
612 fi 626 fi
613 627
628 # Target
629 CFLAGS=
630 LDFLAGS=
631 CXXFLAGS=
632
633 dependency_deptest
634 if [ $? -ne 0 ]; then
635 DEPENDENCIES_FAILED+="deptest "
636 ERROR=1
637 fi
638
639
640 echo >> $TEMP_DIR/config.mk
641 if [[ ! -z ${CFLAGS} ]]; then
642 echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk
643 fi
644 if [[ ! -z ${CXXFLAGS} ]]; then
645 echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk
646 fi
647 if [[ ! -z ${LDFLAGS} ]]; then
648 echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
649 fi
650
614 if [ $ERROR -ne 0 ]; then 651 if [ $ERROR -ne 0 ]; then
615 echo 652 echo
616 echo "Error: Unresolved dependencies" 653 echo "Error: Unresolved dependencies"
617 echo $DEPENCIES_FAILED 654 echo $DEPENCIES_FAILED
618 rm -Rf $TEMP_DIR 655 rm -Rf $TEMP_DIR

mercurial