openal-config1
Script to get information about the installed version of openal
Usage
openal-config [--prefix=DIR]
[--exec-prefix=DIR]
[--version]
[--cflags]
[--libs]
Overview
openal-config is a tool that is used to configure and determine the compiler and linker flags that should be used to compile and link programs and libraries that use OpenAL.
Options
-
--cflags -
Print the compiler flags that are necessary to compile a program or library that uses OpenAL.
-
--exec-prefix=DIR -
If specified, use DIR instead of the installation exec prefix that OpenAL was built with when computing the output for the --cflags and --libs options. This option must be specified before any of the --cflags and --libs options.
-
--libs -
Print the linker flags that are necessary to link a program or library that uses OpenAL.
-
--prefix=DIR -
If specified, use DIR instead of the installation prefix that OpenAL was built with when computing the output for the --cflags and --libs options. If --exec-prefix was not specified, DIR is also used as exec prefix. This option must be specified before any of the --cflags and --libs options.
-
--version -
Prints the currently installed version of OpenAL on standard output.
Examples
To compile a C source file for use in an executable program that uses OpenAL, type a command like this:
-
gcc $(openal-config --cflags) -c main.c -o main.o
To link the resulting object file into an executable program, use a command like the following:
-
gcc -o my_app main.o util.o $(openal-config --libs)
Releases
2 releases since Debian 4.0 (Etch); the text changed 1 time.