~ubuntu-branches/ubuntu/saucy/apr-util/saucy-proposed

« back to all changes in this revision

Viewing changes to build/dbm.m4

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2011-05-22 01:27:59 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110522012759-i80zd90uo6q1z4gr
Tags: 1.3.12+dfsg-1
* New upstream version
* Make apu-config not output dbm libs by default. Closes: #622081
* Set DEB_GCC_NO_O3=1 for the benefit of ppc64 on Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
560
560
    apu_db_version=5
561
561
  fi
562
562
])
 
563
dnl
 
564
dnl APU_CHECK_DB51: is DB5.1 present?
 
565
dnl
 
566
dnl if present: sets apu_db_header, apu_db_lib, and apu_db_version
 
567
dnl
 
568
AC_DEFUN([APU_CHECK_DB51], [
 
569
  places=$1
 
570
  if test -z "$places"; then
 
571
    places="std /usr/local/BerkeleyDB.5.1 /boot/home/config"
 
572
  fi
 
573
  APU_CHECK_BERKELEY_DB("5", "1", "-1",
 
574
    "$places",
 
575
    "db51/db.h db5/db.h db.h",
 
576
    "db-5.1 db5-5.1 db51 db5 db"
 
577
  )
 
578
  if test "$apu_have_db" = "1"; then
 
579
    apu_db_version=5
 
580
  fi
 
581
])
563
582
 
564
583
AC_DEFUN([APU_CHECK_DB], [
565
584
  requested=$1
656
675
      AC_MSG_ERROR(Berkeley db5 not found)
657
676
    fi
658
677
    ;;
 
678
  db51)
 
679
    APU_CHECK_DB51("$check_places")
 
680
    if test "$apu_db_version" != "5"; then
 
681
      AC_MSG_ERROR(Berkeley db5 not found)
 
682
    fi
 
683
    ;;
659
684
  default)
660
685
    APU_CHECK_DB_ALL("$check_places")
661
686
    ;;
663
688
])
664
689
 
665
690
dnl
666
 
dnl APU_CHECK_DB_ALL: Try all Berkeley DB versions, from 5.0 to 1.
 
691
dnl APU_CHECK_DB_ALL: Try all Berkeley DB versions, from 5.1 to 1.
667
692
dnl
668
693
AC_DEFUN([APU_CHECK_DB_ALL], [
669
694
  all_places=$1
670
695
 
671
 
  APU_CHECK_DB50("$all_places")
 
696
  APU_CHECK_DB51("$all_places")
672
697
  if test "$apu_db_version" != "5"; then
673
 
    APU_CHECK_DB48("$all_places")
674
 
    if test "$apu_db_version" != "4"; then
675
 
      APU_CHECK_DB47("$all_places")
 
698
    APU_CHECK_DB50("$all_places")
 
699
    if test "$apu_db_version" != "5"; then
 
700
      APU_CHECK_DB48("$all_places")
676
701
      if test "$apu_db_version" != "4"; then
677
 
        APU_CHECK_DB46("$all_places")
 
702
        APU_CHECK_DB47("$all_places")
678
703
        if test "$apu_db_version" != "4"; then
679
 
          APU_CHECK_DB45("$all_places")
 
704
          APU_CHECK_DB46("$all_places")
680
705
          if test "$apu_db_version" != "4"; then
681
 
            APU_CHECK_DB44("$all_places")
 
706
            APU_CHECK_DB45("$all_places")
682
707
            if test "$apu_db_version" != "4"; then
683
 
              APU_CHECK_DB43("$all_places")
 
708
              APU_CHECK_DB44("$all_places")
684
709
              if test "$apu_db_version" != "4"; then
685
 
                APU_CHECK_DB42("$all_places")
 
710
                APU_CHECK_DB43("$all_places")
686
711
                if test "$apu_db_version" != "4"; then
687
 
                  APU_CHECK_DB41("$all_places")
 
712
                  APU_CHECK_DB42("$all_places")
688
713
                  if test "$apu_db_version" != "4"; then
689
 
                    APU_CHECK_DB4("$all_places")
 
714
                    APU_CHECK_DB41("$all_places")
690
715
                    if test "$apu_db_version" != "4"; then
691
 
                      APU_CHECK_DB3("$all_places")
692
 
                      if test "$apu_db_version" != "3"; then
693
 
                        APU_CHECK_DB2("$all_places")
694
 
                        if test "$apu_db_version" != "2"; then
695
 
                          APU_CHECK_DB1("$all_places")
696
 
                          if test "$apu_db_version" != "1"; then
697
 
                            APU_CHECK_DB185("$all_places")
 
716
                      APU_CHECK_DB4("$all_places")
 
717
                      if test "$apu_db_version" != "4"; then
 
718
                        APU_CHECK_DB3("$all_places")
 
719
                        if test "$apu_db_version" != "3"; then
 
720
                          APU_CHECK_DB2("$all_places")
 
721
                          if test "$apu_db_version" != "2"; then
 
722
                            APU_CHECK_DB1("$all_places")
 
723
                            if test "$apu_db_version" != "1"; then
 
724
                              APU_CHECK_DB185("$all_places")
 
725
                            fi
698
726
                          fi
699
727
                        fi
700
728
                      fi
735
763
  apu_db_version=0
736
764
 
737
765
  AC_ARG_WITH(dbm, [APR_HELP_STRING([--with-dbm=DBM], [choose the DBM type to use.
738
 
      DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db41,db42,db43,db44,db45,db46,db47,db48,db50}])],
 
766
      DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db41,db42,db43,db44,db45,db46,db47,db48,db50,db51}])],
739
767
  [
740
768
    if test "$withval" = "yes"; then
741
769
      AC_MSG_ERROR([--with-dbm needs to specify a DBM type to use.
742
 
        One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48, db50])
 
770
        One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48, db50, db51])
743
771
    fi
744
772
    requested="$withval"
745
773
  ], [
946
974
      apu_use_db=1
947
975
      apu_default_dbm=db5
948
976
      ;;
 
977
    db51)
 
978
      apu_use_db=1
 
979
      apu_default_dbm=db5
 
980
      ;;
949
981
    default)
950
982
      dnl ### use more sophisticated DBMs for the default?
951
983
      apu_default_dbm="sdbm (default)"
953
985
      ;;
954
986
    *)
955
987
      AC_MSG_ERROR([--with-dbm=$look_for is an unknown DBM type.
956
 
        Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48, db50])
 
988
        Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48, db50, db51])
957
989
      ;;
958
990
  esac
959
991