configure
changeset 2622 bc9f7c29311e
parent 2621 00853d565edf
child 2623 e8e30025fcc5
     1.1 --- a/configure	Wed Aug 17 23:05:01 2011 +0200
     1.2 +++ b/configure	Fri Aug 19 22:43:01 2011 +0200
     1.3 @@ -12,6 +12,7 @@
     1.4  DOCDIR_set=
     1.5  MANDIR_set=
     1.6  PROG_PFX=
     1.7 +PROG_SFX=
     1.8  LOCAL_set=
     1.9  FORCE=
    1.10  
    1.11 @@ -64,6 +65,9 @@
    1.12  set_program_prefix() {
    1.13      PROG_PFX="$( get_optval "$1" "$2" )"
    1.14  }
    1.15 +set_program_suffix() {
    1.16 +    PROG_SFX="$( get_optval "$1" "$2" )"
    1.17 +}
    1.18  set_tool() {
    1.19      local var_name="${1%%=*}"
    1.20      var_name="${var_name#--with-}"
    1.21 @@ -334,6 +338,7 @@
    1.22  
    1.23  Program names:
    1.24    --program-prefix=PREFIX            prepend PREFIX to installed program names
    1.25 +  --program-suffix=SUFFIX            append SUFFIX to installed program names
    1.26  
    1.27  System types:
    1.28    --build=BUILD     configure for building on BUILD [guessed] (ignored)
    1.29 @@ -368,6 +373,9 @@
    1.30          --program-prefix=*|--program-prefix)
    1.31                      set_program_prefix "$1" "$2" && shift || shift 2
    1.32                      ;;
    1.33 +        --program-suffix=*|--program-suffix)
    1.34 +                    set_program_suffix "$1" "$2" && shift || shift 2
    1.35 +                    ;;
    1.36          --force)    FORCE=1; shift;;
    1.37          --help|-h)  do_help; exit 0;;
    1.38          # Skip, auto-stuff compatibility
    1.39 @@ -389,6 +397,7 @@
    1.40      set_docdir "" "$( pwd )/docs"
    1.41      set_mandir "" "$( pwd )/docs"
    1.42      set_program_prefix "" ""
    1.43 +    set_program_suffix "" ""
    1.44  fi
    1.45  
    1.46  #---------------------------------------------------------------------
    1.47 @@ -635,6 +644,9 @@
    1.48  case "${PROG_PFX}" in
    1.49      */*)    do_error "program prefix '${PROG_PFX}' contains a '/'";;
    1.50  esac
    1.51 +case "${PROG_SFX}" in
    1.52 +    */*)    do_error "program suffix '${PROG_SFX}' contains a '/'";;
    1.53 +esac
    1.54  
    1.55  #---------------------------------------------------------------------
    1.56  # That's all, folks!
    1.57 @@ -653,6 +665,7 @@
    1.58              -e "s,@@DOCDIR@@,${DOCDIR},g"       \
    1.59              -e "s,@@MANDIR@@,${MANDIR},g"       \
    1.60              -e "s,@@PROG_PFX@@,${PROG_PFX},g"   \
    1.61 +            -e "s,@@PROG_SFX@@,${PROG_SFX},g"   \
    1.62              -e "s,@@VERSION@@,${VERSION},g"     \
    1.63              -e "s,@@DATE@@,${DATE},g"           \
    1.64              -e "s,@@LOCAL@@,${LOCAL_set},g"     \
    1.65 @@ -671,6 +684,7 @@
    1.66    DOCDIR='${DOCDIR}'
    1.67    MANDIR='${MANDIR}'
    1.68    PROG_PFX='${PROG_PFX}'
    1.69 +  PROG_SFX='${PROG_SFX}'
    1.70  
    1.71  Now run:
    1.72    make