survey.sh.in 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/usr/bin/env sh
  2. #
  3. # Copyright (c) 2004, 2005 Darren Tucker
  4. #
  5. # Permission to use, copy, modify, and distribute this software for any
  6. # purpose with or without fee is hereby granted, provided that the above
  7. # copyright notice and this permission notice appear in all copies.
  8. #
  9. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. host="@host@"
  17. AWK="@AWK@"
  18. CC="@CC@"
  19. CPP="@CPP@"
  20. CFLAGS="@CFLAGS@"
  21. CPPFLAGS="@CPPFLAGS@"
  22. LDFLAGS="@LDFLAGS@"
  23. LIBS="@LIBS@"
  24. # Note format:
  25. # identifier: [data] CRCR
  26. echo "openssh-survey-version: 1"
  27. echo
  28. echo "openssh-version: `./ssh -V 2>&1`"
  29. echo
  30. configinv=`$AWK '/^ \\\$.*configure/' config.log | sed 's/^ \\\$ //g'`
  31. echo "configure-invocation: $configinv"
  32. echo
  33. echo "host: $host"
  34. echo
  35. echo "uname: `uname`"
  36. echo
  37. echo "uname-r: `uname -r`"
  38. echo
  39. echo "uname-m: `uname -m`"
  40. echo
  41. echo "uname-p: `uname -p`"
  42. echo
  43. echo "oslevel: `oslevel 2>/dev/null`"
  44. echo
  45. echo "oslevel-r: `oslevel -r 2>/dev/null`"
  46. echo
  47. echo "cc: $CC"
  48. echo
  49. echo "cflags: $CFLAGS"
  50. echo
  51. echo "cppflags: $CPPFLAGS"
  52. echo
  53. echo "ldflags: $LDFLAGS"
  54. echo
  55. echo "libs: $LIBS"
  56. echo
  57. echo "ccver-v: `$CC -v 2>&1 | sed '/^[ \t]*$/d'`"
  58. echo
  59. echo "ccver-V: `$CC -V 2>&1 | sed '/^[ \t]*$/d'`"
  60. echo
  61. echo "cppdefines:"
  62. ${CPP} -dM - </dev/null
  63. echo
  64. echo "config.h:"
  65. egrep '#define|#undef' config.h
  66. echo