From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Retrieving the "include" directory for Emacs Modules Date: Sun, 08 Dec 2024 18:36:48 +0200 Message-ID: <86cyi2f7xb.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3267"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 08 17:37:11 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tKKHO-0000ek-RD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Dec 2024 17:37:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKKH6-0006KW-Rp; Sun, 08 Dec 2024 11:36:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKKH5-0006KI-SR for help-gnu-emacs@gnu.org; Sun, 08 Dec 2024 11:36:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKKH5-0001iS-Cx for help-gnu-emacs@gnu.org; Sun, 08 Dec 2024 11:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=yT24HSXM697U+Y0MH1m4z9JYKsWrrYMCWcppp8ZBjEo=; b=ilq5u0InsZzs ntBzOWEEqH5dv1/tzRLdXqMTkhHwK0q9+o9UOhFLK/y1kfRqqApI7IPdA0T9s97PG/R6iCGud9Y2m x8lIa4nByYAz10zpFqWMPbsd944sU5ggLkbUxsl92jWKINYcHdYUE0gdQnQvHu5rv+fbDU3TcLN1i Oq/UXnip5F4biowg31OZ8Mb+IfyZXBOpNPXo9UUtHeoL7Czps3IJDJFRCAWgNatUJxCmc7roGBAjU vb/83j3X7vZwt4yjBFpZsJZMxnyriDPcMTKhyEmCCCnd7ZXYWVtAhXBpF01xuLuS+/z9pFLDNYsJ2 XwKnw2s6og6BXP6fmuamtQ==; In-Reply-To: (message from Marco Antoniotti on Sun, 8 Dec 2024 16:36:09 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148696 Archived-At: > From: Marco Antoniotti > Date: Sun, 8 Dec 2024 16:36:09 +0100 > > I have no qualms about being able to "fix" 'pq' to make it work. > > But I am writing an Emacs Module and I do not want to force anybody to > "fix" my setup ("It works on my machine" (tm)) > > In other words, I would like to be able to write > > EMACS_INCLUDE_DIR := $(shell $(EMACS) -q --batch --eval "(princ > *em-include-directory*)") > EMACS_SRC_DIR := $(shell $(EMACS) -q --batch --eval "(princ > *em-scr-directory*)") Once again: if your Emacs is installed correctly, emacs-module.h should be in a directory where the C compiler looks by default for its header files. No -I command-line options should be needed. Just make sure to put emacs-module.h where you have stdio.h and other standard headers.