#!/bin/sh # # configure: Automatically configure install locations for x11-ssh-askpass # # by Jim Knoble # Copyright (C) 2001 Jim Knoble # # Disclaimer: # # This software is provided "as is", without warranty of any kind, # express or implied, including but not limited to the warranties of # merchantability, fitness for a particular purpose and # noninfringement. In no event shall the author(s) be liable for any # claim, damages or other liability, whether in an action of # contract, tort or otherwise, arising from, out of or in connection # with the software or the use or other dealings in the software. # # Permission to use, copy, modify, distribute, and sell this software # and its documentation for any purpose is hereby granted without # fee, provided that the above copyright notice appear in all copies # and that both that copyright notice and this permission notice # appear in supporting documentation. PrintHelp() { cat <"${IMAKEFILE_DST}.tmp" \ && mv -f "${IMAKEFILE_DST}.tmp" "${IMAKEFILE_DST}" case "${enable_installing_app_defaults}" in yes) cat "${IMAKEFILE_DST}" |sed \ -e 's#^[ ]*\(XCOMM[ ]\+\)\?\(install::[ ]\+install-app-defaults.*\)$#\2#' \ >"${IMAKEFILE_DST}.tmp" \ && mv -f "${IMAKEFILE_DST}.tmp" "${IMAKEFILE_DST}" ;; no) cat "${IMAKEFILE_DST}" |sed \ -e 's#^[ ]*\(XCOMM[ ]\+\)\?\(install::[ ]\+install-app-defaults.*\)$#XCOMM \2#' \ >"${IMAKEFILE_DST}.tmp" \ && mv -f "${IMAKEFILE_DST}.tmp" "${IMAKEFILE_DST}" ;; esac if [ -n "${CC}" ]; then cat "${IMAKEFILE_DST}" |sed \ -e 's#^[ ]*XCOMM[ ]\+\(CC[ ]*=\).*$#\1 '"${CC}"'#' \ >"${IMAKEFILE_DST}.tmp" \ && mv -f "${IMAKEFILE_DST}.tmp" "${IMAKEFILE_DST}" else CC='default' fi if [ -n "${CFLAGS}" ]; then cat "${IMAKEFILE_DST}" |sed \ -e 's#^[ ]*XCOMM[ ]\+\(CDEBUGFLAGS[ ]*=\).*$#\1 '"${CFLAGS}"'#' \ >"${IMAKEFILE_DST}.tmp" \ && mv -f "${IMAKEFILE_DST}.tmp" "${IMAKEFILE_DST}" else CFLAGS='default' fi if [ -n "${LDFLAGS}" ]; then cat "${IMAKEFILE_DST}" |sed \ -e 's#^[ ]*XCOMM[ ]\+\(LOCAL_LDFLAGS[ ]*=\).*$#\1 '"${LDFLAGS}"'#' \ >"${IMAKEFILE_DST}.tmp" \ && mv -f "${IMAKEFILE_DST}.tmp" "${IMAKEFILE_DST}" else LDFLAGS='default' fi if [ "${app_defaults_dir}" = "${default_default_app_defaults_dir}" ]; then app_defaults_dir='default' fi cat <