configure 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #!/bin/sh
  2. echo '---------------------------------------------------------------------'
  3. echo 'SoftEther VPN for Unix'
  4. echo
  5. echo 'Copyright (c) SoftEther VPN Project at University of Tsukuba, Japan.'
  6. echo 'Copyright (c) Daiyuu Nobori. All Rights Reserved.'
  7. echo
  8. echo 'This program is free software; you can redistribute it and/or'
  9. echo 'modify it under the terms of the GNU General Public License'
  10. echo 'version 2 as published by the Free Software Foundation.'
  11. echo
  12. echo 'Read and understand README.TXT, LICENSE.TXT and WARNING.TXT before use.'
  13. echo '---------------------------------------------------------------------'
  14. echo
  15. echo 'Welcome to the corner-cutting configure script !'
  16. echo
  17. echo 'Select your operating system below:'
  18. echo ' 1: Linux'
  19. echo ' 2: FreeBSD'
  20. echo ' 3: Solaris'
  21. echo ' 4: Mac OS X'
  22. echo ' 5: OpenBSD'
  23. echo
  24. echo -n 'Which is your operating system (1 - 5) ? : '
  25. read TMP
  26. echo
  27. OS=""
  28. if test "$TMP" = "1"
  29. then
  30. OS="linux"
  31. fi
  32. if test "$TMP" = "2"
  33. then
  34. OS="freebsd"
  35. fi
  36. if test "$TMP" = "3"
  37. then
  38. OS="solaris"
  39. fi
  40. if test "$TMP" = "4"
  41. then
  42. OS="macos"
  43. fi
  44. if test "$TMP" = "5"
  45. then
  46. OS="openbsd"
  47. fi
  48. if test "$OS" = ""
  49. then
  50. echo "Wrong number."
  51. exit 1
  52. fi
  53. echo 'Select your CPU bits below:'
  54. echo ' 1: 32-bit'
  55. echo ' 2: 64-bit'
  56. echo
  57. echo -n 'Which is the type of your CPU (1 - 2) ? : '
  58. read TMP
  59. echo
  60. CPU=""
  61. if test "$TMP" = "1"
  62. then
  63. CPU="32bit"
  64. fi
  65. if test "$TMP" = "2"
  66. then
  67. CPU="64bit"
  68. fi
  69. if test "$CPU" = ""
  70. then
  71. echo "Wrong number."
  72. exit 1
  73. fi
  74. cp src/makefiles/${OS}_${CPU}.mak Makefile
  75. echo "The Makefile is generated. Run 'make' to build SoftEther VPN."