apfunctions.m4 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. dnl
  2. dnl Licensed to the Apache Software Foundation (ASF) under one or more
  3. dnl contributor license agreements. See the NOTICE file distributed with
  4. dnl this work for additional information regarding copyright ownership.
  5. dnl The ASF licenses this file to You under the Apache License, Version 2.0
  6. dnl (the "License"); you may not use this file except in compliance with
  7. dnl the License. You may obtain a copy of the License at
  8. dnl
  9. dnl http://www.apache.org/licenses/LICENSE-2.0
  10. dnl
  11. dnl Unless required by applicable law or agreed to in writing, software
  12. dnl distributed under the License is distributed on an "AS IS" BASIS,
  13. dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. dnl See the License for the specific language governing permissions and
  15. dnl limitations under the License.
  16. dnl
  17. dnl -------------------------------------------------------------------------
  18. dnl Author Pier Fumagalli <mailto:pier.fumagalli@eng.sun.com>
  19. dnl Version $Id$
  20. dnl -------------------------------------------------------------------------
  21. AC_DEFUN([AP_MSG_HEADER],[
  22. printf "*** %s ***\n" "$1" 1>&2
  23. AC_PROVIDE([$0])
  24. ])
  25. AC_DEFUN([AP_CANONICAL_HOST_CHECK],[
  26. AC_MSG_CHECKING([cached host system type])
  27. if { test x"${ac_cv_host_system_type+set}" = x"set" &&
  28. test x"$ac_cv_host_system_type" != x"$host" ; }
  29. then
  30. AC_MSG_RESULT([$ac_cv_host_system_type])
  31. AC_MSG_ERROR([remove the \"$cache_file\" file and re-run configure])
  32. else
  33. AC_MSG_RESULT(ok)
  34. ac_cv_host_system_type="$host"
  35. fi
  36. AC_PROVIDE([$0])
  37. ])