patch-configure 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --- ppp-2.4.5.orig/configure 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/configure 2011-01-21 21:29:57.977408326 +0100
  3. @@ -5,12 +5,42 @@
  4. DESTDIR=/usr/local
  5. SYSCONF=/etc
  6. +# Parse arguments
  7. +while [ $# -gt 0 ]; do
  8. + arg=$1
  9. + val=
  10. + shift
  11. + case $arg in
  12. + *=*)
  13. + val=`expr "x$arg" : 'x[^=]*=\(.*\)'`
  14. + arg=`expr "x$arg" : 'x\([^=]*\)=.*'`
  15. + ;;
  16. + --prefix|--sysconf|--system|--arch|--release)
  17. + if [ $# -eq 0 ]; then
  18. + echo "error: the $arg argument requires a value" 1>&2
  19. + exit 1
  20. + fi
  21. + val=$1
  22. + shift
  23. + ;;
  24. + esac
  25. + case $arg in
  26. + --prefix) DESTDIR=$val ;;
  27. + --sysconfdir) SYSCONF=$val ;;
  28. + --system) system=$val ;;
  29. + --release) release=$val ;;
  30. + --arch) arch=$val ;;
  31. + esac
  32. +done
  33. +
  34. +echo "DESTDIR is $DESTDIR"
  35. +
  36. # if [ -d /NextApps ]; then
  37. # system="NeXTStep"
  38. # else
  39. - system=`uname -s`
  40. - release=`uname -r`
  41. - arch=`uname -m`
  42. +if [ -z "$system" ];then system=`uname -s`;fi
  43. +if [ -z "$release" ];then release=`uname -r`;fi
  44. +if [ -z "$arch" ];then arch=`uname -m`;fi
  45. # fi
  46. state="unknown"
  47. @@ -18,6 +48,7 @@ case $system in
  48. Linux)
  49. makext="linux";
  50. ksrc="linux";
  51. + compiletype=.gcc;
  52. state="known";;
  53. SunOS)
  54. karch=`/usr/bin/isainfo -k`
  55. @@ -156,30 +187,6 @@ case $state in
  56. echo "Configuring for $system";;
  57. esac
  58. -# Parse arguments
  59. -while [ $# -gt 0 ]; do
  60. - arg=$1
  61. - val=
  62. - shift
  63. - case $arg in
  64. - *=*)
  65. - val=`expr "x$arg" : 'x[^=]*=\(.*\)'`
  66. - arg=`expr "x$arg" : 'x\([^=]*\)=.*'`
  67. - ;;
  68. - --prefix|--sysconf)
  69. - if [ $# -eq 0 ]; then
  70. - echo "error: the $arg argument requires a value" 1>&2
  71. - exit 1
  72. - fi
  73. - val=$1
  74. - shift
  75. - ;;
  76. - esac
  77. - case $arg in
  78. - --prefix) DESTDIR=$val ;;
  79. - --sysconfdir) SYSCONF=$val ;;
  80. - esac
  81. -done
  82. mkmkf() {
  83. rm -f $2