---
name: "Dist::Build::XS::Conf"
section: "3pm"
platform: "linux"
package: "libdist-build-perl"
version: "0.020-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Dist::Build::XS::Conf"
---

# Dist::Build::XS::Conf(3pm)

Configure-time utilities for Dist::Build for using C headers, libraries, or OS features

## NAME

Dist::Build::XS::Conf - Configure-time utilities for Dist::Build for using C headers, libraries, or OS features

## VERSION

version 0.020

## SYNOPSIS

```
 load_extension("Dist::Build::XS");

 find_libs_for(source => <<'EOF', libs => [ ['socket'], ['moonlaser'] ]);
 #include <stdio.h>
 #include <sys/socket.h>
 int main(int argc, char *argv[]) {
   printf("PF_MOONLASER is %d\n", PF_MOONLASER);
   return 0;
 }
 EOF
 add_xs(module_name => 'Socket::MoonLaser');
```

### DESCRIPTION

This module integrates ExtUtils::Builder::Conf into Dist::Build::XS. Any arguments found with any of the `"find_*"` or `"try_find_*"` functions will be automatically added to the build when calling `"add_xs"`.

## AUTHOR

Leon Timmermans \<fawaka@gmail.com\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
