1dnl Copyright (C) 1993-2002 Free Software Foundation, Inc. 2dnl This file is free software, distributed under the terms of the GNU 3dnl General Public License. As a special exception to the GNU General 4dnl Public License, this file may be distributed as part of a program 5dnl that contains a configuration script generated by Autoconf, under 6dnl the same distribution terms as the rest of that program. 7 8dnl From Bruno Haible, Marcus Daniels. 9 10AC_PREREQ(2.13) 11 12AC_DEFUN([CL_PROG_CP], 13[AC_CACHE_CHECK(how to copy files, cl_cv_prog_cp, [ 14echo "blabla" > conftest.x 15err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"` 16if test -z "$err"; then 17 cl_cv_prog_cp='cp -p' 18else 19 cl_cv_prog_cp='cp' 20fi 21rm -f conftest* 22]) 23CP="$cl_cv_prog_cp" 24AC_SUBST(CP)dnl 25]) 26