Spaces:
Runtime error
Runtime error
amarchheda
commited on
Commit
·
83418c6
1
Parent(s):
2cf0437
inital commit
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- README.md +6 -7
- app.py +194 -0
- chunk_try/.DS_Store +0 -0
- chunk_try/Eminem, Juice WRLD - Godzilla (feat. Juice WRLD).mp3 +3 -0
- chunk_try/Imagine Dragons - Bones.mp3 +3 -0
- chunk_try/Indila - Tourner Dans Le Vide.mp3 +3 -0
- chunk_try/Mohit Chauhan - Masakali.mp3 +3 -0
- chunk_try/Sanam - Gulabi Aankhen.mp3 +3 -0
- chunk_try/Sohail Sen,Benny Dayal,Aditi Singh Sharma,Irshad Kamil - Choomantar.mp3 +3 -0
- chunk_try/stephen sanchez, em beihold - until i found you.mp3 +3 -0
- dict.pickle +3 -0
- embdmodel_1.hdf5 +3 -0
- package.json +75 -0
- packages.txt +7 -0
- portaudio/.editorconfig +13 -0
- portaudio/.gitattributes +43 -0
- portaudio/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- portaudio/.github/workflows/MSBuild.yml +96 -0
- portaudio/.github/workflows/c-cpp.yml +54 -0
- portaudio/.gitignore +52 -0
- portaudio/CMakeLists.txt +487 -0
- portaudio/Doxyfile +239 -0
- portaudio/Doxyfile.developer +242 -0
- portaudio/LICENSE.txt +81 -0
- portaudio/Makefile.in +258 -0
- portaudio/README.configure.txt +32 -0
- portaudio/README.md +62 -0
- portaudio/SConstruct +197 -0
- portaudio/aclocal.m4 +0 -0
- portaudio/bindings/cpp/AUTHORS +0 -0
- portaudio/bindings/cpp/COPYING +31 -0
- portaudio/bindings/cpp/ChangeLog +178 -0
- portaudio/bindings/cpp/INSTALL +370 -0
- portaudio/bindings/cpp/Makefile.am +7 -0
- portaudio/bindings/cpp/Makefile.in +848 -0
- portaudio/bindings/cpp/NEWS +0 -0
- portaudio/bindings/cpp/README +0 -0
- portaudio/bindings/cpp/SConscript +65 -0
- portaudio/bindings/cpp/aclocal.m4 +0 -0
- portaudio/bindings/cpp/bin/Makefile.am +9 -0
- portaudio/bindings/cpp/bin/Makefile.in +618 -0
- portaudio/bindings/cpp/build/gnu/Makefile.in +106 -0
- portaudio/bindings/cpp/build/gnu/OUT_OF_DATE +0 -0
- portaudio/bindings/cpp/build/gnu/aclocal.m4 +57 -0
- portaudio/bindings/cpp/build/gnu/config.guess +1308 -0
- portaudio/bindings/cpp/build/gnu/config.sub +1505 -0
- portaudio/bindings/cpp/build/gnu/configure +0 -0
- portaudio/bindings/cpp/build/gnu/configure.ac +214 -0
- portaudio/bindings/cpp/build/gnu/install-sh +251 -0
- portaudio/bindings/cpp/build/vc6/devs_example.dsp +248 -0
README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
-
sdk:
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: Chord
|
3 |
+
emoji: 👁
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: green
|
6 |
+
sdk: streamlit
|
7 |
+
sdk_version: 1.17.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import numpy as np
|
3 |
+
import tensorflow as tf
|
4 |
+
from scipy.io.wavfile import write
|
5 |
+
import keras.backend as K
|
6 |
+
import librosa.display
|
7 |
+
import cv2
|
8 |
+
import librosa
|
9 |
+
import matplotlib.pyplot as plt
|
10 |
+
import librosa.display
|
11 |
+
import numpy as np
|
12 |
+
from keras.applications import VGG16
|
13 |
+
import os
|
14 |
+
import scipy
|
15 |
+
import gradio as gr
|
16 |
+
|
17 |
+
# Load the tune recognition model
|
18 |
+
model = tf.keras.models.load_model('embdmodel_1.hdf5')
|
19 |
+
embedding_model=model.layers[2]
|
20 |
+
|
21 |
+
DURATION = 10
|
22 |
+
WAVE_OUTPUT_FILE = "my_audio.wav"
|
23 |
+
|
24 |
+
|
25 |
+
# Define function to preprocess input audio
|
26 |
+
#convert song to mel spectogram as siamese network doesn't work on sound directly
|
27 |
+
def create_spectrogram(clip,sample_rate,save_path):
|
28 |
+
plt.interactive(False)
|
29 |
+
fig=plt.figure(figsize=[0.72,0.72])
|
30 |
+
S=librosa.feature.melspectrogram(y=clip,sr=sample_rate)
|
31 |
+
librosa.display.specshow(librosa.power_to_db(S,ref=np.max))
|
32 |
+
fig.savefig(save_path,dpi=400,bbox_inches='tight',pad_inches=0)
|
33 |
+
plt.close()
|
34 |
+
fig.clf()
|
35 |
+
plt.close(fig)
|
36 |
+
plt.close('all')
|
37 |
+
del save_path,clip,sample_rate,fig,S
|
38 |
+
|
39 |
+
def load_img(path):
|
40 |
+
img=cv2.imread(path)
|
41 |
+
img=cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
|
42 |
+
img=cv2.resize(img,(150,150))
|
43 |
+
return img
|
44 |
+
|
45 |
+
|
46 |
+
import pickle
|
47 |
+
with open('dict.pickle', 'rb') as handle:
|
48 |
+
songspecdict = pickle.load(handle)
|
49 |
+
|
50 |
+
|
51 |
+
def list_file_sizes():
|
52 |
+
path = "."
|
53 |
+
|
54 |
+
# Get list of all files only in the given directory
|
55 |
+
fun = lambda x : os.path.isfile(os.path.join(path,x))
|
56 |
+
files_list = filter(fun, os.listdir(path))
|
57 |
+
|
58 |
+
# Create a list of files in directory along with the size
|
59 |
+
size_of_file = [
|
60 |
+
(f,os.stat(os.path.join(path, f)).st_size)
|
61 |
+
for f in files_list
|
62 |
+
]
|
63 |
+
# Iterate over list of files along with size
|
64 |
+
# and print them one by one.
|
65 |
+
for f,s in size_of_file:
|
66 |
+
print("{} : {}MB".format(f, round(s/(1024*1024),3)))
|
67 |
+
|
68 |
+
css = """
|
69 |
+
footer {display:none !important}
|
70 |
+
.output-markdown{display:none !important}
|
71 |
+
button.primary {
|
72 |
+
z-index: 14;
|
73 |
+
left: 0px;
|
74 |
+
top: 0px;
|
75 |
+
cursor: pointer !important;
|
76 |
+
background: none rgb(17, 20, 45) !important;
|
77 |
+
border: none !important;
|
78 |
+
color: rgb(255, 255, 255) !important;
|
79 |
+
line-height: 1 !important;
|
80 |
+
border-radius: 6px !important;
|
81 |
+
transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
|
82 |
+
box-shadow: none !important;
|
83 |
+
}
|
84 |
+
button.primary:hover{
|
85 |
+
z-index: 14;
|
86 |
+
left: 0px;
|
87 |
+
top: 0px;
|
88 |
+
cursor: pointer !important;
|
89 |
+
background: none rgb(37, 56, 133) !important;
|
90 |
+
border: none !important;
|
91 |
+
color: rgb(255, 255, 255) !important;
|
92 |
+
line-height: 1 !important;
|
93 |
+
border-radius: 6px !important;
|
94 |
+
transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
|
95 |
+
box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
|
96 |
+
}
|
97 |
+
button.gallery-item:hover {
|
98 |
+
border-color: rgb(37 56 133) !important;
|
99 |
+
background-color: rgb(229,225,255) !important;
|
100 |
+
}
|
101 |
+
"""
|
102 |
+
|
103 |
+
def main(audio):
|
104 |
+
|
105 |
+
with open(WAVE_OUTPUT_FILE, "wb") as file:
|
106 |
+
file.write(audio)
|
107 |
+
|
108 |
+
list_file_sizes()
|
109 |
+
|
110 |
+
# Load the song to match
|
111 |
+
song, sr = librosa.load("my_audio.wav")
|
112 |
+
to_match = np.copy(song[0:220500])
|
113 |
+
print("Loaded data into librosa...")
|
114 |
+
|
115 |
+
# Create spectrogram image of the song to match
|
116 |
+
create_spectrogram(to_match, sr, 'test.png')
|
117 |
+
print("Created spectogram...")
|
118 |
+
|
119 |
+
# Load the spectrogram image of the song to match
|
120 |
+
to_match_img = load_img('test.png')
|
121 |
+
to_match_img = np.expand_dims(to_match_img, axis=0)
|
122 |
+
print("Loaded spectrum image...")
|
123 |
+
|
124 |
+
# Get the embedding of the song to match
|
125 |
+
to_match_emb = embedding_model.predict(to_match_img)
|
126 |
+
print("Get song embedding...")
|
127 |
+
|
128 |
+
# Calculate the distances between the song to match and the songs in the database
|
129 |
+
songsdistdict = {}
|
130 |
+
for key, values in songspecdict.items():
|
131 |
+
dist_array = []
|
132 |
+
for embd in values:
|
133 |
+
dist_array.append(np.linalg.norm(to_match_emb - embd))
|
134 |
+
|
135 |
+
songsdistdict[key] = min(dist_array)
|
136 |
+
song_titles=list(songsdistdict.keys())
|
137 |
+
distances=list(songsdistdict.values())
|
138 |
+
|
139 |
+
# Get the title and artist of the recognized song
|
140 |
+
recognized_song_artist, recognized_song_title = song_titles[distances.index(min(distances))].split('-')
|
141 |
+
recognized_song_title = os.path.splitext(recognized_song_title)[0]
|
142 |
+
print(f'Artist: {recognized_song_artist}')
|
143 |
+
print(f'Title: {recognized_song_title}')
|
144 |
+
|
145 |
+
from musixmatch import Musixmatch
|
146 |
+
|
147 |
+
# Initialize Musixmatch API
|
148 |
+
musixmatch = Musixmatch(apikey='2b0d0615efa782e95598a0e99bda4a60')
|
149 |
+
|
150 |
+
# Search for the recognized song
|
151 |
+
track_search_results = musixmatch.track_search(q_track=recognized_song_title, q_artist=recognized_song_artist, page_size=1, page=1, s_track_rating='desc')
|
152 |
+
|
153 |
+
if track_search_results['message']['header']['status_code'] == 200:
|
154 |
+
# Get the track ID for the top result
|
155 |
+
track_id = track_search_results['message']['body']['track_list'][0]['track']['track_id']
|
156 |
+
|
157 |
+
# Get the lyrics for the recognized song
|
158 |
+
lyrics_result = musixmatch.track_lyrics_get(track_id=track_id)
|
159 |
+
|
160 |
+
if lyrics_result['message']['header']['status_code'] == 200:
|
161 |
+
# Get the lyrics
|
162 |
+
lyrics = lyrics_result['message']['body']['lyrics']['lyrics_body']
|
163 |
+
# Remove the annotation tags from the lyrics
|
164 |
+
lyrics = lyrics.replace('******* This Lyrics is NOT for Commercial use *******', '').strip()
|
165 |
+
print("Lyrics:\n", lyrics)
|
166 |
+
else:
|
167 |
+
print("Couldn't find lyrics for the recognized song.")
|
168 |
+
|
169 |
+
|
170 |
+
|
171 |
+
# Play the recognized song
|
172 |
+
recognized_song_file = f'https://huggingface.co/spaces/prerna9811/Chord/tree/main/seismese_net_songs/{song_titles[distances.index(min(distances))]}'
|
173 |
+
recognized_song_audio, recognized_song_sr = librosa.load(recognized_song_file)
|
174 |
+
|
175 |
+
audio_file = open(recognized_song_file, 'rb') # enter the filename with filepath
|
176 |
+
audio_bytes = audio_file.read() # reading the file
|
177 |
+
|
178 |
+
return audio_bytes
|
179 |
+
|
180 |
+
|
181 |
+
|
182 |
+
if __name__ == '__main__':
|
183 |
+
|
184 |
+
demo = gr.Blocks()
|
185 |
+
mf_transcribe = gr.Interface(
|
186 |
+
fn=main,
|
187 |
+
inputs=gr.inputs.Audio(source="microphone", type="filepath"),
|
188 |
+
outputs="audio",
|
189 |
+
layout="horizontal",
|
190 |
+
theme="huggingface",
|
191 |
+
allow_flagging="never",
|
192 |
+
css = css
|
193 |
+
)
|
194 |
+
mf_transcribe.launch()
|
chunk_try/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
chunk_try/Eminem, Juice WRLD - Godzilla (feat. Juice WRLD).mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a45a039008be03c7a01a18491aca4876b3c174c66838e4a7cdea3b1385691380
|
3 |
+
size 5186878
|
chunk_try/Imagine Dragons - Bones.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5482b54b527c56e88a619af0b63067e6868c2e9e3f40849de40ff91cfb904e6
|
3 |
+
size 7017804
|
chunk_try/Indila - Tourner Dans Le Vide.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19130d22ad7148b23af98b746005705c405620f87b44dd71287f8a6faca81acf
|
3 |
+
size 4066560
|
chunk_try/Mohit Chauhan - Masakali.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3264f75e1c2f16aad93c08dc3975e458d378339755f5d56634b8b29f1123970a
|
3 |
+
size 7372014
|
chunk_try/Sanam - Gulabi Aankhen.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f7caf662d8626f64130edd2d380d3496ea7532ba28f3fcf09c3d198a5a048514
|
3 |
+
size 5816427
|
chunk_try/Sohail Sen,Benny Dayal,Aditi Singh Sharma,Irshad Kamil - Choomantar.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:024d4ceb3ae2891a83dac7a546b4796223437b303caa47e392b4cb5d5318f9fe
|
3 |
+
size 6419044
|
chunk_try/stephen sanchez, em beihold - until i found you.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:07752b5dd13e6fc77506a11b4055b8d4f3eee5f144ea1c7bceb3038cf0cbb9ee
|
3 |
+
size 2521475
|
dict.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a22748703025ce9c9b995d25d5eb27cde466ce1aa3b49fdddd353e5bd573a75f
|
3 |
+
size 156156
|
embdmodel_1.hdf5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f15da1c51520ec176ddb2f70a231bbc67a00b57a3e7d4c2688f49f29ae8bbd3c
|
3 |
+
size 60509616
|
package.json
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "msr",
|
3 |
+
"preferGlobal": false,
|
4 |
+
"version": "1.3.4",
|
5 |
+
"author": {
|
6 |
+
"name": "Muaz Khan",
|
7 |
+
"email": "muazkh@gmail.com",
|
8 |
+
"url": "http://www.muazkhan.com/"
|
9 |
+
},
|
10 |
+
"description": "Cross-Browser recording of audio/video media streams; targets WebRTC/getUserMedia/WebAudio/etc.",
|
11 |
+
"scripts": {
|
12 |
+
"start": "node server.js"
|
13 |
+
},
|
14 |
+
"main": "MediaStreamRecorder.js",
|
15 |
+
"repository": {
|
16 |
+
"type": "git",
|
17 |
+
"url": "https://github.com/streamproc/MediaStreamRecorder.git"
|
18 |
+
},
|
19 |
+
"keywords": [
|
20 |
+
"recorder",
|
21 |
+
"audio-recorder",
|
22 |
+
"video-recorder",
|
23 |
+
"audio-recording",
|
24 |
+
"video-recording",
|
25 |
+
"recording",
|
26 |
+
"record",
|
27 |
+
"audio-video-recorder",
|
28 |
+
"gif-recorder",
|
29 |
+
"audio",
|
30 |
+
"video",
|
31 |
+
"gif",
|
32 |
+
"mediarecorder",
|
33 |
+
"media",
|
34 |
+
"client-side",
|
35 |
+
"webrtc",
|
36 |
+
"mediastreamrecorder",
|
37 |
+
"webrtc-library",
|
38 |
+
"library",
|
39 |
+
"javascript",
|
40 |
+
"chrome",
|
41 |
+
"firefox",
|
42 |
+
"opera",
|
43 |
+
"mediastreamrecorder.js",
|
44 |
+
"webrtc-experiment",
|
45 |
+
"javascript-library",
|
46 |
+
"muaz",
|
47 |
+
"muaz-khan",
|
48 |
+
"stereorecorder",
|
49 |
+
"mediarecorder",
|
50 |
+
"whammyrecorder",
|
51 |
+
"gifrecorder",
|
52 |
+
"multistreamrecorder"
|
53 |
+
],
|
54 |
+
"analyze": false,
|
55 |
+
"license": "MIT",
|
56 |
+
"readmeFilename": "README.md",
|
57 |
+
"bugs": {
|
58 |
+
"url": "https://github.com/streamproc/MediaStreamRecorder/issues",
|
59 |
+
"email": "muazkh@gmail.com"
|
60 |
+
},
|
61 |
+
"homepage": "https://www.webrtc-experiment.com/msr/",
|
62 |
+
"tonicExampleFilename": "npm-test.js",
|
63 |
+
"_from": "msr@",
|
64 |
+
"devDependencies": {
|
65 |
+
"grunt": "0.4.5",
|
66 |
+
"grunt-cli": "0.1.13",
|
67 |
+
"load-grunt-tasks": "3.2.0",
|
68 |
+
"grunt-contrib-concat": "0.5.1",
|
69 |
+
"grunt-contrib-csslint": "0.4.0",
|
70 |
+
"grunt-contrib-uglify": "0.9.1",
|
71 |
+
"grunt-htmlhint": "0.9.13",
|
72 |
+
"grunt-jsbeautifier": "0.2.10",
|
73 |
+
"grunt-bump": "0.3.1"
|
74 |
+
}
|
75 |
+
}
|
packages.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake
|
2 |
+
libgl1-mesa-glx
|
3 |
+
portaudio19-dev
|
4 |
+
alsa-utils
|
5 |
+
|
6 |
+
|
7 |
+
|
portaudio/.editorconfig
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# EditorConfig info: https://editorconfig.org/
|
2 |
+
root = true
|
3 |
+
|
4 |
+
[Makefile*]
|
5 |
+
indent_style = tab
|
6 |
+
|
7 |
+
[*.{c,cpp,h,cxx,hxx}]
|
8 |
+
indent_style = space
|
9 |
+
indent_size = 4
|
10 |
+
charset = utf-8
|
11 |
+
trim_trailing_whitespace = true
|
12 |
+
insert_final_newline = true
|
13 |
+
max_line_length = 120
|
portaudio/.gitattributes
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Set the default behavior, in case people don't have core.autocrlf set.
|
2 |
+
* text=auto
|
3 |
+
|
4 |
+
# Explicitly declare text files you want to always be normalized and converted
|
5 |
+
# to native line endings on checkout.
|
6 |
+
*.c text
|
7 |
+
*.h text
|
8 |
+
*.cpp text
|
9 |
+
*.hpp text
|
10 |
+
*.fth text
|
11 |
+
*.java text
|
12 |
+
*.f text
|
13 |
+
*.txt text
|
14 |
+
*.dox text
|
15 |
+
*.m text
|
16 |
+
|
17 |
+
# Declare files that will always have CRLF line endings on checkout.
|
18 |
+
*.sln text eol=crlf
|
19 |
+
*.def text eol=crlf
|
20 |
+
*.dsp text eol=crlf
|
21 |
+
*.dsw text eol=crlf
|
22 |
+
*.vcproj text eol=crlf
|
23 |
+
*.sln text eol=crlf
|
24 |
+
*.doc text eol=crlf
|
25 |
+
*.bat text eol=crlf
|
26 |
+
|
27 |
+
# Denote all files that are truly binary and should not be modified.
|
28 |
+
*.dic binary
|
29 |
+
*.odt binary
|
30 |
+
*.pdf binary
|
31 |
+
*.png binary
|
32 |
+
*.jpg binary
|
33 |
+
*.wav binary
|
34 |
+
*.la binary
|
35 |
+
config.guess binary
|
36 |
+
config.status binary
|
37 |
+
config.sub binary
|
38 |
+
configure binary
|
39 |
+
depcomp binary
|
40 |
+
install-sh binary
|
41 |
+
libtool binary
|
42 |
+
missing binary
|
43 |
+
|
portaudio/.github/ISSUE_TEMPLATE/bug_report.md
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
name: Bug report
|
3 |
+
about: Create a report to help us improve
|
4 |
+
title: ''
|
5 |
+
labels: ''
|
6 |
+
assignees: ''
|
7 |
+
|
8 |
+
---
|
9 |
+
|
10 |
+
(Please use the mailing list for support requests and general discussion. This is only for actual bugs.)
|
11 |
+
|
12 |
+
**Describe the bug**
|
13 |
+
A clear and concise description of what the bug is.
|
14 |
+
|
15 |
+
**To Reproduce**
|
16 |
+
Steps to reproduce the behavior. Include code if applicable.
|
17 |
+
1.
|
18 |
+
|
19 |
+
**Expected behavior**
|
20 |
+
A clear and concise description of what you expected to happen.
|
21 |
+
|
22 |
+
**Actual behavior**
|
23 |
+
What actually happened.
|
24 |
+
Include a recording if helpful.
|
25 |
+
Error messages or logs longer than a page should be attached as a .txt file.
|
26 |
+
|
27 |
+
**Desktop (please complete the following information):**
|
28 |
+
- OS: [e.g. Mac OS]
|
29 |
+
- OS Version [e.g. 22]
|
30 |
+
- PortAudio version: stable, nightly snapshot (which?), current (please give date and/or Git hash):
|
31 |
+
- If Windows or Linux, which Host API (e.g. WASAPI):
|
32 |
+
|
33 |
+
**Additional context**
|
34 |
+
Add any other context about the problem here.
|
portaudio/.github/workflows/MSBuild.yml
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: MSBuild MSVC Project File CI
|
2 |
+
|
3 |
+
on: [push, pull_request]
|
4 |
+
|
5 |
+
env:
|
6 |
+
# Path to the solution file relative to the root of the project.
|
7 |
+
SOLUTION_FILE_PATH: ./build/msvc/portaudio.sln
|
8 |
+
VCPROJ_FILE_PATH: ./build/msvc/portaudio.vcproj
|
9 |
+
VCXPROJ_FILE_PATH: ./build/msvc/portaudio.vcxproj
|
10 |
+
VCXPROJ_FILTERS_FILE_PATH: ./build/msvc/portaudio.vcxproj.filters
|
11 |
+
VCXPROJ_USER_FILE_PATH: ./build/msvc/portaudio.vcxproj.user
|
12 |
+
DEF_FILE_PATH: ./build/msvc/portaudio.def
|
13 |
+
|
14 |
+
jobs:
|
15 |
+
build:
|
16 |
+
runs-on: windows-latest
|
17 |
+
strategy:
|
18 |
+
matrix:
|
19 |
+
BUILD_CONFIGURATION: [Release]
|
20 |
+
BUILD_PLATFORM: [Win32, x64]
|
21 |
+
|
22 |
+
steps:
|
23 |
+
- name: Add MSBuild to PATH
|
24 |
+
uses: microsoft/setup-msbuild@v1
|
25 |
+
|
26 |
+
- uses: actions/checkout@v2
|
27 |
+
|
28 |
+
- name: Upgrade VC Project File
|
29 |
+
# We maintain our vcproj file in an old format to maintain backwards compatibility
|
30 |
+
# This step upgrades the project to the latest version of MSVC
|
31 |
+
# see https://docs.microsoft.com/en-us/visualstudio/ide/reference/upgrade-devenv-exe?view=vs-2019
|
32 |
+
# pipe to file to ensure that it terminates https://stackoverflow.com/questions/48896010/occasionally-occurring-msbuild-error-msb3428/48918105#48918105
|
33 |
+
# discussion of using vswhere.exe here: https://stackoverflow.com/questions/65287456/how-to-upgrade-a-visual-studio-project-from-within-a-github-action/65311868#65311868
|
34 |
+
run: |
|
35 |
+
$devenv = & vswhere.exe '-property' productPath
|
36 |
+
Write-Output "$devenv"
|
37 |
+
& $devenv "${{env.VCPROJ_FILE_PATH}}" /Upgrade /NoSplash | Out-Null
|
38 |
+
Write-Output "devenv launched"
|
39 |
+
while (!(Test-Path "${{env.VCXPROJ_FILE_PATH}}")) { Start-Sleep -Seconds 10 }
|
40 |
+
Write-Output "vcxproj found"
|
41 |
+
while (!(Test-Path "${{env.VCXPROJ_FILTERS_FILE_PATH}}")) { Start-Sleep -Seconds 10 }
|
42 |
+
Write-Output "vcxproj.filters found"
|
43 |
+
Start-Sleep -Seconds 10
|
44 |
+
Write-Output "done."
|
45 |
+
|
46 |
+
- name: Remove ASIO Files and Enable PA_USE_DS=1
|
47 |
+
# Process the project files to remove ASIO-related sources and includes (since we can not access the ASIO SDK in a public build)
|
48 |
+
run: |
|
49 |
+
# Process .vcxproj file: remove source files
|
50 |
+
$xdoc = new-object System.Xml.XmlDocument
|
51 |
+
$vcxprojFile = resolve-path("${{env.VCXPROJ_FILE_PATH}}")
|
52 |
+
$xdoc.load($vcxprojFile)
|
53 |
+
$namespace = New-Object -TypeName "Xml.XmlNamespaceManager" -ArgumentList $xdoc.NameTable
|
54 |
+
$namespace.AddNamespace("vs", $xdoc.DocumentElement.NamespaceURI)
|
55 |
+
$nodes = $xdoc.SelectNodes("//vs:ClCompile[contains(@Include, '..\src\hostapi\asio')]", $namespace)
|
56 |
+
Write-Output "deleting ASIO related compilation nodes from .vcxproj:"
|
57 |
+
Write-Output $nodes
|
58 |
+
ForEach($node in $nodes) {
|
59 |
+
$parent = $node.ParentNode
|
60 |
+
$parent.RemoveChild($node)
|
61 |
+
}
|
62 |
+
# Enable DirectSound host API
|
63 |
+
$nodes = $xdoc.SelectNodes("//vs:PreprocessorDefinitions[contains(., 'PA_USE_DS=0')]", $namespace)
|
64 |
+
ForEach($node in $nodes) {
|
65 |
+
$text = $node.InnerText
|
66 |
+
$node.InnerText = $text -replace 'PA_USE_DS=0', 'PA_USE_DS=1'
|
67 |
+
}
|
68 |
+
$xdoc.save($vcxprojFile)
|
69 |
+
# Process .vcxproj.filters file: remove source files and includes
|
70 |
+
$vcxprojFiltersFile = resolve-path("${{env.VCXPROJ_FILTERS_FILE_PATH}}")
|
71 |
+
$xdoc.load($vcxprojFiltersFile)
|
72 |
+
$namespace = New-Object -TypeName "Xml.XmlNamespaceManager" -ArgumentList $xdoc.NameTable
|
73 |
+
$namespace.AddNamespace("vs", $xdoc.DocumentElement.NamespaceURI)
|
74 |
+
$nodes = $xdoc.SelectNodes("//vs:ClCompile[contains(@Include, '..\src\hostapi\asio')]", $namespace)
|
75 |
+
Write-Output "deleting ASIO related compilation nodes from .vcxproj.filters:"
|
76 |
+
Write-Output $nodes
|
77 |
+
ForEach($node in $nodes) {
|
78 |
+
$parent = $node.ParentNode
|
79 |
+
$parent.RemoveChild($node)
|
80 |
+
}
|
81 |
+
$nodes = $xdoc.SelectNodes("//vs:ClInclude[contains(@Include, 'pa_asio.h')]", $namespace)
|
82 |
+
Write-Output "deleting ASIO related include nodes from .vcxproj.filters:"
|
83 |
+
Write-Output $nodes
|
84 |
+
ForEach($node in $nodes) {
|
85 |
+
$parent = $node.ParentNode
|
86 |
+
$parent.RemoveChild($node)
|
87 |
+
}
|
88 |
+
$xdoc.save($vcxprojFiltersFile)
|
89 |
+
# Process .def file: remove PaAsio_ symbols
|
90 |
+
Set-Content -Path "${{env.DEF_FILE_PATH}}" -Value (Get-Content -Path "${{env.DEF_FILE_PATH}}" | Select-String -Pattern 'PaAsio_' -NotMatch)
|
91 |
+
|
92 |
+
- name: Build
|
93 |
+
working-directory: ${{env.GITHUB_WORKSPACE}}
|
94 |
+
# Add additional options to the MSBuild command line here (like platform or verbosity level).
|
95 |
+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
|
96 |
+
run: msbuild /m /p:Configuration=${{matrix.BUILD_CONFIGURATION}} /p:Platform=${{matrix.BUILD_PLATFORM}} ${{env.VCXPROJ_FILE_PATH}}
|
portaudio/.github/workflows/c-cpp.yml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: C/C++ CI
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [ master ]
|
6 |
+
pull_request:
|
7 |
+
branches: [ master ]
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
build:
|
11 |
+
|
12 |
+
runs-on: ubuntu-latest
|
13 |
+
|
14 |
+
steps:
|
15 |
+
- uses: actions/checkout@v2
|
16 |
+
- name: configure
|
17 |
+
run: ./configure
|
18 |
+
- name: make
|
19 |
+
run: make
|
20 |
+
|
21 |
+
build-cmake:
|
22 |
+
|
23 |
+
runs-on: ubuntu-latest
|
24 |
+
|
25 |
+
steps:
|
26 |
+
- uses: actions/checkout@v2
|
27 |
+
- name: cmake
|
28 |
+
run: cmake .
|
29 |
+
- name: make
|
30 |
+
run: make
|
31 |
+
|
32 |
+
build-cmake-msvc:
|
33 |
+
|
34 |
+
runs-on: windows-latest
|
35 |
+
|
36 |
+
steps:
|
37 |
+
- uses: actions/checkout@v1
|
38 |
+
- name: cmake
|
39 |
+
run: cmake .
|
40 |
+
- name: build
|
41 |
+
run: cmake --build .
|
42 |
+
|
43 |
+
build-cmake-mingw:
|
44 |
+
|
45 |
+
runs-on: ubuntu-latest
|
46 |
+
|
47 |
+
steps:
|
48 |
+
- uses: actions/checkout@v2
|
49 |
+
- name: apt
|
50 |
+
run: sudo apt-get install mingw-w64
|
51 |
+
- name: cmake
|
52 |
+
run: cmake -DCMAKE_TOOLCHAIN_FILE=i686-w64-mingw32.cmake .
|
53 |
+
- name: make
|
54 |
+
run: make
|
portaudio/.gitignore
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Compiled Object files
|
2 |
+
*.slo
|
3 |
+
*.lo
|
4 |
+
*.o
|
5 |
+
*.obj
|
6 |
+
|
7 |
+
# annoying files
|
8 |
+
**/.DS_Store
|
9 |
+
|
10 |
+
# Generated by configure and make
|
11 |
+
Makefile
|
12 |
+
bin-stamp
|
13 |
+
bin/*
|
14 |
+
config.log
|
15 |
+
config.status
|
16 |
+
lib-stamp
|
17 |
+
lib/*
|
18 |
+
libtool
|
19 |
+
portaudio-2.0.pc
|
20 |
+
autom4te.cache/*
|
21 |
+
|
22 |
+
# Precompiled Headers
|
23 |
+
*.gch
|
24 |
+
*.pch
|
25 |
+
|
26 |
+
# Compiled Dynamic libraries
|
27 |
+
*.so
|
28 |
+
*.dylib
|
29 |
+
*.dll
|
30 |
+
|
31 |
+
# Fortran module files
|
32 |
+
*.mod
|
33 |
+
|
34 |
+
# Compiled Static libraries
|
35 |
+
*.lai
|
36 |
+
*.la
|
37 |
+
*.a
|
38 |
+
*.lib
|
39 |
+
|
40 |
+
# Executables
|
41 |
+
*.exe
|
42 |
+
*.out
|
43 |
+
*.app
|
44 |
+
|
45 |
+
# Visual Studio 2017/2019 state folder
|
46 |
+
.vs/
|
47 |
+
|
48 |
+
# Visual Studio CMake build output folder
|
49 |
+
out/
|
50 |
+
|
51 |
+
# Visual Studio CMake settings file
|
52 |
+
CMakeSettings.json
|
portaudio/CMakeLists.txt
ADDED
@@ -0,0 +1,487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# $Id: $
|
2 |
+
#
|
3 |
+
# For a "How-To" please refer to the Portaudio documentation at:
|
4 |
+
# http://www.portaudio.com/trac/wiki/TutorialDir/Compile/CMake
|
5 |
+
#
|
6 |
+
|
7 |
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
8 |
+
|
9 |
+
# Check if the user is building PortAudio stand-alone or as part of a larger
|
10 |
+
# project. If this is part of a larger project (i.e. the CMakeLists.txt has
|
11 |
+
# been imported by some other CMakeLists.txt), we don't want to trump over
|
12 |
+
# the top of that project's global settings.
|
13 |
+
IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_LIST_DIR})
|
14 |
+
PROJECT(portaudio)
|
15 |
+
|
16 |
+
# CMAKE_CONFIGURATION_TYPES only exists for multi-config generators (like
|
17 |
+
# Visual Studio or Xcode). For these projects, we won't define
|
18 |
+
# CMAKE_BUILD_TYPE as it does not make sense.
|
19 |
+
IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
20 |
+
MESSAGE(STATUS "Setting CMAKE_BUILD_TYPE type to 'Debug' as none was specified.")
|
21 |
+
SET(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
|
22 |
+
SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
|
23 |
+
ENDIF()
|
24 |
+
|
25 |
+
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
|
26 |
+
|
27 |
+
IF(WIN32 AND MSVC)
|
28 |
+
OPTION(PA_DLL_LINK_WITH_STATIC_RUNTIME "Link with static runtime libraries (minimizes runtime dependencies)" ON)
|
29 |
+
IF(PA_DLL_LINK_WITH_STATIC_RUNTIME)
|
30 |
+
FOREACH(flag_var
|
31 |
+
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
|
32 |
+
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
|
33 |
+
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
|
34 |
+
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
|
35 |
+
IF(${flag_var} MATCHES "/MD")
|
36 |
+
STRING(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
37 |
+
ENDIF()
|
38 |
+
ENDFOREACH()
|
39 |
+
ENDIF()
|
40 |
+
ENDIF()
|
41 |
+
ENDIF()
|
42 |
+
|
43 |
+
SET(PA_VERSION 19)
|
44 |
+
SET(PA_PKGCONFIG_VERSION ${PA_VERSION})
|
45 |
+
SET(PA_SOVERSION "${PA_VERSION}.0")
|
46 |
+
|
47 |
+
# Most of the code from this point onwards is related to populating the
|
48 |
+
# following variables:
|
49 |
+
# PA_PUBLIC_INCLUDES - This contains the list of public PortAudio header
|
50 |
+
# files. These files will be copied into /include paths on Unix'y
|
51 |
+
# systems when "make install" is invoked.
|
52 |
+
# PA_PRIVATE_INCLUDES - This contains the list of header files which
|
53 |
+
# are not part of PortAudio, but are required by the various hostapis.
|
54 |
+
# It is only used by CMake IDE generators (like Visual Studio) to
|
55 |
+
# provide quick-links to useful headers. It has no impact on build
|
56 |
+
# output.
|
57 |
+
# PA_PRIVATE_INCLUDE_PATHS - This contains the list of include paths which
|
58 |
+
# will be passed to the compiler while PortAudio is being built which
|
59 |
+
# are not required by applications using the PortAudio API.
|
60 |
+
# PA_PRIVATE_COMPILE_DEFINITIONS - This contains a list of preprocessor
|
61 |
+
# macro definitions which will be set when compiling PortAudio source
|
62 |
+
# files.
|
63 |
+
# PA_SOURCES - This contains the list of source files which will be built
|
64 |
+
# into the static and shared PortAudio libraries.
|
65 |
+
# PA_NON_UNICODE_SOURCES - This also contains a list of source files which
|
66 |
+
# will be build into the static and shared PortAudio libraries. However,
|
67 |
+
# these sources will not have any unicode compiler definitions added
|
68 |
+
# to them. This list should only contain external source dependencies.
|
69 |
+
# PA_EXTRA_SHARED_SOURCES - Contains a list of extra files which will be
|
70 |
+
# associated only with the shared PortAudio library. This only seems
|
71 |
+
# relevant for Windows shared libraries which require a list of export
|
72 |
+
# symbols.
|
73 |
+
# Where other PA_* variables are set, these are almost always only used to
|
74 |
+
# preserve the historic SOURCE_GROUP behavior (which again only has an impact
|
75 |
+
# on IDE-style generators for visual appearance) or store the output of
|
76 |
+
# find_library() calls.
|
77 |
+
|
78 |
+
SET(PA_COMMON_INCLUDES
|
79 |
+
src/common/pa_allocation.h
|
80 |
+
src/common/pa_converters.h
|
81 |
+
src/common/pa_cpuload.h
|
82 |
+
src/common/pa_debugprint.h
|
83 |
+
src/common/pa_dither.h
|
84 |
+
src/common/pa_endianness.h
|
85 |
+
src/common/pa_hostapi.h
|
86 |
+
src/common/pa_memorybarrier.h
|
87 |
+
src/common/pa_process.h
|
88 |
+
src/common/pa_ringbuffer.h
|
89 |
+
src/common/pa_stream.h
|
90 |
+
src/common/pa_trace.h
|
91 |
+
src/common/pa_types.h
|
92 |
+
src/common/pa_util.h
|
93 |
+
)
|
94 |
+
|
95 |
+
SET(PA_COMMON_SOURCES
|
96 |
+
src/common/pa_allocation.c
|
97 |
+
src/common/pa_converters.c
|
98 |
+
src/common/pa_cpuload.c
|
99 |
+
src/common/pa_debugprint.c
|
100 |
+
src/common/pa_dither.c
|
101 |
+
src/common/pa_front.c
|
102 |
+
src/common/pa_process.c
|
103 |
+
src/common/pa_ringbuffer.c
|
104 |
+
src/common/pa_stream.c
|
105 |
+
src/common/pa_trace.c
|
106 |
+
)
|
107 |
+
|
108 |
+
SOURCE_GROUP("common" FILES ${PA_COMMON_INCLUDES} ${PA_COMMON_SOURCES})
|
109 |
+
|
110 |
+
SET(PA_PUBLIC_INCLUDES include/portaudio.h)
|
111 |
+
|
112 |
+
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake_support)
|
113 |
+
|
114 |
+
SET(PA_SKELETON_SOURCES src/hostapi/skeleton/pa_hostapi_skeleton.c)
|
115 |
+
SOURCE_GROUP("hostapi\\skeleton" ${PA_SKELETON_SOURCES})
|
116 |
+
SET(PA_SOURCES ${PA_COMMON_SOURCES} ${PA_SKELETON_SOURCES})
|
117 |
+
SET(PA_PRIVATE_INCLUDE_PATHS src/common ${CMAKE_CURRENT_BINARY_DIR})
|
118 |
+
|
119 |
+
IF(WIN32)
|
120 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} _CRT_SECURE_NO_WARNINGS)
|
121 |
+
|
122 |
+
SET(PA_PLATFORM_SOURCES
|
123 |
+
src/os/win/pa_win_hostapis.c
|
124 |
+
src/os/win/pa_win_util.c
|
125 |
+
src/os/win/pa_win_waveformat.c
|
126 |
+
src/os/win/pa_win_wdmks_utils.c
|
127 |
+
src/os/win/pa_win_coinitialize.c)
|
128 |
+
SET(PA_PLATFORM_INCLUDES
|
129 |
+
src/os/win/pa_win_coinitialize.h
|
130 |
+
src/os/win/pa_win_wdmks_utils.h)
|
131 |
+
|
132 |
+
IF(MSVC)
|
133 |
+
SET(PA_PLATFORM_SOURCES ${PA_PLATFORM_SOURCES} src/os/win/pa_x86_plain_converters.c)
|
134 |
+
SET(PA_PLATFORM_INCLUDES ${PA_PLATFORM_INCLUDES} src/os/win/pa_x86_plain_converters.h)
|
135 |
+
ELSE()
|
136 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} _WIN32_WINNT=0x0501 WINVER=0x0501)
|
137 |
+
SET(DEF_EXCLUDE_X86_PLAIN_CONVERTERS ";")
|
138 |
+
ENDIF()
|
139 |
+
|
140 |
+
SOURCE_GROUP("os\\win" FILES ${PA_PLATFORM_SOURCES} ${PA_PLATFORM_INCLUDES})
|
141 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_PLATFORM_SOURCES})
|
142 |
+
SET(PA_PRIVATE_INCLUDES ${PA_PRIVATE_INCLUDES} ${PA_PLATFORM_INCLUDES})
|
143 |
+
SET(PA_PRIVATE_INCLUDE_PATHS ${PA_PRIVATE_INCLUDE_PATHS} src/os/win)
|
144 |
+
|
145 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} winmm)
|
146 |
+
|
147 |
+
# Try to find ASIO SDK (assumes that portaudio and asiosdk folders are side-by-side, see
|
148 |
+
# http://www.portaudio.com/trac/wiki/TutorialDir/Compile/WindowsASIOMSVC)
|
149 |
+
FIND_PACKAGE(ASIOSDK)
|
150 |
+
IF(ASIOSDK_FOUND)
|
151 |
+
OPTION(PA_USE_ASIO "Enable support for ASIO" ON)
|
152 |
+
ELSE()
|
153 |
+
OPTION(PA_USE_ASIO "Enable support for ASIO" OFF)
|
154 |
+
ENDIF()
|
155 |
+
IF(PA_USE_ASIO)
|
156 |
+
SET(PA_PRIVATE_INCLUDE_PATHS ${PA_PRIVATE_INCLUDE_PATHS} ${ASIOSDK_ROOT_DIR}/common)
|
157 |
+
SET(PA_PRIVATE_INCLUDE_PATHS ${PA_PRIVATE_INCLUDE_PATHS} ${ASIOSDK_ROOT_DIR}/host)
|
158 |
+
SET(PA_PRIVATE_INCLUDE_PATHS ${PA_PRIVATE_INCLUDE_PATHS} ${ASIOSDK_ROOT_DIR}/host/pc)
|
159 |
+
SET(PA_ASIO_SOURCES src/hostapi/asio/pa_asio.cpp src/hostapi/asio/iasiothiscallresolver.cpp)
|
160 |
+
SET(PA_ASIOSDK_SOURCES ${ASIOSDK_ROOT_DIR}/common/asio.cpp ${ASIOSDK_ROOT_DIR}/host/pc/asiolist.cpp ${ASIOSDK_ROOT_DIR}/host/asiodrivers.cpp)
|
161 |
+
SOURCE_GROUP("hostapi\\ASIO" FILES ${PA_ASIO_SOURCES})
|
162 |
+
SOURCE_GROUP("hostapi\\ASIO\\ASIOSDK" FILES ${PA_ASIOSDK_SOURCES})
|
163 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_asio.h)
|
164 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_ASIO_SOURCES})
|
165 |
+
SET(PA_NON_UNICODE_SOURCES ${PA_NON_UNICODE_SOURCES} ${PA_ASIOSDK_SOURCES})
|
166 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ole32 uuid)
|
167 |
+
ELSE()
|
168 |
+
# Set variables for DEF file expansion
|
169 |
+
SET(DEF_EXCLUDE_ASIO_SYMBOLS ";")
|
170 |
+
ENDIF()
|
171 |
+
|
172 |
+
OPTION(PA_USE_DS "Enable support for DirectSound" ON)
|
173 |
+
IF(PA_USE_DS)
|
174 |
+
IF(MINGW)
|
175 |
+
MESSAGE(STATUS "DirectSound support will be built with DSound provided by MinGW.")
|
176 |
+
OPTION(PA_USE_DIRECTSOUNDFULLDUPLEXCREATE "Use DirectSound full duplex create" OFF)
|
177 |
+
ELSE(MINGW)
|
178 |
+
OPTION(PA_USE_DIRECTSOUNDFULLDUPLEXCREATE "Use DirectSound full duplex create" ON)
|
179 |
+
ENDIF(MINGW)
|
180 |
+
MARK_AS_ADVANCED(PA_USE_DIRECTSOUNDFULLDUPLEXCREATE)
|
181 |
+
IF(PA_USE_DIRECTSOUNDFULLDUPLEXCREATE)
|
182 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PAWIN_USE_DIRECTSOUNDFULLDUPLEXCREATE)
|
183 |
+
ENDIF()
|
184 |
+
SET(PA_DS_INCLUDES src/hostapi/dsound/pa_win_ds_dynlink.h)
|
185 |
+
SET(PA_DS_SOURCES src/hostapi/dsound/pa_win_ds.c src/hostapi/dsound/pa_win_ds_dynlink.c)
|
186 |
+
SOURCE_GROUP("hostapi\\dsound" FILES ${PA_DS_INCLUDES} ${PA_DS_SOURCES})
|
187 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_win_ds.h include/pa_win_waveformat.h)
|
188 |
+
SET(PA_PRIVATE_INCLUDES ${PA_PRIVATE_INCLUDES} ${PA_DS_INCLUDES})
|
189 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_DS_SOURCES})
|
190 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} dsound)
|
191 |
+
ENDIF(PA_USE_DS)
|
192 |
+
|
193 |
+
OPTION(PA_USE_WMME "Enable support for MME" ON)
|
194 |
+
IF(PA_USE_WMME)
|
195 |
+
SET(PA_WMME_SOURCES src/hostapi/wmme/pa_win_wmme.c)
|
196 |
+
SOURCE_GROUP("hostapi\\wmme" FILES ${PA_WMME_SOURCES})
|
197 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_win_wmme.h include/pa_win_waveformat.h)
|
198 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_WMME_SOURCES})
|
199 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ole32 uuid)
|
200 |
+
ENDIF()
|
201 |
+
|
202 |
+
# MinGW versions below 4.93, especially non MinGW-w64 distributions may
|
203 |
+
# break in the wasapi build. If an older MinGW version is required, WASAPI-
|
204 |
+
# support needs to be disabled.
|
205 |
+
OPTION(PA_USE_WASAPI "Enable support for WASAPI" ON)
|
206 |
+
IF(PA_USE_WASAPI)
|
207 |
+
SET(PA_WASAPI_SOURCES src/hostapi/wasapi/pa_win_wasapi.c)
|
208 |
+
SOURCE_GROUP("hostapi\\wasapi" FILES ${PA_WASAPI_SOURCES})
|
209 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_win_wasapi.h include/pa_win_waveformat.h)
|
210 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_WASAPI_SOURCES})
|
211 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ole32 uuid)
|
212 |
+
ELSE()
|
213 |
+
SET(DEF_EXCLUDE_WASAPI_SYMBOLS ";")
|
214 |
+
ENDIF()
|
215 |
+
|
216 |
+
OPTION(PA_USE_WDMKS "Enable support for WDMKS" ON)
|
217 |
+
IF(PA_USE_WDMKS)
|
218 |
+
SET(PA_WDMKS_SOURCES src/hostapi/wdmks/pa_win_wdmks.c)
|
219 |
+
SOURCE_GROUP("hostapi\\wdmks" FILES ${PA_WDMKS_SOURCES})
|
220 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_win_wdmks.h)
|
221 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_WDMKS_SOURCES})
|
222 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} setupapi ole32 uuid)
|
223 |
+
ENDIF()
|
224 |
+
|
225 |
+
OPTION(PA_USE_WDMKS_DEVICE_INFO "Use WDM/KS API for device info" ON)
|
226 |
+
MARK_AS_ADVANCED(PA_USE_WDMKS_DEVICE_INFO)
|
227 |
+
IF(PA_USE_WDMKS_DEVICE_INFO)
|
228 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PAWIN_USE_WDMKS_DEVICE_INFO)
|
229 |
+
ENDIF()
|
230 |
+
|
231 |
+
SET(GENERATED_MESSAGE "CMake generated file, do NOT edit! Use CMake-GUI to change configuration instead.")
|
232 |
+
CONFIGURE_FILE(cmake_support/template_portaudio.def ${CMAKE_CURRENT_BINARY_DIR}/portaudio_cmake.def @ONLY)
|
233 |
+
CONFIGURE_FILE(cmake_support/options_cmake.h.in ${CMAKE_CURRENT_BINARY_DIR}/options_cmake.h @ONLY)
|
234 |
+
SET(PA_PRIVATE_INCLUDES ${PA_PRIVATE_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}/options_cmake.h)
|
235 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PORTAUDIO_CMAKE_GENERATED)
|
236 |
+
SOURCE_GROUP("cmake_generated" FILES ${CMAKE_CURRENT_BINARY_DIR}/portaudio_cmake.def ${CMAKE_CURRENT_BINARY_DIR}/options_cmake.h)
|
237 |
+
|
238 |
+
SET(PA_EXTRA_SHARED_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/portaudio_cmake.def)
|
239 |
+
|
240 |
+
ELSE()
|
241 |
+
|
242 |
+
SET(PA_PRIVATE_INCLUDE_PATHS ${PA_PRIVATE_INCLUDE_PATHS} src/os/unix)
|
243 |
+
SET(PA_PLATFORM_SOURCES src/os/unix/pa_unix_hostapis.c src/os/unix/pa_unix_util.c)
|
244 |
+
SOURCE_GROUP("os\\unix" FILES ${PA_PLATFORM_SOURCES})
|
245 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_PLATFORM_SOURCES})
|
246 |
+
|
247 |
+
IF(APPLE)
|
248 |
+
|
249 |
+
SET(CMAKE_MACOSX_RPATH 1)
|
250 |
+
OPTION(PA_USE_COREAUDIO "Enable support for CoreAudio" ON)
|
251 |
+
IF(PA_USE_COREAUDIO)
|
252 |
+
SET(PA_COREAUDIO_SOURCES
|
253 |
+
src/hostapi/coreaudio/pa_mac_core.c
|
254 |
+
src/hostapi/coreaudio/pa_mac_core_blocking.c
|
255 |
+
src/hostapi/coreaudio/pa_mac_core_utilities.c)
|
256 |
+
SET(PA_COREAUDIO_INCLUDES
|
257 |
+
src/hostapi/coreaudio/pa_mac_core_blocking.h
|
258 |
+
src/hostapi/coreaudio/pa_mac_core_utilities.h)
|
259 |
+
SOURCE_GROUP("hostapi\\coreaudio" FILES ${PA_COREAUDIO_SOURCES} ${PA_COREAUDIO_INCLUDES})
|
260 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_mac_core.h)
|
261 |
+
SET(PA_PRIVATE_INCLUDES ${PA_PRIVATE_INCLUDES} ${PA_COREAUDIO_INCLUDES})
|
262 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_COREAUDIO_SOURCES})
|
263 |
+
|
264 |
+
FIND_LIBRARY(COREAUDIO_LIBRARY CoreAudio REQUIRED)
|
265 |
+
FIND_LIBRARY(AUDIOTOOLBOX_LIBRARY AudioToolbox REQUIRED)
|
266 |
+
FIND_LIBRARY(AUDIOUNIT_LIBRARY AudioUnit REQUIRED)
|
267 |
+
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED)
|
268 |
+
FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices REQUIRED)
|
269 |
+
MARK_AS_ADVANCED(COREAUDIO_LIBRARY AUDIOTOOLBOX_LIBRARY AUDIOUNIT_LIBRARY COREFOUNDATION_LIBRARY CORESERVICES_LIBRARY)
|
270 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ${COREAUDIO_LIBRARY} ${AUDIOTOOLBOX_LIBRARY} ${AUDIOUNIT_LIBRARY} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY})
|
271 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_USE_COREAUDIO)
|
272 |
+
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreFoundation -framework CoreServices")
|
273 |
+
ENDIF()
|
274 |
+
|
275 |
+
ELSEIF(UNIX)
|
276 |
+
|
277 |
+
FIND_PACKAGE(Jack)
|
278 |
+
IF(JACK_FOUND)
|
279 |
+
OPTION(PA_USE_JACK "Enable support for Jack" ON)
|
280 |
+
ELSE()
|
281 |
+
OPTION(PA_USE_JACK "Enable support for Jack" OFF)
|
282 |
+
ENDIF()
|
283 |
+
IF(PA_USE_JACK)
|
284 |
+
SET(PA_PRIVATE_INCLUDE_PATHS ${PA_PRIVATE_INCLUDE_PATHS} ${JACK_INCLUDE_DIRS})
|
285 |
+
SET(PA_JACK_SOURCES src/hostapi/jack/pa_jack.c)
|
286 |
+
SOURCE_GROUP("hostapi\\JACK" FILES ${PA_JACK_SOURCES})
|
287 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_jack.h)
|
288 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_JACK_SOURCES})
|
289 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_USE_JACK)
|
290 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ${JACK_LIBRARIES})
|
291 |
+
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -ljack")
|
292 |
+
ENDIF()
|
293 |
+
|
294 |
+
FIND_PACKAGE(ALSA)
|
295 |
+
IF(ALSA_FOUND)
|
296 |
+
OPTION(PA_USE_ALSA "Enable support for ALSA" ON)
|
297 |
+
OPTION(PA_ALSA_DYNAMIC "Enable loading ALSA through dlopen" OFF)
|
298 |
+
ELSE()
|
299 |
+
OPTION(PA_USE_ALSA "Enable support for ALSA" OFF)
|
300 |
+
ENDIF()
|
301 |
+
IF(PA_USE_ALSA)
|
302 |
+
SET(PA_PRIVATE_INCLUDE_PATHS ${PA_PRIVATE_INCLUDE_PATHS} ${ALSA_INCLUDE_DIRS})
|
303 |
+
SET(PA_ALSA_SOURCES src/hostapi/alsa/pa_linux_alsa.c)
|
304 |
+
SOURCE_GROUP("hostapi\\ALSA" FILES ${PA_ALSA_SOURCES})
|
305 |
+
SET(PA_PUBLIC_INCLUDES ${PA_PUBLIC_INCLUDES} include/pa_linux_alsa.h)
|
306 |
+
SET(PA_SOURCES ${PA_SOURCES} ${PA_ALSA_SOURCES})
|
307 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_USE_ALSA)
|
308 |
+
IF(PA_ALSA_DYNAMIC)
|
309 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_ALSA_DYNAMIC)
|
310 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ${CMAKE_DL_LIBS})
|
311 |
+
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -l${CMAKE_DL_LIBS}")
|
312 |
+
ELSE()
|
313 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ${ALSA_LIBRARIES})
|
314 |
+
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -lasound")
|
315 |
+
ENDIF()
|
316 |
+
ENDIF()
|
317 |
+
|
318 |
+
ENDIF()
|
319 |
+
|
320 |
+
SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -lm -lpthread")
|
321 |
+
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} m pthread)
|
322 |
+
|
323 |
+
ENDIF()
|
324 |
+
|
325 |
+
SOURCE_GROUP("include" FILES ${PA_PUBLIC_INCLUDES})
|
326 |
+
|
327 |
+
SET(PA_INCLUDES ${PA_PRIVATE_INCLUDES} ${PA_PUBLIC_INCLUDES})
|
328 |
+
|
329 |
+
IF(WIN32)
|
330 |
+
OPTION(PA_UNICODE_BUILD "Enable Portaudio Unicode build" ON)
|
331 |
+
IF(PA_UNICODE_BUILD)
|
332 |
+
SET_SOURCE_FILES_PROPERTIES(${PA_SOURCES} PROPERTIES COMPILE_DEFINITIONS "UNICODE;_UNICODE")
|
333 |
+
ENDIF()
|
334 |
+
ENDIF()
|
335 |
+
|
336 |
+
OPTION(PA_ENABLE_DEBUG_OUTPUT "Enable debug output for Portaudio" OFF)
|
337 |
+
IF(PA_ENABLE_DEBUG_OUTPUT)
|
338 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_ENABLE_DEBUG_OUTPUT)
|
339 |
+
ENDIF()
|
340 |
+
|
341 |
+
INCLUDE(TestBigEndian)
|
342 |
+
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
|
343 |
+
IF(IS_BIG_ENDIAN)
|
344 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_BIG_ENDIAN)
|
345 |
+
ELSE()
|
346 |
+
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_LITTLE_ENDIAN)
|
347 |
+
ENDIF()
|
348 |
+
|
349 |
+
OPTION(PA_BUILD_STATIC "Build static library" ON)
|
350 |
+
OPTION(PA_BUILD_SHARED "Build shared/dynamic library" ON)
|
351 |
+
|
352 |
+
IF(MSVC)
|
353 |
+
OPTION(PA_LIBNAME_ADD_SUFFIX "Add suffix _static to static library name" ON)
|
354 |
+
ELSE()
|
355 |
+
OPTION(PA_LIBNAME_ADD_SUFFIX "Add suffix _static to static library name" OFF)
|
356 |
+
ENDIF()
|
357 |
+
|
358 |
+
# MSVC: if PA_LIBNAME_ADD_SUFFIX is not used, and both static and shared libraries are
|
359 |
+
# built, one, of import- and static libraries, will overwrite the other. In
|
360 |
+
# embedded builds this is not an issue as they will only build the configuration
|
361 |
+
# used in the host application.
|
362 |
+
MARK_AS_ADVANCED(PA_LIBNAME_ADD_SUFFIX)
|
363 |
+
IF(MSVC AND PA_BUILD_STATIC AND PA_BUILD_SHARED AND NOT PA_LIBNAME_ADD_SUFFIX)
|
364 |
+
MESSAGE(WARNING "Building both shared and static libraries, and avoiding the suffix _static will lead to a name conflict")
|
365 |
+
SET(PA_LIBNAME_ADD_SUFFIX ON CACHE BOOL "Forcing use of suffix _static to avoid name conflict between static and import library" FORCE)
|
366 |
+
MESSAGE(WARNING "PA_LIBNAME_ADD_SUFFIX was set to ON")
|
367 |
+
ENDIF()
|
368 |
+
|
369 |
+
SET(PA_TARGETS "")
|
370 |
+
|
371 |
+
IF(PA_BUILD_SHARED)
|
372 |
+
LIST(APPEND PA_TARGETS portaudio)
|
373 |
+
ADD_LIBRARY(portaudio SHARED ${PA_INCLUDES} ${PA_COMMON_INCLUDES} ${PA_SOURCES} ${PA_NON_UNICODE_SOURCES} ${PA_EXTRA_SHARED_SOURCES})
|
374 |
+
SET_PROPERTY(TARGET portaudio APPEND_STRING PROPERTY COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS})
|
375 |
+
TARGET_INCLUDE_DIRECTORIES(portaudio PRIVATE ${PA_PRIVATE_INCLUDE_PATHS})
|
376 |
+
TARGET_INCLUDE_DIRECTORIES(portaudio PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<INSTALL_INTERFACE:include>")
|
377 |
+
TARGET_LINK_LIBRARIES(portaudio ${PA_LIBRARY_DEPENDENCIES})
|
378 |
+
ENDIF()
|
379 |
+
|
380 |
+
IF(PA_BUILD_STATIC)
|
381 |
+
LIST(APPEND PA_TARGETS portaudio_static)
|
382 |
+
ADD_LIBRARY(portaudio_static STATIC ${PA_INCLUDES} ${PA_COMMON_INCLUDES} ${PA_SOURCES} ${PA_NON_UNICODE_SOURCES})
|
383 |
+
SET_PROPERTY(TARGET portaudio_static APPEND_STRING PROPERTY COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS})
|
384 |
+
TARGET_INCLUDE_DIRECTORIES(portaudio_static PRIVATE ${PA_PRIVATE_INCLUDE_PATHS})
|
385 |
+
TARGET_INCLUDE_DIRECTORIES(portaudio_static PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<INSTALL_INTERFACE:include>")
|
386 |
+
TARGET_LINK_LIBRARIES(portaudio_static ${PA_LIBRARY_DEPENDENCIES})
|
387 |
+
IF(NOT PA_LIBNAME_ADD_SUFFIX)
|
388 |
+
SET_PROPERTY(TARGET portaudio_static PROPERTY OUTPUT_NAME portaudio)
|
389 |
+
ENDIF()
|
390 |
+
ENDIF()
|
391 |
+
|
392 |
+
IF(WIN32 AND MSVC)
|
393 |
+
OPTION(PA_CONFIG_LIB_OUTPUT_PATH "Make sure that output paths are kept neat" OFF)
|
394 |
+
IF(CMAKE_CL_64)
|
395 |
+
SET(TARGET_POSTFIX x64)
|
396 |
+
IF(PA_CONFIG_LIB_OUTPUT_PATH)
|
397 |
+
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/bin/x64)
|
398 |
+
ENDIF()
|
399 |
+
ELSE()
|
400 |
+
SET(TARGET_POSTFIX x86)
|
401 |
+
IF(PA_CONFIG_LIB_OUTPUT_PATH)
|
402 |
+
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/bin/Win32)
|
403 |
+
ENDIF()
|
404 |
+
ENDIF()
|
405 |
+
IF(PA_BUILD_SHARED)
|
406 |
+
IF(PA_LIBNAME_ADD_SUFFIX)
|
407 |
+
SET_TARGET_PROPERTIES(portaudio PROPERTIES OUTPUT_NAME portaudio_${TARGET_POSTFIX})
|
408 |
+
ELSE()
|
409 |
+
SET_TARGET_PROPERTIES(portaudio PROPERTIES OUTPUT_NAME portaudio)
|
410 |
+
ENDIF()
|
411 |
+
ENDIF()
|
412 |
+
IF(PA_BUILD_STATIC)
|
413 |
+
IF(PA_LIBNAME_ADD_SUFFIX)
|
414 |
+
SET_TARGET_PROPERTIES(portaudio_static PROPERTIES OUTPUT_NAME portaudio_static_${TARGET_POSTFIX})
|
415 |
+
ELSE()
|
416 |
+
SET_TARGET_PROPERTIES(portaudio_static PROPERTIES OUTPUT_NAME portaudio)
|
417 |
+
ENDIF()
|
418 |
+
ENDIF()
|
419 |
+
ELSE()
|
420 |
+
IF(APPLE AND CMAKE_VERSION VERSION_GREATER 3.4.2)
|
421 |
+
OPTION(PA_OUTPUT_OSX_FRAMEWORK "Generate an OS X framework instead of the simple library" OFF)
|
422 |
+
IF(PA_OUTPUT_OSX_FRAMEWORK)
|
423 |
+
SET_TARGET_PROPERTIES(portaudio PROPERTIES
|
424 |
+
FRAMEWORK TRUE
|
425 |
+
MACOSX_FRAMEWORK_IDENTIFIER com.portaudio
|
426 |
+
FRAMEWORK_VERSION A
|
427 |
+
PUBLIC_HEADER "${PA_PUBLIC_INCLUDES}"
|
428 |
+
VERSION ${PA_SOVERSION}
|
429 |
+
SOVERSION ${PA_SOVERSION})
|
430 |
+
ENDIF()
|
431 |
+
ENDIF()
|
432 |
+
ENDIF()
|
433 |
+
|
434 |
+
# At least on Windows in embedded builds, portaudio's install target should likely
|
435 |
+
# not be executed, as the library would usually already be installed as part of, and
|
436 |
+
# by means of the host application.
|
437 |
+
# The option below offers the option to avoid executing the portaudio install target
|
438 |
+
# for cases in which the host-application executes install, but no independent install
|
439 |
+
# of portaudio is wished.
|
440 |
+
OPTION(PA_DISABLE_INSTALL "Disable targets install and uninstall (for embedded builds)" OFF)
|
441 |
+
|
442 |
+
IF(NOT PA_OUTPUT_OSX_FRAMEWORK AND NOT PA_DISABLE_INSTALL)
|
443 |
+
INCLUDE(CMakePackageConfigHelpers)
|
444 |
+
|
445 |
+
CONFIGURE_PACKAGE_CONFIG_FILE(cmake_support/portaudioConfig.cmake.in ${CMAKE_BINARY_DIR}/cmake/portaudio/portaudioConfig.cmake
|
446 |
+
INSTALL_DESTINATION "lib/cmake/portaudio"
|
447 |
+
NO_CHECK_REQUIRED_COMPONENTS_MACRO)
|
448 |
+
WRITE_BASIC_PACKAGE_VERSION_FILE(${CMAKE_BINARY_DIR}/cmake/portaudio/portaudioConfigVersion.cmake
|
449 |
+
VERSION ${PA_VERSION}
|
450 |
+
COMPATIBILITY SameMajorVersion)
|
451 |
+
CONFIGURE_FILE(cmake_support/portaudio-2.0.pc.in ${CMAKE_CURRENT_BINARY_DIR}/portaudio-2.0.pc @ONLY)
|
452 |
+
INSTALL(FILES README.md DESTINATION share/doc/portaudio)
|
453 |
+
INSTALL(FILES LICENSE.txt DESTINATION share/doc/portaudio)
|
454 |
+
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/portaudio-2.0.pc DESTINATION lib/pkgconfig)
|
455 |
+
INSTALL(FILES ${PA_PUBLIC_INCLUDES} DESTINATION include)
|
456 |
+
INSTALL(TARGETS ${PA_TARGETS}
|
457 |
+
EXPORT portaudio-targets
|
458 |
+
RUNTIME DESTINATION bin
|
459 |
+
LIBRARY DESTINATION lib
|
460 |
+
ARCHIVE DESTINATION lib)
|
461 |
+
INSTALL(EXPORT portaudio-targets FILE "portaudioTargets.cmake" DESTINATION "lib/cmake/portaudio")
|
462 |
+
EXPORT(TARGETS ${PA_TARGETS} FILE "${PROJECT_BINARY_DIR}/cmake/portaudio/portaudioTargets.cmake")
|
463 |
+
INSTALL(FILES "${CMAKE_BINARY_DIR}/cmake/portaudio/portaudioConfig.cmake"
|
464 |
+
"${CMAKE_BINARY_DIR}/cmake/portaudio/portaudioConfigVersion.cmake"
|
465 |
+
DESTINATION "lib/cmake/portaudio")
|
466 |
+
|
467 |
+
IF (NOT TARGET uninstall)
|
468 |
+
CONFIGURE_FILE(
|
469 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_support/cmake_uninstall.cmake.in"
|
470 |
+
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
471 |
+
IMMEDIATE @ONLY)
|
472 |
+
ADD_CUSTOM_TARGET(uninstall
|
473 |
+
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
474 |
+
ENDIF()
|
475 |
+
ENDIF()
|
476 |
+
|
477 |
+
# Prepared for inclusion of test files
|
478 |
+
OPTION(PA_BUILD_TESTS "Include test projects" OFF)
|
479 |
+
IF(PA_BUILD_TESTS)
|
480 |
+
SUBDIRS(test)
|
481 |
+
ENDIF()
|
482 |
+
|
483 |
+
# Prepared for inclusion of test files
|
484 |
+
OPTION(PA_BUILD_EXAMPLES "Include example projects" OFF)
|
485 |
+
IF(PA_BUILD_EXAMPLES)
|
486 |
+
SUBDIRS(examples)
|
487 |
+
ENDIF()
|
portaudio/Doxyfile
ADDED
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Doxyfile 1.4.6
|
2 |
+
|
3 |
+
#---------------------------------------------------------------------------
|
4 |
+
# Project related configuration options
|
5 |
+
#---------------------------------------------------------------------------
|
6 |
+
PROJECT_NAME = PortAudio
|
7 |
+
PROJECT_NUMBER = 2.0
|
8 |
+
OUTPUT_DIRECTORY = ./doc/
|
9 |
+
CREATE_SUBDIRS = NO
|
10 |
+
OUTPUT_LANGUAGE = English
|
11 |
+
USE_WINDOWS_ENCODING = NO
|
12 |
+
BRIEF_MEMBER_DESC = YES
|
13 |
+
REPEAT_BRIEF = YES
|
14 |
+
ABBREVIATE_BRIEF = "The $name class" \
|
15 |
+
"The $name widget" \
|
16 |
+
"The $name file" \
|
17 |
+
is \
|
18 |
+
provides \
|
19 |
+
specifies \
|
20 |
+
contains \
|
21 |
+
represents \
|
22 |
+
a \
|
23 |
+
an \
|
24 |
+
the
|
25 |
+
ALWAYS_DETAILED_SEC = NO
|
26 |
+
INLINE_INHERITED_MEMB = NO
|
27 |
+
FULL_PATH_NAMES = NO
|
28 |
+
STRIP_FROM_PATH =
|
29 |
+
STRIP_FROM_INC_PATH =
|
30 |
+
SHORT_NAMES = NO
|
31 |
+
JAVADOC_AUTOBRIEF = NO
|
32 |
+
MULTILINE_CPP_IS_BRIEF = NO
|
33 |
+
DETAILS_AT_TOP = NO
|
34 |
+
INHERIT_DOCS = YES
|
35 |
+
SEPARATE_MEMBER_PAGES = NO
|
36 |
+
TAB_SIZE = 8
|
37 |
+
ALIASES =
|
38 |
+
OPTIMIZE_OUTPUT_FOR_C = YES
|
39 |
+
OPTIMIZE_OUTPUT_JAVA = NO
|
40 |
+
BUILTIN_STL_SUPPORT = NO
|
41 |
+
DISTRIBUTE_GROUP_DOC = NO
|
42 |
+
SUBGROUPING = YES
|
43 |
+
#---------------------------------------------------------------------------
|
44 |
+
# Build related configuration options
|
45 |
+
#---------------------------------------------------------------------------
|
46 |
+
EXTRACT_ALL = NO
|
47 |
+
EXTRACT_PRIVATE = NO
|
48 |
+
EXTRACT_STATIC = NO
|
49 |
+
EXTRACT_LOCAL_CLASSES = YES
|
50 |
+
EXTRACT_LOCAL_METHODS = NO
|
51 |
+
HIDE_UNDOC_MEMBERS = NO
|
52 |
+
HIDE_UNDOC_CLASSES = NO
|
53 |
+
HIDE_FRIEND_COMPOUNDS = NO
|
54 |
+
HIDE_IN_BODY_DOCS = NO
|
55 |
+
INTERNAL_DOCS = NO
|
56 |
+
CASE_SENSE_NAMES = YES
|
57 |
+
HIDE_SCOPE_NAMES = NO
|
58 |
+
SHOW_INCLUDE_FILES = YES
|
59 |
+
INLINE_INFO = YES
|
60 |
+
SORT_MEMBER_DOCS = YES
|
61 |
+
SORT_BRIEF_DOCS = NO
|
62 |
+
SORT_BY_SCOPE_NAME = NO
|
63 |
+
GENERATE_TODOLIST = NO
|
64 |
+
GENERATE_TESTLIST = NO
|
65 |
+
GENERATE_BUGLIST = NO
|
66 |
+
GENERATE_DEPRECATEDLIST= YES
|
67 |
+
ENABLED_SECTIONS =
|
68 |
+
MAX_INITIALIZER_LINES = 30
|
69 |
+
SHOW_USED_FILES = YES
|
70 |
+
SHOW_DIRECTORIES = YES
|
71 |
+
FILE_VERSION_FILTER =
|
72 |
+
#---------------------------------------------------------------------------
|
73 |
+
# configuration options related to warning and progress messages
|
74 |
+
#---------------------------------------------------------------------------
|
75 |
+
QUIET = NO
|
76 |
+
WARNINGS = YES
|
77 |
+
WARN_IF_UNDOCUMENTED = YES
|
78 |
+
WARN_IF_DOC_ERROR = YES
|
79 |
+
WARN_NO_PARAMDOC = NO
|
80 |
+
WARN_FORMAT = "$file:$line: $text"
|
81 |
+
WARN_LOGFILE =
|
82 |
+
#---------------------------------------------------------------------------
|
83 |
+
# configuration options related to the input files
|
84 |
+
#---------------------------------------------------------------------------
|
85 |
+
INPUT = doc/src \
|
86 |
+
include \
|
87 |
+
examples
|
88 |
+
FILE_PATTERNS = *.h \
|
89 |
+
*.c \
|
90 |
+
*.cpp \
|
91 |
+
*.java \
|
92 |
+
*.dox
|
93 |
+
RECURSIVE = YES
|
94 |
+
EXCLUDE = src/hostapi/wasapi/mingw-include
|
95 |
+
EXCLUDE_SYMLINKS = NO
|
96 |
+
EXCLUDE_PATTERNS =
|
97 |
+
EXAMPLE_PATH =
|
98 |
+
EXAMPLE_PATTERNS =
|
99 |
+
EXAMPLE_RECURSIVE = NO
|
100 |
+
IMAGE_PATH = doc/src/images
|
101 |
+
INPUT_FILTER =
|
102 |
+
FILTER_PATTERNS =
|
103 |
+
FILTER_SOURCE_FILES = NO
|
104 |
+
#---------------------------------------------------------------------------
|
105 |
+
# configuration options related to source browsing
|
106 |
+
#---------------------------------------------------------------------------
|
107 |
+
SOURCE_BROWSER = YES
|
108 |
+
INLINE_SOURCES = NO
|
109 |
+
STRIP_CODE_COMMENTS = YES
|
110 |
+
REFERENCED_BY_RELATION = YES
|
111 |
+
REFERENCES_RELATION = YES
|
112 |
+
USE_HTAGS = NO
|
113 |
+
VERBATIM_HEADERS = YES
|
114 |
+
#---------------------------------------------------------------------------
|
115 |
+
# configuration options related to the alphabetical class index
|
116 |
+
#---------------------------------------------------------------------------
|
117 |
+
ALPHABETICAL_INDEX = NO
|
118 |
+
COLS_IN_ALPHA_INDEX = 5
|
119 |
+
IGNORE_PREFIX =
|
120 |
+
#---------------------------------------------------------------------------
|
121 |
+
# configuration options related to the HTML output
|
122 |
+
#---------------------------------------------------------------------------
|
123 |
+
GENERATE_HTML = YES
|
124 |
+
HTML_OUTPUT = html
|
125 |
+
HTML_FILE_EXTENSION = .html
|
126 |
+
HTML_HEADER =
|
127 |
+
HTML_FOOTER =
|
128 |
+
HTML_STYLESHEET =
|
129 |
+
HTML_ALIGN_MEMBERS = YES
|
130 |
+
GENERATE_HTMLHELP = NO
|
131 |
+
CHM_FILE =
|
132 |
+
HHC_LOCATION =
|
133 |
+
GENERATE_CHI = NO
|
134 |
+
BINARY_TOC = NO
|
135 |
+
TOC_EXPAND = NO
|
136 |
+
DISABLE_INDEX = NO
|
137 |
+
ENUM_VALUES_PER_LINE = 4
|
138 |
+
GENERATE_TREEVIEW = NO
|
139 |
+
TREEVIEW_WIDTH = 250
|
140 |
+
#---------------------------------------------------------------------------
|
141 |
+
# configuration options related to the LaTeX output
|
142 |
+
#---------------------------------------------------------------------------
|
143 |
+
GENERATE_LATEX = NO
|
144 |
+
LATEX_OUTPUT = latex
|
145 |
+
LATEX_CMD_NAME = latex
|
146 |
+
MAKEINDEX_CMD_NAME = makeindex
|
147 |
+
COMPACT_LATEX = NO
|
148 |
+
PAPER_TYPE = a4wide
|
149 |
+
EXTRA_PACKAGES =
|
150 |
+
LATEX_HEADER =
|
151 |
+
PDF_HYPERLINKS = NO
|
152 |
+
USE_PDFLATEX = NO
|
153 |
+
LATEX_BATCHMODE = NO
|
154 |
+
LATEX_HIDE_INDICES = NO
|
155 |
+
#---------------------------------------------------------------------------
|
156 |
+
# configuration options related to the RTF output
|
157 |
+
#---------------------------------------------------------------------------
|
158 |
+
GENERATE_RTF = NO
|
159 |
+
RTF_OUTPUT = rtf
|
160 |
+
COMPACT_RTF = NO
|
161 |
+
RTF_HYPERLINKS = NO
|
162 |
+
RTF_STYLESHEET_FILE =
|
163 |
+
RTF_EXTENSIONS_FILE =
|
164 |
+
#---------------------------------------------------------------------------
|
165 |
+
# configuration options related to the man page output
|
166 |
+
#---------------------------------------------------------------------------
|
167 |
+
GENERATE_MAN = NO
|
168 |
+
MAN_OUTPUT = man
|
169 |
+
MAN_EXTENSION = .3
|
170 |
+
MAN_LINKS = NO
|
171 |
+
#---------------------------------------------------------------------------
|
172 |
+
# configuration options related to the XML output
|
173 |
+
#---------------------------------------------------------------------------
|
174 |
+
GENERATE_XML = NO
|
175 |
+
XML_OUTPUT = xml
|
176 |
+
XML_SCHEMA =
|
177 |
+
XML_DTD =
|
178 |
+
XML_PROGRAMLISTING = YES
|
179 |
+
#---------------------------------------------------------------------------
|
180 |
+
# configuration options for the AutoGen Definitions output
|
181 |
+
#---------------------------------------------------------------------------
|
182 |
+
GENERATE_AUTOGEN_DEF = NO
|
183 |
+
#---------------------------------------------------------------------------
|
184 |
+
# configuration options related to the Perl module output
|
185 |
+
#---------------------------------------------------------------------------
|
186 |
+
GENERATE_PERLMOD = NO
|
187 |
+
PERLMOD_LATEX = NO
|
188 |
+
PERLMOD_PRETTY = YES
|
189 |
+
PERLMOD_MAKEVAR_PREFIX =
|
190 |
+
#---------------------------------------------------------------------------
|
191 |
+
# Configuration options related to the preprocessor
|
192 |
+
#---------------------------------------------------------------------------
|
193 |
+
ENABLE_PREPROCESSING = YES
|
194 |
+
MACRO_EXPANSION = NO
|
195 |
+
EXPAND_ONLY_PREDEF = NO
|
196 |
+
SEARCH_INCLUDES = YES
|
197 |
+
INCLUDE_PATH =
|
198 |
+
INCLUDE_FILE_PATTERNS =
|
199 |
+
PREDEFINED =
|
200 |
+
EXPAND_AS_DEFINED =
|
201 |
+
SKIP_FUNCTION_MACROS = YES
|
202 |
+
#---------------------------------------------------------------------------
|
203 |
+
# Configuration::additions related to external references
|
204 |
+
#---------------------------------------------------------------------------
|
205 |
+
TAGFILES =
|
206 |
+
GENERATE_TAGFILE =
|
207 |
+
ALLEXTERNALS = NO
|
208 |
+
EXTERNAL_GROUPS = YES
|
209 |
+
PERL_PATH = /usr/bin/perl
|
210 |
+
#---------------------------------------------------------------------------
|
211 |
+
# Configuration options related to the dot tool
|
212 |
+
#---------------------------------------------------------------------------
|
213 |
+
CLASS_DIAGRAMS = NO
|
214 |
+
HIDE_UNDOC_RELATIONS = NO
|
215 |
+
HAVE_DOT = NO
|
216 |
+
CLASS_GRAPH = YES
|
217 |
+
COLLABORATION_GRAPH = YES
|
218 |
+
GROUP_GRAPHS = YES
|
219 |
+
UML_LOOK = NO
|
220 |
+
TEMPLATE_RELATIONS = YES
|
221 |
+
INCLUDE_GRAPH = YES
|
222 |
+
INCLUDED_BY_GRAPH = YES
|
223 |
+
CALL_GRAPH = NO
|
224 |
+
GRAPHICAL_HIERARCHY = YES
|
225 |
+
DIRECTORY_GRAPH = YES
|
226 |
+
DOT_IMAGE_FORMAT = png
|
227 |
+
DOT_PATH =
|
228 |
+
DOTFILE_DIRS =
|
229 |
+
MAX_DOT_GRAPH_WIDTH = 1024
|
230 |
+
MAX_DOT_GRAPH_HEIGHT = 1024
|
231 |
+
MAX_DOT_GRAPH_DEPTH = 1000
|
232 |
+
DOT_TRANSPARENT = NO
|
233 |
+
DOT_MULTI_TARGETS = NO
|
234 |
+
GENERATE_LEGEND = YES
|
235 |
+
DOT_CLEANUP = YES
|
236 |
+
#---------------------------------------------------------------------------
|
237 |
+
# Configuration::additions related to the search engine
|
238 |
+
#---------------------------------------------------------------------------
|
239 |
+
SEARCHENGINE = NO
|
portaudio/Doxyfile.developer
ADDED
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Doxyfile 1.4.6
|
2 |
+
|
3 |
+
#---------------------------------------------------------------------------
|
4 |
+
# Project related configuration options
|
5 |
+
#---------------------------------------------------------------------------
|
6 |
+
PROJECT_NAME = PortAudio
|
7 |
+
PROJECT_NUMBER = 2.0
|
8 |
+
OUTPUT_DIRECTORY = ./doc/
|
9 |
+
CREATE_SUBDIRS = NO
|
10 |
+
OUTPUT_LANGUAGE = English
|
11 |
+
USE_WINDOWS_ENCODING = NO
|
12 |
+
BRIEF_MEMBER_DESC = YES
|
13 |
+
REPEAT_BRIEF = YES
|
14 |
+
ABBREVIATE_BRIEF = "The $name class" \
|
15 |
+
"The $name widget" \
|
16 |
+
"The $name file" \
|
17 |
+
is \
|
18 |
+
provides \
|
19 |
+
specifies \
|
20 |
+
contains \
|
21 |
+
represents \
|
22 |
+
a \
|
23 |
+
an \
|
24 |
+
the
|
25 |
+
ALWAYS_DETAILED_SEC = NO
|
26 |
+
INLINE_INHERITED_MEMB = NO
|
27 |
+
FULL_PATH_NAMES = NO
|
28 |
+
STRIP_FROM_PATH =
|
29 |
+
STRIP_FROM_INC_PATH =
|
30 |
+
SHORT_NAMES = NO
|
31 |
+
JAVADOC_AUTOBRIEF = NO
|
32 |
+
MULTILINE_CPP_IS_BRIEF = NO
|
33 |
+
DETAILS_AT_TOP = NO
|
34 |
+
INHERIT_DOCS = YES
|
35 |
+
SEPARATE_MEMBER_PAGES = NO
|
36 |
+
TAB_SIZE = 8
|
37 |
+
ALIASES =
|
38 |
+
OPTIMIZE_OUTPUT_FOR_C = YES
|
39 |
+
OPTIMIZE_OUTPUT_JAVA = NO
|
40 |
+
BUILTIN_STL_SUPPORT = NO
|
41 |
+
DISTRIBUTE_GROUP_DOC = NO
|
42 |
+
SUBGROUPING = YES
|
43 |
+
#---------------------------------------------------------------------------
|
44 |
+
# Build related configuration options
|
45 |
+
#---------------------------------------------------------------------------
|
46 |
+
EXTRACT_ALL = YES
|
47 |
+
EXTRACT_PRIVATE = NO
|
48 |
+
EXTRACT_STATIC = NO
|
49 |
+
EXTRACT_LOCAL_CLASSES = YES
|
50 |
+
EXTRACT_LOCAL_METHODS = NO
|
51 |
+
HIDE_UNDOC_MEMBERS = NO
|
52 |
+
HIDE_UNDOC_CLASSES = NO
|
53 |
+
HIDE_FRIEND_COMPOUNDS = NO
|
54 |
+
HIDE_IN_BODY_DOCS = NO
|
55 |
+
INTERNAL_DOCS = YES
|
56 |
+
CASE_SENSE_NAMES = YES
|
57 |
+
HIDE_SCOPE_NAMES = NO
|
58 |
+
SHOW_INCLUDE_FILES = YES
|
59 |
+
INLINE_INFO = YES
|
60 |
+
SORT_MEMBER_DOCS = YES
|
61 |
+
SORT_BRIEF_DOCS = NO
|
62 |
+
SORT_BY_SCOPE_NAME = NO
|
63 |
+
GENERATE_TODOLIST = YES
|
64 |
+
GENERATE_TESTLIST = YES
|
65 |
+
GENERATE_BUGLIST = YES
|
66 |
+
GENERATE_DEPRECATEDLIST= YES
|
67 |
+
ENABLED_SECTIONS = INTERNAL
|
68 |
+
MAX_INITIALIZER_LINES = 30
|
69 |
+
SHOW_USED_FILES = YES
|
70 |
+
SHOW_DIRECTORIES = YES
|
71 |
+
FILE_VERSION_FILTER =
|
72 |
+
#---------------------------------------------------------------------------
|
73 |
+
# configuration options related to warning and progress messages
|
74 |
+
#---------------------------------------------------------------------------
|
75 |
+
QUIET = NO
|
76 |
+
WARNINGS = YES
|
77 |
+
WARN_IF_UNDOCUMENTED = YES
|
78 |
+
WARN_IF_DOC_ERROR = YES
|
79 |
+
WARN_NO_PARAMDOC = NO
|
80 |
+
WARN_FORMAT = "$file:$line: $text"
|
81 |
+
WARN_LOGFILE =
|
82 |
+
#---------------------------------------------------------------------------
|
83 |
+
# configuration options related to the input files
|
84 |
+
#---------------------------------------------------------------------------
|
85 |
+
INPUT = doc/src \
|
86 |
+
include \
|
87 |
+
examples \
|
88 |
+
src \
|
89 |
+
test \
|
90 |
+
qa
|
91 |
+
FILE_PATTERNS = *.h \
|
92 |
+
*.c \
|
93 |
+
*.cpp \
|
94 |
+
*.java \
|
95 |
+
*.dox
|
96 |
+
RECURSIVE = YES
|
97 |
+
EXCLUDE = src/hostapi/wasapi/mingw-include
|
98 |
+
EXCLUDE_SYMLINKS = NO
|
99 |
+
EXCLUDE_PATTERNS =
|
100 |
+
EXAMPLE_PATH =
|
101 |
+
EXAMPLE_PATTERNS =
|
102 |
+
EXAMPLE_RECURSIVE = NO
|
103 |
+
IMAGE_PATH = doc/src/images
|
104 |
+
INPUT_FILTER =
|
105 |
+
FILTER_PATTERNS =
|
106 |
+
FILTER_SOURCE_FILES = NO
|
107 |
+
#---------------------------------------------------------------------------
|
108 |
+
# configuration options related to source browsing
|
109 |
+
#---------------------------------------------------------------------------
|
110 |
+
SOURCE_BROWSER = NO
|
111 |
+
INLINE_SOURCES = NO
|
112 |
+
STRIP_CODE_COMMENTS = YES
|
113 |
+
REFERENCED_BY_RELATION = YES
|
114 |
+
REFERENCES_RELATION = YES
|
115 |
+
USE_HTAGS = NO
|
116 |
+
VERBATIM_HEADERS = YES
|
117 |
+
#---------------------------------------------------------------------------
|
118 |
+
# configuration options related to the alphabetical class index
|
119 |
+
#---------------------------------------------------------------------------
|
120 |
+
ALPHABETICAL_INDEX = NO
|
121 |
+
COLS_IN_ALPHA_INDEX = 5
|
122 |
+
IGNORE_PREFIX =
|
123 |
+
#---------------------------------------------------------------------------
|
124 |
+
# configuration options related to the HTML output
|
125 |
+
#---------------------------------------------------------------------------
|
126 |
+
GENERATE_HTML = YES
|
127 |
+
HTML_OUTPUT = html
|
128 |
+
HTML_FILE_EXTENSION = .html
|
129 |
+
HTML_HEADER =
|
130 |
+
HTML_FOOTER =
|
131 |
+
HTML_STYLESHEET =
|
132 |
+
HTML_ALIGN_MEMBERS = YES
|
133 |
+
GENERATE_HTMLHELP = NO
|
134 |
+
CHM_FILE =
|
135 |
+
HHC_LOCATION =
|
136 |
+
GENERATE_CHI = NO
|
137 |
+
BINARY_TOC = NO
|
138 |
+
TOC_EXPAND = NO
|
139 |
+
DISABLE_INDEX = NO
|
140 |
+
ENUM_VALUES_PER_LINE = 4
|
141 |
+
GENERATE_TREEVIEW = NO
|
142 |
+
TREEVIEW_WIDTH = 250
|
143 |
+
#---------------------------------------------------------------------------
|
144 |
+
# configuration options related to the LaTeX output
|
145 |
+
#---------------------------------------------------------------------------
|
146 |
+
GENERATE_LATEX = NO
|
147 |
+
LATEX_OUTPUT = latex
|
148 |
+
LATEX_CMD_NAME = latex
|
149 |
+
MAKEINDEX_CMD_NAME = makeindex
|
150 |
+
COMPACT_LATEX = NO
|
151 |
+
PAPER_TYPE = a4wide
|
152 |
+
EXTRA_PACKAGES =
|
153 |
+
LATEX_HEADER =
|
154 |
+
PDF_HYPERLINKS = NO
|
155 |
+
USE_PDFLATEX = NO
|
156 |
+
LATEX_BATCHMODE = NO
|
157 |
+
LATEX_HIDE_INDICES = NO
|
158 |
+
#---------------------------------------------------------------------------
|
159 |
+
# configuration options related to the RTF output
|
160 |
+
#---------------------------------------------------------------------------
|
161 |
+
GENERATE_RTF = NO
|
162 |
+
RTF_OUTPUT = rtf
|
163 |
+
COMPACT_RTF = NO
|
164 |
+
RTF_HYPERLINKS = NO
|
165 |
+
RTF_STYLESHEET_FILE =
|
166 |
+
RTF_EXTENSIONS_FILE =
|
167 |
+
#---------------------------------------------------------------------------
|
168 |
+
# configuration options related to the man page output
|
169 |
+
#---------------------------------------------------------------------------
|
170 |
+
GENERATE_MAN = NO
|
171 |
+
MAN_OUTPUT = man
|
172 |
+
MAN_EXTENSION = .3
|
173 |
+
MAN_LINKS = NO
|
174 |
+
#---------------------------------------------------------------------------
|
175 |
+
# configuration options related to the XML output
|
176 |
+
#---------------------------------------------------------------------------
|
177 |
+
GENERATE_XML = NO
|
178 |
+
XML_OUTPUT = xml
|
179 |
+
XML_SCHEMA =
|
180 |
+
XML_DTD =
|
181 |
+
XML_PROGRAMLISTING = YES
|
182 |
+
#---------------------------------------------------------------------------
|
183 |
+
# configuration options for the AutoGen Definitions output
|
184 |
+
#---------------------------------------------------------------------------
|
185 |
+
GENERATE_AUTOGEN_DEF = NO
|
186 |
+
#---------------------------------------------------------------------------
|
187 |
+
# configuration options related to the Perl module output
|
188 |
+
#---------------------------------------------------------------------------
|
189 |
+
GENERATE_PERLMOD = NO
|
190 |
+
PERLMOD_LATEX = NO
|
191 |
+
PERLMOD_PRETTY = YES
|
192 |
+
PERLMOD_MAKEVAR_PREFIX =
|
193 |
+
#---------------------------------------------------------------------------
|
194 |
+
# Configuration options related to the preprocessor
|
195 |
+
#---------------------------------------------------------------------------
|
196 |
+
ENABLE_PREPROCESSING = YES
|
197 |
+
MACRO_EXPANSION = NO
|
198 |
+
EXPAND_ONLY_PREDEF = NO
|
199 |
+
SEARCH_INCLUDES = YES
|
200 |
+
INCLUDE_PATH =
|
201 |
+
INCLUDE_FILE_PATTERNS =
|
202 |
+
PREDEFINED =
|
203 |
+
EXPAND_AS_DEFINED =
|
204 |
+
SKIP_FUNCTION_MACROS = YES
|
205 |
+
#---------------------------------------------------------------------------
|
206 |
+
# Configuration::additions related to external references
|
207 |
+
#---------------------------------------------------------------------------
|
208 |
+
TAGFILES =
|
209 |
+
GENERATE_TAGFILE =
|
210 |
+
ALLEXTERNALS = NO
|
211 |
+
EXTERNAL_GROUPS = YES
|
212 |
+
PERL_PATH = /usr/bin/perl
|
213 |
+
#---------------------------------------------------------------------------
|
214 |
+
# Configuration options related to the dot tool
|
215 |
+
#---------------------------------------------------------------------------
|
216 |
+
CLASS_DIAGRAMS = NO
|
217 |
+
HIDE_UNDOC_RELATIONS = NO
|
218 |
+
HAVE_DOT = NO
|
219 |
+
CLASS_GRAPH = YES
|
220 |
+
COLLABORATION_GRAPH = YES
|
221 |
+
GROUP_GRAPHS = YES
|
222 |
+
UML_LOOK = NO
|
223 |
+
TEMPLATE_RELATIONS = YES
|
224 |
+
INCLUDE_GRAPH = YES
|
225 |
+
INCLUDED_BY_GRAPH = YES
|
226 |
+
CALL_GRAPH = NO
|
227 |
+
GRAPHICAL_HIERARCHY = YES
|
228 |
+
DIRECTORY_GRAPH = YES
|
229 |
+
DOT_IMAGE_FORMAT = png
|
230 |
+
DOT_PATH =
|
231 |
+
DOTFILE_DIRS =
|
232 |
+
MAX_DOT_GRAPH_WIDTH = 1024
|
233 |
+
MAX_DOT_GRAPH_HEIGHT = 1024
|
234 |
+
MAX_DOT_GRAPH_DEPTH = 1000
|
235 |
+
DOT_TRANSPARENT = NO
|
236 |
+
DOT_MULTI_TARGETS = NO
|
237 |
+
GENERATE_LEGEND = YES
|
238 |
+
DOT_CLEANUP = YES
|
239 |
+
#---------------------------------------------------------------------------
|
240 |
+
# Configuration::additions related to the search engine
|
241 |
+
#---------------------------------------------------------------------------
|
242 |
+
SEARCHENGINE = NO
|
portaudio/LICENSE.txt
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Portable header file to contain:
|
2 |
+
>>>>>
|
3 |
+
/*
|
4 |
+
* PortAudio Portable Real-Time Audio Library
|
5 |
+
* PortAudio API Header File
|
6 |
+
* Latest version available at: http://www.portaudio.com
|
7 |
+
*
|
8 |
+
* Copyright (c) 1999-2006 Ross Bencina and Phil Burk
|
9 |
+
*
|
10 |
+
* Permission is hereby granted, free of charge, to any person obtaining
|
11 |
+
* a copy of this software and associated documentation files
|
12 |
+
* (the "Software"), to deal in the Software without restriction,
|
13 |
+
* including without limitation the rights to use, copy, modify, merge,
|
14 |
+
* publish, distribute, sublicense, and/or sell copies of the Software,
|
15 |
+
* and to permit persons to whom the Software is furnished to do so,
|
16 |
+
* subject to the following conditions:
|
17 |
+
*
|
18 |
+
* The above copyright notice and this permission notice shall be
|
19 |
+
* included in all copies or substantial portions of the Software.
|
20 |
+
*
|
21 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
22 |
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
23 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
24 |
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
25 |
+
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
26 |
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
27 |
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
28 |
+
*/
|
29 |
+
|
30 |
+
/*
|
31 |
+
* The text above constitutes the entire PortAudio license; however,
|
32 |
+
* the PortAudio community also makes the following non-binding requests:
|
33 |
+
*
|
34 |
+
* Any person wishing to distribute modifications to the Software is
|
35 |
+
* requested to send the modifications to the original developer so that
|
36 |
+
* they can be incorporated into the canonical version. It is also
|
37 |
+
* requested that these non-binding requests be included along with the
|
38 |
+
* license above.
|
39 |
+
*/
|
40 |
+
<<<<<
|
41 |
+
|
42 |
+
|
43 |
+
Implementation files to contain:
|
44 |
+
>>>>>
|
45 |
+
/*
|
46 |
+
* PortAudio Portable Real-Time Audio Library
|
47 |
+
* Latest version at: http://www.portaudio.com
|
48 |
+
* <platform> Implementation
|
49 |
+
* Copyright (c) 1999-2000 <author(s)>
|
50 |
+
*
|
51 |
+
* Permission is hereby granted, free of charge, to any person obtaining
|
52 |
+
* a copy of this software and associated documentation files
|
53 |
+
* (the "Software"), to deal in the Software without restriction,
|
54 |
+
* including without limitation the rights to use, copy, modify, merge,
|
55 |
+
* publish, distribute, sublicense, and/or sell copies of the Software,
|
56 |
+
* and to permit persons to whom the Software is furnished to do so,
|
57 |
+
* subject to the following conditions:
|
58 |
+
*
|
59 |
+
* The above copyright notice and this permission notice shall be
|
60 |
+
* included in all copies or substantial portions of the Software.
|
61 |
+
*
|
62 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
63 |
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
64 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
65 |
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
66 |
+
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
67 |
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
68 |
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
69 |
+
*/
|
70 |
+
|
71 |
+
/*
|
72 |
+
* The text above constitutes the entire PortAudio license; however,
|
73 |
+
* the PortAudio community also makes the following non-binding requests:
|
74 |
+
*
|
75 |
+
* Any person wishing to distribute modifications to the Software is
|
76 |
+
* requested to send the modifications to the original developer so that
|
77 |
+
* they can be incorporated into the canonical version. It is also
|
78 |
+
* requested that these non-binding requests be included along with the
|
79 |
+
* license above.
|
80 |
+
*/
|
81 |
+
<<<<<
|
portaudio/Makefile.in
ADDED
@@ -0,0 +1,258 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
# PortAudio V19 Makefile.in
|
3 |
+
#
|
4 |
+
# Dominic Mazzoni
|
5 |
+
# Modifications by Mikael Magnusson
|
6 |
+
# Modifications by Stelios Bounanos
|
7 |
+
#
|
8 |
+
|
9 |
+
top_srcdir = @top_srcdir@
|
10 |
+
srcdir = @srcdir@
|
11 |
+
VPATH = @srcdir@
|
12 |
+
top_builddir = .
|
13 |
+
PREFIX = @prefix@
|
14 |
+
prefix = $(PREFIX)
|
15 |
+
exec_prefix = @exec_prefix@
|
16 |
+
bindir = @bindir@
|
17 |
+
libdir = @libdir@
|
18 |
+
includedir = @includedir@
|
19 |
+
CC = @CC@
|
20 |
+
CXX = @CXX@
|
21 |
+
CFLAGS = @CFLAGS@ @DEFS@
|
22 |
+
LIBS = @LIBS@
|
23 |
+
AR = @AR@
|
24 |
+
RANLIB = @RANLIB@
|
25 |
+
SHELL = @SHELL@
|
26 |
+
LIBTOOL = @LIBTOOL@
|
27 |
+
INSTALL = @INSTALL@
|
28 |
+
INSTALL_DATA = @INSTALL_DATA@
|
29 |
+
SHARED_FLAGS = @SHARED_FLAGS@
|
30 |
+
LDFLAGS = @LDFLAGS@
|
31 |
+
DLL_LIBS = @DLL_LIBS@
|
32 |
+
CXXFLAGS = @CXXFLAGS@
|
33 |
+
NASM = @NASM@
|
34 |
+
NASMOPT = @NASMOPT@
|
35 |
+
LN_S = @LN_S@
|
36 |
+
LT_CURRENT=@LT_CURRENT@
|
37 |
+
LT_REVISION=@LT_REVISION@
|
38 |
+
LT_AGE=@LT_AGE@
|
39 |
+
|
40 |
+
OTHER_OBJS = @OTHER_OBJS@
|
41 |
+
INCLUDES = @INCLUDES@
|
42 |
+
|
43 |
+
PALIB = libportaudio.la
|
44 |
+
PAINC = include/portaudio.h
|
45 |
+
|
46 |
+
PA_LDFLAGS = $(LDFLAGS) $(SHARED_FLAGS) -rpath $(libdir) -no-undefined \
|
47 |
+
-export-symbols-regex "(Pa|PaMacCore|PaJack|PaAlsa|PaAsio|PaOSS|PaWasapi|PaWasapiWinrt)_.*" \
|
48 |
+
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
49 |
+
|
50 |
+
COMMON_OBJS = \
|
51 |
+
src/common/pa_allocation.o \
|
52 |
+
src/common/pa_converters.o \
|
53 |
+
src/common/pa_cpuload.o \
|
54 |
+
src/common/pa_dither.o \
|
55 |
+
src/common/pa_debugprint.o \
|
56 |
+
src/common/pa_front.o \
|
57 |
+
src/common/pa_process.o \
|
58 |
+
src/common/pa_stream.o \
|
59 |
+
src/common/pa_trace.o \
|
60 |
+
src/hostapi/skeleton/pa_hostapi_skeleton.o
|
61 |
+
|
62 |
+
LOOPBACK_OBJS = \
|
63 |
+
qa/loopback/src/audio_analyzer.o \
|
64 |
+
qa/loopback/src/biquad_filter.o \
|
65 |
+
qa/loopback/src/paqa_tools.o \
|
66 |
+
qa/loopback/src/test_audio_analyzer.o \
|
67 |
+
qa/loopback/src/write_wav.o \
|
68 |
+
qa/loopback/src/paqa.o
|
69 |
+
|
70 |
+
EXAMPLES = \
|
71 |
+
bin/pa_devs \
|
72 |
+
bin/pa_fuzz \
|
73 |
+
bin/paex_pink \
|
74 |
+
bin/paex_read_write_wire \
|
75 |
+
bin/paex_record \
|
76 |
+
bin/paex_saw \
|
77 |
+
bin/paex_sine \
|
78 |
+
bin/paex_write_sine \
|
79 |
+
bin/paex_write_sine_nonint
|
80 |
+
|
81 |
+
SELFTESTS = \
|
82 |
+
bin/paqa_devs \
|
83 |
+
bin/paqa_errs \
|
84 |
+
bin/paqa_latency
|
85 |
+
|
86 |
+
TESTS = \
|
87 |
+
bin/patest1 \
|
88 |
+
bin/patest_buffer \
|
89 |
+
bin/patest_callbackstop \
|
90 |
+
bin/patest_clip \
|
91 |
+
bin/patest_dither \
|
92 |
+
bin/patest_hang \
|
93 |
+
bin/patest_in_overflow \
|
94 |
+
bin/patest_latency \
|
95 |
+
bin/patest_leftright \
|
96 |
+
bin/patest_longsine \
|
97 |
+
bin/patest_many \
|
98 |
+
bin/patest_maxsines \
|
99 |
+
bin/patest_mono \
|
100 |
+
bin/patest_multi_sine \
|
101 |
+
bin/patest_out_underflow \
|
102 |
+
bin/patest_prime \
|
103 |
+
bin/patest_ringmix \
|
104 |
+
bin/patest_sine8 \
|
105 |
+
bin/patest_sine_channelmaps \
|
106 |
+
bin/patest_sine_formats \
|
107 |
+
bin/patest_sine_time \
|
108 |
+
bin/patest_sine_srate \
|
109 |
+
bin/patest_start_stop \
|
110 |
+
bin/patest_stop \
|
111 |
+
bin/patest_stop_playout \
|
112 |
+
bin/patest_toomanysines \
|
113 |
+
bin/patest_two_rates \
|
114 |
+
bin/patest_underflow \
|
115 |
+
bin/patest_wire \
|
116 |
+
bin/pa_minlat
|
117 |
+
|
118 |
+
# Most of these don't compile yet. Put them in TESTS, above, if
|
119 |
+
# you want to try to compile them...
|
120 |
+
ALL_TESTS = \
|
121 |
+
$(TESTS) \
|
122 |
+
bin/patest_sync \
|
123 |
+
bin/debug_convert \
|
124 |
+
bin/debug_dither_calc \
|
125 |
+
bin/debug_dual \
|
126 |
+
bin/debug_multi_in \
|
127 |
+
bin/debug_multi_out \
|
128 |
+
bin/debug_record \
|
129 |
+
bin/debug_record_reuse \
|
130 |
+
bin/debug_sine_amp \
|
131 |
+
bin/debug_sine \
|
132 |
+
bin/debug_sine_formats \
|
133 |
+
bin/debug_srate \
|
134 |
+
bin/debug_test1
|
135 |
+
|
136 |
+
OBJS := $(COMMON_OBJS) $(OTHER_OBJS)
|
137 |
+
|
138 |
+
LTOBJS := $(OBJS:.o=.lo)
|
139 |
+
|
140 |
+
SRC_DIRS = \
|
141 |
+
src/common \
|
142 |
+
src/hostapi/alsa \
|
143 |
+
src/hostapi/asihpi \
|
144 |
+
src/hostapi/asio \
|
145 |
+
src/hostapi/coreaudio \
|
146 |
+
src/hostapi/dsound \
|
147 |
+
src/hostapi/jack \
|
148 |
+
src/hostapi/oss \
|
149 |
+
src/hostapi/skeleton \
|
150 |
+
src/hostapi/wasapi \
|
151 |
+
src/hostapi/wdmks \
|
152 |
+
src/hostapi/wmme \
|
153 |
+
src/os/unix \
|
154 |
+
src/os/win
|
155 |
+
|
156 |
+
SUBDIRS =
|
157 |
+
@ENABLE_CXX_TRUE@SUBDIRS += bindings/cpp
|
158 |
+
|
159 |
+
all: lib/$(PALIB) all-recursive tests examples selftests
|
160 |
+
|
161 |
+
tests: bin-stamp $(TESTS)
|
162 |
+
|
163 |
+
examples: bin-stamp $(EXAMPLES)
|
164 |
+
|
165 |
+
selftests: bin-stamp $(SELFTESTS)
|
166 |
+
|
167 |
+
loopback: bin-stamp bin/paloopback
|
168 |
+
|
169 |
+
# With ASIO enabled we must link libportaudio and all test programs with CXX
|
170 |
+
lib/$(PALIB): lib-stamp $(LTOBJS) $(MAKEFILE) $(PAINC)
|
171 |
+
@WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS)
|
172 |
+
@WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS)
|
173 |
+
|
174 |
+
$(ALL_TESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) test/%.c
|
175 |
+
@WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS)
|
176 |
+
@WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS)
|
177 |
+
|
178 |
+
$(EXAMPLES): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) examples/%.c
|
179 |
+
@WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS)
|
180 |
+
@WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS)
|
181 |
+
|
182 |
+
$(SELFTESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) qa/%.c
|
183 |
+
@WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS)
|
184 |
+
@WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS)
|
185 |
+
|
186 |
+
bin/paloopback: lib/$(PALIB) $(MAKEFILE) $(PAINC) $(LOOPBACK_OBJS)
|
187 |
+
@WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS)
|
188 |
+
@WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS)
|
189 |
+
|
190 |
+
install: lib/$(PALIB) portaudio-2.0.pc
|
191 |
+
$(INSTALL) -d $(DESTDIR)$(libdir)
|
192 |
+
$(LIBTOOL) --mode=install $(INSTALL) lib/$(PALIB) $(DESTDIR)$(libdir)
|
193 |
+
$(INSTALL) -d $(DESTDIR)$(includedir)
|
194 |
+
for include in $(INCLUDES); do \
|
195 |
+
$(INSTALL_DATA) -m 644 $(top_srcdir)/include/$$include $(DESTDIR)$(includedir)/$$include; \
|
196 |
+
done
|
197 |
+
$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
|
198 |
+
$(INSTALL) -m 644 portaudio-2.0.pc $(DESTDIR)$(libdir)/pkgconfig/portaudio-2.0.pc
|
199 |
+
@echo ""
|
200 |
+
@echo "------------------------------------------------------------"
|
201 |
+
@echo "PortAudio was successfully installed."
|
202 |
+
@echo ""
|
203 |
+
@echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
|
204 |
+
@echo "to make the shared object available. You may also need to"
|
205 |
+
@echo "modify your LD_LIBRARY_PATH environment variable to include"
|
206 |
+
@echo "the directory $(libdir)"
|
207 |
+
@echo "------------------------------------------------------------"
|
208 |
+
@echo ""
|
209 |
+
$(MAKE) install-recursive
|
210 |
+
|
211 |
+
uninstall:
|
212 |
+
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(PALIB)
|
213 |
+
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(includedir)/portaudio.h
|
214 |
+
$(MAKE) uninstall-recursive
|
215 |
+
|
216 |
+
clean:
|
217 |
+
$(LIBTOOL) --mode=clean rm -f $(LTOBJS) $(LOOPBACK_OBJS) $(ALL_TESTS) lib/$(PALIB)
|
218 |
+
$(RM) bin-stamp lib-stamp
|
219 |
+
-$(RM) -r bin lib
|
220 |
+
|
221 |
+
distclean: clean
|
222 |
+
$(RM) config.log config.status Makefile libtool portaudio-2.0.pc
|
223 |
+
|
224 |
+
%.o: %.c $(MAKEFILE) $(PAINC) lib-stamp
|
225 |
+
$(CC) -c $(CFLAGS) $< -o $@
|
226 |
+
|
227 |
+
%.lo: %.c $(MAKEFILE) $(PAINC) lib-stamp
|
228 |
+
$(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@
|
229 |
+
|
230 |
+
%.lo: %.cpp $(MAKEFILE) $(PAINC) lib-stamp
|
231 |
+
$(LIBTOOL) --mode=compile --tag=CXX $(CXX) -c $(CXXFLAGS) $< -o $@
|
232 |
+
|
233 |
+
%.o: %.cpp $(MAKEFILE) $(PAINC) lib-stamp
|
234 |
+
$(CXX) -c $(CXXFLAGS) $< -o $@
|
235 |
+
|
236 |
+
%.o: %.asm
|
237 |
+
$(NASM) $(NASMOPT) -o $@ $<
|
238 |
+
|
239 |
+
bin-stamp:
|
240 |
+
-mkdir bin
|
241 |
+
touch $@
|
242 |
+
|
243 |
+
lib-stamp:
|
244 |
+
-mkdir lib
|
245 |
+
-mkdir -p $(SRC_DIRS)
|
246 |
+
touch $@
|
247 |
+
|
248 |
+
Makefile: Makefile.in config.status
|
249 |
+
$(SHELL) config.status
|
250 |
+
|
251 |
+
all-recursive:
|
252 |
+
if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir all; done ; fi
|
253 |
+
|
254 |
+
install-recursive:
|
255 |
+
if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir install; done ; fi
|
256 |
+
|
257 |
+
uninstall-recursive:
|
258 |
+
if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir uninstall; done ; fi
|
portaudio/README.configure.txt
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PortAudio uses "autoconf" tools to generate Makefiles for Linux and Mac platforms.
|
2 |
+
The source for these are configure.in and Makefile.in
|
3 |
+
If you modify either of these files then please run this command before
|
4 |
+
testing and checking in your changes. I run this command on Linux.
|
5 |
+
|
6 |
+
autoreconf -if
|
7 |
+
|
8 |
+
If you do not have autoreconf then do:
|
9 |
+
sudo apt-get install autoconf
|
10 |
+
|
11 |
+
If you get error like "possibly undefined macro: AC_LIBTOOL_WIN32_DLL"
|
12 |
+
then you try installing some more packages and then try again.
|
13 |
+
|
14 |
+
sudo apt-get install build-essential
|
15 |
+
sudo apt-get install pkg-config
|
16 |
+
sudo apt-get install libtool
|
17 |
+
autoreconf -if
|
18 |
+
|
19 |
+
Then test a build by doing:
|
20 |
+
|
21 |
+
./configure
|
22 |
+
make clean
|
23 |
+
make
|
24 |
+
|
25 |
+
then check in the related files that are modified.
|
26 |
+
These might include files like:
|
27 |
+
|
28 |
+
configure
|
29 |
+
config.guess
|
30 |
+
depcomp
|
31 |
+
install.sh
|
32 |
+
|
portaudio/README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# PortAudio - portable audio I/O library
|
2 |
+
|
3 |
+
PortAudio is a portable audio I/O library designed for cross-platform
|
4 |
+
support of audio. It uses either a callback mechanism to request audio
|
5 |
+
processing, or blocking read/write calls to buffer data between the
|
6 |
+
native audio subsystem and the client. Audio can be processed in various
|
7 |
+
formats, including 32 bit floating point, and will be converted to the
|
8 |
+
native format internally.
|
9 |
+
|
10 |
+
## Documentation:
|
11 |
+
|
12 |
+
* Documentation is available at http://www.portaudio.com/docs/
|
13 |
+
* Or at `/doc/html/index.html` after running Doxygen.
|
14 |
+
* Also see `src/common/portaudio.h` for the API spec.
|
15 |
+
* And see the `examples/` and `test/` directories for many examples of usage. (We suggest `examples/paex_saw.c` for an example.)
|
16 |
+
|
17 |
+
For information on compiling programs with PortAudio, please see the
|
18 |
+
tutorial at:
|
19 |
+
|
20 |
+
http://portaudio.com/docs/v19-doxydocs/tutorial_start.html
|
21 |
+
|
22 |
+
We have an active mailing list for user and developer discussions.
|
23 |
+
Please feel free to join. See http://www.portaudio.com for details.
|
24 |
+
|
25 |
+
## Important Files and Folders:
|
26 |
+
|
27 |
+
include/portaudio.h = header file for PortAudio API. Specifies API.
|
28 |
+
src/common/ = platform independent code, host independent
|
29 |
+
code for all implementations.
|
30 |
+
src/os = os specific (but host api neutral) code
|
31 |
+
src/hostapi = implementations for different host apis
|
32 |
+
|
33 |
+
|
34 |
+
### Host API Implementations:
|
35 |
+
|
36 |
+
src/hostapi/alsa = Advanced Linux Sound Architecture (ALSA)
|
37 |
+
src/hostapi/asihpi = AudioScience HPI
|
38 |
+
src/hostapi/asio = ASIO for Windows and Macintosh
|
39 |
+
src/hostapi/coreaudio = Macintosh Core Audio for OS X
|
40 |
+
src/hostapi/dsound = Windows Direct Sound
|
41 |
+
src/hostapi/jack = JACK Audio Connection Kit
|
42 |
+
src/hostapi/oss = Unix Open Sound System (OSS)
|
43 |
+
src/hostapi/wasapi = Windows Vista WASAPI
|
44 |
+
src/hostapi/wdmks = Windows WDM Kernel Streaming
|
45 |
+
src/hostapi/wmme = Windows MultiMedia Extensions (MME)
|
46 |
+
|
47 |
+
|
48 |
+
### Test Programs:
|
49 |
+
|
50 |
+
test/pa_fuzz.c = guitar fuzz box
|
51 |
+
test/pa_devs.c = print a list of available devices
|
52 |
+
test/pa_minlat.c = determine minimum latency for your machine
|
53 |
+
test/paqa_devs.c = self test that opens all devices
|
54 |
+
test/paqa_errs.c = test error detection and reporting
|
55 |
+
test/patest_clip.c = hear a sine wave clipped and unclipped
|
56 |
+
test/patest_dither.c = hear effects of dithering (extremely subtle)
|
57 |
+
test/patest_pink.c = fun with pink noise
|
58 |
+
test/patest_record.c = record and playback some audio
|
59 |
+
test/patest_maxsines.c = how many sine waves can we play? Tests Pa_GetCPULoad().
|
60 |
+
test/patest_sine.c = output a sine wave in a simple PA app
|
61 |
+
test/patest_sync.c = test synchronization of audio and video
|
62 |
+
test/patest_wire.c = pass input to output, wire simulator
|
portaudio/SConstruct
ADDED
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys, os.path
|
2 |
+
|
3 |
+
def rsplit(toSplit, sub, max=-1):
|
4 |
+
""" str.rsplit seems to have been introduced in 2.4 :( """
|
5 |
+
l = []
|
6 |
+
i = 0
|
7 |
+
while i != max:
|
8 |
+
try: idx = toSplit.rindex(sub)
|
9 |
+
except ValueError: break
|
10 |
+
|
11 |
+
toSplit, splitOff = toSplit[:idx], toSplit[idx + len(sub):]
|
12 |
+
l.insert(0, splitOff)
|
13 |
+
i += 1
|
14 |
+
|
15 |
+
l.insert(0, toSplit)
|
16 |
+
return l
|
17 |
+
|
18 |
+
sconsDir = os.path.join("build", "scons")
|
19 |
+
SConscript(os.path.join(sconsDir, "SConscript_common"))
|
20 |
+
Import("Platform", "Posix", "ApiVer")
|
21 |
+
|
22 |
+
# SConscript_opts exports PortAudio options
|
23 |
+
optsDict = SConscript(os.path.join(sconsDir, "SConscript_opts"))
|
24 |
+
optionsCache = os.path.join(sconsDir, "options.cache") # Save options between runs in this cache
|
25 |
+
options = Options(optionsCache, args=ARGUMENTS)
|
26 |
+
for k in ("Installation Dirs", "Build Targets", "Host APIs", "Build Parameters", "Bindings"):
|
27 |
+
options.AddOptions(*optsDict[k])
|
28 |
+
# Propagate options into environment
|
29 |
+
env = Environment(options=options)
|
30 |
+
# Save options for next run
|
31 |
+
options.Save(optionsCache, env)
|
32 |
+
# Generate help text for options
|
33 |
+
env.Help(options.GenerateHelpText(env))
|
34 |
+
|
35 |
+
buildDir = os.path.join("#", sconsDir, env["PLATFORM"])
|
36 |
+
|
37 |
+
# Determine parameters to build tools
|
38 |
+
if Platform in Posix:
|
39 |
+
threadCFlags = ''
|
40 |
+
if Platform != 'darwin':
|
41 |
+
threadCFlags = "-pthread "
|
42 |
+
baseLinkFlags = threadCFlags
|
43 |
+
baseCxxFlags = baseCFlags = "-Wall -pedantic -pipe " + threadCFlags
|
44 |
+
debugCxxFlags = debugCFlags = "-g"
|
45 |
+
optCxxFlags = optCFlags = "-O2"
|
46 |
+
env.Append(CCFLAGS = baseCFlags)
|
47 |
+
env.Append(CXXFLAGS = baseCxxFlags)
|
48 |
+
env.Append(LINKFLAGS = baseLinkFlags)
|
49 |
+
if env["enableDebug"]:
|
50 |
+
env.AppendUnique(CCFLAGS=debugCFlags.split())
|
51 |
+
env.AppendUnique(CXXFLAGS=debugCxxFlags.split())
|
52 |
+
if env["enableOptimize"]:
|
53 |
+
env.AppendUnique(CCFLAGS=optCFlags.split())
|
54 |
+
env.AppendUnique(CXXFLAGS=optCxxFlags.split())
|
55 |
+
if not env["enableAsserts"]:
|
56 |
+
env.AppendUnique(CPPDEFINES=["-DNDEBUG"])
|
57 |
+
if env["customCFlags"]:
|
58 |
+
env.Append(CCFLAGS=Split(env["customCFlags"]))
|
59 |
+
if env["customCxxFlags"]:
|
60 |
+
env.Append(CXXFLAGS=Split(env["customCxxFlags"]))
|
61 |
+
if env["customLinkFlags"]:
|
62 |
+
env.Append(LINKFLAGS=Split(env["customLinkFlags"]))
|
63 |
+
|
64 |
+
env.Append(CPPPATH=[os.path.join("#", "include"), "common"])
|
65 |
+
|
66 |
+
# Store all signatures in one file, otherwise .sconsign files will get installed along with our own files
|
67 |
+
env.SConsignFile(os.path.join(sconsDir, ".sconsign"))
|
68 |
+
|
69 |
+
env.SConscriptChdir(False)
|
70 |
+
sources, sharedLib, staticLib, tests, portEnv, hostApis = env.SConscript(os.path.join("src", "SConscript"),
|
71 |
+
build_dir=buildDir, duplicate=False, exports=["env"])
|
72 |
+
|
73 |
+
if Platform in Posix:
|
74 |
+
prefix = env["prefix"]
|
75 |
+
includeDir = os.path.join(prefix, "include")
|
76 |
+
libDir = os.path.join(prefix, "lib")
|
77 |
+
env.Alias("install", includeDir)
|
78 |
+
env.Alias("install", libDir)
|
79 |
+
|
80 |
+
# pkg-config
|
81 |
+
|
82 |
+
def installPkgconfig(env, target, source):
|
83 |
+
tgt = str(target[0])
|
84 |
+
src = str(source[0])
|
85 |
+
f = open(src)
|
86 |
+
try: txt = f.read()
|
87 |
+
finally: f.close()
|
88 |
+
txt = txt.replace("@prefix@", prefix)
|
89 |
+
txt = txt.replace("@exec_prefix@", prefix)
|
90 |
+
txt = txt.replace("@libdir@", libDir)
|
91 |
+
txt = txt.replace("@includedir@", includeDir)
|
92 |
+
txt = txt.replace("@LIBS@", " ".join(["-l%s" % l for l in portEnv["LIBS"]]))
|
93 |
+
txt = txt.replace("@THREAD_CFLAGS@", threadCFlags)
|
94 |
+
|
95 |
+
f = open(tgt, "w")
|
96 |
+
try: f.write(txt)
|
97 |
+
finally: f.close()
|
98 |
+
|
99 |
+
pkgconfigTgt = "portaudio-%d.0.pc" % int(ApiVer.split(".", 1)[0])
|
100 |
+
env.Command(os.path.join(libDir, "pkgconfig", pkgconfigTgt),
|
101 |
+
os.path.join("#", pkgconfigTgt + ".in"), installPkgconfig)
|
102 |
+
|
103 |
+
# Default to None, since if the user disables all targets and no Default is set, all targets
|
104 |
+
# are built by default
|
105 |
+
env.Default(None)
|
106 |
+
if env["enableTests"]:
|
107 |
+
env.Default(tests)
|
108 |
+
if env["enableShared"]:
|
109 |
+
env.Default(sharedLib)
|
110 |
+
|
111 |
+
if Platform in Posix:
|
112 |
+
def symlink(env, target, source):
|
113 |
+
trgt = str(target[0])
|
114 |
+
src = str(source[0])
|
115 |
+
|
116 |
+
if os.path.islink(trgt) or os.path.exists(trgt):
|
117 |
+
os.remove(trgt)
|
118 |
+
os.symlink(os.path.basename(src), trgt)
|
119 |
+
|
120 |
+
major, minor, micro = [int(c) for c in ApiVer.split(".")]
|
121 |
+
|
122 |
+
soFile = "%s.%s" % (os.path.basename(str(sharedLib[0])), ApiVer)
|
123 |
+
env.InstallAs(target=os.path.join(libDir, soFile), source=sharedLib)
|
124 |
+
# Install symlinks
|
125 |
+
symTrgt = os.path.join(libDir, soFile)
|
126 |
+
env.Command(os.path.join(libDir, "libportaudio.so.%d.%d" % (major, minor)),
|
127 |
+
symTrgt, symlink)
|
128 |
+
symTrgt = rsplit(symTrgt, ".", 1)[0]
|
129 |
+
env.Command(os.path.join(libDir, "libportaudio.so.%d" % major), symTrgt, symlink)
|
130 |
+
symTrgt = rsplit(symTrgt, ".", 1)[0]
|
131 |
+
env.Command(os.path.join(libDir, "libportaudio.so"), symTrgt, symlink)
|
132 |
+
|
133 |
+
if env["enableStatic"]:
|
134 |
+
env.Default(staticLib)
|
135 |
+
env.Install(libDir, staticLib)
|
136 |
+
|
137 |
+
env.Install(includeDir, os.path.join("include", "portaudio.h"))
|
138 |
+
|
139 |
+
|
140 |
+
if env["enableCxx"]:
|
141 |
+
env.SConscriptChdir(True)
|
142 |
+
cxxEnv = env.Copy()
|
143 |
+
sharedLibs, staticLibs, headers = env.SConscript(os.path.join("bindings", "cpp", "SConscript"),
|
144 |
+
exports={"env": cxxEnv, "buildDir": buildDir}, build_dir=os.path.join(buildDir, "portaudiocpp"), duplicate=False)
|
145 |
+
if env["enableStatic"]:
|
146 |
+
env.Default(staticLibs)
|
147 |
+
env.Install(libDir, staticLibs)
|
148 |
+
if env["enableShared"]:
|
149 |
+
env.Default(sharedLibs)
|
150 |
+
env.Install(libDir, sharedLibs)
|
151 |
+
env.Install(os.path.join(includeDir, "portaudiocpp"), headers)
|
152 |
+
|
153 |
+
# Generate portaudio_config.h header with compile-time definitions of which PA
|
154 |
+
# back-ends are available, and which includes back-end extension headers
|
155 |
+
|
156 |
+
# Host-specific headers
|
157 |
+
hostApiHeaders = {"ALSA": "pa_linux_alsa.h",
|
158 |
+
"ASIO": "pa_asio.h",
|
159 |
+
"COREAUDIO": "pa_mac_core.h",
|
160 |
+
"JACK": "pa_jack.h",
|
161 |
+
"WMME": "pa_winwmme.h",
|
162 |
+
}
|
163 |
+
|
164 |
+
def buildConfigH(target, source, env):
|
165 |
+
"""builder for portaudio_config.h"""
|
166 |
+
global hostApiHeaders, hostApis
|
167 |
+
out = ""
|
168 |
+
for hostApi in hostApis:
|
169 |
+
out += "#define PA_HAVE_%s\n" % hostApi
|
170 |
+
|
171 |
+
hostApiSpecificHeader = hostApiHeaders.get(hostApi, None)
|
172 |
+
if hostApiSpecificHeader:
|
173 |
+
out += "#include \"%s\"\n" % hostApiSpecificHeader
|
174 |
+
|
175 |
+
out += "\n"
|
176 |
+
# Strip the last newline
|
177 |
+
if out and out[-1] == "\n":
|
178 |
+
out = out[:-1]
|
179 |
+
|
180 |
+
f = file(str(target[0]), 'w')
|
181 |
+
try: f.write(out)
|
182 |
+
finally: f.close()
|
183 |
+
return 0
|
184 |
+
|
185 |
+
# Define the builder for the config header
|
186 |
+
env.Append(BUILDERS={"portaudioConfig": env.Builder(
|
187 |
+
action=Action(buildConfigH), target_factory=env.fs.File)})
|
188 |
+
|
189 |
+
confH = env.portaudioConfig(File("portaudio_config.h", "include"),
|
190 |
+
File("portaudio.h", "include"))
|
191 |
+
env.Default(confH)
|
192 |
+
env.Install(os.path.join(includeDir, "portaudio"), confH)
|
193 |
+
|
194 |
+
for api in hostApis:
|
195 |
+
if api in hostApiHeaders:
|
196 |
+
env.Install(os.path.join(includeDir, "portaudio"),
|
197 |
+
File(hostApiHeaders[api], "include"))
|
portaudio/aclocal.m4
ADDED
The diff for this file is too large to render.
See raw diff
|
|
portaudio/bindings/cpp/AUTHORS
ADDED
File without changes
|
portaudio/bindings/cpp/COPYING
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PortAudio Portable Real-Time Audio Library
|
2 |
+
Copyright (c) 1999-2006 Ross Bencina and Phil Burk
|
3 |
+
|
4 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
5 |
+
a copy of this software and associated documentation files
|
6 |
+
(the "Software"), to deal in the Software without restriction,
|
7 |
+
including without limitation the rights to use, copy, modify, merge,
|
8 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
9 |
+
and to permit persons to whom the Software is furnished to do so,
|
10 |
+
subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be
|
13 |
+
included in all copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
18 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
19 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
20 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22 |
+
|
23 |
+
|
24 |
+
The text above constitutes the entire PortAudio license; however,
|
25 |
+
the PortAudio community also makes the following non-binding requests:
|
26 |
+
|
27 |
+
Any person wishing to distribute modifications to the Software is
|
28 |
+
requested to send the modifications to the original developer so that
|
29 |
+
they can be incorporated into the canonical version. It is also
|
30 |
+
requested that these non-binding requests be included along with the
|
31 |
+
license above.
|
portaudio/bindings/cpp/ChangeLog
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Note: Because PortAudioCpp is now in the main PortAudio SVN repository, having these per-release changelogs probably doesn't make much sense anymore. Perhaps it's better to just note mayor changes by date from now on.
|
2 |
+
|
3 |
+
PortAudioCpp v19 revision 16 06/05/22:
|
4 |
+
|
5 |
+
mblaauw:
|
6 |
+
- Added up-to-date MSVC 6.0 projects created by David Moore. Besides MSVC 6.0 users, MSVC 7.0 users may use these projects and automatically convert them to MSVC 7.0 projects.
|
7 |
+
- Changed the code and projects (MSVC 7.1 only) to be up-to-date with PortAudio's new directory structure.
|
8 |
+
- Added equivalents of the PaAsio_GetInputChannelName() and PaAsio_GetOutputChannelName() functions to the AsioDeviceAdapter wrapper-class (missing functions pointed out by David Moore).
|
9 |
+
- Added code to PortAudio's main SVN repository.
|
10 |
+
|
11 |
+
PortAudioCpp v19 revision 15 (unknown release date):
|
12 |
+
|
13 |
+
mblaauw:
|
14 |
+
- Changed some exception handling code in HostApi's constructor.
|
15 |
+
- Added accessors to PortAudio PaStream from PortAudioCpp Stream (their absence being pointed out
|
16 |
+
by Tom Jordan).
|
17 |
+
- Fixed a bug/typo in MemFunToCallbackInterfaceAdapter::init() thanks to Fredrik Viklund.
|
18 |
+
- Fixed issue with concrete Stream classes possibly throwing an exception and fixed documentation w.r.t. this.
|
19 |
+
- Moved files to portaudio/binding/cpp/. Made new msvc 7.1 projects to reflect the change and removed msvc 6.0
|
20 |
+
and 7.0 projects (because I can no longer maintain them myself). Gnu projects will probably need updating.
|
21 |
+
|
22 |
+
PortAudioCpp v19 revision 14 03/10/24:
|
23 |
+
|
24 |
+
mblaauw:
|
25 |
+
- Fixed some error handling bugs in Stream and System (pointed out by Tom Jordan).
|
26 |
+
- Updated documentation a little (main page).
|
27 |
+
- Fixed order of members so initializer list was in the right order in
|
28 |
+
StreamParameters (pointed out by Ludwig Schwardt).
|
29 |
+
- Added new lines at EOF's (as indicated by Ludwig Schwardt).
|
30 |
+
|
31 |
+
PortAudioCpp v19 revision 13 03/10/19:
|
32 |
+
|
33 |
+
lschwardt:
|
34 |
+
- Added build files for GNU/Linux.
|
35 |
+
- Fixed bug in Exception where the inherited what() member function (and destructor) had looser
|
36 |
+
exception specification (namely no exception specification, i.e. could throw anything) than
|
37 |
+
the std::exception base class's what() member function (which had throw(), i.e. no-throw guarantee).
|
38 |
+
- Changed the iterators so that they have a set of public typedefs instead of deriving the C++ standard
|
39 |
+
library std::iterator<> struct. G++ 2.95 doesn't support std::exception<> and composition-by-aggregation
|
40 |
+
is preferred over composition-by-inheritance in this case.
|
41 |
+
- Changed some minor things to avoid G++ warning messages.
|
42 |
+
|
43 |
+
mblaauw:
|
44 |
+
- Renamed this file (/WHATSNEW.txt) to /CHANGELOG.
|
45 |
+
- Renamed /PA_ISSUES.txt to /PA_ISSUES.
|
46 |
+
- Added /INSTALL file with some build info for GNU/Linux and VC6.
|
47 |
+
- Added MSVC 6.0 projects for building PortAudioCpp as a statically or dynamically linkable library.
|
48 |
+
- Moved build files to /build/(gnu/ or vc6/).
|
49 |
+
- Moved Doxygen configuration files to /doc/ and output to /doc/api_reference/.
|
50 |
+
- Added a /doc/README with some info how to generate Doxygen documentation.
|
51 |
+
|
52 |
+
PortAudioCpp v19 revision 12 03/09/02:
|
53 |
+
|
54 |
+
mblaauw:
|
55 |
+
- Updated code to reflect changes on V19-devel CVS branch.
|
56 |
+
- Fixed some typos in the documentation.
|
57 |
+
|
58 |
+
PortAudioCpp v19 revision 11 03/07/31:
|
59 |
+
|
60 |
+
mblaauw:
|
61 |
+
- Renamed SingleDirecionStreamParameters to DirectionSpecificStreamParameters.
|
62 |
+
- Implemented BlockingStream.
|
63 |
+
- Updated code to reflect recent changes to PortAudio V19-devel.
|
64 |
+
- Fixed a potential memory leak when an exception was thrown in the HostApi
|
65 |
+
constructor.
|
66 |
+
- Renamed ``Latency'' to ``BufferSize'' in AsioDeviceAdapter.
|
67 |
+
- Updated class documentation.
|
68 |
+
|
69 |
+
PortAudioCpp v19 revision 10 03/07/18:
|
70 |
+
|
71 |
+
mblaauw:
|
72 |
+
- SingleDirectionStreamParameters now has a (static) null() method.
|
73 |
+
- StreamParameters uses references for the direction-specific stream parameters
|
74 |
+
instead of pointers (use null() method (above) instead of NULL).
|
75 |
+
- StreamParameters and SingleDirectionStreamParameters must now be fully specified
|
76 |
+
and now default values are used (because this was not very useful in general and
|
77 |
+
only made things more complex).
|
78 |
+
- Updated documentation.
|
79 |
+
|
80 |
+
PortAudioCpp v19 revision 09 03/06/25:
|
81 |
+
|
82 |
+
mblaauw:
|
83 |
+
- Changed some things in SingleDirectionStreamParameters to ease it's usage.
|
84 |
+
- Placed all SingleDirectionStreamParameters stuff into a separate file.
|
85 |
+
+ Totally redid the callback stuff, now it's less awkward and supports C++ functions.
|
86 |
+
|
87 |
+
PortAudioCpp v19 revision 08 03/06/20:
|
88 |
+
|
89 |
+
mblaauw:
|
90 |
+
- Made deconstructors for Device and HostApi private.
|
91 |
+
+ Added a AsioDeviceWrapper host api specific device extension class.
|
92 |
+
- Refactored Exception into a Exception base class and PaException and PaCppException
|
93 |
+
derived classes.
|
94 |
+
- Added ASIO specific device info to the devs.cxx example.
|
95 |
+
- Fixed a bug in System::hostApiCount() and System::defaultHostApi().
|
96 |
+
+ Moved Device::null to System::nullDevice.
|
97 |
+
- Fixed some bugs in Device and System.
|
98 |
+
|
99 |
+
PortAudioCpp v19 revision 07 03/06/08:
|
100 |
+
|
101 |
+
mblaauw:
|
102 |
+
- Updated some doxy comments.
|
103 |
+
+ Renamed CbXyz to CallbackXyz.
|
104 |
+
+ Renamed all ``configurations'' to ``parameters''.
|
105 |
+
+ Renamed HalfDuplexStreamConfiguration to SingleDirectionStreamConfiguration.
|
106 |
+
- Renamed SingleDirectionStreamParameters::streamParameters() to
|
107 |
+
SingleDirectionStreamParameters::paSteamParameters.
|
108 |
+
- Added a non-constant version of SingleDirectionStreamParameters::paStreamParameters().
|
109 |
+
- A few improvements to SingleDirectionStreamParameters.
|
110 |
+
- Allowed AutoSystem to be created without initializing the System singleton
|
111 |
+
(using a ctor flag).
|
112 |
+
- Added a BlockingStream class (not implemented for now).
|
113 |
+
- Fixed many bugs in the implementation of the iterators.
|
114 |
+
- Fixed a bug in Device::operator==().
|
115 |
+
+ Added a C++ version of the patest_sine.c test/example.
|
116 |
+
- Added a ctor for StreamParameters for a default half-duplex stream.
|
117 |
+
- Added SingleDirectionStreamParameters::setDevice() and setNumChannels().
|
118 |
+
- Renamed System::numHostApis() to System::hostApiCount().
|
119 |
+
+ Rewrote the iterators and related classes. They are now fully STL compliant. The System now
|
120 |
+
has a static array of all HostApis and all Devices. Only the System can create HostApis and
|
121 |
+
Devices and they are non-copyable now. All HostApis and Devices are now passed by-reference.
|
122 |
+
- Renamed (System::) getVersion() to version() and getVersionText() to versionText().
|
123 |
+
- Renamed (Device::) numXyzChannels() to maxXyzChannels().
|
124 |
+
- Changed some stuff in StreamParameters.
|
125 |
+
+ Added a C++ version of the patest_devs.c test/example.
|
126 |
+
|
127 |
+
PortAudioCpp v19 revision 06 03/06/04:
|
128 |
+
|
129 |
+
mblaauw:
|
130 |
+
+ Added this file to the project (roughly, a `+' denotes a major change, a `-' a minor change).
|
131 |
+
- Added System::deviceByIndex(), useful when a Device's index is stored for instance.
|
132 |
+
- Renamed System::hostApiFromTypeId() to System::hostApiByTypeId().
|
133 |
+
- Updated and added some Doxygen documentation.
|
134 |
+
- Made Stream::usedIntputLatency(), Stream::usedOutputLatency() and
|
135 |
+
Stream::usedSampleRate() throw an paInternalError equivalent exception instead of paBadStreamPtr.
|
136 |
+
- Changed exception handling in Stream::open() functions. They now follow the PA error handling
|
137 |
+
mechanism better and a couple of bugs regarding ownership of objects were fixed.
|
138 |
+
- Renamed Device::isDefaultXyzDevice() to Device::isSystemDefaultXyzDevice().
|
139 |
+
- Added Device::isHostApiDefaultXyzDevice().
|
140 |
+
- Added StreamConfiguration::unsetFlag().
|
141 |
+
- Removed CUSTOM from SampleDataFormat.
|
142 |
+
- System::hostApiByTypeId() now throws an paInternalError if the type id was out-of-range; this
|
143 |
+
is a temporary work-around (see comments).
|
144 |
+
- Changed CbInterface to use paCallbackFun() instead of operator()().
|
145 |
+
- Renamed ``object'' to ``instance'' in CbMemFunAdapter.hxx.
|
146 |
+
- Added StreamConfiguration::setXyzHostApiSpecificSampleFormat().
|
147 |
+
- Added StreamConfiguration::isXyzSampleFormatHostApiSpecific().
|
148 |
+
- Changed error handling in System::terminate(), it can now throw an Exception.
|
149 |
+
- Added error handling in System::defaultHostApi().
|
150 |
+
- Added error handling in System::hostApisEnd().
|
151 |
+
- Changed some (but probably not all) C casts to C++ casts to avoid confusion with a
|
152 |
+
certain Python person.
|
153 |
+
- Renamed RaiiSystem to AutoSystem (class and file) as this is a come common convention.
|
154 |
+
- Renamed System::numDevices() to System::deviceCount() to be more compatible with PortAudio
|
155 |
+
(although PortAudio uses Pa_CountDevices() instead, see comment).
|
156 |
+
- Renamed HostApi::numDevices() to HostApi::deviceCount().
|
157 |
+
- Changed INC_ to INCLUDED_ in the header multiple include guards.
|
158 |
+
- Changed the order of functions in the StreamConfiguration class' header.
|
159 |
+
- Written some more info in PortAudioCpp.hxx (Doxygen).
|
160 |
+
- Added CallbackStream.hxx and CallbackStream.cxx files.
|
161 |
+
+ Refactored StreamConfiguration to remove the duplication which was there. There is now a
|
162 |
+
HalfDuplexStreamConfiguration class. Also made some improvements to these classes while
|
163 |
+
doing the refactoring.
|
164 |
+
+ Moved all code files to source/portaudiocpp/ and changed includes.
|
165 |
+
+ Moved all header files to include/portaudiocpp/ to easy a binary build if needed. The project
|
166 |
+
must be set to have .../include/ as a path to look for includes.
|
167 |
+
+ Refactored the Stream class into a Stream base class and a CallbackStream derived class.
|
168 |
+
- Renamed Stream::usingXyz() to Stream::xyz().
|
169 |
+
- Updated some doxy comments.
|
170 |
+
- Changed ``using namespace portaudio'' in .cxx files to ``namespace portaudio { ... }''.
|
171 |
+
|
172 |
+
PortAudioCpp v19 revision 05 03/04/09:
|
173 |
+
|
174 |
+
mblaauw:
|
175 |
+
- Initial release on the PortAudio mailinglist.
|
176 |
+
|
177 |
+
|
178 |
+
|
portaudio/bindings/cpp/INSTALL
ADDED
@@ -0,0 +1,370 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Installation Instructions
|
2 |
+
*************************
|
3 |
+
|
4 |
+
Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
|
5 |
+
Inc.
|
6 |
+
|
7 |
+
Copying and distribution of this file, with or without modification,
|
8 |
+
are permitted in any medium without royalty provided the copyright
|
9 |
+
notice and this notice are preserved. This file is offered as-is,
|
10 |
+
without warranty of any kind.
|
11 |
+
|
12 |
+
Basic Installation
|
13 |
+
==================
|
14 |
+
|
15 |
+
Briefly, the shell command `./configure && make && make install'
|
16 |
+
should configure, build, and install this package. The following
|
17 |
+
more-detailed instructions are generic; see the `README' file for
|
18 |
+
instructions specific to this package. Some packages provide this
|
19 |
+
`INSTALL' file but do not implement all of the features documented
|
20 |
+
below. The lack of an optional feature in a given package is not
|
21 |
+
necessarily a bug. More recommendations for GNU packages can be found
|
22 |
+
in *note Makefile Conventions: (standards)Makefile Conventions.
|
23 |
+
|
24 |
+
The `configure' shell script attempts to guess correct values for
|
25 |
+
various system-dependent variables used during compilation. It uses
|
26 |
+
those values to create a `Makefile' in each directory of the package.
|
27 |
+
It may also create one or more `.h' files containing system-dependent
|
28 |
+
definitions. Finally, it creates a shell script `config.status' that
|
29 |
+
you can run in the future to recreate the current configuration, and a
|
30 |
+
file `config.log' containing compiler output (useful mainly for
|
31 |
+
debugging `configure').
|
32 |
+
|
33 |
+
It can also use an optional file (typically called `config.cache'
|
34 |
+
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
35 |
+
the results of its tests to speed up reconfiguring. Caching is
|
36 |
+
disabled by default to prevent problems with accidental use of stale
|
37 |
+
cache files.
|
38 |
+
|
39 |
+
If you need to do unusual things to compile the package, please try
|
40 |
+
to figure out how `configure' could check whether to do them, and mail
|
41 |
+
diffs or instructions to the address given in the `README' so they can
|
42 |
+
be considered for the next release. If you are using the cache, and at
|
43 |
+
some point `config.cache' contains results you don't want to keep, you
|
44 |
+
may remove or edit it.
|
45 |
+
|
46 |
+
The file `configure.ac' (or `configure.in') is used to create
|
47 |
+
`configure' by a program called `autoconf'. You need `configure.ac' if
|
48 |
+
you want to change it or regenerate `configure' using a newer version
|
49 |
+
of `autoconf'.
|
50 |
+
|
51 |
+
The simplest way to compile this package is:
|
52 |
+
|
53 |
+
1. `cd' to the directory containing the package's source code and type
|
54 |
+
`./configure' to configure the package for your system.
|
55 |
+
|
56 |
+
Running `configure' might take a while. While running, it prints
|
57 |
+
some messages telling which features it is checking for.
|
58 |
+
|
59 |
+
2. Type `make' to compile the package.
|
60 |
+
|
61 |
+
3. Optionally, type `make check' to run any self-tests that come with
|
62 |
+
the package, generally using the just-built uninstalled binaries.
|
63 |
+
|
64 |
+
4. Type `make install' to install the programs and any data files and
|
65 |
+
documentation. When installing into a prefix owned by root, it is
|
66 |
+
recommended that the package be configured and built as a regular
|
67 |
+
user, and only the `make install' phase executed with root
|
68 |
+
privileges.
|
69 |
+
|
70 |
+
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
71 |
+
this time using the binaries in their final installed location.
|
72 |
+
This target does not install anything. Running this target as a
|
73 |
+
regular user, particularly if the prior `make install' required
|
74 |
+
root privileges, verifies that the installation completed
|
75 |
+
correctly.
|
76 |
+
|
77 |
+
6. You can remove the program binaries and object files from the
|
78 |
+
source code directory by typing `make clean'. To also remove the
|
79 |
+
files that `configure' created (so you can compile the package for
|
80 |
+
a different kind of computer), type `make distclean'. There is
|
81 |
+
also a `make maintainer-clean' target, but that is intended mainly
|
82 |
+
for the package's developers. If you use it, you may have to get
|
83 |
+
all sorts of other programs in order to regenerate files that came
|
84 |
+
with the distribution.
|
85 |
+
|
86 |
+
7. Often, you can also type `make uninstall' to remove the installed
|
87 |
+
files again. In practice, not all packages have tested that
|
88 |
+
uninstallation works correctly, even though it is required by the
|
89 |
+
GNU Coding Standards.
|
90 |
+
|
91 |
+
8. Some packages, particularly those that use Automake, provide `make
|
92 |
+
distcheck', which can by used by developers to test that all other
|
93 |
+
targets like `make install' and `make uninstall' work correctly.
|
94 |
+
This target is generally not run by end users.
|
95 |
+
|
96 |
+
Compilers and Options
|
97 |
+
=====================
|
98 |
+
|
99 |
+
Some systems require unusual options for compilation or linking that
|
100 |
+
the `configure' script does not know about. Run `./configure --help'
|
101 |
+
for details on some of the pertinent environment variables.
|
102 |
+
|
103 |
+
You can give `configure' initial values for configuration parameters
|
104 |
+
by setting variables in the command line or in the environment. Here
|
105 |
+
is an example:
|
106 |
+
|
107 |
+
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
108 |
+
|
109 |
+
*Note Defining Variables::, for more details.
|
110 |
+
|
111 |
+
Compiling For Multiple Architectures
|
112 |
+
====================================
|
113 |
+
|
114 |
+
You can compile the package for more than one kind of computer at the
|
115 |
+
same time, by placing the object files for each architecture in their
|
116 |
+
own directory. To do this, you can use GNU `make'. `cd' to the
|
117 |
+
directory where you want the object files and executables to go and run
|
118 |
+
the `configure' script. `configure' automatically checks for the
|
119 |
+
source code in the directory that `configure' is in and in `..'. This
|
120 |
+
is known as a "VPATH" build.
|
121 |
+
|
122 |
+
With a non-GNU `make', it is safer to compile the package for one
|
123 |
+
architecture at a time in the source code directory. After you have
|
124 |
+
installed the package for one architecture, use `make distclean' before
|
125 |
+
reconfiguring for another architecture.
|
126 |
+
|
127 |
+
On MacOS X 10.5 and later systems, you can create libraries and
|
128 |
+
executables that work on multiple system types--known as "fat" or
|
129 |
+
"universal" binaries--by specifying multiple `-arch' options to the
|
130 |
+
compiler but only a single `-arch' option to the preprocessor. Like
|
131 |
+
this:
|
132 |
+
|
133 |
+
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
134 |
+
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
135 |
+
CPP="gcc -E" CXXCPP="g++ -E"
|
136 |
+
|
137 |
+
This is not guaranteed to produce working output in all cases, you
|
138 |
+
may have to build one architecture at a time and combine the results
|
139 |
+
using the `lipo' tool if you have problems.
|
140 |
+
|
141 |
+
Installation Names
|
142 |
+
==================
|
143 |
+
|
144 |
+
By default, `make install' installs the package's commands under
|
145 |
+
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
146 |
+
can specify an installation prefix other than `/usr/local' by giving
|
147 |
+
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
148 |
+
absolute file name.
|
149 |
+
|
150 |
+
You can specify separate installation prefixes for
|
151 |
+
architecture-specific files and architecture-independent files. If you
|
152 |
+
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
153 |
+
PREFIX as the prefix for installing programs and libraries.
|
154 |
+
Documentation and other data files still use the regular prefix.
|
155 |
+
|
156 |
+
In addition, if you use an unusual directory layout you can give
|
157 |
+
options like `--bindir=DIR' to specify different values for particular
|
158 |
+
kinds of files. Run `configure --help' for a list of the directories
|
159 |
+
you can set and what kinds of files go in them. In general, the
|
160 |
+
default for these options is expressed in terms of `${prefix}', so that
|
161 |
+
specifying just `--prefix' will affect all of the other directory
|
162 |
+
specifications that were not explicitly provided.
|
163 |
+
|
164 |
+
The most portable way to affect installation locations is to pass the
|
165 |
+
correct locations to `configure'; however, many packages provide one or
|
166 |
+
both of the following shortcuts of passing variable assignments to the
|
167 |
+
`make install' command line to change installation locations without
|
168 |
+
having to reconfigure or recompile.
|
169 |
+
|
170 |
+
The first method involves providing an override variable for each
|
171 |
+
affected directory. For example, `make install
|
172 |
+
prefix=/alternate/directory' will choose an alternate location for all
|
173 |
+
directory configuration variables that were expressed in terms of
|
174 |
+
`${prefix}'. Any directories that were specified during `configure',
|
175 |
+
but not in terms of `${prefix}', must each be overridden at install
|
176 |
+
time for the entire installation to be relocated. The approach of
|
177 |
+
makefile variable overrides for each directory variable is required by
|
178 |
+
the GNU Coding Standards, and ideally causes no recompilation.
|
179 |
+
However, some platforms have known limitations with the semantics of
|
180 |
+
shared libraries that end up requiring recompilation when using this
|
181 |
+
method, particularly noticeable in packages that use GNU Libtool.
|
182 |
+
|
183 |
+
The second method involves providing the `DESTDIR' variable. For
|
184 |
+
example, `make install DESTDIR=/alternate/directory' will prepend
|
185 |
+
`/alternate/directory' before all installation names. The approach of
|
186 |
+
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
187 |
+
does not work on platforms that have drive letters. On the other hand,
|
188 |
+
it does better at avoiding recompilation issues, and works well even
|
189 |
+
when some directory options were not specified in terms of `${prefix}'
|
190 |
+
at `configure' time.
|
191 |
+
|
192 |
+
Optional Features
|
193 |
+
=================
|
194 |
+
|
195 |
+
If the package supports it, you can cause programs to be installed
|
196 |
+
with an extra prefix or suffix on their names by giving `configure' the
|
197 |
+
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
198 |
+
|
199 |
+
Some packages pay attention to `--enable-FEATURE' options to
|
200 |
+
`configure', where FEATURE indicates an optional part of the package.
|
201 |
+
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
202 |
+
is something like `gnu-as' or `x' (for the X Window System). The
|
203 |
+
`README' should mention any `--enable-' and `--with-' options that the
|
204 |
+
package recognizes.
|
205 |
+
|
206 |
+
For packages that use the X Window System, `configure' can usually
|
207 |
+
find the X include and library files automatically, but if it doesn't,
|
208 |
+
you can use the `configure' options `--x-includes=DIR' and
|
209 |
+
`--x-libraries=DIR' to specify their locations.
|
210 |
+
|
211 |
+
Some packages offer the ability to configure how verbose the
|
212 |
+
execution of `make' will be. For these packages, running `./configure
|
213 |
+
--enable-silent-rules' sets the default to minimal output, which can be
|
214 |
+
overridden with `make V=1'; while running `./configure
|
215 |
+
--disable-silent-rules' sets the default to verbose, which can be
|
216 |
+
overridden with `make V=0'.
|
217 |
+
|
218 |
+
Particular systems
|
219 |
+
==================
|
220 |
+
|
221 |
+
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
222 |
+
CC is not installed, it is recommended to use the following options in
|
223 |
+
order to use an ANSI C compiler:
|
224 |
+
|
225 |
+
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
226 |
+
|
227 |
+
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
228 |
+
|
229 |
+
HP-UX `make' updates targets which have the same time stamps as
|
230 |
+
their prerequisites, which makes it generally unusable when shipped
|
231 |
+
generated files such as `configure' are involved. Use GNU `make'
|
232 |
+
instead.
|
233 |
+
|
234 |
+
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
235 |
+
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
236 |
+
a workaround. If GNU CC is not installed, it is therefore recommended
|
237 |
+
to try
|
238 |
+
|
239 |
+
./configure CC="cc"
|
240 |
+
|
241 |
+
and if that doesn't work, try
|
242 |
+
|
243 |
+
./configure CC="cc -nodtk"
|
244 |
+
|
245 |
+
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
246 |
+
directory contains several dysfunctional programs; working variants of
|
247 |
+
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
248 |
+
in your `PATH', put it _after_ `/usr/bin'.
|
249 |
+
|
250 |
+
On Haiku, software installed for all users goes in `/boot/common',
|
251 |
+
not `/usr/local'. It is recommended to use the following options:
|
252 |
+
|
253 |
+
./configure --prefix=/boot/common
|
254 |
+
|
255 |
+
Specifying the System Type
|
256 |
+
==========================
|
257 |
+
|
258 |
+
There may be some features `configure' cannot figure out
|
259 |
+
automatically, but needs to determine by the type of machine the package
|
260 |
+
will run on. Usually, assuming the package is built to be run on the
|
261 |
+
_same_ architectures, `configure' can figure that out, but if it prints
|
262 |
+
a message saying it cannot guess the machine type, give it the
|
263 |
+
`--build=TYPE' option. TYPE can either be a short name for the system
|
264 |
+
type, such as `sun4', or a canonical name which has the form:
|
265 |
+
|
266 |
+
CPU-COMPANY-SYSTEM
|
267 |
+
|
268 |
+
where SYSTEM can have one of these forms:
|
269 |
+
|
270 |
+
OS
|
271 |
+
KERNEL-OS
|
272 |
+
|
273 |
+
See the file `config.sub' for the possible values of each field. If
|
274 |
+
`config.sub' isn't included in this package, then this package doesn't
|
275 |
+
need to know the machine type.
|
276 |
+
|
277 |
+
If you are _building_ compiler tools for cross-compiling, you should
|
278 |
+
use the option `--target=TYPE' to select the type of system they will
|
279 |
+
produce code for.
|
280 |
+
|
281 |
+
If you want to _use_ a cross compiler, that generates code for a
|
282 |
+
platform different from the build platform, you should specify the
|
283 |
+
"host" platform (i.e., that on which the generated programs will
|
284 |
+
eventually be run) with `--host=TYPE'.
|
285 |
+
|
286 |
+
Sharing Defaults
|
287 |
+
================
|
288 |
+
|
289 |
+
If you want to set default values for `configure' scripts to share,
|
290 |
+
you can create a site shell script called `config.site' that gives
|
291 |
+
default values for variables like `CC', `cache_file', and `prefix'.
|
292 |
+
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
293 |
+
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
294 |
+
`CONFIG_SITE' environment variable to the location of the site script.
|
295 |
+
A warning: not all `configure' scripts look for a site script.
|
296 |
+
|
297 |
+
Defining Variables
|
298 |
+
==================
|
299 |
+
|
300 |
+
Variables not defined in a site shell script can be set in the
|
301 |
+
environment passed to `configure'. However, some packages may run
|
302 |
+
configure again during the build, and the customized values of these
|
303 |
+
variables may be lost. In order to avoid this problem, you should set
|
304 |
+
them in the `configure' command line, using `VAR=value'. For example:
|
305 |
+
|
306 |
+
./configure CC=/usr/local2/bin/gcc
|
307 |
+
|
308 |
+
causes the specified `gcc' to be used as the C compiler (unless it is
|
309 |
+
overridden in the site shell script).
|
310 |
+
|
311 |
+
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
312 |
+
an Autoconf limitation. Until the limitation is lifted, you can use
|
313 |
+
this workaround:
|
314 |
+
|
315 |
+
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
316 |
+
|
317 |
+
`configure' Invocation
|
318 |
+
======================
|
319 |
+
|
320 |
+
`configure' recognizes the following options to control how it
|
321 |
+
operates.
|
322 |
+
|
323 |
+
`--help'
|
324 |
+
`-h'
|
325 |
+
Print a summary of all of the options to `configure', and exit.
|
326 |
+
|
327 |
+
`--help=short'
|
328 |
+
`--help=recursive'
|
329 |
+
Print a summary of the options unique to this package's
|
330 |
+
`configure', and exit. The `short' variant lists options used
|
331 |
+
only in the top level, while the `recursive' variant lists options
|
332 |
+
also present in any nested packages.
|
333 |
+
|
334 |
+
`--version'
|
335 |
+
`-V'
|
336 |
+
Print the version of Autoconf used to generate the `configure'
|
337 |
+
script, and exit.
|
338 |
+
|
339 |
+
`--cache-file=FILE'
|
340 |
+
Enable the cache: use and save the results of the tests in FILE,
|
341 |
+
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
342 |
+
disable caching.
|
343 |
+
|
344 |
+
`--config-cache'
|
345 |
+
`-C'
|
346 |
+
Alias for `--cache-file=config.cache'.
|
347 |
+
|
348 |
+
`--quiet'
|
349 |
+
`--silent'
|
350 |
+
`-q'
|
351 |
+
Do not print messages saying which checks are being made. To
|
352 |
+
suppress all normal output, redirect it to `/dev/null' (any error
|
353 |
+
messages will still be shown).
|
354 |
+
|
355 |
+
`--srcdir=DIR'
|
356 |
+
Look for the package's source code in directory DIR. Usually
|
357 |
+
`configure' can determine that directory automatically.
|
358 |
+
|
359 |
+
`--prefix=DIR'
|
360 |
+
Use DIR as the installation prefix. *note Installation Names::
|
361 |
+
for more details, including other options available for fine-tuning
|
362 |
+
the installation locations.
|
363 |
+
|
364 |
+
`--no-create'
|
365 |
+
`-n'
|
366 |
+
Run the configure checks, but stop before creating any output
|
367 |
+
files.
|
368 |
+
|
369 |
+
`configure' also accepts some other, not widely useful, options. Run
|
370 |
+
`configure --help' for more details.
|
portaudio/bindings/cpp/Makefile.am
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
SUBDIRS = lib include bin
|
2 |
+
#doc
|
3 |
+
|
4 |
+
EXTRA_DIST = portaudiocpp.pc
|
5 |
+
|
6 |
+
pkgconfigdir = $(libdir)/pkgconfig
|
7 |
+
pkgconfig_DATA = portaudiocpp.pc
|
portaudio/bindings/cpp/Makefile.in
ADDED
@@ -0,0 +1,848 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
2 |
+
# @configure_input@
|
3 |
+
|
4 |
+
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
5 |
+
|
6 |
+
# This Makefile.in is free software; the Free Software Foundation
|
7 |
+
# gives unlimited permission to copy and/or distribute it,
|
8 |
+
# with or without modifications, as long as this notice is preserved.
|
9 |
+
|
10 |
+
# This program is distributed in the hope that it will be useful,
|
11 |
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
12 |
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
13 |
+
# PARTICULAR PURPOSE.
|
14 |
+
|
15 |
+
@SET_MAKE@
|
16 |
+
|
17 |
+
VPATH = @srcdir@
|
18 |
+
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
19 |
+
am__make_running_with_option = \
|
20 |
+
case $${target_option-} in \
|
21 |
+
?) ;; \
|
22 |
+
*) echo "am__make_running_with_option: internal error: invalid" \
|
23 |
+
"target option '$${target_option-}' specified" >&2; \
|
24 |
+
exit 1;; \
|
25 |
+
esac; \
|
26 |
+
has_opt=no; \
|
27 |
+
sane_makeflags=$$MAKEFLAGS; \
|
28 |
+
if $(am__is_gnu_make); then \
|
29 |
+
sane_makeflags=$$MFLAGS; \
|
30 |
+
else \
|
31 |
+
case $$MAKEFLAGS in \
|
32 |
+
*\\[\ \ ]*) \
|
33 |
+
bs=\\; \
|
34 |
+
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
35 |
+
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
36 |
+
esac; \
|
37 |
+
fi; \
|
38 |
+
skip_next=no; \
|
39 |
+
strip_trailopt () \
|
40 |
+
{ \
|
41 |
+
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
42 |
+
}; \
|
43 |
+
for flg in $$sane_makeflags; do \
|
44 |
+
test $$skip_next = yes && { skip_next=no; continue; }; \
|
45 |
+
case $$flg in \
|
46 |
+
*=*|--*) continue;; \
|
47 |
+
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
48 |
+
-*I?*) strip_trailopt 'I';; \
|
49 |
+
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
50 |
+
-*O?*) strip_trailopt 'O';; \
|
51 |
+
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
52 |
+
-*l?*) strip_trailopt 'l';; \
|
53 |
+
-[dEDm]) skip_next=yes;; \
|
54 |
+
-[JT]) skip_next=yes;; \
|
55 |
+
esac; \
|
56 |
+
case $$flg in \
|
57 |
+
*$$target_option*) has_opt=yes; break;; \
|
58 |
+
esac; \
|
59 |
+
done; \
|
60 |
+
test $$has_opt = yes
|
61 |
+
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
62 |
+
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
63 |
+
pkgdatadir = $(datadir)/@PACKAGE@
|
64 |
+
pkgincludedir = $(includedir)/@PACKAGE@
|
65 |
+
pkglibdir = $(libdir)/@PACKAGE@
|
66 |
+
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
67 |
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
68 |
+
install_sh_DATA = $(install_sh) -c -m 644
|
69 |
+
install_sh_PROGRAM = $(install_sh) -c
|
70 |
+
install_sh_SCRIPT = $(install_sh) -c
|
71 |
+
INSTALL_HEADER = $(INSTALL_DATA)
|
72 |
+
transform = $(program_transform_name)
|
73 |
+
NORMAL_INSTALL = :
|
74 |
+
PRE_INSTALL = :
|
75 |
+
POST_INSTALL = :
|
76 |
+
NORMAL_UNINSTALL = :
|
77 |
+
PRE_UNINSTALL = :
|
78 |
+
POST_UNINSTALL = :
|
79 |
+
build_triplet = @build@
|
80 |
+
host_triplet = @host@
|
81 |
+
subdir = .
|
82 |
+
DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
|
83 |
+
$(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
84 |
+
$(top_srcdir)/configure $(am__configure_deps) \
|
85 |
+
$(srcdir)/portaudiocpp.pc.in COPYING \
|
86 |
+
$(top_srcdir)/../../compile $(top_srcdir)/../../config.guess \
|
87 |
+
$(top_srcdir)/../../config.sub $(top_srcdir)/../../install-sh \
|
88 |
+
$(top_srcdir)/../../ltmain.sh $(top_srcdir)/../../missing
|
89 |
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
90 |
+
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
91 |
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
92 |
+
$(ACLOCAL_M4)
|
93 |
+
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
94 |
+
configure.lineno config.status.lineno
|
95 |
+
mkinstalldirs = $(install_sh) -d
|
96 |
+
CONFIG_CLEAN_FILES = portaudiocpp.pc
|
97 |
+
CONFIG_CLEAN_VPATH_FILES =
|
98 |
+
AM_V_P = $(am__v_P_@AM_V@)
|
99 |
+
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
100 |
+
am__v_P_0 = false
|
101 |
+
am__v_P_1 = :
|
102 |
+
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
103 |
+
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
104 |
+
am__v_GEN_0 = @echo " GEN " $@;
|
105 |
+
am__v_GEN_1 =
|
106 |
+
AM_V_at = $(am__v_at_@AM_V@)
|
107 |
+
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
108 |
+
am__v_at_0 = @
|
109 |
+
am__v_at_1 =
|
110 |
+
SOURCES =
|
111 |
+
DIST_SOURCES =
|
112 |
+
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
113 |
+
ctags-recursive dvi-recursive html-recursive info-recursive \
|
114 |
+
install-data-recursive install-dvi-recursive \
|
115 |
+
install-exec-recursive install-html-recursive \
|
116 |
+
install-info-recursive install-pdf-recursive \
|
117 |
+
install-ps-recursive install-recursive installcheck-recursive \
|
118 |
+
installdirs-recursive pdf-recursive ps-recursive \
|
119 |
+
tags-recursive uninstall-recursive
|
120 |
+
am__can_run_installinfo = \
|
121 |
+
case $$AM_UPDATE_INFO_DIR in \
|
122 |
+
n|no|NO) false;; \
|
123 |
+
*) (install-info --version) >/dev/null 2>&1;; \
|
124 |
+
esac
|
125 |
+
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
126 |
+
am__vpath_adj = case $$p in \
|
127 |
+
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
128 |
+
*) f=$$p;; \
|
129 |
+
esac;
|
130 |
+
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
131 |
+
am__install_max = 40
|
132 |
+
am__nobase_strip_setup = \
|
133 |
+
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
134 |
+
am__nobase_strip = \
|
135 |
+
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
136 |
+
am__nobase_list = $(am__nobase_strip_setup); \
|
137 |
+
for p in $$list; do echo "$$p $$p"; done | \
|
138 |
+
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
139 |
+
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
140 |
+
if (++n[$$2] == $(am__install_max)) \
|
141 |
+
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
142 |
+
END { for (dir in files) print dir, files[dir] }'
|
143 |
+
am__base_list = \
|
144 |
+
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
145 |
+
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
146 |
+
am__uninstall_files_from_dir = { \
|
147 |
+
test -z "$$files" \
|
148 |
+
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
149 |
+
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
150 |
+
$(am__cd) "$$dir" && rm -f $$files; }; \
|
151 |
+
}
|
152 |
+
am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
|
153 |
+
DATA = $(pkgconfig_DATA)
|
154 |
+
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
155 |
+
distclean-recursive maintainer-clean-recursive
|
156 |
+
am__recursive_targets = \
|
157 |
+
$(RECURSIVE_TARGETS) \
|
158 |
+
$(RECURSIVE_CLEAN_TARGETS) \
|
159 |
+
$(am__extra_recursive_targets)
|
160 |
+
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
161 |
+
cscope distdir dist dist-all distcheck
|
162 |
+
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
163 |
+
# Read a list of newline-separated strings from the standard input,
|
164 |
+
# and print each of them once, without duplicates. Input order is
|
165 |
+
# *not* preserved.
|
166 |
+
am__uniquify_input = $(AWK) '\
|
167 |
+
BEGIN { nonempty = 0; } \
|
168 |
+
{ items[$$0] = 1; nonempty = 1; } \
|
169 |
+
END { if (nonempty) { for (i in items) print i; }; } \
|
170 |
+
'
|
171 |
+
# Make sure the list of sources is unique. This is necessary because,
|
172 |
+
# e.g., the same source file might be shared among _SOURCES variables
|
173 |
+
# for different programs/libraries.
|
174 |
+
am__define_uniq_tagged_files = \
|
175 |
+
list='$(am__tagged_files)'; \
|
176 |
+
unique=`for i in $$list; do \
|
177 |
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
178 |
+
done | $(am__uniquify_input)`
|
179 |
+
ETAGS = etags
|
180 |
+
CTAGS = ctags
|
181 |
+
CSCOPE = cscope
|
182 |
+
DIST_SUBDIRS = $(SUBDIRS)
|
183 |
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
184 |
+
distdir = $(PACKAGE)-$(VERSION)
|
185 |
+
top_distdir = $(distdir)
|
186 |
+
am__remove_distdir = \
|
187 |
+
if test -d "$(distdir)"; then \
|
188 |
+
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
189 |
+
&& rm -rf "$(distdir)" \
|
190 |
+
|| { sleep 5 && rm -rf "$(distdir)"; }; \
|
191 |
+
else :; fi
|
192 |
+
am__post_remove_distdir = $(am__remove_distdir)
|
193 |
+
am__relativize = \
|
194 |
+
dir0=`pwd`; \
|
195 |
+
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
196 |
+
sed_rest='s,^[^/]*/*,,'; \
|
197 |
+
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
198 |
+
sed_butlast='s,/*[^/]*$$,,'; \
|
199 |
+
while test -n "$$dir1"; do \
|
200 |
+
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
201 |
+
if test "$$first" != "."; then \
|
202 |
+
if test "$$first" = ".."; then \
|
203 |
+
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
204 |
+
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
205 |
+
else \
|
206 |
+
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
207 |
+
if test "$$first2" = "$$first"; then \
|
208 |
+
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
209 |
+
else \
|
210 |
+
dir2="../$$dir2"; \
|
211 |
+
fi; \
|
212 |
+
dir0="$$dir0"/"$$first"; \
|
213 |
+
fi; \
|
214 |
+
fi; \
|
215 |
+
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
216 |
+
done; \
|
217 |
+
reldir="$$dir2"
|
218 |
+
DIST_ARCHIVES = $(distdir).tar.gz
|
219 |
+
GZIP_ENV = --best
|
220 |
+
DIST_TARGETS = dist-gzip
|
221 |
+
distuninstallcheck_listfiles = find . -type f -print
|
222 |
+
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
|
223 |
+
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
|
224 |
+
distcleancheck_listfiles = find . -type f -print
|
225 |
+
ACLOCAL = @ACLOCAL@
|
226 |
+
AMTAR = @AMTAR@
|
227 |
+
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
228 |
+
AR = @AR@
|
229 |
+
AS = @AS@
|
230 |
+
AUTOCONF = @AUTOCONF@
|
231 |
+
AUTOHEADER = @AUTOHEADER@
|
232 |
+
AUTOMAKE = @AUTOMAKE@
|
233 |
+
AWK = @AWK@
|
234 |
+
CC = @CC@
|
235 |
+
CCDEPMODE = @CCDEPMODE@
|
236 |
+
CFLAGS = @CFLAGS@
|
237 |
+
CPP = @CPP@
|
238 |
+
CPPFLAGS = @CPPFLAGS@
|
239 |
+
CXX = @CXX@
|
240 |
+
CXXCPP = @CXXCPP@
|
241 |
+
CXXDEPMODE = @CXXDEPMODE@
|
242 |
+
CXXFLAGS = @CXXFLAGS@
|
243 |
+
CYGPATH_W = @CYGPATH_W@
|
244 |
+
DEFAULT_INCLUDES = @DEFAULT_INCLUDES@
|
245 |
+
DEFS = @DEFS@
|
246 |
+
DEPDIR = @DEPDIR@
|
247 |
+
DLLTOOL = @DLLTOOL@
|
248 |
+
DSYMUTIL = @DSYMUTIL@
|
249 |
+
DUMPBIN = @DUMPBIN@
|
250 |
+
ECHO_C = @ECHO_C@
|
251 |
+
ECHO_N = @ECHO_N@
|
252 |
+
ECHO_T = @ECHO_T@
|
253 |
+
EGREP = @EGREP@
|
254 |
+
EXEEXT = @EXEEXT@
|
255 |
+
FGREP = @FGREP@
|
256 |
+
GREP = @GREP@
|
257 |
+
INSTALL = @INSTALL@
|
258 |
+
INSTALL_DATA = @INSTALL_DATA@
|
259 |
+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
260 |
+
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
261 |
+
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
262 |
+
LD = @LD@
|
263 |
+
LDFLAGS = @LDFLAGS@
|
264 |
+
LIBOBJS = @LIBOBJS@
|
265 |
+
LIBS = @LIBS@
|
266 |
+
LIBTOOL = @LIBTOOL@
|
267 |
+
LIPO = @LIPO@
|
268 |
+
LN_S = @LN_S@
|
269 |
+
LTLIBOBJS = @LTLIBOBJS@
|
270 |
+
LT_VERSION_INFO = @LT_VERSION_INFO@
|
271 |
+
MAINT = @MAINT@
|
272 |
+
MAKEINFO = @MAKEINFO@
|
273 |
+
MANIFEST_TOOL = @MANIFEST_TOOL@
|
274 |
+
MKDIR_P = @MKDIR_P@
|
275 |
+
NM = @NM@
|
276 |
+
NMEDIT = @NMEDIT@
|
277 |
+
OBJDUMP = @OBJDUMP@
|
278 |
+
OBJEXT = @OBJEXT@
|
279 |
+
OTOOL = @OTOOL@
|
280 |
+
OTOOL64 = @OTOOL64@
|
281 |
+
PACKAGE = @PACKAGE@
|
282 |
+
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
283 |
+
PACKAGE_NAME = @PACKAGE_NAME@
|
284 |
+
PACKAGE_STRING = @PACKAGE_STRING@
|
285 |
+
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
286 |
+
PACKAGE_URL = @PACKAGE_URL@
|
287 |
+
PACKAGE_VERSION = @PACKAGE_VERSION@
|
288 |
+
PATH_SEPARATOR = @PATH_SEPARATOR@
|
289 |
+
PORTAUDIO_ROOT = @PORTAUDIO_ROOT@
|
290 |
+
RANLIB = @RANLIB@
|
291 |
+
SED = @SED@
|
292 |
+
SET_MAKE = @SET_MAKE@
|
293 |
+
SHELL = @SHELL@
|
294 |
+
STRIP = @STRIP@
|
295 |
+
VERSION = @VERSION@
|
296 |
+
abs_builddir = @abs_builddir@
|
297 |
+
abs_srcdir = @abs_srcdir@
|
298 |
+
abs_top_builddir = @abs_top_builddir@
|
299 |
+
abs_top_srcdir = @abs_top_srcdir@
|
300 |
+
ac_ct_AR = @ac_ct_AR@
|
301 |
+
ac_ct_CC = @ac_ct_CC@
|
302 |
+
ac_ct_CXX = @ac_ct_CXX@
|
303 |
+
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
304 |
+
am__include = @am__include@
|
305 |
+
am__leading_dot = @am__leading_dot@
|
306 |
+
am__quote = @am__quote@
|
307 |
+
am__tar = @am__tar@
|
308 |
+
am__untar = @am__untar@
|
309 |
+
bindir = @bindir@
|
310 |
+
build = @build@
|
311 |
+
build_alias = @build_alias@
|
312 |
+
build_cpu = @build_cpu@
|
313 |
+
build_os = @build_os@
|
314 |
+
build_vendor = @build_vendor@
|
315 |
+
builddir = @builddir@
|
316 |
+
datadir = @datadir@
|
317 |
+
datarootdir = @datarootdir@
|
318 |
+
docdir = @docdir@
|
319 |
+
dvidir = @dvidir@
|
320 |
+
exec_prefix = @exec_prefix@
|
321 |
+
host = @host@
|
322 |
+
host_alias = @host_alias@
|
323 |
+
host_cpu = @host_cpu@
|
324 |
+
host_os = @host_os@
|
325 |
+
host_vendor = @host_vendor@
|
326 |
+
htmldir = @htmldir@
|
327 |
+
includedir = @includedir@
|
328 |
+
infodir = @infodir@
|
329 |
+
install_sh = @install_sh@
|
330 |
+
libdir = @libdir@
|
331 |
+
libexecdir = @libexecdir@
|
332 |
+
localedir = @localedir@
|
333 |
+
localstatedir = @localstatedir@
|
334 |
+
mandir = @mandir@
|
335 |
+
mkdir_p = @mkdir_p@
|
336 |
+
oldincludedir = @oldincludedir@
|
337 |
+
pdfdir = @pdfdir@
|
338 |
+
prefix = @prefix@
|
339 |
+
program_transform_name = @program_transform_name@
|
340 |
+
psdir = @psdir@
|
341 |
+
sbindir = @sbindir@
|
342 |
+
sharedstatedir = @sharedstatedir@
|
343 |
+
srcdir = @srcdir@
|
344 |
+
sysconfdir = @sysconfdir@
|
345 |
+
target_alias = @target_alias@
|
346 |
+
top_build_prefix = @top_build_prefix@
|
347 |
+
top_builddir = @top_builddir@
|
348 |
+
top_srcdir = @top_srcdir@
|
349 |
+
SUBDIRS = lib include bin
|
350 |
+
#doc
|
351 |
+
EXTRA_DIST = portaudiocpp.pc
|
352 |
+
pkgconfigdir = $(libdir)/pkgconfig
|
353 |
+
pkgconfig_DATA = portaudiocpp.pc
|
354 |
+
all: all-recursive
|
355 |
+
|
356 |
+
.SUFFIXES:
|
357 |
+
am--refresh: Makefile
|
358 |
+
@:
|
359 |
+
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
360 |
+
@for dep in $?; do \
|
361 |
+
case '$(am__configure_deps)' in \
|
362 |
+
*$$dep*) \
|
363 |
+
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
|
364 |
+
$(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
|
365 |
+
&& exit 0; \
|
366 |
+
exit 1;; \
|
367 |
+
esac; \
|
368 |
+
done; \
|
369 |
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
370 |
+
$(am__cd) $(top_srcdir) && \
|
371 |
+
$(AUTOMAKE) --gnu Makefile
|
372 |
+
.PRECIOUS: Makefile
|
373 |
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
374 |
+
@case '$?' in \
|
375 |
+
*config.status*) \
|
376 |
+
echo ' $(SHELL) ./config.status'; \
|
377 |
+
$(SHELL) ./config.status;; \
|
378 |
+
*) \
|
379 |
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
380 |
+
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
381 |
+
esac;
|
382 |
+
|
383 |
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
384 |
+
$(SHELL) ./config.status --recheck
|
385 |
+
|
386 |
+
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
387 |
+
$(am__cd) $(srcdir) && $(AUTOCONF)
|
388 |
+
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
389 |
+
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
390 |
+
$(am__aclocal_m4_deps):
|
391 |
+
portaudiocpp.pc: $(top_builddir)/config.status $(srcdir)/portaudiocpp.pc.in
|
392 |
+
cd $(top_builddir) && $(SHELL) ./config.status $@
|
393 |
+
|
394 |
+
mostlyclean-libtool:
|
395 |
+
-rm -f *.lo
|
396 |
+
|
397 |
+
clean-libtool:
|
398 |
+
-rm -rf .libs _libs
|
399 |
+
|
400 |
+
distclean-libtool:
|
401 |
+
-rm -f libtool config.lt
|
402 |
+
install-pkgconfigDATA: $(pkgconfig_DATA)
|
403 |
+
@$(NORMAL_INSTALL)
|
404 |
+
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
|
405 |
+
if test -n "$$list"; then \
|
406 |
+
echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
|
407 |
+
$(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
|
408 |
+
fi; \
|
409 |
+
for p in $$list; do \
|
410 |
+
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
411 |
+
echo "$$d$$p"; \
|
412 |
+
done | $(am__base_list) | \
|
413 |
+
while read files; do \
|
414 |
+
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
|
415 |
+
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
|
416 |
+
done
|
417 |
+
|
418 |
+
uninstall-pkgconfigDATA:
|
419 |
+
@$(NORMAL_UNINSTALL)
|
420 |
+
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
|
421 |
+
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
422 |
+
dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
|
423 |
+
|
424 |
+
# This directory's subdirectories are mostly independent; you can cd
|
425 |
+
# into them and run 'make' without going through this Makefile.
|
426 |
+
# To change the values of 'make' variables: instead of editing Makefiles,
|
427 |
+
# (1) if the variable is set in 'config.status', edit 'config.status'
|
428 |
+
# (which will cause the Makefiles to be regenerated when you run 'make');
|
429 |
+
# (2) otherwise, pass the desired values on the 'make' command line.
|
430 |
+
$(am__recursive_targets):
|
431 |
+
@fail=; \
|
432 |
+
if $(am__make_keepgoing); then \
|
433 |
+
failcom='fail=yes'; \
|
434 |
+
else \
|
435 |
+
failcom='exit 1'; \
|
436 |
+
fi; \
|
437 |
+
dot_seen=no; \
|
438 |
+
target=`echo $@ | sed s/-recursive//`; \
|
439 |
+
case "$@" in \
|
440 |
+
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
441 |
+
*) list='$(SUBDIRS)' ;; \
|
442 |
+
esac; \
|
443 |
+
for subdir in $$list; do \
|
444 |
+
echo "Making $$target in $$subdir"; \
|
445 |
+
if test "$$subdir" = "."; then \
|
446 |
+
dot_seen=yes; \
|
447 |
+
local_target="$$target-am"; \
|
448 |
+
else \
|
449 |
+
local_target="$$target"; \
|
450 |
+
fi; \
|
451 |
+
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
452 |
+
|| eval $$failcom; \
|
453 |
+
done; \
|
454 |
+
if test "$$dot_seen" = "no"; then \
|
455 |
+
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
456 |
+
fi; test -z "$$fail"
|
457 |
+
|
458 |
+
ID: $(am__tagged_files)
|
459 |
+
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
460 |
+
tags: tags-recursive
|
461 |
+
TAGS: tags
|
462 |
+
|
463 |
+
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
464 |
+
set x; \
|
465 |
+
here=`pwd`; \
|
466 |
+
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
467 |
+
include_option=--etags-include; \
|
468 |
+
empty_fix=.; \
|
469 |
+
else \
|
470 |
+
include_option=--include; \
|
471 |
+
empty_fix=; \
|
472 |
+
fi; \
|
473 |
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
474 |
+
if test "$$subdir" = .; then :; else \
|
475 |
+
test ! -f $$subdir/TAGS || \
|
476 |
+
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
477 |
+
fi; \
|
478 |
+
done; \
|
479 |
+
$(am__define_uniq_tagged_files); \
|
480 |
+
shift; \
|
481 |
+
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
482 |
+
test -n "$$unique" || unique=$$empty_fix; \
|
483 |
+
if test $$# -gt 0; then \
|
484 |
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
485 |
+
"$$@" $$unique; \
|
486 |
+
else \
|
487 |
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
488 |
+
$$unique; \
|
489 |
+
fi; \
|
490 |
+
fi
|
491 |
+
ctags: ctags-recursive
|
492 |
+
|
493 |
+
CTAGS: ctags
|
494 |
+
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
495 |
+
$(am__define_uniq_tagged_files); \
|
496 |
+
test -z "$(CTAGS_ARGS)$$unique" \
|
497 |
+
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
498 |
+
$$unique
|
499 |
+
|
500 |
+
GTAGS:
|
501 |
+
here=`$(am__cd) $(top_builddir) && pwd` \
|
502 |
+
&& $(am__cd) $(top_srcdir) \
|
503 |
+
&& gtags -i $(GTAGS_ARGS) "$$here"
|
504 |
+
cscope: cscope.files
|
505 |
+
test ! -s cscope.files \
|
506 |
+
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
|
507 |
+
clean-cscope:
|
508 |
+
-rm -f cscope.files
|
509 |
+
cscope.files: clean-cscope cscopelist
|
510 |
+
cscopelist: cscopelist-recursive
|
511 |
+
|
512 |
+
cscopelist-am: $(am__tagged_files)
|
513 |
+
list='$(am__tagged_files)'; \
|
514 |
+
case "$(srcdir)" in \
|
515 |
+
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
516 |
+
*) sdir=$(subdir)/$(srcdir) ;; \
|
517 |
+
esac; \
|
518 |
+
for i in $$list; do \
|
519 |
+
if test -f "$$i"; then \
|
520 |
+
echo "$(subdir)/$$i"; \
|
521 |
+
else \
|
522 |
+
echo "$$sdir/$$i"; \
|
523 |
+
fi; \
|
524 |
+
done >> $(top_builddir)/cscope.files
|
525 |
+
|
526 |
+
distclean-tags:
|
527 |
+
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
528 |
+
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
|
529 |
+
|
530 |
+
distdir: $(DISTFILES)
|
531 |
+
$(am__remove_distdir)
|
532 |
+
test -d "$(distdir)" || mkdir "$(distdir)"
|
533 |
+
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
534 |
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
535 |
+
list='$(DISTFILES)'; \
|
536 |
+
dist_files=`for file in $$list; do echo $$file; done | \
|
537 |
+
sed -e "s|^$$srcdirstrip/||;t" \
|
538 |
+
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
539 |
+
case $$dist_files in \
|
540 |
+
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
541 |
+
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
542 |
+
sort -u` ;; \
|
543 |
+
esac; \
|
544 |
+
for file in $$dist_files; do \
|
545 |
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
546 |
+
if test -d $$d/$$file; then \
|
547 |
+
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
548 |
+
if test -d "$(distdir)/$$file"; then \
|
549 |
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
550 |
+
fi; \
|
551 |
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
552 |
+
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
553 |
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
554 |
+
fi; \
|
555 |
+
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
556 |
+
else \
|
557 |
+
test -f "$(distdir)/$$file" \
|
558 |
+
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
559 |
+
|| exit 1; \
|
560 |
+
fi; \
|
561 |
+
done
|
562 |
+
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
563 |
+
if test "$$subdir" = .; then :; else \
|
564 |
+
$(am__make_dryrun) \
|
565 |
+
|| test -d "$(distdir)/$$subdir" \
|
566 |
+
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
567 |
+
|| exit 1; \
|
568 |
+
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
569 |
+
$(am__relativize); \
|
570 |
+
new_distdir=$$reldir; \
|
571 |
+
dir1=$$subdir; dir2="$(top_distdir)"; \
|
572 |
+
$(am__relativize); \
|
573 |
+
new_top_distdir=$$reldir; \
|
574 |
+
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
575 |
+
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
576 |
+
($(am__cd) $$subdir && \
|
577 |
+
$(MAKE) $(AM_MAKEFLAGS) \
|
578 |
+
top_distdir="$$new_top_distdir" \
|
579 |
+
distdir="$$new_distdir" \
|
580 |
+
am__remove_distdir=: \
|
581 |
+
am__skip_length_check=: \
|
582 |
+
am__skip_mode_fix=: \
|
583 |
+
distdir) \
|
584 |
+
|| exit 1; \
|
585 |
+
fi; \
|
586 |
+
done
|
587 |
+
-test -n "$(am__skip_mode_fix)" \
|
588 |
+
|| find "$(distdir)" -type d ! -perm -755 \
|
589 |
+
-exec chmod u+rwx,go+rx {} \; -o \
|
590 |
+
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
591 |
+
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
592 |
+
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
593 |
+
|| chmod -R a+r "$(distdir)"
|
594 |
+
dist-gzip: distdir
|
595 |
+
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
596 |
+
$(am__post_remove_distdir)
|
597 |
+
|
598 |
+
dist-bzip2: distdir
|
599 |
+
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
|
600 |
+
$(am__post_remove_distdir)
|
601 |
+
|
602 |
+
dist-lzip: distdir
|
603 |
+
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
|
604 |
+
$(am__post_remove_distdir)
|
605 |
+
|
606 |
+
dist-xz: distdir
|
607 |
+
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
|
608 |
+
$(am__post_remove_distdir)
|
609 |
+
|
610 |
+
dist-tarZ: distdir
|
611 |
+
@echo WARNING: "Support for shar distribution archives is" \
|
612 |
+
"deprecated." >&2
|
613 |
+
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
614 |
+
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
615 |
+
$(am__post_remove_distdir)
|
616 |
+
|
617 |
+
dist-shar: distdir
|
618 |
+
@echo WARNING: "Support for distribution archives compressed with" \
|
619 |
+
"legacy program 'compress' is deprecated." >&2
|
620 |
+
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
621 |
+
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
622 |
+
$(am__post_remove_distdir)
|
623 |
+
|
624 |
+
dist-zip: distdir
|
625 |
+
-rm -f $(distdir).zip
|
626 |
+
zip -rq $(distdir).zip $(distdir)
|
627 |
+
$(am__post_remove_distdir)
|
628 |
+
|
629 |
+
dist dist-all:
|
630 |
+
$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
|
631 |
+
$(am__post_remove_distdir)
|
632 |
+
|
633 |
+
# This target untars the dist file and tries a VPATH configuration. Then
|
634 |
+
# it guarantees that the distribution is self-contained by making another
|
635 |
+
# tarfile.
|
636 |
+
distcheck: dist
|
637 |
+
case '$(DIST_ARCHIVES)' in \
|
638 |
+
*.tar.gz*) \
|
639 |
+
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
640 |
+
*.tar.bz2*) \
|
641 |
+
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
642 |
+
*.tar.lz*) \
|
643 |
+
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
|
644 |
+
*.tar.xz*) \
|
645 |
+
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
646 |
+
*.tar.Z*) \
|
647 |
+
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
648 |
+
*.shar.gz*) \
|
649 |
+
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
650 |
+
*.zip*) \
|
651 |
+
unzip $(distdir).zip ;;\
|
652 |
+
esac
|
653 |
+
chmod -R a-w $(distdir)
|
654 |
+
chmod u+w $(distdir)
|
655 |
+
mkdir $(distdir)/_build $(distdir)/_inst
|
656 |
+
chmod a-w $(distdir)
|
657 |
+
test -d $(distdir)/_build || exit 0; \
|
658 |
+
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
659 |
+
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
660 |
+
&& am__cwd=`pwd` \
|
661 |
+
&& $(am__cd) $(distdir)/_build \
|
662 |
+
&& ../configure \
|
663 |
+
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
|
664 |
+
$(DISTCHECK_CONFIGURE_FLAGS) \
|
665 |
+
--srcdir=.. --prefix="$$dc_install_base" \
|
666 |
+
&& $(MAKE) $(AM_MAKEFLAGS) \
|
667 |
+
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
668 |
+
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
669 |
+
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
670 |
+
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
671 |
+
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
672 |
+
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
673 |
+
distuninstallcheck \
|
674 |
+
&& chmod -R a-w "$$dc_install_base" \
|
675 |
+
&& ({ \
|
676 |
+
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
677 |
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
678 |
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
679 |
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
680 |
+
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
681 |
+
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
682 |
+
&& rm -rf "$$dc_destdir" \
|
683 |
+
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
684 |
+
&& rm -rf $(DIST_ARCHIVES) \
|
685 |
+
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
686 |
+
&& cd "$$am__cwd" \
|
687 |
+
|| exit 1
|
688 |
+
$(am__post_remove_distdir)
|
689 |
+
@(echo "$(distdir) archives ready for distribution: "; \
|
690 |
+
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
691 |
+
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
692 |
+
distuninstallcheck:
|
693 |
+
@test -n '$(distuninstallcheck_dir)' || { \
|
694 |
+
echo 'ERROR: trying to run $@ with an empty' \
|
695 |
+
'$$(distuninstallcheck_dir)' >&2; \
|
696 |
+
exit 1; \
|
697 |
+
}; \
|
698 |
+
$(am__cd) '$(distuninstallcheck_dir)' || { \
|
699 |
+
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
|
700 |
+
exit 1; \
|
701 |
+
}; \
|
702 |
+
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|
703 |
+
|| { echo "ERROR: files left after uninstall:" ; \
|
704 |
+
if test -n "$(DESTDIR)"; then \
|
705 |
+
echo " (check DESTDIR support)"; \
|
706 |
+
fi ; \
|
707 |
+
$(distuninstallcheck_listfiles) ; \
|
708 |
+
exit 1; } >&2
|
709 |
+
distcleancheck: distclean
|
710 |
+
@if test '$(srcdir)' = . ; then \
|
711 |
+
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
712 |
+
exit 1 ; \
|
713 |
+
fi
|
714 |
+
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
715 |
+
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
716 |
+
$(distcleancheck_listfiles) ; \
|
717 |
+
exit 1; } >&2
|
718 |
+
check-am: all-am
|
719 |
+
check: check-recursive
|
720 |
+
all-am: Makefile $(DATA)
|
721 |
+
installdirs: installdirs-recursive
|
722 |
+
installdirs-am:
|
723 |
+
for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
|
724 |
+
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
725 |
+
done
|
726 |
+
install: install-recursive
|
727 |
+
install-exec: install-exec-recursive
|
728 |
+
install-data: install-data-recursive
|
729 |
+
uninstall: uninstall-recursive
|
730 |
+
|
731 |
+
install-am: all-am
|
732 |
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
733 |
+
|
734 |
+
installcheck: installcheck-recursive
|
735 |
+
install-strip:
|
736 |
+
if test -z '$(STRIP)'; then \
|
737 |
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
738 |
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
739 |
+
install; \
|
740 |
+
else \
|
741 |
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
742 |
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
743 |
+
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
744 |
+
fi
|
745 |
+
mostlyclean-generic:
|
746 |
+
|
747 |
+
clean-generic:
|
748 |
+
|
749 |
+
distclean-generic:
|
750 |
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
751 |
+
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
752 |
+
|
753 |
+
maintainer-clean-generic:
|
754 |
+
@echo "This command is intended for maintainers to use"
|
755 |
+
@echo "it deletes files that may require special tools to rebuild."
|
756 |
+
clean: clean-recursive
|
757 |
+
|
758 |
+
clean-am: clean-generic clean-libtool mostlyclean-am
|
759 |
+
|
760 |
+
distclean: distclean-recursive
|
761 |
+
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
762 |
+
-rm -f Makefile
|
763 |
+
distclean-am: clean-am distclean-generic distclean-libtool \
|
764 |
+
distclean-tags
|
765 |
+
|
766 |
+
dvi: dvi-recursive
|
767 |
+
|
768 |
+
dvi-am:
|
769 |
+
|
770 |
+
html: html-recursive
|
771 |
+
|
772 |
+
html-am:
|
773 |
+
|
774 |
+
info: info-recursive
|
775 |
+
|
776 |
+
info-am:
|
777 |
+
|
778 |
+
install-data-am: install-pkgconfigDATA
|
779 |
+
|
780 |
+
install-dvi: install-dvi-recursive
|
781 |
+
|
782 |
+
install-dvi-am:
|
783 |
+
|
784 |
+
install-exec-am:
|
785 |
+
|
786 |
+
install-html: install-html-recursive
|
787 |
+
|
788 |
+
install-html-am:
|
789 |
+
|
790 |
+
install-info: install-info-recursive
|
791 |
+
|
792 |
+
install-info-am:
|
793 |
+
|
794 |
+
install-man:
|
795 |
+
|
796 |
+
install-pdf: install-pdf-recursive
|
797 |
+
|
798 |
+
install-pdf-am:
|
799 |
+
|
800 |
+
install-ps: install-ps-recursive
|
801 |
+
|
802 |
+
install-ps-am:
|
803 |
+
|
804 |
+
installcheck-am:
|
805 |
+
|
806 |
+
maintainer-clean: maintainer-clean-recursive
|
807 |
+
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
808 |
+
-rm -rf $(top_srcdir)/autom4te.cache
|
809 |
+
-rm -f Makefile
|
810 |
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
811 |
+
|
812 |
+
mostlyclean: mostlyclean-recursive
|
813 |
+
|
814 |
+
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
815 |
+
|
816 |
+
pdf: pdf-recursive
|
817 |
+
|
818 |
+
pdf-am:
|
819 |
+
|
820 |
+
ps: ps-recursive
|
821 |
+
|
822 |
+
ps-am:
|
823 |
+
|
824 |
+
uninstall-am: uninstall-pkgconfigDATA
|
825 |
+
|
826 |
+
.MAKE: $(am__recursive_targets) install-am install-strip
|
827 |
+
|
828 |
+
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
|
829 |
+
am--refresh check check-am clean clean-cscope clean-generic \
|
830 |
+
clean-libtool cscope cscopelist-am ctags ctags-am dist \
|
831 |
+
dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
|
832 |
+
dist-xz dist-zip distcheck distclean distclean-generic \
|
833 |
+
distclean-libtool distclean-tags distcleancheck distdir \
|
834 |
+
distuninstallcheck dvi dvi-am html html-am info info-am \
|
835 |
+
install install-am install-data install-data-am install-dvi \
|
836 |
+
install-dvi-am install-exec install-exec-am install-html \
|
837 |
+
install-html-am install-info install-info-am install-man \
|
838 |
+
install-pdf install-pdf-am install-pkgconfigDATA install-ps \
|
839 |
+
install-ps-am install-strip installcheck installcheck-am \
|
840 |
+
installdirs installdirs-am maintainer-clean \
|
841 |
+
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
842 |
+
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
|
843 |
+
uninstall-am uninstall-pkgconfigDATA
|
844 |
+
|
845 |
+
|
846 |
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
847 |
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
848 |
+
.NOEXPORT:
|
portaudio/bindings/cpp/NEWS
ADDED
File without changes
|
portaudio/bindings/cpp/README
ADDED
File without changes
|
portaudio/bindings/cpp/SConscript
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os.path
|
2 |
+
|
3 |
+
Import("env", "buildDir")
|
4 |
+
env.Append(CPPPATH="include")
|
5 |
+
|
6 |
+
ApiVer = "0.0.12"
|
7 |
+
Major, Minor, Micro = [int(c) for c in ApiVer.split(".")]
|
8 |
+
|
9 |
+
sharedLibs = []
|
10 |
+
staticLibs = []
|
11 |
+
Import("Platform", "Posix")
|
12 |
+
if Platform in Posix:
|
13 |
+
env["SHLIBSUFFIX"] = ".so.%d.%d.%d" % (Major, Minor, Micro)
|
14 |
+
soFile = "libportaudiocpp.so"
|
15 |
+
if Platform != 'darwin':
|
16 |
+
env.AppendUnique(SHLINKFLAGS="-Wl,-soname=%s.%d" % (soFile, Major))
|
17 |
+
|
18 |
+
# Create symlinks
|
19 |
+
def symlink(env, target, source):
|
20 |
+
trgt = str(target[0])
|
21 |
+
src = str(source[0])
|
22 |
+
if os.path.islink(trgt) or os.path.exists(trgt):
|
23 |
+
os.remove(trgt)
|
24 |
+
os.symlink(os.path.basename(src), trgt)
|
25 |
+
lnk0 = env.Command(soFile + ".%d" % (Major), soFile + ".%d.%d.%d" % (Major, Minor, Micro), symlink)
|
26 |
+
lnk1 = env.Command(soFile, soFile + ".%d" % (Major), symlink)
|
27 |
+
sharedLibs.append(lnk0)
|
28 |
+
sharedLibs.append(lnk1)
|
29 |
+
|
30 |
+
src = [os.path.join("source", "portaudiocpp", "%s.cxx" % f) for f in ("BlockingStream", "CallbackInterface", \
|
31 |
+
"CallbackStream", "CFunCallbackStream","CppFunCallbackStream", "Device",
|
32 |
+
"DirectionSpecificStreamParameters", "Exception", "HostApi", "InterfaceCallbackStream",
|
33 |
+
"MemFunCallbackStream", "Stream", "StreamParameters", "System", "SystemDeviceIterator",
|
34 |
+
"SystemHostApiIterator")]
|
35 |
+
env.Append(LIBS="portaudio", LIBPATH=buildDir)
|
36 |
+
sharedLib = env.SharedLibrary("portaudiocpp", src, LIBS=["portaudio"])
|
37 |
+
staticLib = env.Library("portaudiocpp", src, LIBS=["portaudio"])
|
38 |
+
sharedLibs.append(sharedLib)
|
39 |
+
staticLibs.append(staticLib)
|
40 |
+
|
41 |
+
headers = Split("""AutoSystem.hxx
|
42 |
+
BlockingStream.hxx
|
43 |
+
CallbackInterface.hxx
|
44 |
+
CallbackStream.hxx
|
45 |
+
CFunCallbackStream.hxx
|
46 |
+
CppFunCallbackStream.hxx
|
47 |
+
Device.hxx
|
48 |
+
DirectionSpecificStreamParameters.hxx
|
49 |
+
Exception.hxx
|
50 |
+
HostApi.hxx
|
51 |
+
InterfaceCallbackStream.hxx
|
52 |
+
MemFunCallbackStream.hxx
|
53 |
+
PortAudioCpp.hxx
|
54 |
+
SampleDataFormat.hxx
|
55 |
+
Stream.hxx
|
56 |
+
StreamParameters.hxx
|
57 |
+
SystemDeviceIterator.hxx
|
58 |
+
SystemHostApiIterator.hxx
|
59 |
+
System.hxx
|
60 |
+
""")
|
61 |
+
if env["PLATFORM"] == "win32":
|
62 |
+
headers.append("AsioDeviceAdapter.hxx")
|
63 |
+
headers = [File(os.path.join("include", "portaudiocpp", h)) for h in headers]
|
64 |
+
|
65 |
+
Return("sharedLibs", "staticLibs", "headers")
|
portaudio/bindings/cpp/aclocal.m4
ADDED
The diff for this file is too large to render.
See raw diff
|
|
portaudio/bindings/cpp/bin/Makefile.am
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
BINDIR = $(top_srcdir)/example
|
2 |
+
LIBDIR = $(top_builddir)/lib
|
3 |
+
|
4 |
+
noinst_PROGRAMS = devs sine
|
5 |
+
|
6 |
+
LDADD = $(LIBDIR)/libportaudiocpp.la $(top_builddir)/$(PORTAUDIO_ROOT)/lib/libportaudio.la
|
7 |
+
|
8 |
+
devs_SOURCES = $(BINDIR)/devs.cxx
|
9 |
+
sine_SOURCES = $(BINDIR)/sine.cxx
|
portaudio/bindings/cpp/bin/Makefile.in
ADDED
@@ -0,0 +1,618 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
2 |
+
# @configure_input@
|
3 |
+
|
4 |
+
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
5 |
+
|
6 |
+
# This Makefile.in is free software; the Free Software Foundation
|
7 |
+
# gives unlimited permission to copy and/or distribute it,
|
8 |
+
# with or without modifications, as long as this notice is preserved.
|
9 |
+
|
10 |
+
# This program is distributed in the hope that it will be useful,
|
11 |
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
12 |
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
13 |
+
# PARTICULAR PURPOSE.
|
14 |
+
|
15 |
+
@SET_MAKE@
|
16 |
+
|
17 |
+
VPATH = @srcdir@
|
18 |
+
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
19 |
+
am__make_running_with_option = \
|
20 |
+
case $${target_option-} in \
|
21 |
+
?) ;; \
|
22 |
+
*) echo "am__make_running_with_option: internal error: invalid" \
|
23 |
+
"target option '$${target_option-}' specified" >&2; \
|
24 |
+
exit 1;; \
|
25 |
+
esac; \
|
26 |
+
has_opt=no; \
|
27 |
+
sane_makeflags=$$MAKEFLAGS; \
|
28 |
+
if $(am__is_gnu_make); then \
|
29 |
+
sane_makeflags=$$MFLAGS; \
|
30 |
+
else \
|
31 |
+
case $$MAKEFLAGS in \
|
32 |
+
*\\[\ \ ]*) \
|
33 |
+
bs=\\; \
|
34 |
+
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
35 |
+
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
36 |
+
esac; \
|
37 |
+
fi; \
|
38 |
+
skip_next=no; \
|
39 |
+
strip_trailopt () \
|
40 |
+
{ \
|
41 |
+
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
42 |
+
}; \
|
43 |
+
for flg in $$sane_makeflags; do \
|
44 |
+
test $$skip_next = yes && { skip_next=no; continue; }; \
|
45 |
+
case $$flg in \
|
46 |
+
*=*|--*) continue;; \
|
47 |
+
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
48 |
+
-*I?*) strip_trailopt 'I';; \
|
49 |
+
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
50 |
+
-*O?*) strip_trailopt 'O';; \
|
51 |
+
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
52 |
+
-*l?*) strip_trailopt 'l';; \
|
53 |
+
-[dEDm]) skip_next=yes;; \
|
54 |
+
-[JT]) skip_next=yes;; \
|
55 |
+
esac; \
|
56 |
+
case $$flg in \
|
57 |
+
*$$target_option*) has_opt=yes; break;; \
|
58 |
+
esac; \
|
59 |
+
done; \
|
60 |
+
test $$has_opt = yes
|
61 |
+
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
62 |
+
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
63 |
+
pkgdatadir = $(datadir)/@PACKAGE@
|
64 |
+
pkgincludedir = $(includedir)/@PACKAGE@
|
65 |
+
pkglibdir = $(libdir)/@PACKAGE@
|
66 |
+
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
67 |
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
68 |
+
install_sh_DATA = $(install_sh) -c -m 644
|
69 |
+
install_sh_PROGRAM = $(install_sh) -c
|
70 |
+
install_sh_SCRIPT = $(install_sh) -c
|
71 |
+
INSTALL_HEADER = $(INSTALL_DATA)
|
72 |
+
transform = $(program_transform_name)
|
73 |
+
NORMAL_INSTALL = :
|
74 |
+
PRE_INSTALL = :
|
75 |
+
POST_INSTALL = :
|
76 |
+
NORMAL_UNINSTALL = :
|
77 |
+
PRE_UNINSTALL = :
|
78 |
+
POST_UNINSTALL = :
|
79 |
+
build_triplet = @build@
|
80 |
+
host_triplet = @host@
|
81 |
+
noinst_PROGRAMS = devs$(EXEEXT) sine$(EXEEXT)
|
82 |
+
subdir = bin
|
83 |
+
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
84 |
+
$(top_srcdir)/../../depcomp
|
85 |
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
86 |
+
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
87 |
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
88 |
+
$(ACLOCAL_M4)
|
89 |
+
mkinstalldirs = $(install_sh) -d
|
90 |
+
CONFIG_CLEAN_FILES =
|
91 |
+
CONFIG_CLEAN_VPATH_FILES =
|
92 |
+
PROGRAMS = $(noinst_PROGRAMS)
|
93 |
+
am_devs_OBJECTS = devs.$(OBJEXT)
|
94 |
+
devs_OBJECTS = $(am_devs_OBJECTS)
|
95 |
+
devs_LDADD = $(LDADD)
|
96 |
+
devs_DEPENDENCIES = $(LIBDIR)/libportaudiocpp.la \
|
97 |
+
$(top_builddir)/$(PORTAUDIO_ROOT)/lib/libportaudio.la
|
98 |
+
AM_V_lt = $(am__v_lt_@AM_V@)
|
99 |
+
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
100 |
+
am__v_lt_0 = --silent
|
101 |
+
am__v_lt_1 =
|
102 |
+
am_sine_OBJECTS = sine.$(OBJEXT)
|
103 |
+
sine_OBJECTS = $(am_sine_OBJECTS)
|
104 |
+
sine_LDADD = $(LDADD)
|
105 |
+
sine_DEPENDENCIES = $(LIBDIR)/libportaudiocpp.la \
|
106 |
+
$(top_builddir)/$(PORTAUDIO_ROOT)/lib/libportaudio.la
|
107 |
+
AM_V_P = $(am__v_P_@AM_V@)
|
108 |
+
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
109 |
+
am__v_P_0 = false
|
110 |
+
am__v_P_1 = :
|
111 |
+
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
112 |
+
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
113 |
+
am__v_GEN_0 = @echo " GEN " $@;
|
114 |
+
am__v_GEN_1 =
|
115 |
+
AM_V_at = $(am__v_at_@AM_V@)
|
116 |
+
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
117 |
+
am__v_at_0 = @
|
118 |
+
am__v_at_1 =
|
119 |
+
depcomp = $(SHELL) $(top_srcdir)/../../depcomp
|
120 |
+
am__depfiles_maybe = depfiles
|
121 |
+
am__mv = mv -f
|
122 |
+
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
123 |
+
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
124 |
+
LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
125 |
+
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
|
126 |
+
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
127 |
+
$(AM_CXXFLAGS) $(CXXFLAGS)
|
128 |
+
AM_V_CXX = $(am__v_CXX_@AM_V@)
|
129 |
+
am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
|
130 |
+
am__v_CXX_0 = @echo " CXX " $@;
|
131 |
+
am__v_CXX_1 =
|
132 |
+
CXXLD = $(CXX)
|
133 |
+
CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
134 |
+
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
135 |
+
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
136 |
+
AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
|
137 |
+
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
|
138 |
+
am__v_CXXLD_0 = @echo " CXXLD " $@;
|
139 |
+
am__v_CXXLD_1 =
|
140 |
+
SOURCES = $(devs_SOURCES) $(sine_SOURCES)
|
141 |
+
DIST_SOURCES = $(devs_SOURCES) $(sine_SOURCES)
|
142 |
+
am__can_run_installinfo = \
|
143 |
+
case $$AM_UPDATE_INFO_DIR in \
|
144 |
+
n|no|NO) false;; \
|
145 |
+
*) (install-info --version) >/dev/null 2>&1;; \
|
146 |
+
esac
|
147 |
+
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
148 |
+
# Read a list of newline-separated strings from the standard input,
|
149 |
+
# and print each of them once, without duplicates. Input order is
|
150 |
+
# *not* preserved.
|
151 |
+
am__uniquify_input = $(AWK) '\
|
152 |
+
BEGIN { nonempty = 0; } \
|
153 |
+
{ items[$$0] = 1; nonempty = 1; } \
|
154 |
+
END { if (nonempty) { for (i in items) print i; }; } \
|
155 |
+
'
|
156 |
+
# Make sure the list of sources is unique. This is necessary because,
|
157 |
+
# e.g., the same source file might be shared among _SOURCES variables
|
158 |
+
# for different programs/libraries.
|
159 |
+
am__define_uniq_tagged_files = \
|
160 |
+
list='$(am__tagged_files)'; \
|
161 |
+
unique=`for i in $$list; do \
|
162 |
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
163 |
+
done | $(am__uniquify_input)`
|
164 |
+
ETAGS = etags
|
165 |
+
CTAGS = ctags
|
166 |
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
167 |
+
ACLOCAL = @ACLOCAL@
|
168 |
+
AMTAR = @AMTAR@
|
169 |
+
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
170 |
+
AR = @AR@
|
171 |
+
AS = @AS@
|
172 |
+
AUTOCONF = @AUTOCONF@
|
173 |
+
AUTOHEADER = @AUTOHEADER@
|
174 |
+
AUTOMAKE = @AUTOMAKE@
|
175 |
+
AWK = @AWK@
|
176 |
+
CC = @CC@
|
177 |
+
CCDEPMODE = @CCDEPMODE@
|
178 |
+
CFLAGS = @CFLAGS@
|
179 |
+
CPP = @CPP@
|
180 |
+
CPPFLAGS = @CPPFLAGS@
|
181 |
+
CXX = @CXX@
|
182 |
+
CXXCPP = @CXXCPP@
|
183 |
+
CXXDEPMODE = @CXXDEPMODE@
|
184 |
+
CXXFLAGS = @CXXFLAGS@
|
185 |
+
CYGPATH_W = @CYGPATH_W@
|
186 |
+
DEFAULT_INCLUDES = @DEFAULT_INCLUDES@
|
187 |
+
DEFS = @DEFS@
|
188 |
+
DEPDIR = @DEPDIR@
|
189 |
+
DLLTOOL = @DLLTOOL@
|
190 |
+
DSYMUTIL = @DSYMUTIL@
|
191 |
+
DUMPBIN = @DUMPBIN@
|
192 |
+
ECHO_C = @ECHO_C@
|
193 |
+
ECHO_N = @ECHO_N@
|
194 |
+
ECHO_T = @ECHO_T@
|
195 |
+
EGREP = @EGREP@
|
196 |
+
EXEEXT = @EXEEXT@
|
197 |
+
FGREP = @FGREP@
|
198 |
+
GREP = @GREP@
|
199 |
+
INSTALL = @INSTALL@
|
200 |
+
INSTALL_DATA = @INSTALL_DATA@
|
201 |
+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
202 |
+
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
203 |
+
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
204 |
+
LD = @LD@
|
205 |
+
LDFLAGS = @LDFLAGS@
|
206 |
+
LIBOBJS = @LIBOBJS@
|
207 |
+
LIBS = @LIBS@
|
208 |
+
LIBTOOL = @LIBTOOL@
|
209 |
+
LIPO = @LIPO@
|
210 |
+
LN_S = @LN_S@
|
211 |
+
LTLIBOBJS = @LTLIBOBJS@
|
212 |
+
LT_VERSION_INFO = @LT_VERSION_INFO@
|
213 |
+
MAINT = @MAINT@
|
214 |
+
MAKEINFO = @MAKEINFO@
|
215 |
+
MANIFEST_TOOL = @MANIFEST_TOOL@
|
216 |
+
MKDIR_P = @MKDIR_P@
|
217 |
+
NM = @NM@
|
218 |
+
NMEDIT = @NMEDIT@
|
219 |
+
OBJDUMP = @OBJDUMP@
|
220 |
+
OBJEXT = @OBJEXT@
|
221 |
+
OTOOL = @OTOOL@
|
222 |
+
OTOOL64 = @OTOOL64@
|
223 |
+
PACKAGE = @PACKAGE@
|
224 |
+
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
225 |
+
PACKAGE_NAME = @PACKAGE_NAME@
|
226 |
+
PACKAGE_STRING = @PACKAGE_STRING@
|
227 |
+
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
228 |
+
PACKAGE_URL = @PACKAGE_URL@
|
229 |
+
PACKAGE_VERSION = @PACKAGE_VERSION@
|
230 |
+
PATH_SEPARATOR = @PATH_SEPARATOR@
|
231 |
+
PORTAUDIO_ROOT = @PORTAUDIO_ROOT@
|
232 |
+
RANLIB = @RANLIB@
|
233 |
+
SED = @SED@
|
234 |
+
SET_MAKE = @SET_MAKE@
|
235 |
+
SHELL = @SHELL@
|
236 |
+
STRIP = @STRIP@
|
237 |
+
VERSION = @VERSION@
|
238 |
+
abs_builddir = @abs_builddir@
|
239 |
+
abs_srcdir = @abs_srcdir@
|
240 |
+
abs_top_builddir = @abs_top_builddir@
|
241 |
+
abs_top_srcdir = @abs_top_srcdir@
|
242 |
+
ac_ct_AR = @ac_ct_AR@
|
243 |
+
ac_ct_CC = @ac_ct_CC@
|
244 |
+
ac_ct_CXX = @ac_ct_CXX@
|
245 |
+
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
246 |
+
am__include = @am__include@
|
247 |
+
am__leading_dot = @am__leading_dot@
|
248 |
+
am__quote = @am__quote@
|
249 |
+
am__tar = @am__tar@
|
250 |
+
am__untar = @am__untar@
|
251 |
+
bindir = @bindir@
|
252 |
+
build = @build@
|
253 |
+
build_alias = @build_alias@
|
254 |
+
build_cpu = @build_cpu@
|
255 |
+
build_os = @build_os@
|
256 |
+
build_vendor = @build_vendor@
|
257 |
+
builddir = @builddir@
|
258 |
+
datadir = @datadir@
|
259 |
+
datarootdir = @datarootdir@
|
260 |
+
docdir = @docdir@
|
261 |
+
dvidir = @dvidir@
|
262 |
+
exec_prefix = @exec_prefix@
|
263 |
+
host = @host@
|
264 |
+
host_alias = @host_alias@
|
265 |
+
host_cpu = @host_cpu@
|
266 |
+
host_os = @host_os@
|
267 |
+
host_vendor = @host_vendor@
|
268 |
+
htmldir = @htmldir@
|
269 |
+
includedir = @includedir@
|
270 |
+
infodir = @infodir@
|
271 |
+
install_sh = @install_sh@
|
272 |
+
libdir = @libdir@
|
273 |
+
libexecdir = @libexecdir@
|
274 |
+
localedir = @localedir@
|
275 |
+
localstatedir = @localstatedir@
|
276 |
+
mandir = @mandir@
|
277 |
+
mkdir_p = @mkdir_p@
|
278 |
+
oldincludedir = @oldincludedir@
|
279 |
+
pdfdir = @pdfdir@
|
280 |
+
prefix = @prefix@
|
281 |
+
program_transform_name = @program_transform_name@
|
282 |
+
psdir = @psdir@
|
283 |
+
sbindir = @sbindir@
|
284 |
+
sharedstatedir = @sharedstatedir@
|
285 |
+
srcdir = @srcdir@
|
286 |
+
sysconfdir = @sysconfdir@
|
287 |
+
target_alias = @target_alias@
|
288 |
+
top_build_prefix = @top_build_prefix@
|
289 |
+
top_builddir = @top_builddir@
|
290 |
+
top_srcdir = @top_srcdir@
|
291 |
+
BINDIR = $(top_srcdir)/example
|
292 |
+
LIBDIR = $(top_builddir)/lib
|
293 |
+
LDADD = $(LIBDIR)/libportaudiocpp.la $(top_builddir)/$(PORTAUDIO_ROOT)/lib/libportaudio.la
|
294 |
+
devs_SOURCES = $(BINDIR)/devs.cxx
|
295 |
+
sine_SOURCES = $(BINDIR)/sine.cxx
|
296 |
+
all: all-am
|
297 |
+
|
298 |
+
.SUFFIXES:
|
299 |
+
.SUFFIXES: .cxx .lo .o .obj
|
300 |
+
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
301 |
+
@for dep in $?; do \
|
302 |
+
case '$(am__configure_deps)' in \
|
303 |
+
*$$dep*) \
|
304 |
+
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
305 |
+
&& { if test -f $@; then exit 0; else break; fi; }; \
|
306 |
+
exit 1;; \
|
307 |
+
esac; \
|
308 |
+
done; \
|
309 |
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bin/Makefile'; \
|
310 |
+
$(am__cd) $(top_srcdir) && \
|
311 |
+
$(AUTOMAKE) --gnu bin/Makefile
|
312 |
+
.PRECIOUS: Makefile
|
313 |
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
314 |
+
@case '$?' in \
|
315 |
+
*config.status*) \
|
316 |
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
317 |
+
*) \
|
318 |
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
319 |
+
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
320 |
+
esac;
|
321 |
+
|
322 |
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
323 |
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
324 |
+
|
325 |
+
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
326 |
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
327 |
+
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
328 |
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
329 |
+
$(am__aclocal_m4_deps):
|
330 |
+
|
331 |
+
clean-noinstPROGRAMS:
|
332 |
+
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
|
333 |
+
echo " rm -f" $$list; \
|
334 |
+
rm -f $$list || exit $$?; \
|
335 |
+
test -n "$(EXEEXT)" || exit 0; \
|
336 |
+
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
337 |
+
echo " rm -f" $$list; \
|
338 |
+
rm -f $$list
|
339 |
+
|
340 |
+
devs$(EXEEXT): $(devs_OBJECTS) $(devs_DEPENDENCIES) $(EXTRA_devs_DEPENDENCIES)
|
341 |
+
@rm -f devs$(EXEEXT)
|
342 |
+
$(AM_V_CXXLD)$(CXXLINK) $(devs_OBJECTS) $(devs_LDADD) $(LIBS)
|
343 |
+
|
344 |
+
sine$(EXEEXT): $(sine_OBJECTS) $(sine_DEPENDENCIES) $(EXTRA_sine_DEPENDENCIES)
|
345 |
+
@rm -f sine$(EXEEXT)
|
346 |
+
$(AM_V_CXXLD)$(CXXLINK) $(sine_OBJECTS) $(sine_LDADD) $(LIBS)
|
347 |
+
|
348 |
+
mostlyclean-compile:
|
349 |
+
-rm -f *.$(OBJEXT)
|
350 |
+
|
351 |
+
distclean-compile:
|
352 |
+
-rm -f *.tab.c
|
353 |
+
|
354 |
+
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/devs.Po@am__quote@
|
355 |
+
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sine.Po@am__quote@
|
356 |
+
|
357 |
+
.cxx.o:
|
358 |
+
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
359 |
+
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
360 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
361 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
362 |
+
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
|
363 |
+
|
364 |
+
.cxx.obj:
|
365 |
+
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
366 |
+
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
367 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
368 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
369 |
+
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
370 |
+
|
371 |
+
.cxx.lo:
|
372 |
+
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
373 |
+
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
374 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
375 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
376 |
+
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
|
377 |
+
|
378 |
+
devs.o: $(BINDIR)/devs.cxx
|
379 |
+
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT devs.o -MD -MP -MF $(DEPDIR)/devs.Tpo -c -o devs.o `test -f '$(BINDIR)/devs.cxx' || echo '$(srcdir)/'`$(BINDIR)/devs.cxx
|
380 |
+
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/devs.Tpo $(DEPDIR)/devs.Po
|
381 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(BINDIR)/devs.cxx' object='devs.o' libtool=no @AMDEPBACKSLASH@
|
382 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
383 |
+
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o devs.o `test -f '$(BINDIR)/devs.cxx' || echo '$(srcdir)/'`$(BINDIR)/devs.cxx
|
384 |
+
|
385 |
+
devs.obj: $(BINDIR)/devs.cxx
|
386 |
+
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT devs.obj -MD -MP -MF $(DEPDIR)/devs.Tpo -c -o devs.obj `if test -f '$(BINDIR)/devs.cxx'; then $(CYGPATH_W) '$(BINDIR)/devs.cxx'; else $(CYGPATH_W) '$(srcdir)/$(BINDIR)/devs.cxx'; fi`
|
387 |
+
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/devs.Tpo $(DEPDIR)/devs.Po
|
388 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(BINDIR)/devs.cxx' object='devs.obj' libtool=no @AMDEPBACKSLASH@
|
389 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
390 |
+
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o devs.obj `if test -f '$(BINDIR)/devs.cxx'; then $(CYGPATH_W) '$(BINDIR)/devs.cxx'; else $(CYGPATH_W) '$(srcdir)/$(BINDIR)/devs.cxx'; fi`
|
391 |
+
|
392 |
+
sine.o: $(BINDIR)/sine.cxx
|
393 |
+
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sine.o -MD -MP -MF $(DEPDIR)/sine.Tpo -c -o sine.o `test -f '$(BINDIR)/sine.cxx' || echo '$(srcdir)/'`$(BINDIR)/sine.cxx
|
394 |
+
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sine.Tpo $(DEPDIR)/sine.Po
|
395 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(BINDIR)/sine.cxx' object='sine.o' libtool=no @AMDEPBACKSLASH@
|
396 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
397 |
+
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sine.o `test -f '$(BINDIR)/sine.cxx' || echo '$(srcdir)/'`$(BINDIR)/sine.cxx
|
398 |
+
|
399 |
+
sine.obj: $(BINDIR)/sine.cxx
|
400 |
+
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sine.obj -MD -MP -MF $(DEPDIR)/sine.Tpo -c -o sine.obj `if test -f '$(BINDIR)/sine.cxx'; then $(CYGPATH_W) '$(BINDIR)/sine.cxx'; else $(CYGPATH_W) '$(srcdir)/$(BINDIR)/sine.cxx'; fi`
|
401 |
+
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sine.Tpo $(DEPDIR)/sine.Po
|
402 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(BINDIR)/sine.cxx' object='sine.obj' libtool=no @AMDEPBACKSLASH@
|
403 |
+
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
404 |
+
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sine.obj `if test -f '$(BINDIR)/sine.cxx'; then $(CYGPATH_W) '$(BINDIR)/sine.cxx'; else $(CYGPATH_W) '$(srcdir)/$(BINDIR)/sine.cxx'; fi`
|
405 |
+
|
406 |
+
mostlyclean-libtool:
|
407 |
+
-rm -f *.lo
|
408 |
+
|
409 |
+
clean-libtool:
|
410 |
+
-rm -rf .libs _libs
|
411 |
+
|
412 |
+
ID: $(am__tagged_files)
|
413 |
+
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
414 |
+
tags: tags-am
|
415 |
+
TAGS: tags
|
416 |
+
|
417 |
+
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
418 |
+
set x; \
|
419 |
+
here=`pwd`; \
|
420 |
+
$(am__define_uniq_tagged_files); \
|
421 |
+
shift; \
|
422 |
+
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
423 |
+
test -n "$$unique" || unique=$$empty_fix; \
|
424 |
+
if test $$# -gt 0; then \
|
425 |
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
426 |
+
"$$@" $$unique; \
|
427 |
+
else \
|
428 |
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
429 |
+
$$unique; \
|
430 |
+
fi; \
|
431 |
+
fi
|
432 |
+
ctags: ctags-am
|
433 |
+
|
434 |
+
CTAGS: ctags
|
435 |
+
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
436 |
+
$(am__define_uniq_tagged_files); \
|
437 |
+
test -z "$(CTAGS_ARGS)$$unique" \
|
438 |
+
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
439 |
+
$$unique
|
440 |
+
|
441 |
+
GTAGS:
|
442 |
+
here=`$(am__cd) $(top_builddir) && pwd` \
|
443 |
+
&& $(am__cd) $(top_srcdir) \
|
444 |
+
&& gtags -i $(GTAGS_ARGS) "$$here"
|
445 |
+
cscopelist: cscopelist-am
|
446 |
+
|
447 |
+
cscopelist-am: $(am__tagged_files)
|
448 |
+
list='$(am__tagged_files)'; \
|
449 |
+
case "$(srcdir)" in \
|
450 |
+
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
451 |
+
*) sdir=$(subdir)/$(srcdir) ;; \
|
452 |
+
esac; \
|
453 |
+
for i in $$list; do \
|
454 |
+
if test -f "$$i"; then \
|
455 |
+
echo "$(subdir)/$$i"; \
|
456 |
+
else \
|
457 |
+
echo "$$sdir/$$i"; \
|
458 |
+
fi; \
|
459 |
+
done >> $(top_builddir)/cscope.files
|
460 |
+
|
461 |
+
distclean-tags:
|
462 |
+
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
463 |
+
|
464 |
+
distdir: $(DISTFILES)
|
465 |
+
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
466 |
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
467 |
+
list='$(DISTFILES)'; \
|
468 |
+
dist_files=`for file in $$list; do echo $$file; done | \
|
469 |
+
sed -e "s|^$$srcdirstrip/||;t" \
|
470 |
+
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
471 |
+
case $$dist_files in \
|
472 |
+
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
473 |
+
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
474 |
+
sort -u` ;; \
|
475 |
+
esac; \
|
476 |
+
for file in $$dist_files; do \
|
477 |
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
478 |
+
if test -d $$d/$$file; then \
|
479 |
+
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
480 |
+
if test -d "$(distdir)/$$file"; then \
|
481 |
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
482 |
+
fi; \
|
483 |
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
484 |
+
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
485 |
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
486 |
+
fi; \
|
487 |
+
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
488 |
+
else \
|
489 |
+
test -f "$(distdir)/$$file" \
|
490 |
+
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
491 |
+
|| exit 1; \
|
492 |
+
fi; \
|
493 |
+
done
|
494 |
+
check-am: all-am
|
495 |
+
check: check-am
|
496 |
+
all-am: Makefile $(PROGRAMS)
|
497 |
+
installdirs:
|
498 |
+
install: install-am
|
499 |
+
install-exec: install-exec-am
|
500 |
+
install-data: install-data-am
|
501 |
+
uninstall: uninstall-am
|
502 |
+
|
503 |
+
install-am: all-am
|
504 |
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
505 |
+
|
506 |
+
installcheck: installcheck-am
|
507 |
+
install-strip:
|
508 |
+
if test -z '$(STRIP)'; then \
|
509 |
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
510 |
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
511 |
+
install; \
|
512 |
+
else \
|
513 |
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
514 |
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
515 |
+
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
516 |
+
fi
|
517 |
+
mostlyclean-generic:
|
518 |
+
|
519 |
+
clean-generic:
|
520 |
+
|
521 |
+
distclean-generic:
|
522 |
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
523 |
+
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
524 |
+
|
525 |
+
maintainer-clean-generic:
|
526 |
+
@echo "This command is intended for maintainers to use"
|
527 |
+
@echo "it deletes files that may require special tools to rebuild."
|
528 |
+
clean: clean-am
|
529 |
+
|
530 |
+
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
|
531 |
+
mostlyclean-am
|
532 |
+
|
533 |
+
distclean: distclean-am
|
534 |
+
-rm -rf ./$(DEPDIR)
|
535 |
+
-rm -f Makefile
|
536 |
+
distclean-am: clean-am distclean-compile distclean-generic \
|
537 |
+
distclean-tags
|
538 |
+
|
539 |
+
dvi: dvi-am
|
540 |
+
|
541 |
+
dvi-am:
|
542 |
+
|
543 |
+
html: html-am
|
544 |
+
|
545 |
+
html-am:
|
546 |
+
|
547 |
+
info: info-am
|
548 |
+
|
549 |
+
info-am:
|
550 |
+
|
551 |
+
install-data-am:
|
552 |
+
|
553 |
+
install-dvi: install-dvi-am
|
554 |
+
|
555 |
+
install-dvi-am:
|
556 |
+
|
557 |
+
install-exec-am:
|
558 |
+
|
559 |
+
install-html: install-html-am
|
560 |
+
|
561 |
+
install-html-am:
|
562 |
+
|
563 |
+
install-info: install-info-am
|
564 |
+
|
565 |
+
install-info-am:
|
566 |
+
|
567 |
+
install-man:
|
568 |
+
|
569 |
+
install-pdf: install-pdf-am
|
570 |
+
|
571 |
+
install-pdf-am:
|
572 |
+
|
573 |
+
install-ps: install-ps-am
|
574 |
+
|
575 |
+
install-ps-am:
|
576 |
+
|
577 |
+
installcheck-am:
|
578 |
+
|
579 |
+
maintainer-clean: maintainer-clean-am
|
580 |
+
-rm -rf ./$(DEPDIR)
|
581 |
+
-rm -f Makefile
|
582 |
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
583 |
+
|
584 |
+
mostlyclean: mostlyclean-am
|
585 |
+
|
586 |
+
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
587 |
+
mostlyclean-libtool
|
588 |
+
|
589 |
+
pdf: pdf-am
|
590 |
+
|
591 |
+
pdf-am:
|
592 |
+
|
593 |
+
ps: ps-am
|
594 |
+
|
595 |
+
ps-am:
|
596 |
+
|
597 |
+
uninstall-am:
|
598 |
+
|
599 |
+
.MAKE: install-am install-strip
|
600 |
+
|
601 |
+
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
|
602 |
+
clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \
|
603 |
+
ctags-am distclean distclean-compile distclean-generic \
|
604 |
+
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
605 |
+
html-am info info-am install install-am install-data \
|
606 |
+
install-data-am install-dvi install-dvi-am install-exec \
|
607 |
+
install-exec-am install-html install-html-am install-info \
|
608 |
+
install-info-am install-man install-pdf install-pdf-am \
|
609 |
+
install-ps install-ps-am install-strip installcheck \
|
610 |
+
installcheck-am installdirs maintainer-clean \
|
611 |
+
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
612 |
+
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
613 |
+
tags tags-am uninstall uninstall-am
|
614 |
+
|
615 |
+
|
616 |
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
617 |
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
618 |
+
.NOEXPORT:
|
portaudio/bindings/cpp/build/gnu/Makefile.in
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
# Makefile template for PortAudioCpp
|
3 |
+
# Ludwig Schwardt
|
4 |
+
# 01/10/2003
|
5 |
+
#
|
6 |
+
# Not much to edit here - rather check configure.ac
|
7 |
+
#
|
8 |
+
|
9 |
+
PREFIX = @prefix@
|
10 |
+
CC = @CC@
|
11 |
+
CXX = @CXX@
|
12 |
+
CFLAGS = @CFLAGS@ @DEFS@
|
13 |
+
CXXFLAGS = @CXXFLAGS@
|
14 |
+
SHARED_FLAGS = @SHARED_FLAGS@
|
15 |
+
LIBS = @LIBS@
|
16 |
+
DLL_LIBS = @DLL_LIBS@
|
17 |
+
AR = @AR@
|
18 |
+
RANLIB = @RANLIB@
|
19 |
+
INSTALL = @INSTALL@
|
20 |
+
|
21 |
+
PACPP_ROOT = @PACPP_ROOT@
|
22 |
+
PORTAUDIO = @PORTAUDIO@
|
23 |
+
PADLL = @PADLL@
|
24 |
+
PACPP_DLL = @PACPP_DLL@
|
25 |
+
PALIB = libportaudio.a
|
26 |
+
PACPP_LIB = libportaudiocpp.a
|
27 |
+
PACPP_DLLV = $(PACPP_DLL).0.0.12
|
28 |
+
|
29 |
+
SRCDIR = $(PACPP_ROOT)/source/portaudiocpp
|
30 |
+
BINDIR = $(PACPP_ROOT)/example
|
31 |
+
LIBDIR = $(PACPP_ROOT)/lib
|
32 |
+
DOCDIR = $(PACPP_ROOT)/doc
|
33 |
+
|
34 |
+
OBJS = \
|
35 |
+
$(SRCDIR)/BlockingStream.o \
|
36 |
+
$(SRCDIR)/CallbackInterface.o \
|
37 |
+
$(SRCDIR)/CallbackStream.o \
|
38 |
+
$(SRCDIR)/CFunCallbackStream.o \
|
39 |
+
$(SRCDIR)/CppFunCallbackStream.o \
|
40 |
+
$(SRCDIR)/Device.o \
|
41 |
+
$(SRCDIR)/DirectionSpecificStreamParameters.o \
|
42 |
+
$(SRCDIR)/Exception.o \
|
43 |
+
$(SRCDIR)/HostApi.o \
|
44 |
+
$(SRCDIR)/InterfaceCallbackStream.o \
|
45 |
+
$(SRCDIR)/MemFunCallbackStream.o \
|
46 |
+
$(SRCDIR)/Stream.o \
|
47 |
+
$(SRCDIR)/StreamParameters.o \
|
48 |
+
$(SRCDIR)/System.o \
|
49 |
+
$(SRCDIR)/SystemDeviceIterator.o \
|
50 |
+
$(SRCDIR)/SystemHostApiIterator.o
|
51 |
+
|
52 |
+
# Not supported yet
|
53 |
+
# $(SRCDIR)/AsioDeviceAdapter.o
|
54 |
+
|
55 |
+
EXAMPLES = \
|
56 |
+
$(BINDIR)/devs \
|
57 |
+
$(BINDIR)/sine
|
58 |
+
|
59 |
+
.PHONY: all clean docs
|
60 |
+
|
61 |
+
all: $(EXAMPLES) $(LIBDIR)/$(PACPP_LIB) $(LIBDIR)/$(PACPP_DLL)
|
62 |
+
|
63 |
+
clean:
|
64 |
+
rm -rf $(SRCDIR)/*.o $(BINDIR)/*.o $(EXAMPLES) $(LIBDIR) $(DOCDIR)/api_reference
|
65 |
+
rm -rf autom4te.cache config.status config.log
|
66 |
+
|
67 |
+
docs:
|
68 |
+
cd $(DOCDIR); doxygen config.doxy.linux
|
69 |
+
|
70 |
+
%.o: %.c
|
71 |
+
$(CC) -c $(CFLAGS) $< -o $@
|
72 |
+
|
73 |
+
%.o: %.cxx
|
74 |
+
$(CXX) -c $(CXXFLAGS) $< -o $@
|
75 |
+
|
76 |
+
|
77 |
+
$(EXAMPLES): $(BINDIR)/%: $(BINDIR)/%.o $(OBJS)
|
78 |
+
$(CXX) $^ -o $@ $(LIBS)
|
79 |
+
|
80 |
+
$(LIBDIR)/$(PACPP_LIB): $(LIBDIR) $(OBJS)
|
81 |
+
$(AR) ruv $(LIBDIR)/$(PACPP_LIB) $(OBJS)
|
82 |
+
$(RANLIB) $(LIBDIR)/$(PACPP_LIB)
|
83 |
+
|
84 |
+
$(LIBDIR)/$(PACPP_DLLV): $(LIBDIR) $(OBJS)
|
85 |
+
$(CXX) $(SHARED_FLAGS) -o $(LIBDIR)/$(PACPP_DLLV) $(OBJS) $(DLL_LIBS)
|
86 |
+
|
87 |
+
$(LIBDIR)/$(PACPP_DLL): $(LIBDIR) $(OBJS)
|
88 |
+
$(CXX) $(SHARED_FLAGS) -o $(LIBDIR)/$(PACPP_DLL) $(OBJS) $(DLL_LIBS)
|
89 |
+
|
90 |
+
#install: $(LIBDIR)/$(PACPP_LIB) $(LIBDIR)/$(PACPP_DLLV)
|
91 |
+
# $(INSTALL) -m 644 $(LIBDIR)/$(PACPP_DLLV) $(PREFIX)/lib/$(PACPP_DLLV)
|
92 |
+
# $(INSTALL) -m 644 $(LIBDIR)/$(PACPP_LIB) $(PREFIX)/lib/$(PACPP_LIB)
|
93 |
+
# cd $(PREFIX)/lib && rm -f $(PACPP_DLL) && ln -s $(PACPP_DLLV) $(PACPP_DLL)
|
94 |
+
# @echo ""
|
95 |
+
# @echo "------------------------------------------------------------"
|
96 |
+
# @echo "PortAudioCpp was successfully installed."
|
97 |
+
# @echo ""
|
98 |
+
# @echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
|
99 |
+
# @echo "to make the shared object available. You may also need to"
|
100 |
+
# @echo "modify your LD_LIBRARY_PATH environment variable to include"
|
101 |
+
# @echo "the directory $(PREFIX)/lib"
|
102 |
+
# @echo "------------------------------------------------------------"
|
103 |
+
# @echo ""
|
104 |
+
|
105 |
+
$(LIBDIR):
|
106 |
+
mkdir $(LIBDIR)
|
portaudio/bindings/cpp/build/gnu/OUT_OF_DATE
ADDED
File without changes
|
portaudio/bindings/cpp/build/gnu/aclocal.m4
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
|
3 |
+
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
4 |
+
dnl also defines GSTUFF_PKG_ERRORS on error
|
5 |
+
AC_DEFUN(PKG_CHECK_MODULES, [
|
6 |
+
succeeded=no
|
7 |
+
|
8 |
+
if test -z "$PKG_CONFIG"; then
|
9 |
+
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
10 |
+
fi
|
11 |
+
|
12 |
+
if test "$PKG_CONFIG" = "no" ; then
|
13 |
+
echo "*** The pkg-config script could not be found. Make sure it is"
|
14 |
+
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
15 |
+
echo "*** to the full path to pkg-config."
|
16 |
+
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
17 |
+
else
|
18 |
+
PKG_CONFIG_MIN_VERSION=0.9.0
|
19 |
+
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
20 |
+
AC_MSG_CHECKING(for $2)
|
21 |
+
|
22 |
+
if $PKG_CONFIG --exists "$2" ; then
|
23 |
+
AC_MSG_RESULT(yes)
|
24 |
+
succeeded=yes
|
25 |
+
|
26 |
+
AC_MSG_CHECKING($1_CFLAGS)
|
27 |
+
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
28 |
+
AC_MSG_RESULT($$1_CFLAGS)
|
29 |
+
|
30 |
+
AC_MSG_CHECKING($1_LIBS)
|
31 |
+
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
32 |
+
AC_MSG_RESULT($$1_LIBS)
|
33 |
+
else
|
34 |
+
$1_CFLAGS=""
|
35 |
+
$1_LIBS=""
|
36 |
+
## If we have a custom action on failure, don't print errors, but
|
37 |
+
## do set a variable so people can do so.
|
38 |
+
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
39 |
+
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
40 |
+
fi
|
41 |
+
|
42 |
+
AC_SUBST($1_CFLAGS)
|
43 |
+
AC_SUBST($1_LIBS)
|
44 |
+
else
|
45 |
+
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
46 |
+
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
47 |
+
fi
|
48 |
+
fi
|
49 |
+
|
50 |
+
if test $succeeded = yes; then
|
51 |
+
ifelse([$3], , :, [$3])
|
52 |
+
else
|
53 |
+
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
54 |
+
fi
|
55 |
+
])
|
56 |
+
|
57 |
+
|
portaudio/bindings/cpp/build/gnu/config.guess
ADDED
@@ -0,0 +1,1308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#! /bin/sh
|
2 |
+
# Attempt to guess a canonical system name.
|
3 |
+
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
4 |
+
# Free Software Foundation, Inc.
|
5 |
+
|
6 |
+
timestamp='2001-10-05'
|
7 |
+
|
8 |
+
# This file is free software; you can redistribute it and/or modify it
|
9 |
+
# under the terms of the GNU General Public License as published by
|
10 |
+
# the Free Software Foundation; either version 2 of the License, or
|
11 |
+
# (at your option) any later version.
|
12 |
+
#
|
13 |
+
# This program is distributed in the hope that it will be useful, but
|
14 |
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16 |
+
# General Public License for more details.
|
17 |
+
#
|
18 |
+
# You should have received a copy of the GNU General Public License
|
19 |
+
# along with this program; if not, write to the Free Software
|
20 |
+
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
21 |
+
#
|
22 |
+
# As a special exception to the GNU General Public License, if you
|
23 |
+
# distribute this file as part of a program that contains a
|
24 |
+
# configuration script generated by Autoconf, you may include it under
|
25 |
+
# the same distribution terms that you use for the rest of that program.
|
26 |
+
|
27 |
+
# Originally written by Per Bothner <bothner@cygnus.com>.
|
28 |
+
# Please send patches to <config-patches@gnu.org>. Submit a context
|
29 |
+
# diff and a properly formatted ChangeLog entry.
|
30 |
+
#
|
31 |
+
# This script attempts to guess a canonical system name similar to
|
32 |
+
# config.sub. If it succeeds, it prints the system name on stdout, and
|
33 |
+
# exits with 0. Otherwise, it exits with 1.
|
34 |
+
#
|
35 |
+
# The plan is that this can be called by configure scripts if you
|
36 |
+
# don't specify an explicit build system type.
|
37 |
+
|
38 |
+
me=`echo "$0" | sed -e 's,.*/,,'`
|
39 |
+
|
40 |
+
usage="\
|
41 |
+
Usage: $0 [OPTION]
|
42 |
+
|
43 |
+
Output the configuration name of the system \`$me' is run on.
|
44 |
+
|
45 |
+
Operation modes:
|
46 |
+
-h, --help print this help, then exit
|
47 |
+
-t, --time-stamp print date of last modification, then exit
|
48 |
+
-v, --version print version number, then exit
|
49 |
+
|
50 |
+
Report bugs and patches to <config-patches@gnu.org>."
|
51 |
+
|
52 |
+
version="\
|
53 |
+
GNU config.guess ($timestamp)
|
54 |
+
|
55 |
+
Originally written by Per Bothner.
|
56 |
+
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
57 |
+
Free Software Foundation, Inc.
|
58 |
+
|
59 |
+
This is free software; see the source for copying conditions. There is NO
|
60 |
+
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
61 |
+
|
62 |
+
help="
|
63 |
+
Try \`$me --help' for more information."
|
64 |
+
|
65 |
+
# Parse command line
|
66 |
+
while test $# -gt 0 ; do
|
67 |
+
case $1 in
|
68 |
+
--time-stamp | --time* | -t )
|
69 |
+
echo "$timestamp" ; exit 0 ;;
|
70 |
+
--version | -v )
|
71 |
+
echo "$version" ; exit 0 ;;
|
72 |
+
--help | --h* | -h )
|
73 |
+
echo "$usage"; exit 0 ;;
|
74 |
+
-- ) # Stop option processing
|
75 |
+
shift; break ;;
|
76 |
+
- ) # Use stdin as input.
|
77 |
+
break ;;
|
78 |
+
-* )
|
79 |
+
echo "$me: invalid option $1$help" >&2
|
80 |
+
exit 1 ;;
|
81 |
+
* )
|
82 |
+
break ;;
|
83 |
+
esac
|
84 |
+
done
|
85 |
+
|
86 |
+
if test $# != 0; then
|
87 |
+
echo "$me: too many arguments$help" >&2
|
88 |
+
exit 1
|
89 |
+
fi
|
90 |
+
|
91 |
+
|
92 |
+
dummy=dummy-$$
|
93 |
+
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
|
94 |
+
|
95 |
+
# CC_FOR_BUILD -- compiler used by this script.
|
96 |
+
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
|
97 |
+
# use `HOST_CC' if defined, but it is deprecated.
|
98 |
+
|
99 |
+
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
|
100 |
+
,,) echo "int dummy(){}" > $dummy.c ;
|
101 |
+
for c in cc gcc c89 ; do
|
102 |
+
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
|
103 |
+
if test $? = 0 ; then
|
104 |
+
CC_FOR_BUILD="$c"; break ;
|
105 |
+
fi ;
|
106 |
+
done ;
|
107 |
+
rm -f $dummy.c $dummy.o $dummy.rel ;
|
108 |
+
if test x"$CC_FOR_BUILD" = x ; then
|
109 |
+
CC_FOR_BUILD=no_compiler_found ;
|
110 |
+
fi
|
111 |
+
;;
|
112 |
+
,,*) CC_FOR_BUILD=$CC ;;
|
113 |
+
,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
114 |
+
esac'
|
115 |
+
|
116 |
+
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
117 |
+
# (ghazi@noc.rutgers.edu 1994-08-24)
|
118 |
+
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
119 |
+
PATH=$PATH:/.attbin ; export PATH
|
120 |
+
fi
|
121 |
+
|
122 |
+
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
123 |
+
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
124 |
+
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
125 |
+
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
126 |
+
|
127 |
+
# Note: order is significant - the case branches are not exclusive.
|
128 |
+
|
129 |
+
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
130 |
+
*:NetBSD:*:*)
|
131 |
+
# NetBSD (nbsd) targets should (where applicable) match one or
|
132 |
+
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
133 |
+
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
134 |
+
# switched to ELF, *-*-netbsd* would select the old
|
135 |
+
# object file format. This provides both forward
|
136 |
+
# compatibility and a consistent mechanism for selecting the
|
137 |
+
# object file format.
|
138 |
+
# Determine the machine/vendor (is the vendor relevant).
|
139 |
+
case "${UNAME_MACHINE}" in
|
140 |
+
amiga) machine=m68k-unknown ;;
|
141 |
+
arm32) machine=arm-unknown ;;
|
142 |
+
atari*) machine=m68k-atari ;;
|
143 |
+
sun3*) machine=m68k-sun ;;
|
144 |
+
mac68k) machine=m68k-apple ;;
|
145 |
+
macppc) machine=powerpc-apple ;;
|
146 |
+
hp3[0-9][05]) machine=m68k-hp ;;
|
147 |
+
ibmrt|romp-ibm) machine=romp-ibm ;;
|
148 |
+
sparc*) machine=`uname -p`-unknown ;;
|
149 |
+
*) machine=${UNAME_MACHINE}-unknown ;;
|
150 |
+
esac
|
151 |
+
# The Operating System including object format, if it has switched
|
152 |
+
# to ELF recently, or will in the future.
|
153 |
+
case "${UNAME_MACHINE}" in
|
154 |
+
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
|
155 |
+
eval $set_cc_for_build
|
156 |
+
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
157 |
+
| grep __ELF__ >/dev/null
|
158 |
+
then
|
159 |
+
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
160 |
+
# Return netbsd for either. FIX?
|
161 |
+
os=netbsd
|
162 |
+
else
|
163 |
+
os=netbsdelf
|
164 |
+
fi
|
165 |
+
;;
|
166 |
+
*)
|
167 |
+
os=netbsd
|
168 |
+
;;
|
169 |
+
esac
|
170 |
+
# The OS release
|
171 |
+
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
172 |
+
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
173 |
+
# contains redundant information, the shorter form:
|
174 |
+
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
175 |
+
echo "${machine}-${os}${release}"
|
176 |
+
exit 0 ;;
|
177 |
+
amiga:OpenBSD:*:*)
|
178 |
+
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
179 |
+
exit 0 ;;
|
180 |
+
arc:OpenBSD:*:*)
|
181 |
+
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
182 |
+
exit 0 ;;
|
183 |
+
hp300:OpenBSD:*:*)
|
184 |
+
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
185 |
+
exit 0 ;;
|
186 |
+
mac68k:OpenBSD:*:*)
|
187 |
+
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
188 |
+
exit 0 ;;
|
189 |
+
macppc:OpenBSD:*:*)
|
190 |
+
echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
191 |
+
exit 0 ;;
|
192 |
+
mvme68k:OpenBSD:*:*)
|
193 |
+
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
194 |
+
exit 0 ;;
|
195 |
+
mvme88k:OpenBSD:*:*)
|
196 |
+
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
197 |
+
exit 0 ;;
|
198 |
+
mvmeppc:OpenBSD:*:*)
|
199 |
+
echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
200 |
+
exit 0 ;;
|
201 |
+
pmax:OpenBSD:*:*)
|
202 |
+
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
203 |
+
exit 0 ;;
|
204 |
+
sgi:OpenBSD:*:*)
|
205 |
+
echo mipseb-unknown-openbsd${UNAME_RELEASE}
|
206 |
+
exit 0 ;;
|
207 |
+
sun3:OpenBSD:*:*)
|
208 |
+
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
209 |
+
exit 0 ;;
|
210 |
+
wgrisc:OpenBSD:*:*)
|
211 |
+
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
212 |
+
exit 0 ;;
|
213 |
+
*:OpenBSD:*:*)
|
214 |
+
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
|
215 |
+
exit 0 ;;
|
216 |
+
alpha:OSF1:*:*)
|
217 |
+
if test $UNAME_RELEASE = "V4.0"; then
|
218 |
+
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
219 |
+
fi
|
220 |
+
# A Vn.n version is a released version.
|
221 |
+
# A Tn.n version is a released field test version.
|
222 |
+
# A Xn.n version is an unreleased experimental baselevel.
|
223 |
+
# 1.2 uses "1.2" for uname -r.
|
224 |
+
cat <<EOF >$dummy.s
|
225 |
+
.data
|
226 |
+
\$Lformat:
|
227 |
+
.byte 37,100,45,37,120,10,0 # "%d-%x\n"
|
228 |
+
|
229 |
+
.text
|
230 |
+
.globl main
|
231 |
+
.align 4
|
232 |
+
.ent main
|
233 |
+
main:
|
234 |
+
.frame \$30,16,\$26,0
|
235 |
+
ldgp \$29,0(\$27)
|
236 |
+
.prologue 1
|
237 |
+
.long 0x47e03d80 # implver \$0
|
238 |
+
lda \$2,-1
|
239 |
+
.long 0x47e20c21 # amask \$2,\$1
|
240 |
+
lda \$16,\$Lformat
|
241 |
+
mov \$0,\$17
|
242 |
+
not \$1,\$18
|
243 |
+
jsr \$26,printf
|
244 |
+
ldgp \$29,0(\$26)
|
245 |
+
mov 0,\$16
|
246 |
+
jsr \$26,exit
|
247 |
+
.end main
|
248 |
+
EOF
|
249 |
+
eval $set_cc_for_build
|
250 |
+
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
|
251 |
+
if test "$?" = 0 ; then
|
252 |
+
case `./$dummy` in
|
253 |
+
0-0)
|
254 |
+
UNAME_MACHINE="alpha"
|
255 |
+
;;
|
256 |
+
1-0)
|
257 |
+
UNAME_MACHINE="alphaev5"
|
258 |
+
;;
|
259 |
+
1-1)
|
260 |
+
UNAME_MACHINE="alphaev56"
|
261 |
+
;;
|
262 |
+
1-101)
|
263 |
+
UNAME_MACHINE="alphapca56"
|
264 |
+
;;
|
265 |
+
2-303)
|
266 |
+
UNAME_MACHINE="alphaev6"
|
267 |
+
;;
|
268 |
+
2-307)
|
269 |
+
UNAME_MACHINE="alphaev67"
|
270 |
+
;;
|
271 |
+
2-1307)
|
272 |
+
UNAME_MACHINE="alphaev68"
|
273 |
+
;;
|
274 |
+
esac
|
275 |
+
fi
|
276 |
+
rm -f $dummy.s $dummy
|
277 |
+
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
278 |
+
exit 0 ;;
|
279 |
+
Alpha\ *:Windows_NT*:*)
|
280 |
+
# How do we know it's Interix rather than the generic POSIX subsystem?
|
281 |
+
# Should we change UNAME_MACHINE based on the output of uname instead
|
282 |
+
# of the specific Alpha model?
|
283 |
+
echo alpha-pc-interix
|
284 |
+
exit 0 ;;
|
285 |
+
21064:Windows_NT:50:3)
|
286 |
+
echo alpha-dec-winnt3.5
|
287 |
+
exit 0 ;;
|
288 |
+
Amiga*:UNIX_System_V:4.0:*)
|
289 |
+
echo m68k-unknown-sysv4
|
290 |
+
exit 0;;
|
291 |
+
*:[Aa]miga[Oo][Ss]:*:*)
|
292 |
+
echo ${UNAME_MACHINE}-unknown-amigaos
|
293 |
+
exit 0 ;;
|
294 |
+
*:OS/390:*:*)
|
295 |
+
echo i370-ibm-openedition
|
296 |
+
exit 0 ;;
|
297 |
+
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
298 |
+
echo arm-acorn-riscix${UNAME_RELEASE}
|
299 |
+
exit 0;;
|
300 |
+
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
301 |
+
echo hppa1.1-hitachi-hiuxmpp
|
302 |
+
exit 0;;
|
303 |
+
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
304 |
+
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
305 |
+
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
306 |
+
echo pyramid-pyramid-sysv3
|
307 |
+
else
|
308 |
+
echo pyramid-pyramid-bsd
|
309 |
+
fi
|
310 |
+
exit 0 ;;
|
311 |
+
NILE*:*:*:dcosx)
|
312 |
+
echo pyramid-pyramid-svr4
|
313 |
+
exit 0 ;;
|
314 |
+
sun4H:SunOS:5.*:*)
|
315 |
+
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
316 |
+
exit 0 ;;
|
317 |
+
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
318 |
+
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
319 |
+
exit 0 ;;
|
320 |
+
i86pc:SunOS:5.*:*)
|
321 |
+
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
322 |
+
exit 0 ;;
|
323 |
+
sun4*:SunOS:6*:*)
|
324 |
+
# According to config.sub, this is the proper way to canonicalize
|
325 |
+
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
326 |
+
# it's likely to be more like Solaris than SunOS4.
|
327 |
+
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
328 |
+
exit 0 ;;
|
329 |
+
sun4*:SunOS:*:*)
|
330 |
+
case "`/usr/bin/arch -k`" in
|
331 |
+
Series*|S4*)
|
332 |
+
UNAME_RELEASE=`uname -v`
|
333 |
+
;;
|
334 |
+
esac
|
335 |
+
# Japanese Language versions have a version number like `4.1.3-JL'.
|
336 |
+
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
337 |
+
exit 0 ;;
|
338 |
+
sun3*:SunOS:*:*)
|
339 |
+
echo m68k-sun-sunos${UNAME_RELEASE}
|
340 |
+
exit 0 ;;
|
341 |
+
sun*:*:4.2BSD:*)
|
342 |
+
UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
343 |
+
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
344 |
+
case "`/bin/arch`" in
|
345 |
+
sun3)
|
346 |
+
echo m68k-sun-sunos${UNAME_RELEASE}
|
347 |
+
;;
|
348 |
+
sun4)
|
349 |
+
echo sparc-sun-sunos${UNAME_RELEASE}
|
350 |
+
;;
|
351 |
+
esac
|
352 |
+
exit 0 ;;
|
353 |
+
aushp:SunOS:*:*)
|
354 |
+
echo sparc-auspex-sunos${UNAME_RELEASE}
|
355 |
+
exit 0 ;;
|
356 |
+
# The situation for MiNT is a little confusing. The machine name
|
357 |
+
# can be virtually everything (everything which is not
|
358 |
+
# "atarist" or "atariste" at least should have a processor
|
359 |
+
# > m68000). The system name ranges from "MiNT" over "FreeMiNT"
|
360 |
+
# to the lowercase version "mint" (or "freemint"). Finally
|
361 |
+
# the system name "TOS" denotes a system which is actually not
|
362 |
+
# MiNT. But MiNT is downward compatible to TOS, so this should
|
363 |
+
# be no problem.
|
364 |
+
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
365 |
+
echo m68k-atari-mint${UNAME_RELEASE}
|
366 |
+
exit 0 ;;
|
367 |
+
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
368 |
+
echo m68k-atari-mint${UNAME_RELEASE}
|
369 |
+
exit 0 ;;
|
370 |
+
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
371 |
+
echo m68k-atari-mint${UNAME_RELEASE}
|
372 |
+
exit 0 ;;
|
373 |
+
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
374 |
+
echo m68k-milan-mint${UNAME_RELEASE}
|
375 |
+
exit 0 ;;
|
376 |
+
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
377 |
+
echo m68k-hades-mint${UNAME_RELEASE}
|
378 |
+
exit 0 ;;
|
379 |
+
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
380 |
+
echo m68k-unknown-mint${UNAME_RELEASE}
|
381 |
+
exit 0 ;;
|
382 |
+
powerpc:machten:*:*)
|
383 |
+
echo powerpc-apple-machten${UNAME_RELEASE}
|
384 |
+
exit 0 ;;
|
385 |
+
RISC*:Mach:*:*)
|
386 |
+
echo mips-dec-mach_bsd4.3
|
387 |
+
exit 0 ;;
|
388 |
+
RISC*:ULTRIX:*:*)
|
389 |
+
echo mips-dec-ultrix${UNAME_RELEASE}
|
390 |
+
exit 0 ;;
|
391 |
+
VAX*:ULTRIX*:*:*)
|
392 |
+
echo vax-dec-ultrix${UNAME_RELEASE}
|
393 |
+
exit 0 ;;
|
394 |
+
2020:CLIX:*:* | 2430:CLIX:*:*)
|
395 |
+
echo clipper-intergraph-clix${UNAME_RELEASE}
|
396 |
+
exit 0 ;;
|
397 |
+
mips:*:*:UMIPS | mips:*:*:RISCos)
|
398 |
+
eval $set_cc_for_build
|
399 |
+
sed 's/^ //' << EOF >$dummy.c
|
400 |
+
#ifdef __cplusplus
|
401 |
+
#include <stdio.h> /* for printf() prototype */
|
402 |
+
int main (int argc, char *argv[]) {
|
403 |
+
#else
|
404 |
+
int main (argc, argv) int argc; char *argv[]; {
|
405 |
+
#endif
|
406 |
+
#if defined (host_mips) && defined (MIPSEB)
|
407 |
+
#if defined (SYSTYPE_SYSV)
|
408 |
+
printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
|
409 |
+
#endif
|
410 |
+
#if defined (SYSTYPE_SVR4)
|
411 |
+
printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
|
412 |
+
#endif
|
413 |
+
#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
|
414 |
+
printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
|
415 |
+
#endif
|
416 |
+
#endif
|
417 |
+
exit (-1);
|
418 |
+
}
|
419 |
+
EOF
|
420 |
+
$CC_FOR_BUILD $dummy.c -o $dummy \
|
421 |
+
&& ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
422 |
+
&& rm -f $dummy.c $dummy && exit 0
|
423 |
+
rm -f $dummy.c $dummy
|
424 |
+
echo mips-mips-riscos${UNAME_RELEASE}
|
425 |
+
exit 0 ;;
|
426 |
+
Motorola:PowerMAX_OS:*:*)
|
427 |
+
echo powerpc-motorola-powermax
|
428 |
+
exit 0 ;;
|
429 |
+
Night_Hawk:Power_UNIX:*:*)
|
430 |
+
echo powerpc-harris-powerunix
|
431 |
+
exit 0 ;;
|
432 |
+
m88k:CX/UX:7*:*)
|
433 |
+
echo m88k-harris-cxux7
|
434 |
+
exit 0 ;;
|
435 |
+
m88k:*:4*:R4*)
|
436 |
+
echo m88k-motorola-sysv4
|
437 |
+
exit 0 ;;
|
438 |
+
m88k:*:3*:R3*)
|
439 |
+
echo m88k-motorola-sysv3
|
440 |
+
exit 0 ;;
|
441 |
+
AViiON:dgux:*:*)
|
442 |
+
# DG/UX returns AViiON for all architectures
|
443 |
+
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
444 |
+
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
445 |
+
then
|
446 |
+
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
447 |
+
[ ${TARGET_BINARY_INTERFACE}x = x ]
|
448 |
+
then
|
449 |
+
echo m88k-dg-dgux${UNAME_RELEASE}
|
450 |
+
else
|
451 |
+
echo m88k-dg-dguxbcs${UNAME_RELEASE}
|
452 |
+
fi
|
453 |
+
else
|
454 |
+
echo i586-dg-dgux${UNAME_RELEASE}
|
455 |
+
fi
|
456 |
+
exit 0 ;;
|
457 |
+
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
458 |
+
echo m88k-dolphin-sysv3
|
459 |
+
exit 0 ;;
|
460 |
+
M88*:*:R3*:*)
|
461 |
+
# Delta 88k system running SVR3
|
462 |
+
echo m88k-motorola-sysv3
|
463 |
+
exit 0 ;;
|
464 |
+
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
465 |
+
echo m88k-tektronix-sysv3
|
466 |
+
exit 0 ;;
|
467 |
+
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
468 |
+
echo m68k-tektronix-bsd
|
469 |
+
exit 0 ;;
|
470 |
+
*:IRIX*:*:*)
|
471 |
+
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
|
472 |
+
exit 0 ;;
|
473 |
+
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
474 |
+
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
475 |
+
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
476 |
+
i*86:AIX:*:*)
|
477 |
+
echo i386-ibm-aix
|
478 |
+
exit 0 ;;
|
479 |
+
ia64:AIX:*:*)
|
480 |
+
if [ -x /usr/bin/oslevel ] ; then
|
481 |
+
IBM_REV=`/usr/bin/oslevel`
|
482 |
+
else
|
483 |
+
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
484 |
+
fi
|
485 |
+
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
|
486 |
+
exit 0 ;;
|
487 |
+
*:AIX:2:3)
|
488 |
+
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
489 |
+
eval $set_cc_for_build
|
490 |
+
sed 's/^ //' << EOF >$dummy.c
|
491 |
+
#include <sys/systemcfg.h>
|
492 |
+
|
493 |
+
main()
|
494 |
+
{
|
495 |
+
if (!__power_pc())
|
496 |
+
exit(1);
|
497 |
+
puts("powerpc-ibm-aix3.2.5");
|
498 |
+
exit(0);
|
499 |
+
}
|
500 |
+
EOF
|
501 |
+
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
502 |
+
rm -f $dummy.c $dummy
|
503 |
+
echo rs6000-ibm-aix3.2.5
|
504 |
+
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
505 |
+
echo rs6000-ibm-aix3.2.4
|
506 |
+
else
|
507 |
+
echo rs6000-ibm-aix3.2
|
508 |
+
fi
|
509 |
+
exit 0 ;;
|
510 |
+
*:AIX:*:[45])
|
511 |
+
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
|
512 |
+
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
513 |
+
IBM_ARCH=rs6000
|
514 |
+
else
|
515 |
+
IBM_ARCH=powerpc
|
516 |
+
fi
|
517 |
+
if [ -x /usr/bin/oslevel ] ; then
|
518 |
+
IBM_REV=`/usr/bin/oslevel`
|
519 |
+
else
|
520 |
+
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
521 |
+
fi
|
522 |
+
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
523 |
+
exit 0 ;;
|
524 |
+
*:AIX:*:*)
|
525 |
+
echo rs6000-ibm-aix
|
526 |
+
exit 0 ;;
|
527 |
+
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
528 |
+
echo romp-ibm-bsd4.4
|
529 |
+
exit 0 ;;
|
530 |
+
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
|
531 |
+
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
532 |
+
exit 0 ;; # report: romp-ibm BSD 4.3
|
533 |
+
*:BOSX:*:*)
|
534 |
+
echo rs6000-bull-bosx
|
535 |
+
exit 0 ;;
|
536 |
+
DPX/2?00:B.O.S.:*:*)
|
537 |
+
echo m68k-bull-sysv3
|
538 |
+
exit 0 ;;
|
539 |
+
9000/[34]??:4.3bsd:1.*:*)
|
540 |
+
echo m68k-hp-bsd
|
541 |
+
exit 0 ;;
|
542 |
+
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
543 |
+
echo m68k-hp-bsd4.4
|
544 |
+
exit 0 ;;
|
545 |
+
9000/[34678]??:HP-UX:*:*)
|
546 |
+
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
547 |
+
case "${UNAME_MACHINE}" in
|
548 |
+
9000/31? ) HP_ARCH=m68000 ;;
|
549 |
+
9000/[34]?? ) HP_ARCH=m68k ;;
|
550 |
+
9000/[678][0-9][0-9])
|
551 |
+
if [ -x /usr/bin/getconf ]; then
|
552 |
+
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
553 |
+
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
554 |
+
case "${sc_cpu_version}" in
|
555 |
+
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
556 |
+
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
557 |
+
532) # CPU_PA_RISC2_0
|
558 |
+
case "${sc_kernel_bits}" in
|
559 |
+
32) HP_ARCH="hppa2.0n" ;;
|
560 |
+
64) HP_ARCH="hppa2.0w" ;;
|
561 |
+
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
562 |
+
esac ;;
|
563 |
+
esac
|
564 |
+
fi
|
565 |
+
if [ "${HP_ARCH}" = "" ]; then
|
566 |
+
eval $set_cc_for_build
|
567 |
+
sed 's/^ //' << EOF >$dummy.c
|
568 |
+
|
569 |
+
#define _HPUX_SOURCE
|
570 |
+
#include <stdlib.h>
|
571 |
+
#include <unistd.h>
|
572 |
+
|
573 |
+
int main ()
|
574 |
+
{
|
575 |
+
#if defined(_SC_KERNEL_BITS)
|
576 |
+
long bits = sysconf(_SC_KERNEL_BITS);
|
577 |
+
#endif
|
578 |
+
long cpu = sysconf (_SC_CPU_VERSION);
|
579 |
+
|
580 |
+
switch (cpu)
|
581 |
+
{
|
582 |
+
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
583 |
+
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
584 |
+
case CPU_PA_RISC2_0:
|
585 |
+
#if defined(_SC_KERNEL_BITS)
|
586 |
+
switch (bits)
|
587 |
+
{
|
588 |
+
case 64: puts ("hppa2.0w"); break;
|
589 |
+
case 32: puts ("hppa2.0n"); break;
|
590 |
+
default: puts ("hppa2.0"); break;
|
591 |
+
} break;
|
592 |
+
#else /* !defined(_SC_KERNEL_BITS) */
|
593 |
+
puts ("hppa2.0"); break;
|
594 |
+
#endif
|
595 |
+
default: puts ("hppa1.0"); break;
|
596 |
+
}
|
597 |
+
exit (0);
|
598 |
+
}
|
599 |
+
EOF
|
600 |
+
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
|
601 |
+
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
|
602 |
+
rm -f $dummy.c $dummy
|
603 |
+
fi ;;
|
604 |
+
esac
|
605 |
+
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
606 |
+
exit 0 ;;
|
607 |
+
ia64:HP-UX:*:*)
|
608 |
+
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
609 |
+
echo ia64-hp-hpux${HPUX_REV}
|
610 |
+
exit 0 ;;
|
611 |
+
3050*:HI-UX:*:*)
|
612 |
+
eval $set_cc_for_build
|
613 |
+
sed 's/^ //' << EOF >$dummy.c
|
614 |
+
#include <unistd.h>
|
615 |
+
int
|
616 |
+
main ()
|
617 |
+
{
|
618 |
+
long cpu = sysconf (_SC_CPU_VERSION);
|
619 |
+
/* The order matters, because CPU_IS_HP_MC68K erroneously returns
|
620 |
+
true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
|
621 |
+
results, however. */
|
622 |
+
if (CPU_IS_PA_RISC (cpu))
|
623 |
+
{
|
624 |
+
switch (cpu)
|
625 |
+
{
|
626 |
+
case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
|
627 |
+
case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
|
628 |
+
case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
|
629 |
+
default: puts ("hppa-hitachi-hiuxwe2"); break;
|
630 |
+
}
|
631 |
+
}
|
632 |
+
else if (CPU_IS_HP_MC68K (cpu))
|
633 |
+
puts ("m68k-hitachi-hiuxwe2");
|
634 |
+
else puts ("unknown-hitachi-hiuxwe2");
|
635 |
+
exit (0);
|
636 |
+
}
|
637 |
+
EOF
|
638 |
+
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
639 |
+
rm -f $dummy.c $dummy
|
640 |
+
echo unknown-hitachi-hiuxwe2
|
641 |
+
exit 0 ;;
|
642 |
+
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
643 |
+
echo hppa1.1-hp-bsd
|
644 |
+
exit 0 ;;
|
645 |
+
9000/8??:4.3bsd:*:*)
|
646 |
+
echo hppa1.0-hp-bsd
|
647 |
+
exit 0 ;;
|
648 |
+
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
|
649 |
+
echo hppa1.0-hp-mpeix
|
650 |
+
exit 0 ;;
|
651 |
+
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
652 |
+
echo hppa1.1-hp-osf
|
653 |
+
exit 0 ;;
|
654 |
+
hp8??:OSF1:*:*)
|
655 |
+
echo hppa1.0-hp-osf
|
656 |
+
exit 0 ;;
|
657 |
+
i*86:OSF1:*:*)
|
658 |
+
if [ -x /usr/sbin/sysversion ] ; then
|
659 |
+
echo ${UNAME_MACHINE}-unknown-osf1mk
|
660 |
+
else
|
661 |
+
echo ${UNAME_MACHINE}-unknown-osf1
|
662 |
+
fi
|
663 |
+
exit 0 ;;
|
664 |
+
parisc*:Lites*:*:*)
|
665 |
+
echo hppa1.1-hp-lites
|
666 |
+
exit 0 ;;
|
667 |
+
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
668 |
+
echo c1-convex-bsd
|
669 |
+
exit 0 ;;
|
670 |
+
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
671 |
+
if getsysinfo -f scalar_acc
|
672 |
+
then echo c32-convex-bsd
|
673 |
+
else echo c2-convex-bsd
|
674 |
+
fi
|
675 |
+
exit 0 ;;
|
676 |
+
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
677 |
+
echo c34-convex-bsd
|
678 |
+
exit 0 ;;
|
679 |
+
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
680 |
+
echo c38-convex-bsd
|
681 |
+
exit 0 ;;
|
682 |
+
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
683 |
+
echo c4-convex-bsd
|
684 |
+
exit 0 ;;
|
685 |
+
CRAY*X-MP:*:*:*)
|
686 |
+
echo xmp-cray-unicos
|
687 |
+
exit 0 ;;
|
688 |
+
CRAY*Y-MP:*:*:*)
|
689 |
+
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
690 |
+
exit 0 ;;
|
691 |
+
CRAY*[A-Z]90:*:*:*)
|
692 |
+
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
693 |
+
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
694 |
+
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
|
695 |
+
-e 's/\.[^.]*$/.X/'
|
696 |
+
exit 0 ;;
|
697 |
+
CRAY*TS:*:*:*)
|
698 |
+
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
699 |
+
exit 0 ;;
|
700 |
+
CRAY*T3D:*:*:*)
|
701 |
+
echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
702 |
+
exit 0 ;;
|
703 |
+
CRAY*T3E:*:*:*)
|
704 |
+
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
705 |
+
exit 0 ;;
|
706 |
+
CRAY*SV1:*:*:*)
|
707 |
+
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
708 |
+
exit 0 ;;
|
709 |
+
CRAY-2:*:*:*)
|
710 |
+
echo cray2-cray-unicos
|
711 |
+
exit 0 ;;
|
712 |
+
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
713 |
+
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
714 |
+
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
715 |
+
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
716 |
+
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
717 |
+
exit 0 ;;
|
718 |
+
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
719 |
+
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
720 |
+
exit 0 ;;
|
721 |
+
sparc*:BSD/OS:*:*)
|
722 |
+
echo sparc-unknown-bsdi${UNAME_RELEASE}
|
723 |
+
exit 0 ;;
|
724 |
+
*:BSD/OS:*:*)
|
725 |
+
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
726 |
+
exit 0 ;;
|
727 |
+
*:FreeBSD:*:*)
|
728 |
+
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
729 |
+
exit 0 ;;
|
730 |
+
i*:CYGWIN*:*)
|
731 |
+
echo ${UNAME_MACHINE}-pc-cygwin
|
732 |
+
exit 0 ;;
|
733 |
+
i*:MINGW*:*)
|
734 |
+
echo ${UNAME_MACHINE}-pc-mingw32
|
735 |
+
exit 0 ;;
|
736 |
+
i*:PW*:*)
|
737 |
+
echo ${UNAME_MACHINE}-pc-pw32
|
738 |
+
exit 0 ;;
|
739 |
+
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
740 |
+
# How do we know it's Interix rather than the generic POSIX subsystem?
|
741 |
+
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
742 |
+
# UNAME_MACHINE based on the output of uname instead of i386?
|
743 |
+
echo i386-pc-interix
|
744 |
+
exit 0 ;;
|
745 |
+
i*:UWIN*:*)
|
746 |
+
echo ${UNAME_MACHINE}-pc-uwin
|
747 |
+
exit 0 ;;
|
748 |
+
p*:CYGWIN*:*)
|
749 |
+
echo powerpcle-unknown-cygwin
|
750 |
+
exit 0 ;;
|
751 |
+
prep*:SunOS:5.*:*)
|
752 |
+
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
753 |
+
exit 0 ;;
|
754 |
+
*:GNU:*:*)
|
755 |
+
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
756 |
+
exit 0 ;;
|
757 |
+
i*86:Minix:*:*)
|
758 |
+
echo ${UNAME_MACHINE}-pc-minix
|
759 |
+
exit 0 ;;
|
760 |
+
arm*:Linux:*:*)
|
761 |
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
762 |
+
exit 0 ;;
|
763 |
+
ia64:Linux:*:*)
|
764 |
+
echo ${UNAME_MACHINE}-unknown-linux
|
765 |
+
exit 0 ;;
|
766 |
+
m68*:Linux:*:*)
|
767 |
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
768 |
+
exit 0 ;;
|
769 |
+
mips:Linux:*:*)
|
770 |
+
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
|
771 |
+
big) echo mips-unknown-linux-gnu && exit 0 ;;
|
772 |
+
little) echo mipsel-unknown-linux-gnu && exit 0 ;;
|
773 |
+
esac
|
774 |
+
;;
|
775 |
+
ppc:Linux:*:*)
|
776 |
+
echo powerpc-unknown-linux-gnu
|
777 |
+
exit 0 ;;
|
778 |
+
ppc64:Linux:*:*)
|
779 |
+
echo powerpc64-unknown-linux-gnu
|
780 |
+
exit 0 ;;
|
781 |
+
alpha:Linux:*:*)
|
782 |
+
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
783 |
+
EV5) UNAME_MACHINE=alphaev5 ;;
|
784 |
+
EV56) UNAME_MACHINE=alphaev56 ;;
|
785 |
+
PCA56) UNAME_MACHINE=alphapca56 ;;
|
786 |
+
PCA57) UNAME_MACHINE=alphapca56 ;;
|
787 |
+
EV6) UNAME_MACHINE=alphaev6 ;;
|
788 |
+
EV67) UNAME_MACHINE=alphaev67 ;;
|
789 |
+
EV68*) UNAME_MACHINE=alphaev68 ;;
|
790 |
+
esac
|
791 |
+
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
792 |
+
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
793 |
+
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
794 |
+
exit 0 ;;
|
795 |
+
parisc:Linux:*:* | hppa:Linux:*:*)
|
796 |
+
# Look for CPU level
|
797 |
+
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
798 |
+
PA7*) echo hppa1.1-unknown-linux-gnu ;;
|
799 |
+
PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
800 |
+
*) echo hppa-unknown-linux-gnu ;;
|
801 |
+
esac
|
802 |
+
exit 0 ;;
|
803 |
+
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
804 |
+
echo hppa64-unknown-linux-gnu
|
805 |
+
exit 0 ;;
|
806 |
+
s390:Linux:*:* | s390x:Linux:*:*)
|
807 |
+
echo ${UNAME_MACHINE}-ibm-linux
|
808 |
+
exit 0 ;;
|
809 |
+
sh*:Linux:*:*)
|
810 |
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
811 |
+
exit 0 ;;
|
812 |
+
sparc:Linux:*:* | sparc64:Linux:*:*)
|
813 |
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
814 |
+
exit 0 ;;
|
815 |
+
x86_64:Linux:*:*)
|
816 |
+
echo x86_64-unknown-linux-gnu
|
817 |
+
exit 0 ;;
|
818 |
+
i*86:Linux:*:*)
|
819 |
+
# The BFD linker knows what the default object file format is, so
|
820 |
+
# first see if it will tell us. cd to the root directory to prevent
|
821 |
+
# problems with other programs or directories called `ld' in the path.
|
822 |
+
ld_supported_targets=`cd /; ld --help 2>&1 \
|
823 |
+
| sed -ne '/supported targets:/!d
|
824 |
+
s/[ ][ ]*/ /g
|
825 |
+
s/.*supported targets: *//
|
826 |
+
s/ .*//
|
827 |
+
p'`
|
828 |
+
case "$ld_supported_targets" in
|
829 |
+
elf32-i386)
|
830 |
+
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
831 |
+
;;
|
832 |
+
a.out-i386-linux)
|
833 |
+
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
834 |
+
exit 0 ;;
|
835 |
+
coff-i386)
|
836 |
+
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
837 |
+
exit 0 ;;
|
838 |
+
"")
|
839 |
+
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
840 |
+
# one that does not give us useful --help.
|
841 |
+
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
842 |
+
exit 0 ;;
|
843 |
+
esac
|
844 |
+
# Determine whether the default compiler is a.out or elf
|
845 |
+
eval $set_cc_for_build
|
846 |
+
cat >$dummy.c <<EOF
|
847 |
+
#include <features.h>
|
848 |
+
#ifdef __cplusplus
|
849 |
+
#include <stdio.h> /* for printf() prototype */
|
850 |
+
int main (int argc, char *argv[]) {
|
851 |
+
#else
|
852 |
+
int main (argc, argv) int argc; char *argv[]; {
|
853 |
+
#endif
|
854 |
+
#ifdef __ELF__
|
855 |
+
# ifdef __GLIBC__
|
856 |
+
# if __GLIBC__ >= 2
|
857 |
+
printf ("%s-pc-linux-gnu\n", argv[1]);
|
858 |
+
# else
|
859 |
+
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
860 |
+
# endif
|
861 |
+
# else
|
862 |
+
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
863 |
+
# endif
|
864 |
+
#else
|
865 |
+
printf ("%s-pc-linux-gnuaout\n", argv[1]);
|
866 |
+
#endif
|
867 |
+
return 0;
|
868 |
+
}
|
869 |
+
EOF
|
870 |
+
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
|
871 |
+
rm -f $dummy.c $dummy
|
872 |
+
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
873 |
+
;;
|
874 |
+
i*86:DYNIX/ptx:4*:*)
|
875 |
+
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
876 |
+
# earlier versions are messed up and put the nodename in both
|
877 |
+
# sysname and nodename.
|
878 |
+
echo i386-sequent-sysv4
|
879 |
+
exit 0 ;;
|
880 |
+
i*86:UNIX_SV:4.2MP:2.*)
|
881 |
+
# Unixware is an offshoot of SVR4, but it has its own version
|
882 |
+
# number series starting with 2...
|
883 |
+
# I am not positive that other SVR4 systems won't match this,
|
884 |
+
# I just have to hope. -- rms.
|
885 |
+
# Use sysv4.2uw... so that sysv4* matches it.
|
886 |
+
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
887 |
+
exit 0 ;;
|
888 |
+
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
|
889 |
+
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
|
890 |
+
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
891 |
+
echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
|
892 |
+
else
|
893 |
+
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
894 |
+
fi
|
895 |
+
exit 0 ;;
|
896 |
+
i*86:*:5:[78]*)
|
897 |
+
case `/bin/uname -X | grep "^Machine"` in
|
898 |
+
*486*) UNAME_MACHINE=i486 ;;
|
899 |
+
*Pentium) UNAME_MACHINE=i586 ;;
|
900 |
+
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
|
901 |
+
esac
|
902 |
+
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
|
903 |
+
exit 0 ;;
|
904 |
+
i*86:*:3.2:*)
|
905 |
+
if test -f /usr/options/cb.name; then
|
906 |
+
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
907 |
+
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
908 |
+
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
909 |
+
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
910 |
+
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
911 |
+
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
912 |
+
&& UNAME_MACHINE=i586
|
913 |
+
(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
|
914 |
+
&& UNAME_MACHINE=i686
|
915 |
+
(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
|
916 |
+
&& UNAME_MACHINE=i686
|
917 |
+
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
918 |
+
else
|
919 |
+
echo ${UNAME_MACHINE}-pc-sysv32
|
920 |
+
fi
|
921 |
+
exit 0 ;;
|
922 |
+
i*86:*DOS:*:*)
|
923 |
+
echo ${UNAME_MACHINE}-pc-msdosdjgpp
|
924 |
+
exit 0 ;;
|
925 |
+
pc:*:*:*)
|
926 |
+
# Left here for compatibility:
|
927 |
+
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
928 |
+
# the processor, so we play safe by assuming i386.
|
929 |
+
echo i386-pc-msdosdjgpp
|
930 |
+
exit 0 ;;
|
931 |
+
Intel:Mach:3*:*)
|
932 |
+
echo i386-pc-mach3
|
933 |
+
exit 0 ;;
|
934 |
+
paragon:*:*:*)
|
935 |
+
echo i860-intel-osf1
|
936 |
+
exit 0 ;;
|
937 |
+
i860:*:4.*:*) # i860-SVR4
|
938 |
+
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
939 |
+
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
|
940 |
+
else # Add other i860-SVR4 vendors below as they are discovered.
|
941 |
+
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
|
942 |
+
fi
|
943 |
+
exit 0 ;;
|
944 |
+
mini*:CTIX:SYS*5:*)
|
945 |
+
# "miniframe"
|
946 |
+
echo m68010-convergent-sysv
|
947 |
+
exit 0 ;;
|
948 |
+
M68*:*:R3V[567]*:*)
|
949 |
+
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
950 |
+
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
|
951 |
+
OS_REL=''
|
952 |
+
test -r /etc/.relid \
|
953 |
+
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
954 |
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
955 |
+
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
|
956 |
+
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
957 |
+
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
|
958 |
+
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
959 |
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
960 |
+
&& echo i486-ncr-sysv4 && exit 0 ;;
|
961 |
+
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
962 |
+
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
963 |
+
exit 0 ;;
|
964 |
+
mc68030:UNIX_System_V:4.*:*)
|
965 |
+
echo m68k-atari-sysv4
|
966 |
+
exit 0 ;;
|
967 |
+
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
968 |
+
echo i386-unknown-lynxos${UNAME_RELEASE}
|
969 |
+
exit 0 ;;
|
970 |
+
TSUNAMI:LynxOS:2.*:*)
|
971 |
+
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
972 |
+
exit 0 ;;
|
973 |
+
rs6000:LynxOS:2.*:*)
|
974 |
+
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
975 |
+
exit 0 ;;
|
976 |
+
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
977 |
+
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
978 |
+
exit 0 ;;
|
979 |
+
SM[BE]S:UNIX_SV:*:*)
|
980 |
+
echo mips-dde-sysv${UNAME_RELEASE}
|
981 |
+
exit 0 ;;
|
982 |
+
RM*:ReliantUNIX-*:*:*)
|
983 |
+
echo mips-sni-sysv4
|
984 |
+
exit 0 ;;
|
985 |
+
RM*:SINIX-*:*:*)
|
986 |
+
echo mips-sni-sysv4
|
987 |
+
exit 0 ;;
|
988 |
+
*:SINIX-*:*:*)
|
989 |
+
if uname -p 2>/dev/null >/dev/null ; then
|
990 |
+
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
991 |
+
echo ${UNAME_MACHINE}-sni-sysv4
|
992 |
+
else
|
993 |
+
echo ns32k-sni-sysv
|
994 |
+
fi
|
995 |
+
exit 0 ;;
|
996 |
+
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
997 |
+
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
998 |
+
echo i586-unisys-sysv4
|
999 |
+
exit 0 ;;
|
1000 |
+
*:UNIX_System_V:4*:FTX*)
|
1001 |
+
# From Gerald Hewes <hewes@openmarket.com>.
|
1002 |
+
# How about differentiating between stratus architectures? -djm
|
1003 |
+
echo hppa1.1-stratus-sysv4
|
1004 |
+
exit 0 ;;
|
1005 |
+
*:*:*:FTX*)
|
1006 |
+
# From seanf@swdc.stratus.com.
|
1007 |
+
echo i860-stratus-sysv4
|
1008 |
+
exit 0 ;;
|
1009 |
+
*:VOS:*:*)
|
1010 |
+
# From Paul.Green@stratus.com.
|
1011 |
+
echo hppa1.1-stratus-vos
|
1012 |
+
exit 0 ;;
|
1013 |
+
mc68*:A/UX:*:*)
|
1014 |
+
echo m68k-apple-aux${UNAME_RELEASE}
|
1015 |
+
exit 0 ;;
|
1016 |
+
news*:NEWS-OS:6*:*)
|
1017 |
+
echo mips-sony-newsos6
|
1018 |
+
exit 0 ;;
|
1019 |
+
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
1020 |
+
if [ -d /usr/nec ]; then
|
1021 |
+
echo mips-nec-sysv${UNAME_RELEASE}
|
1022 |
+
else
|
1023 |
+
echo mips-unknown-sysv${UNAME_RELEASE}
|
1024 |
+
fi
|
1025 |
+
exit 0 ;;
|
1026 |
+
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
1027 |
+
echo powerpc-be-beos
|
1028 |
+
exit 0 ;;
|
1029 |
+
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
|
1030 |
+
echo powerpc-apple-beos
|
1031 |
+
exit 0 ;;
|
1032 |
+
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
1033 |
+
echo i586-pc-beos
|
1034 |
+
exit 0 ;;
|
1035 |
+
SX-4:SUPER-UX:*:*)
|
1036 |
+
echo sx4-nec-superux${UNAME_RELEASE}
|
1037 |
+
exit 0 ;;
|
1038 |
+
SX-5:SUPER-UX:*:*)
|
1039 |
+
echo sx5-nec-superux${UNAME_RELEASE}
|
1040 |
+
exit 0 ;;
|
1041 |
+
Power*:Rhapsody:*:*)
|
1042 |
+
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
1043 |
+
exit 0 ;;
|
1044 |
+
*:Rhapsody:*:*)
|
1045 |
+
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
|
1046 |
+
exit 0 ;;
|
1047 |
+
*:Darwin:*:*)
|
1048 |
+
echo `uname -p`-apple-darwin${UNAME_RELEASE}
|
1049 |
+
exit 0 ;;
|
1050 |
+
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
1051 |
+
if test "${UNAME_MACHINE}" = "x86pc"; then
|
1052 |
+
UNAME_MACHINE=pc
|
1053 |
+
fi
|
1054 |
+
echo `uname -p`-${UNAME_MACHINE}-nto-qnx
|
1055 |
+
exit 0 ;;
|
1056 |
+
*:QNX:*:4*)
|
1057 |
+
echo i386-pc-qnx
|
1058 |
+
exit 0 ;;
|
1059 |
+
NSR-[KW]:NONSTOP_KERNEL:*:*)
|
1060 |
+
echo nsr-tandem-nsk${UNAME_RELEASE}
|
1061 |
+
exit 0 ;;
|
1062 |
+
*:NonStop-UX:*:*)
|
1063 |
+
echo mips-compaq-nonstopux
|
1064 |
+
exit 0 ;;
|
1065 |
+
BS2000:POSIX*:*:*)
|
1066 |
+
echo bs2000-siemens-sysv
|
1067 |
+
exit 0 ;;
|
1068 |
+
DS/*:UNIX_System_V:*:*)
|
1069 |
+
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
|
1070 |
+
exit 0 ;;
|
1071 |
+
*:Plan9:*:*)
|
1072 |
+
# "uname -m" is not consistent, so use $cputype instead. 386
|
1073 |
+
# is converted to i386 for consistency with other x86
|
1074 |
+
# operating systems.
|
1075 |
+
if test "$cputype" = "386"; then
|
1076 |
+
UNAME_MACHINE=i386
|
1077 |
+
else
|
1078 |
+
UNAME_MACHINE="$cputype"
|
1079 |
+
fi
|
1080 |
+
echo ${UNAME_MACHINE}-unknown-plan9
|
1081 |
+
exit 0 ;;
|
1082 |
+
i*86:OS/2:*:*)
|
1083 |
+
# If we were able to find `uname', then EMX Unix compatibility
|
1084 |
+
# is probably installed.
|
1085 |
+
echo ${UNAME_MACHINE}-pc-os2-emx
|
1086 |
+
exit 0 ;;
|
1087 |
+
*:TOPS-10:*:*)
|
1088 |
+
echo pdp10-unknown-tops10
|
1089 |
+
exit 0 ;;
|
1090 |
+
*:TENEX:*:*)
|
1091 |
+
echo pdp10-unknown-tenex
|
1092 |
+
exit 0 ;;
|
1093 |
+
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
|
1094 |
+
echo pdp10-dec-tops20
|
1095 |
+
exit 0 ;;
|
1096 |
+
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
|
1097 |
+
echo pdp10-xkl-tops20
|
1098 |
+
exit 0 ;;
|
1099 |
+
*:TOPS-20:*:*)
|
1100 |
+
echo pdp10-unknown-tops20
|
1101 |
+
exit 0 ;;
|
1102 |
+
*:ITS:*:*)
|
1103 |
+
echo pdp10-unknown-its
|
1104 |
+
exit 0 ;;
|
1105 |
+
i*86:XTS-300:*:STOP)
|
1106 |
+
echo ${UNAME_MACHINE}-unknown-stop
|
1107 |
+
exit 0 ;;
|
1108 |
+
i*86:atheos:*:*)
|
1109 |
+
echo ${UNAME_MACHINE}-unknown-atheos
|
1110 |
+
exit 0 ;;
|
1111 |
+
esac
|
1112 |
+
|
1113 |
+
#echo '(No uname command or uname output not recognized.)' 1>&2
|
1114 |
+
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
1115 |
+
|
1116 |
+
eval $set_cc_for_build
|
1117 |
+
cat >$dummy.c <<EOF
|
1118 |
+
#ifdef _SEQUENT_
|
1119 |
+
# include <sys/types.h>
|
1120 |
+
# include <sys/utsname.h>
|
1121 |
+
#endif
|
1122 |
+
main ()
|
1123 |
+
{
|
1124 |
+
#if defined (sony)
|
1125 |
+
#if defined (MIPSEB)
|
1126 |
+
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
1127 |
+
I don't know.... */
|
1128 |
+
printf ("mips-sony-bsd\n"); exit (0);
|
1129 |
+
#else
|
1130 |
+
#include <sys/param.h>
|
1131 |
+
printf ("m68k-sony-newsos%s\n",
|
1132 |
+
#ifdef NEWSOS4
|
1133 |
+
"4"
|
1134 |
+
#else
|
1135 |
+
""
|
1136 |
+
#endif
|
1137 |
+
); exit (0);
|
1138 |
+
#endif
|
1139 |
+
#endif
|
1140 |
+
|
1141 |
+
#if defined (__arm) && defined (__acorn) && defined (__unix)
|
1142 |
+
printf ("arm-acorn-riscix"); exit (0);
|
1143 |
+
#endif
|
1144 |
+
|
1145 |
+
#if defined (hp300) && !defined (hpux)
|
1146 |
+
printf ("m68k-hp-bsd\n"); exit (0);
|
1147 |
+
#endif
|
1148 |
+
|
1149 |
+
#if defined (NeXT)
|
1150 |
+
#if !defined (__ARCHITECTURE__)
|
1151 |
+
#define __ARCHITECTURE__ "m68k"
|
1152 |
+
#endif
|
1153 |
+
int version;
|
1154 |
+
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
1155 |
+
if (version < 4)
|
1156 |
+
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
1157 |
+
else
|
1158 |
+
printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
|
1159 |
+
exit (0);
|
1160 |
+
#endif
|
1161 |
+
|
1162 |
+
#if defined (MULTIMAX) || defined (n16)
|
1163 |
+
#if defined (UMAXV)
|
1164 |
+
printf ("ns32k-encore-sysv\n"); exit (0);
|
1165 |
+
#else
|
1166 |
+
#if defined (CMU)
|
1167 |
+
printf ("ns32k-encore-mach\n"); exit (0);
|
1168 |
+
#else
|
1169 |
+
printf ("ns32k-encore-bsd\n"); exit (0);
|
1170 |
+
#endif
|
1171 |
+
#endif
|
1172 |
+
#endif
|
1173 |
+
|
1174 |
+
#if defined (__386BSD__)
|
1175 |
+
printf ("i386-pc-bsd\n"); exit (0);
|
1176 |
+
#endif
|
1177 |
+
|
1178 |
+
#if defined (sequent)
|
1179 |
+
#if defined (i386)
|
1180 |
+
printf ("i386-sequent-dynix\n"); exit (0);
|
1181 |
+
#endif
|
1182 |
+
#if defined (ns32000)
|
1183 |
+
printf ("ns32k-sequent-dynix\n"); exit (0);
|
1184 |
+
#endif
|
1185 |
+
#endif
|
1186 |
+
|
1187 |
+
#if defined (_SEQUENT_)
|
1188 |
+
struct utsname un;
|
1189 |
+
|
1190 |
+
uname(&un);
|
1191 |
+
|
1192 |
+
if (strncmp(un.version, "V2", 2) == 0) {
|
1193 |
+
printf ("i386-sequent-ptx2\n"); exit (0);
|
1194 |
+
}
|
1195 |
+
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
|
1196 |
+
printf ("i386-sequent-ptx1\n"); exit (0);
|
1197 |
+
}
|
1198 |
+
printf ("i386-sequent-ptx\n"); exit (0);
|
1199 |
+
|
1200 |
+
#endif
|
1201 |
+
|
1202 |
+
#if defined (vax)
|
1203 |
+
# if !defined (ultrix)
|
1204 |
+
# include <sys/param.h>
|
1205 |
+
# if defined (BSD)
|
1206 |
+
# if BSD == 43
|
1207 |
+
printf ("vax-dec-bsd4.3\n"); exit (0);
|
1208 |
+
# else
|
1209 |
+
# if BSD == 199006
|
1210 |
+
printf ("vax-dec-bsd4.3reno\n"); exit (0);
|
1211 |
+
# else
|
1212 |
+
printf ("vax-dec-bsd\n"); exit (0);
|
1213 |
+
# endif
|
1214 |
+
# endif
|
1215 |
+
# else
|
1216 |
+
printf ("vax-dec-bsd\n"); exit (0);
|
1217 |
+
# endif
|
1218 |
+
# else
|
1219 |
+
printf ("vax-dec-ultrix\n"); exit (0);
|
1220 |
+
# endif
|
1221 |
+
#endif
|
1222 |
+
|
1223 |
+
#if defined (alliant) && defined (i860)
|
1224 |
+
printf ("i860-alliant-bsd\n"); exit (0);
|
1225 |
+
#endif
|
1226 |
+
|
1227 |
+
exit (1);
|
1228 |
+
}
|
1229 |
+
EOF
|
1230 |
+
|
1231 |
+
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
|
1232 |
+
rm -f $dummy.c $dummy
|
1233 |
+
|
1234 |
+
# Apollos put the system type in the environment.
|
1235 |
+
|
1236 |
+
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
1237 |
+
|
1238 |
+
# Convex versions that predate uname can use getsysinfo(1)
|
1239 |
+
|
1240 |
+
if [ -x /usr/convex/getsysinfo ]
|
1241 |
+
then
|
1242 |
+
case `getsysinfo -f cpu_type` in
|
1243 |
+
c1*)
|
1244 |
+
echo c1-convex-bsd
|
1245 |
+
exit 0 ;;
|
1246 |
+
c2*)
|
1247 |
+
if getsysinfo -f scalar_acc
|
1248 |
+
then echo c32-convex-bsd
|
1249 |
+
else echo c2-convex-bsd
|
1250 |
+
fi
|
1251 |
+
exit 0 ;;
|
1252 |
+
c34*)
|
1253 |
+
echo c34-convex-bsd
|
1254 |
+
exit 0 ;;
|
1255 |
+
c38*)
|
1256 |
+
echo c38-convex-bsd
|
1257 |
+
exit 0 ;;
|
1258 |
+
c4*)
|
1259 |
+
echo c4-convex-bsd
|
1260 |
+
exit 0 ;;
|
1261 |
+
esac
|
1262 |
+
fi
|
1263 |
+
|
1264 |
+
cat >&2 <<EOF
|
1265 |
+
$0: unable to guess system type
|
1266 |
+
|
1267 |
+
This script, last modified $timestamp, has failed to recognize
|
1268 |
+
the operating system you are using. It is advised that you
|
1269 |
+
download the most up to date version of the config scripts from
|
1270 |
+
|
1271 |
+
ftp://ftp.gnu.org/pub/gnu/config/
|
1272 |
+
|
1273 |
+
If the version you run ($0) is already up to date, please
|
1274 |
+
send the following data and any information you think might be
|
1275 |
+
pertinent to <config-patches@gnu.org> in order to provide the needed
|
1276 |
+
information to handle your system.
|
1277 |
+
|
1278 |
+
config.guess timestamp = $timestamp
|
1279 |
+
|
1280 |
+
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
1281 |
+
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
1282 |
+
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
1283 |
+
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
1284 |
+
|
1285 |
+
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
|
1286 |
+
/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
|
1287 |
+
|
1288 |
+
hostinfo = `(hostinfo) 2>/dev/null`
|
1289 |
+
/bin/universe = `(/bin/universe) 2>/dev/null`
|
1290 |
+
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
|
1291 |
+
/bin/arch = `(/bin/arch) 2>/dev/null`
|
1292 |
+
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
|
1293 |
+
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
|
1294 |
+
|
1295 |
+
UNAME_MACHINE = ${UNAME_MACHINE}
|
1296 |
+
UNAME_RELEASE = ${UNAME_RELEASE}
|
1297 |
+
UNAME_SYSTEM = ${UNAME_SYSTEM}
|
1298 |
+
UNAME_VERSION = ${UNAME_VERSION}
|
1299 |
+
EOF
|
1300 |
+
|
1301 |
+
exit 1
|
1302 |
+
|
1303 |
+
# Local variables:
|
1304 |
+
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
1305 |
+
# time-stamp-start: "timestamp='"
|
1306 |
+
# time-stamp-format: "%:y-%02m-%02d"
|
1307 |
+
# time-stamp-end: "'"
|
1308 |
+
# End:
|
portaudio/bindings/cpp/build/gnu/config.sub
ADDED
@@ -0,0 +1,1505 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#! /bin/sh
|
2 |
+
# Configuration validation subroutine script.
|
3 |
+
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
4 |
+
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
5 |
+
|
6 |
+
timestamp='2003-07-17'
|
7 |
+
|
8 |
+
# This file is (in principle) common to ALL GNU software.
|
9 |
+
# The presence of a machine in this file suggests that SOME GNU software
|
10 |
+
# can handle that machine. It does not imply ALL GNU software can.
|
11 |
+
#
|
12 |
+
# This file is free software; you can redistribute it and/or modify
|
13 |
+
# it under the terms of the GNU General Public License as published by
|
14 |
+
# the Free Software Foundation; either version 2 of the License, or
|
15 |
+
# (at your option) any later version.
|
16 |
+
#
|
17 |
+
# This program is distributed in the hope that it will be useful,
|
18 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
+
# GNU General Public License for more details.
|
21 |
+
#
|
22 |
+
# You should have received a copy of the GNU General Public License
|
23 |
+
# along with this program; if not, write to the Free Software
|
24 |
+
# Foundation, Inc., 59 Temple Place - Suite 330,
|
25 |
+
# Boston, MA 02111-1307, USA.
|
26 |
+
|
27 |
+
# As a special exception to the GNU General Public License, if you
|
28 |
+
# distribute this file as part of a program that contains a
|
29 |
+
# configuration script generated by Autoconf, you may include it under
|
30 |
+
# the same distribution terms that you use for the rest of that program.
|
31 |
+
|
32 |
+
# Please send patches to <config-patches@gnu.org>. Submit a context
|
33 |
+
# diff and a properly formatted ChangeLog entry.
|
34 |
+
#
|
35 |
+
# Configuration subroutine to validate and canonicalize a configuration type.
|
36 |
+
# Supply the specified configuration type as an argument.
|
37 |
+
# If it is invalid, we print an error message on stderr and exit with code 1.
|
38 |
+
# Otherwise, we print the canonical config type on stdout and succeed.
|
39 |
+
|
40 |
+
# This file is supposed to be the same for all GNU packages
|
41 |
+
# and recognize all the CPU types, system types and aliases
|
42 |
+
# that are meaningful with *any* GNU software.
|
43 |
+
# Each package is responsible for reporting which valid configurations
|
44 |
+
# it does not support. The user should be able to distinguish
|
45 |
+
# a failure to support a valid configuration from a meaningless
|
46 |
+
# configuration.
|
47 |
+
|
48 |
+
# The goal of this file is to map all the various variations of a given
|
49 |
+
# machine specification into a single specification in the form:
|
50 |
+
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
51 |
+
# or in some cases, the newer four-part form:
|
52 |
+
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
53 |
+
# It is wrong to echo any other type of specification.
|
54 |
+
|
55 |
+
me=`echo "$0" | sed -e 's,.*/,,'`
|
56 |
+
|
57 |
+
usage="\
|
58 |
+
Usage: $0 [OPTION] CPU-MFR-OPSYS
|
59 |
+
$0 [OPTION] ALIAS
|
60 |
+
|
61 |
+
Canonicalize a configuration name.
|
62 |
+
|
63 |
+
Operation modes:
|
64 |
+
-h, --help print this help, then exit
|
65 |
+
-t, --time-stamp print date of last modification, then exit
|
66 |
+
-v, --version print version number, then exit
|
67 |
+
|
68 |
+
Report bugs and patches to <config-patches@gnu.org>."
|
69 |
+
|
70 |
+
version="\
|
71 |
+
GNU config.sub ($timestamp)
|
72 |
+
|
73 |
+
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
74 |
+
Free Software Foundation, Inc.
|
75 |
+
|
76 |
+
This is free software; see the source for copying conditions. There is NO
|
77 |
+
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
78 |
+
|
79 |
+
help="
|
80 |
+
Try \`$me --help' for more information."
|
81 |
+
|
82 |
+
# Parse command line
|
83 |
+
while test $# -gt 0 ; do
|
84 |
+
case $1 in
|
85 |
+
--time-stamp | --time* | -t )
|
86 |
+
echo "$timestamp" ; exit 0 ;;
|
87 |
+
--version | -v )
|
88 |
+
echo "$version" ; exit 0 ;;
|
89 |
+
--help | --h* | -h )
|
90 |
+
echo "$usage"; exit 0 ;;
|
91 |
+
-- ) # Stop option processing
|
92 |
+
shift; break ;;
|
93 |
+
- ) # Use stdin as input.
|
94 |
+
break ;;
|
95 |
+
-* )
|
96 |
+
echo "$me: invalid option $1$help"
|
97 |
+
exit 1 ;;
|
98 |
+
|
99 |
+
*local*)
|
100 |
+
# First pass through any local machine types.
|
101 |
+
echo $1
|
102 |
+
exit 0;;
|
103 |
+
|
104 |
+
* )
|
105 |
+
break ;;
|
106 |
+
esac
|
107 |
+
done
|
108 |
+
|
109 |
+
case $# in
|
110 |
+
0) echo "$me: missing argument$help" >&2
|
111 |
+
exit 1;;
|
112 |
+
1) ;;
|
113 |
+
*) echo "$me: too many arguments$help" >&2
|
114 |
+
exit 1;;
|
115 |
+
esac
|
116 |
+
|
117 |
+
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
|
118 |
+
# Here we must recognize all the valid KERNEL-OS combinations.
|
119 |
+
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
120 |
+
case $maybe_os in
|
121 |
+
nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
122 |
+
os=-$maybe_os
|
123 |
+
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
124 |
+
;;
|
125 |
+
*)
|
126 |
+
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
127 |
+
if [ $basic_machine != $1 ]
|
128 |
+
then os=`echo $1 | sed 's/.*-/-/'`
|
129 |
+
else os=; fi
|
130 |
+
;;
|
131 |
+
esac
|
132 |
+
|
133 |
+
### Let's recognize common machines as not being operating systems so
|
134 |
+
### that things like config.sub decstation-3100 work. We also
|
135 |
+
### recognize some manufacturers as not being operating systems, so we
|
136 |
+
### can provide default operating systems below.
|
137 |
+
case $os in
|
138 |
+
-sun*os*)
|
139 |
+
# Prevent following clause from handling this invalid input.
|
140 |
+
;;
|
141 |
+
-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
|
142 |
+
-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
|
143 |
+
-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
|
144 |
+
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
145 |
+
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
146 |
+
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
147 |
+
-apple | -axis)
|
148 |
+
os=
|
149 |
+
basic_machine=$1
|
150 |
+
;;
|
151 |
+
-sim | -cisco | -oki | -wec | -winbond)
|
152 |
+
os=
|
153 |
+
basic_machine=$1
|
154 |
+
;;
|
155 |
+
-scout)
|
156 |
+
;;
|
157 |
+
-wrs)
|
158 |
+
os=-vxworks
|
159 |
+
basic_machine=$1
|
160 |
+
;;
|
161 |
+
-chorusos*)
|
162 |
+
os=-chorusos
|
163 |
+
basic_machine=$1
|
164 |
+
;;
|
165 |
+
-chorusrdb)
|
166 |
+
os=-chorusrdb
|
167 |
+
basic_machine=$1
|
168 |
+
;;
|
169 |
+
-hiux*)
|
170 |
+
os=-hiuxwe2
|
171 |
+
;;
|
172 |
+
-sco5)
|
173 |
+
os=-sco3.2v5
|
174 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
175 |
+
;;
|
176 |
+
-sco4)
|
177 |
+
os=-sco3.2v4
|
178 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
179 |
+
;;
|
180 |
+
-sco3.2.[4-9]*)
|
181 |
+
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
|
182 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
183 |
+
;;
|
184 |
+
-sco3.2v[4-9]*)
|
185 |
+
# Don't forget version if it is 3.2v4 or newer.
|
186 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
187 |
+
;;
|
188 |
+
-sco*)
|
189 |
+
os=-sco3.2v2
|
190 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
191 |
+
;;
|
192 |
+
-udk*)
|
193 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
194 |
+
;;
|
195 |
+
-isc)
|
196 |
+
os=-isc2.2
|
197 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
198 |
+
;;
|
199 |
+
-clix*)
|
200 |
+
basic_machine=clipper-intergraph
|
201 |
+
;;
|
202 |
+
-isc*)
|
203 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
204 |
+
;;
|
205 |
+
-lynx*)
|
206 |
+
os=-lynxos
|
207 |
+
;;
|
208 |
+
-ptx*)
|
209 |
+
basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
|
210 |
+
;;
|
211 |
+
-windowsnt*)
|
212 |
+
os=`echo $os | sed -e 's/windowsnt/winnt/'`
|
213 |
+
;;
|
214 |
+
-psos*)
|
215 |
+
os=-psos
|
216 |
+
;;
|
217 |
+
-mint | -mint[0-9]*)
|
218 |
+
basic_machine=m68k-atari
|
219 |
+
os=-mint
|
220 |
+
;;
|
221 |
+
esac
|
222 |
+
|
223 |
+
# Decode aliases for certain CPU-COMPANY combinations.
|
224 |
+
case $basic_machine in
|
225 |
+
# Recognize the basic CPU types without company name.
|
226 |
+
# Some are omitted here because they have special meanings below.
|
227 |
+
1750a | 580 \
|
228 |
+
| a29k \
|
229 |
+
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
230 |
+
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
231 |
+
| am33_2.0 \
|
232 |
+
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
233 |
+
| c4x | clipper \
|
234 |
+
| d10v | d30v | dlx | dsp16xx \
|
235 |
+
| fr30 | frv \
|
236 |
+
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
237 |
+
| i370 | i860 | i960 | ia64 \
|
238 |
+
| ip2k | iq2000 \
|
239 |
+
| m32r | m68000 | m68k | m88k | mcore \
|
240 |
+
| mips | mipsbe | mipseb | mipsel | mipsle \
|
241 |
+
| mips16 \
|
242 |
+
| mips64 | mips64el \
|
243 |
+
| mips64vr | mips64vrel \
|
244 |
+
| mips64orion | mips64orionel \
|
245 |
+
| mips64vr4100 | mips64vr4100el \
|
246 |
+
| mips64vr4300 | mips64vr4300el \
|
247 |
+
| mips64vr5000 | mips64vr5000el \
|
248 |
+
| mipsisa32 | mipsisa32el \
|
249 |
+
| mipsisa32r2 | mipsisa32r2el \
|
250 |
+
| mipsisa64 | mipsisa64el \
|
251 |
+
| mipsisa64sb1 | mipsisa64sb1el \
|
252 |
+
| mipsisa64sr71k | mipsisa64sr71kel \
|
253 |
+
| mipstx39 | mipstx39el \
|
254 |
+
| mn10200 | mn10300 \
|
255 |
+
| msp430 \
|
256 |
+
| ns16k | ns32k \
|
257 |
+
| openrisc | or32 \
|
258 |
+
| pdp10 | pdp11 | pj | pjl \
|
259 |
+
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
260 |
+
| pyramid \
|
261 |
+
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
262 |
+
| sh64 | sh64le \
|
263 |
+
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
|
264 |
+
| strongarm \
|
265 |
+
| tahoe | thumb | tic4x | tic80 | tron \
|
266 |
+
| v850 | v850e \
|
267 |
+
| we32k \
|
268 |
+
| x86 | xscale | xstormy16 | xtensa \
|
269 |
+
| z8k)
|
270 |
+
basic_machine=$basic_machine-unknown
|
271 |
+
;;
|
272 |
+
m6811 | m68hc11 | m6812 | m68hc12)
|
273 |
+
# Motorola 68HC11/12.
|
274 |
+
basic_machine=$basic_machine-unknown
|
275 |
+
os=-none
|
276 |
+
;;
|
277 |
+
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
|
278 |
+
;;
|
279 |
+
|
280 |
+
# We use `pc' rather than `unknown'
|
281 |
+
# because (1) that's what they normally are, and
|
282 |
+
# (2) the word "unknown" tends to confuse beginning users.
|
283 |
+
i*86 | x86_64)
|
284 |
+
basic_machine=$basic_machine-pc
|
285 |
+
;;
|
286 |
+
# Object if more than one company name word.
|
287 |
+
*-*-*)
|
288 |
+
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
289 |
+
exit 1
|
290 |
+
;;
|
291 |
+
# Recognize the basic CPU types with company name.
|
292 |
+
580-* \
|
293 |
+
| a29k-* \
|
294 |
+
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
295 |
+
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
296 |
+
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
297 |
+
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
298 |
+
| avr-* \
|
299 |
+
| bs2000-* \
|
300 |
+
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
|
301 |
+
| clipper-* | cydra-* \
|
302 |
+
| d10v-* | d30v-* | dlx-* \
|
303 |
+
| elxsi-* \
|
304 |
+
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
305 |
+
| h8300-* | h8500-* \
|
306 |
+
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
307 |
+
| i*86-* | i860-* | i960-* | ia64-* \
|
308 |
+
| ip2k-* | iq2000-* \
|
309 |
+
| m32r-* \
|
310 |
+
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
311 |
+
| m88110-* | m88k-* | mcore-* \
|
312 |
+
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
313 |
+
| mips16-* \
|
314 |
+
| mips64-* | mips64el-* \
|
315 |
+
| mips64vr-* | mips64vrel-* \
|
316 |
+
| mips64orion-* | mips64orionel-* \
|
317 |
+
| mips64vr4100-* | mips64vr4100el-* \
|
318 |
+
| mips64vr4300-* | mips64vr4300el-* \
|
319 |
+
| mips64vr5000-* | mips64vr5000el-* \
|
320 |
+
| mipsisa32-* | mipsisa32el-* \
|
321 |
+
| mipsisa32r2-* | mipsisa32r2el-* \
|
322 |
+
| mipsisa64-* | mipsisa64el-* \
|
323 |
+
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
324 |
+
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
325 |
+
| mipstx39-* | mipstx39el-* \
|
326 |
+
| msp430-* \
|
327 |
+
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
|
328 |
+
| orion-* \
|
329 |
+
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
330 |
+
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
331 |
+
| pyramid-* \
|
332 |
+
| romp-* | rs6000-* \
|
333 |
+
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
|
334 |
+
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
335 |
+
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
|
336 |
+
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
|
337 |
+
| tahoe-* | thumb-* \
|
338 |
+
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
339 |
+
| tron-* \
|
340 |
+
| v850-* | v850e-* | vax-* \
|
341 |
+
| we32k-* \
|
342 |
+
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
|
343 |
+
| xtensa-* \
|
344 |
+
| ymp-* \
|
345 |
+
| z8k-*)
|
346 |
+
;;
|
347 |
+
# Recognize the various machine names and aliases which stand
|
348 |
+
# for a CPU type and a company and sometimes even an OS.
|
349 |
+
386bsd)
|
350 |
+
basic_machine=i386-unknown
|
351 |
+
os=-bsd
|
352 |
+
;;
|
353 |
+
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
|
354 |
+
basic_machine=m68000-att
|
355 |
+
;;
|
356 |
+
3b*)
|
357 |
+
basic_machine=we32k-att
|
358 |
+
;;
|
359 |
+
a29khif)
|
360 |
+
basic_machine=a29k-amd
|
361 |
+
os=-udi
|
362 |
+
;;
|
363 |
+
adobe68k)
|
364 |
+
basic_machine=m68010-adobe
|
365 |
+
os=-scout
|
366 |
+
;;
|
367 |
+
alliant | fx80)
|
368 |
+
basic_machine=fx80-alliant
|
369 |
+
;;
|
370 |
+
altos | altos3068)
|
371 |
+
basic_machine=m68k-altos
|
372 |
+
;;
|
373 |
+
am29k)
|
374 |
+
basic_machine=a29k-none
|
375 |
+
os=-bsd
|
376 |
+
;;
|
377 |
+
amd64)
|
378 |
+
basic_machine=x86_64-pc
|
379 |
+
;;
|
380 |
+
amdahl)
|
381 |
+
basic_machine=580-amdahl
|
382 |
+
os=-sysv
|
383 |
+
;;
|
384 |
+
amiga | amiga-*)
|
385 |
+
basic_machine=m68k-unknown
|
386 |
+
;;
|
387 |
+
amigaos | amigados)
|
388 |
+
basic_machine=m68k-unknown
|
389 |
+
os=-amigaos
|
390 |
+
;;
|
391 |
+
amigaunix | amix)
|
392 |
+
basic_machine=m68k-unknown
|
393 |
+
os=-sysv4
|
394 |
+
;;
|
395 |
+
apollo68)
|
396 |
+
basic_machine=m68k-apollo
|
397 |
+
os=-sysv
|
398 |
+
;;
|
399 |
+
apollo68bsd)
|
400 |
+
basic_machine=m68k-apollo
|
401 |
+
os=-bsd
|
402 |
+
;;
|
403 |
+
aux)
|
404 |
+
basic_machine=m68k-apple
|
405 |
+
os=-aux
|
406 |
+
;;
|
407 |
+
balance)
|
408 |
+
basic_machine=ns32k-sequent
|
409 |
+
os=-dynix
|
410 |
+
;;
|
411 |
+
c90)
|
412 |
+
basic_machine=c90-cray
|
413 |
+
os=-unicos
|
414 |
+
;;
|
415 |
+
convex-c1)
|
416 |
+
basic_machine=c1-convex
|
417 |
+
os=-bsd
|
418 |
+
;;
|
419 |
+
convex-c2)
|
420 |
+
basic_machine=c2-convex
|
421 |
+
os=-bsd
|
422 |
+
;;
|
423 |
+
convex-c32)
|
424 |
+
basic_machine=c32-convex
|
425 |
+
os=-bsd
|
426 |
+
;;
|
427 |
+
convex-c34)
|
428 |
+
basic_machine=c34-convex
|
429 |
+
os=-bsd
|
430 |
+
;;
|
431 |
+
convex-c38)
|
432 |
+
basic_machine=c38-convex
|
433 |
+
os=-bsd
|
434 |
+
;;
|
435 |
+
cray | j90)
|
436 |
+
basic_machine=j90-cray
|
437 |
+
os=-unicos
|
438 |
+
;;
|
439 |
+
crds | unos)
|
440 |
+
basic_machine=m68k-crds
|
441 |
+
;;
|
442 |
+
cris | cris-* | etrax*)
|
443 |
+
basic_machine=cris-axis
|
444 |
+
;;
|
445 |
+
da30 | da30-*)
|
446 |
+
basic_machine=m68k-da30
|
447 |
+
;;
|
448 |
+
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
449 |
+
basic_machine=mips-dec
|
450 |
+
;;
|
451 |
+
decsystem10* | dec10*)
|
452 |
+
basic_machine=pdp10-dec
|
453 |
+
os=-tops10
|
454 |
+
;;
|
455 |
+
decsystem20* | dec20*)
|
456 |
+
basic_machine=pdp10-dec
|
457 |
+
os=-tops20
|
458 |
+
;;
|
459 |
+
delta | 3300 | motorola-3300 | motorola-delta \
|
460 |
+
| 3300-motorola | delta-motorola)
|
461 |
+
basic_machine=m68k-motorola
|
462 |
+
;;
|
463 |
+
delta88)
|
464 |
+
basic_machine=m88k-motorola
|
465 |
+
os=-sysv3
|
466 |
+
;;
|
467 |
+
dpx20 | dpx20-*)
|
468 |
+
basic_machine=rs6000-bull
|
469 |
+
os=-bosx
|
470 |
+
;;
|
471 |
+
dpx2* | dpx2*-bull)
|
472 |
+
basic_machine=m68k-bull
|
473 |
+
os=-sysv3
|
474 |
+
;;
|
475 |
+
ebmon29k)
|
476 |
+
basic_machine=a29k-amd
|
477 |
+
os=-ebmon
|
478 |
+
;;
|
479 |
+
elxsi)
|
480 |
+
basic_machine=elxsi-elxsi
|
481 |
+
os=-bsd
|
482 |
+
;;
|
483 |
+
encore | umax | mmax)
|
484 |
+
basic_machine=ns32k-encore
|
485 |
+
;;
|
486 |
+
es1800 | OSE68k | ose68k | ose | OSE)
|
487 |
+
basic_machine=m68k-ericsson
|
488 |
+
os=-ose
|
489 |
+
;;
|
490 |
+
fx2800)
|
491 |
+
basic_machine=i860-alliant
|
492 |
+
;;
|
493 |
+
genix)
|
494 |
+
basic_machine=ns32k-ns
|
495 |
+
;;
|
496 |
+
gmicro)
|
497 |
+
basic_machine=tron-gmicro
|
498 |
+
os=-sysv
|
499 |
+
;;
|
500 |
+
go32)
|
501 |
+
basic_machine=i386-pc
|
502 |
+
os=-go32
|
503 |
+
;;
|
504 |
+
h3050r* | hiux*)
|
505 |
+
basic_machine=hppa1.1-hitachi
|
506 |
+
os=-hiuxwe2
|
507 |
+
;;
|
508 |
+
h8300hms)
|
509 |
+
basic_machine=h8300-hitachi
|
510 |
+
os=-hms
|
511 |
+
;;
|
512 |
+
h8300xray)
|
513 |
+
basic_machine=h8300-hitachi
|
514 |
+
os=-xray
|
515 |
+
;;
|
516 |
+
h8500hms)
|
517 |
+
basic_machine=h8500-hitachi
|
518 |
+
os=-hms
|
519 |
+
;;
|
520 |
+
harris)
|
521 |
+
basic_machine=m88k-harris
|
522 |
+
os=-sysv3
|
523 |
+
;;
|
524 |
+
hp300-*)
|
525 |
+
basic_machine=m68k-hp
|
526 |
+
;;
|
527 |
+
hp300bsd)
|
528 |
+
basic_machine=m68k-hp
|
529 |
+
os=-bsd
|
530 |
+
;;
|
531 |
+
hp300hpux)
|
532 |
+
basic_machine=m68k-hp
|
533 |
+
os=-hpux
|
534 |
+
;;
|
535 |
+
hp3k9[0-9][0-9] | hp9[0-9][0-9])
|
536 |
+
basic_machine=hppa1.0-hp
|
537 |
+
;;
|
538 |
+
hp9k2[0-9][0-9] | hp9k31[0-9])
|
539 |
+
basic_machine=m68000-hp
|
540 |
+
;;
|
541 |
+
hp9k3[2-9][0-9])
|
542 |
+
basic_machine=m68k-hp
|
543 |
+
;;
|
544 |
+
hp9k6[0-9][0-9] | hp6[0-9][0-9])
|
545 |
+
basic_machine=hppa1.0-hp
|
546 |
+
;;
|
547 |
+
hp9k7[0-79][0-9] | hp7[0-79][0-9])
|
548 |
+
basic_machine=hppa1.1-hp
|
549 |
+
;;
|
550 |
+
hp9k78[0-9] | hp78[0-9])
|
551 |
+
# FIXME: really hppa2.0-hp
|
552 |
+
basic_machine=hppa1.1-hp
|
553 |
+
;;
|
554 |
+
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
|
555 |
+
# FIXME: really hppa2.0-hp
|
556 |
+
basic_machine=hppa1.1-hp
|
557 |
+
;;
|
558 |
+
hp9k8[0-9][13679] | hp8[0-9][13679])
|
559 |
+
basic_machine=hppa1.1-hp
|
560 |
+
;;
|
561 |
+
hp9k8[0-9][0-9] | hp8[0-9][0-9])
|
562 |
+
basic_machine=hppa1.0-hp
|
563 |
+
;;
|
564 |
+
hppa-next)
|
565 |
+
os=-nextstep3
|
566 |
+
;;
|
567 |
+
hppaosf)
|
568 |
+
basic_machine=hppa1.1-hp
|
569 |
+
os=-osf
|
570 |
+
;;
|
571 |
+
hppro)
|
572 |
+
basic_machine=hppa1.1-hp
|
573 |
+
os=-proelf
|
574 |
+
;;
|
575 |
+
i370-ibm* | ibm*)
|
576 |
+
basic_machine=i370-ibm
|
577 |
+
;;
|
578 |
+
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
579 |
+
i*86v32)
|
580 |
+
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
581 |
+
os=-sysv32
|
582 |
+
;;
|
583 |
+
i*86v4*)
|
584 |
+
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
585 |
+
os=-sysv4
|
586 |
+
;;
|
587 |
+
i*86v)
|
588 |
+
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
589 |
+
os=-sysv
|
590 |
+
;;
|
591 |
+
i*86sol2)
|
592 |
+
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
593 |
+
os=-solaris2
|
594 |
+
;;
|
595 |
+
i386mach)
|
596 |
+
basic_machine=i386-mach
|
597 |
+
os=-mach
|
598 |
+
;;
|
599 |
+
i386-vsta | vsta)
|
600 |
+
basic_machine=i386-unknown
|
601 |
+
os=-vsta
|
602 |
+
;;
|
603 |
+
iris | iris4d)
|
604 |
+
basic_machine=mips-sgi
|
605 |
+
case $os in
|
606 |
+
-irix*)
|
607 |
+
;;
|
608 |
+
*)
|
609 |
+
os=-irix4
|
610 |
+
;;
|
611 |
+
esac
|
612 |
+
;;
|
613 |
+
isi68 | isi)
|
614 |
+
basic_machine=m68k-isi
|
615 |
+
os=-sysv
|
616 |
+
;;
|
617 |
+
m88k-omron*)
|
618 |
+
basic_machine=m88k-omron
|
619 |
+
;;
|
620 |
+
magnum | m3230)
|
621 |
+
basic_machine=mips-mips
|
622 |
+
os=-sysv
|
623 |
+
;;
|
624 |
+
merlin)
|
625 |
+
basic_machine=ns32k-utek
|
626 |
+
os=-sysv
|
627 |
+
;;
|
628 |
+
mingw32)
|
629 |
+
basic_machine=i386-pc
|
630 |
+
os=-mingw32
|
631 |
+
;;
|
632 |
+
miniframe)
|
633 |
+
basic_machine=m68000-convergent
|
634 |
+
;;
|
635 |
+
*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
|
636 |
+
basic_machine=m68k-atari
|
637 |
+
os=-mint
|
638 |
+
;;
|
639 |
+
mips3*-*)
|
640 |
+
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
641 |
+
;;
|
642 |
+
mips3*)
|
643 |
+
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
644 |
+
;;
|
645 |
+
mmix*)
|
646 |
+
basic_machine=mmix-knuth
|
647 |
+
os=-mmixware
|
648 |
+
;;
|
649 |
+
monitor)
|
650 |
+
basic_machine=m68k-rom68k
|
651 |
+
os=-coff
|
652 |
+
;;
|
653 |
+
morphos)
|
654 |
+
basic_machine=powerpc-unknown
|
655 |
+
os=-morphos
|
656 |
+
;;
|
657 |
+
msdos)
|
658 |
+
basic_machine=i386-pc
|
659 |
+
os=-msdos
|
660 |
+
;;
|
661 |
+
mvs)
|
662 |
+
basic_machine=i370-ibm
|
663 |
+
os=-mvs
|
664 |
+
;;
|
665 |
+
ncr3000)
|
666 |
+
basic_machine=i486-ncr
|
667 |
+
os=-sysv4
|
668 |
+
;;
|
669 |
+
netbsd386)
|
670 |
+
basic_machine=i386-unknown
|
671 |
+
os=-netbsd
|
672 |
+
;;
|
673 |
+
netwinder)
|
674 |
+
basic_machine=armv4l-rebel
|
675 |
+
os=-linux
|
676 |
+
;;
|
677 |
+
news | news700 | news800 | news900)
|
678 |
+
basic_machine=m68k-sony
|
679 |
+
os=-newsos
|
680 |
+
;;
|
681 |
+
news1000)
|
682 |
+
basic_machine=m68030-sony
|
683 |
+
os=-newsos
|
684 |
+
;;
|
685 |
+
news-3600 | risc-news)
|
686 |
+
basic_machine=mips-sony
|
687 |
+
os=-newsos
|
688 |
+
;;
|
689 |
+
necv70)
|
690 |
+
basic_machine=v70-nec
|
691 |
+
os=-sysv
|
692 |
+
;;
|
693 |
+
next | m*-next )
|
694 |
+
basic_machine=m68k-next
|
695 |
+
case $os in
|
696 |
+
-nextstep* )
|
697 |
+
;;
|
698 |
+
-ns2*)
|
699 |
+
os=-nextstep2
|
700 |
+
;;
|
701 |
+
*)
|
702 |
+
os=-nextstep3
|
703 |
+
;;
|
704 |
+
esac
|
705 |
+
;;
|
706 |
+
nh3000)
|
707 |
+
basic_machine=m68k-harris
|
708 |
+
os=-cxux
|
709 |
+
;;
|
710 |
+
nh[45]000)
|
711 |
+
basic_machine=m88k-harris
|
712 |
+
os=-cxux
|
713 |
+
;;
|
714 |
+
nindy960)
|
715 |
+
basic_machine=i960-intel
|
716 |
+
os=-nindy
|
717 |
+
;;
|
718 |
+
mon960)
|
719 |
+
basic_machine=i960-intel
|
720 |
+
os=-mon960
|
721 |
+
;;
|
722 |
+
nonstopux)
|
723 |
+
basic_machine=mips-compaq
|
724 |
+
os=-nonstopux
|
725 |
+
;;
|
726 |
+
np1)
|
727 |
+
basic_machine=np1-gould
|
728 |
+
;;
|
729 |
+
nv1)
|
730 |
+
basic_machine=nv1-cray
|
731 |
+
os=-unicosmp
|
732 |
+
;;
|
733 |
+
nsr-tandem)
|
734 |
+
basic_machine=nsr-tandem
|
735 |
+
;;
|
736 |
+
op50n-* | op60c-*)
|
737 |
+
basic_machine=hppa1.1-oki
|
738 |
+
os=-proelf
|
739 |
+
;;
|
740 |
+
or32 | or32-*)
|
741 |
+
basic_machine=or32-unknown
|
742 |
+
os=-coff
|
743 |
+
;;
|
744 |
+
OSE68000 | ose68000)
|
745 |
+
basic_machine=m68000-ericsson
|
746 |
+
os=-ose
|
747 |
+
;;
|
748 |
+
os68k)
|
749 |
+
basic_machine=m68k-none
|
750 |
+
os=-os68k
|
751 |
+
;;
|
752 |
+
pa-hitachi)
|
753 |
+
basic_machine=hppa1.1-hitachi
|
754 |
+
os=-hiuxwe2
|
755 |
+
;;
|
756 |
+
paragon)
|
757 |
+
basic_machine=i860-intel
|
758 |
+
os=-osf
|
759 |
+
;;
|
760 |
+
pbd)
|
761 |
+
basic_machine=sparc-tti
|
762 |
+
;;
|
763 |
+
pbb)
|
764 |
+
basic_machine=m68k-tti
|
765 |
+
;;
|
766 |
+
pc532 | pc532-*)
|
767 |
+
basic_machine=ns32k-pc532
|
768 |
+
;;
|
769 |
+
pentium | p5 | k5 | k6 | nexgen | viac3)
|
770 |
+
basic_machine=i586-pc
|
771 |
+
;;
|
772 |
+
pentiumpro | p6 | 6x86 | athlon | athlon_*)
|
773 |
+
basic_machine=i686-pc
|
774 |
+
;;
|
775 |
+
pentiumii | pentium2 | pentiumiii | pentium3)
|
776 |
+
basic_machine=i686-pc
|
777 |
+
;;
|
778 |
+
pentium4)
|
779 |
+
basic_machine=i786-pc
|
780 |
+
;;
|
781 |
+
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
|
782 |
+
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
783 |
+
;;
|
784 |
+
pentiumpro-* | p6-* | 6x86-* | athlon-*)
|
785 |
+
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
786 |
+
;;
|
787 |
+
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
|
788 |
+
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
789 |
+
;;
|
790 |
+
pentium4-*)
|
791 |
+
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
|
792 |
+
;;
|
793 |
+
pn)
|
794 |
+
basic_machine=pn-gould
|
795 |
+
;;
|
796 |
+
power) basic_machine=power-ibm
|
797 |
+
;;
|
798 |
+
ppc) basic_machine=powerpc-unknown
|
799 |
+
;;
|
800 |
+
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
801 |
+
;;
|
802 |
+
ppcle | powerpclittle | ppc-le | powerpc-little)
|
803 |
+
basic_machine=powerpcle-unknown
|
804 |
+
;;
|
805 |
+
ppcle-* | powerpclittle-*)
|
806 |
+
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
|
807 |
+
;;
|
808 |
+
ppc64) basic_machine=powerpc64-unknown
|
809 |
+
;;
|
810 |
+
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
|
811 |
+
;;
|
812 |
+
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
|
813 |
+
basic_machine=powerpc64le-unknown
|
814 |
+
;;
|
815 |
+
ppc64le-* | powerpc64little-*)
|
816 |
+
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
|
817 |
+
;;
|
818 |
+
ps2)
|
819 |
+
basic_machine=i386-ibm
|
820 |
+
;;
|
821 |
+
pw32)
|
822 |
+
basic_machine=i586-unknown
|
823 |
+
os=-pw32
|
824 |
+
;;
|
825 |
+
rom68k)
|
826 |
+
basic_machine=m68k-rom68k
|
827 |
+
os=-coff
|
828 |
+
;;
|
829 |
+
rm[46]00)
|
830 |
+
basic_machine=mips-siemens
|
831 |
+
;;
|
832 |
+
rtpc | rtpc-*)
|
833 |
+
basic_machine=romp-ibm
|
834 |
+
;;
|
835 |
+
s390 | s390-*)
|
836 |
+
basic_machine=s390-ibm
|
837 |
+
;;
|
838 |
+
s390x | s390x-*)
|
839 |
+
basic_machine=s390x-ibm
|
840 |
+
;;
|
841 |
+
sa29200)
|
842 |
+
basic_machine=a29k-amd
|
843 |
+
os=-udi
|
844 |
+
;;
|
845 |
+
sb1)
|
846 |
+
basic_machine=mipsisa64sb1-unknown
|
847 |
+
;;
|
848 |
+
sb1el)
|
849 |
+
basic_machine=mipsisa64sb1el-unknown
|
850 |
+
;;
|
851 |
+
sei)
|
852 |
+
basic_machine=mips-sei
|
853 |
+
os=-seiux
|
854 |
+
;;
|
855 |
+
sequent)
|
856 |
+
basic_machine=i386-sequent
|
857 |
+
;;
|
858 |
+
sh)
|
859 |
+
basic_machine=sh-hitachi
|
860 |
+
os=-hms
|
861 |
+
;;
|
862 |
+
sh64)
|
863 |
+
basic_machine=sh64-unknown
|
864 |
+
;;
|
865 |
+
sparclite-wrs | simso-wrs)
|
866 |
+
basic_machine=sparclite-wrs
|
867 |
+
os=-vxworks
|
868 |
+
;;
|
869 |
+
sps7)
|
870 |
+
basic_machine=m68k-bull
|
871 |
+
os=-sysv2
|
872 |
+
;;
|
873 |
+
spur)
|
874 |
+
basic_machine=spur-unknown
|
875 |
+
;;
|
876 |
+
st2000)
|
877 |
+
basic_machine=m68k-tandem
|
878 |
+
;;
|
879 |
+
stratus)
|
880 |
+
basic_machine=i860-stratus
|
881 |
+
os=-sysv4
|
882 |
+
;;
|
883 |
+
sun2)
|
884 |
+
basic_machine=m68000-sun
|
885 |
+
;;
|
886 |
+
sun2os3)
|
887 |
+
basic_machine=m68000-sun
|
888 |
+
os=-sunos3
|
889 |
+
;;
|
890 |
+
sun2os4)
|
891 |
+
basic_machine=m68000-sun
|
892 |
+
os=-sunos4
|
893 |
+
;;
|
894 |
+
sun3os3)
|
895 |
+
basic_machine=m68k-sun
|
896 |
+
os=-sunos3
|
897 |
+
;;
|
898 |
+
sun3os4)
|
899 |
+
basic_machine=m68k-sun
|
900 |
+
os=-sunos4
|
901 |
+
;;
|
902 |
+
sun4os3)
|
903 |
+
basic_machine=sparc-sun
|
904 |
+
os=-sunos3
|
905 |
+
;;
|
906 |
+
sun4os4)
|
907 |
+
basic_machine=sparc-sun
|
908 |
+
os=-sunos4
|
909 |
+
;;
|
910 |
+
sun4sol2)
|
911 |
+
basic_machine=sparc-sun
|
912 |
+
os=-solaris2
|
913 |
+
;;
|
914 |
+
sun3 | sun3-*)
|
915 |
+
basic_machine=m68k-sun
|
916 |
+
;;
|
917 |
+
sun4)
|
918 |
+
basic_machine=sparc-sun
|
919 |
+
;;
|
920 |
+
sun386 | sun386i | roadrunner)
|
921 |
+
basic_machine=i386-sun
|
922 |
+
;;
|
923 |
+
sv1)
|
924 |
+
basic_machine=sv1-cray
|
925 |
+
os=-unicos
|
926 |
+
;;
|
927 |
+
symmetry)
|
928 |
+
basic_machine=i386-sequent
|
929 |
+
os=-dynix
|
930 |
+
;;
|
931 |
+
t3e)
|
932 |
+
basic_machine=alphaev5-cray
|
933 |
+
os=-unicos
|
934 |
+
;;
|
935 |
+
t90)
|
936 |
+
basic_machine=t90-cray
|
937 |
+
os=-unicos
|
938 |
+
;;
|
939 |
+
tic54x | c54x*)
|
940 |
+
basic_machine=tic54x-unknown
|
941 |
+
os=-coff
|
942 |
+
;;
|
943 |
+
tic55x | c55x*)
|
944 |
+
basic_machine=tic55x-unknown
|
945 |
+
os=-coff
|
946 |
+
;;
|
947 |
+
tic6x | c6x*)
|
948 |
+
basic_machine=tic6x-unknown
|
949 |
+
os=-coff
|
950 |
+
;;
|
951 |
+
tx39)
|
952 |
+
basic_machine=mipstx39-unknown
|
953 |
+
;;
|
954 |
+
tx39el)
|
955 |
+
basic_machine=mipstx39el-unknown
|
956 |
+
;;
|
957 |
+
toad1)
|
958 |
+
basic_machine=pdp10-xkl
|
959 |
+
os=-tops20
|
960 |
+
;;
|
961 |
+
tower | tower-32)
|
962 |
+
basic_machine=m68k-ncr
|
963 |
+
;;
|
964 |
+
udi29k)
|
965 |
+
basic_machine=a29k-amd
|
966 |
+
os=-udi
|
967 |
+
;;
|
968 |
+
ultra3)
|
969 |
+
basic_machine=a29k-nyu
|
970 |
+
os=-sym1
|
971 |
+
;;
|
972 |
+
v810 | necv810)
|
973 |
+
basic_machine=v810-nec
|
974 |
+
os=-none
|
975 |
+
;;
|
976 |
+
vaxv)
|
977 |
+
basic_machine=vax-dec
|
978 |
+
os=-sysv
|
979 |
+
;;
|
980 |
+
vms)
|
981 |
+
basic_machine=vax-dec
|
982 |
+
os=-vms
|
983 |
+
;;
|
984 |
+
vpp*|vx|vx-*)
|
985 |
+
basic_machine=f301-fujitsu
|
986 |
+
;;
|
987 |
+
vxworks960)
|
988 |
+
basic_machine=i960-wrs
|
989 |
+
os=-vxworks
|
990 |
+
;;
|
991 |
+
vxworks68)
|
992 |
+
basic_machine=m68k-wrs
|
993 |
+
os=-vxworks
|
994 |
+
;;
|
995 |
+
vxworks29k)
|
996 |
+
basic_machine=a29k-wrs
|
997 |
+
os=-vxworks
|
998 |
+
;;
|
999 |
+
w65*)
|
1000 |
+
basic_machine=w65-wdc
|
1001 |
+
os=-none
|
1002 |
+
;;
|
1003 |
+
w89k-*)
|
1004 |
+
basic_machine=hppa1.1-winbond
|
1005 |
+
os=-proelf
|
1006 |
+
;;
|
1007 |
+
xps | xps100)
|
1008 |
+
basic_machine=xps100-honeywell
|
1009 |
+
;;
|
1010 |
+
ymp)
|
1011 |
+
basic_machine=ymp-cray
|
1012 |
+
os=-unicos
|
1013 |
+
;;
|
1014 |
+
z8k-*-coff)
|
1015 |
+
basic_machine=z8k-unknown
|
1016 |
+
os=-sim
|
1017 |
+
;;
|
1018 |
+
none)
|
1019 |
+
basic_machine=none-none
|
1020 |
+
os=-none
|
1021 |
+
;;
|
1022 |
+
|
1023 |
+
# Here we handle the default manufacturer of certain CPU types. It is in
|
1024 |
+
# some cases the only manufacturer, in others, it is the most popular.
|
1025 |
+
w89k)
|
1026 |
+
basic_machine=hppa1.1-winbond
|
1027 |
+
;;
|
1028 |
+
op50n)
|
1029 |
+
basic_machine=hppa1.1-oki
|
1030 |
+
;;
|
1031 |
+
op60c)
|
1032 |
+
basic_machine=hppa1.1-oki
|
1033 |
+
;;
|
1034 |
+
romp)
|
1035 |
+
basic_machine=romp-ibm
|
1036 |
+
;;
|
1037 |
+
rs6000)
|
1038 |
+
basic_machine=rs6000-ibm
|
1039 |
+
;;
|
1040 |
+
vax)
|
1041 |
+
basic_machine=vax-dec
|
1042 |
+
;;
|
1043 |
+
pdp10)
|
1044 |
+
# there are many clones, so DEC is not a safe bet
|
1045 |
+
basic_machine=pdp10-unknown
|
1046 |
+
;;
|
1047 |
+
pdp11)
|
1048 |
+
basic_machine=pdp11-dec
|
1049 |
+
;;
|
1050 |
+
we32k)
|
1051 |
+
basic_machine=we32k-att
|
1052 |
+
;;
|
1053 |
+
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
|
1054 |
+
basic_machine=sh-unknown
|
1055 |
+
;;
|
1056 |
+
sh64)
|
1057 |
+
basic_machine=sh64-unknown
|
1058 |
+
;;
|
1059 |
+
sparc | sparcv9 | sparcv9b)
|
1060 |
+
basic_machine=sparc-sun
|
1061 |
+
;;
|
1062 |
+
cydra)
|
1063 |
+
basic_machine=cydra-cydrome
|
1064 |
+
;;
|
1065 |
+
orion)
|
1066 |
+
basic_machine=orion-highlevel
|
1067 |
+
;;
|
1068 |
+
orion105)
|
1069 |
+
basic_machine=clipper-highlevel
|
1070 |
+
;;
|
1071 |
+
mac | mpw | mac-mpw)
|
1072 |
+
basic_machine=m68k-apple
|
1073 |
+
;;
|
1074 |
+
pmac | pmac-mpw)
|
1075 |
+
basic_machine=powerpc-apple
|
1076 |
+
;;
|
1077 |
+
*-unknown)
|
1078 |
+
# Make sure to match an already-canonicalized machine name.
|
1079 |
+
;;
|
1080 |
+
*)
|
1081 |
+
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
1082 |
+
exit 1
|
1083 |
+
;;
|
1084 |
+
esac
|
1085 |
+
|
1086 |
+
# Here we canonicalize certain aliases for manufacturers.
|
1087 |
+
case $basic_machine in
|
1088 |
+
*-digital*)
|
1089 |
+
basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
|
1090 |
+
;;
|
1091 |
+
*-commodore*)
|
1092 |
+
basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
|
1093 |
+
;;
|
1094 |
+
*)
|
1095 |
+
;;
|
1096 |
+
esac
|
1097 |
+
|
1098 |
+
# Decode manufacturer-specific aliases for certain operating systems.
|
1099 |
+
|
1100 |
+
if [ x"$os" != x"" ]
|
1101 |
+
then
|
1102 |
+
case $os in
|
1103 |
+
# First match some system type aliases
|
1104 |
+
# that might get confused with valid system types.
|
1105 |
+
# -solaris* is a basic system type, with this one exception.
|
1106 |
+
-solaris1 | -solaris1.*)
|
1107 |
+
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
1108 |
+
;;
|
1109 |
+
-solaris)
|
1110 |
+
os=-solaris2
|
1111 |
+
;;
|
1112 |
+
-svr4*)
|
1113 |
+
os=-sysv4
|
1114 |
+
;;
|
1115 |
+
-unixware*)
|
1116 |
+
os=-sysv4.2uw
|
1117 |
+
;;
|
1118 |
+
-gnu/linux*)
|
1119 |
+
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
|
1120 |
+
;;
|
1121 |
+
# First accept the basic system types.
|
1122 |
+
# The portable systems comes first.
|
1123 |
+
# Each alternative MUST END IN A *, to match a version number.
|
1124 |
+
# -sysv* is not here because it comes later, after sysvr4.
|
1125 |
+
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
1126 |
+
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
1127 |
+
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
1128 |
+
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
1129 |
+
| -aos* \
|
1130 |
+
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
1131 |
+
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
1132 |
+
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
|
1133 |
+
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
1134 |
+
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
1135 |
+
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
1136 |
+
| -chorusos* | -chorusrdb* \
|
1137 |
+
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
1138 |
+
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
1139 |
+
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
1140 |
+
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
1141 |
+
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
1142 |
+
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
1143 |
+
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
1144 |
+
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
|
1145 |
+
# Remember, each alternative MUST END IN *, to match a version number.
|
1146 |
+
;;
|
1147 |
+
-qnx*)
|
1148 |
+
case $basic_machine in
|
1149 |
+
x86-* | i*86-*)
|
1150 |
+
;;
|
1151 |
+
*)
|
1152 |
+
os=-nto$os
|
1153 |
+
;;
|
1154 |
+
esac
|
1155 |
+
;;
|
1156 |
+
-nto-qnx*)
|
1157 |
+
;;
|
1158 |
+
-nto*)
|
1159 |
+
os=`echo $os | sed -e 's|nto|nto-qnx|'`
|
1160 |
+
;;
|
1161 |
+
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
1162 |
+
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
|
1163 |
+
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
|
1164 |
+
;;
|
1165 |
+
-mac*)
|
1166 |
+
os=`echo $os | sed -e 's|mac|macos|'`
|
1167 |
+
;;
|
1168 |
+
-linux*)
|
1169 |
+
os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
1170 |
+
;;
|
1171 |
+
-sunos5*)
|
1172 |
+
os=`echo $os | sed -e 's|sunos5|solaris2|'`
|
1173 |
+
;;
|
1174 |
+
-sunos6*)
|
1175 |
+
os=`echo $os | sed -e 's|sunos6|solaris3|'`
|
1176 |
+
;;
|
1177 |
+
-opened*)
|
1178 |
+
os=-openedition
|
1179 |
+
;;
|
1180 |
+
-wince*)
|
1181 |
+
os=-wince
|
1182 |
+
;;
|
1183 |
+
-osfrose*)
|
1184 |
+
os=-osfrose
|
1185 |
+
;;
|
1186 |
+
-osf*)
|
1187 |
+
os=-osf
|
1188 |
+
;;
|
1189 |
+
-utek*)
|
1190 |
+
os=-bsd
|
1191 |
+
;;
|
1192 |
+
-dynix*)
|
1193 |
+
os=-bsd
|
1194 |
+
;;
|
1195 |
+
-acis*)
|
1196 |
+
os=-aos
|
1197 |
+
;;
|
1198 |
+
-atheos*)
|
1199 |
+
os=-atheos
|
1200 |
+
;;
|
1201 |
+
-386bsd)
|
1202 |
+
os=-bsd
|
1203 |
+
;;
|
1204 |
+
-ctix* | -uts*)
|
1205 |
+
os=-sysv
|
1206 |
+
;;
|
1207 |
+
-nova*)
|
1208 |
+
os=-rtmk-nova
|
1209 |
+
;;
|
1210 |
+
-ns2 )
|
1211 |
+
os=-nextstep2
|
1212 |
+
;;
|
1213 |
+
-nsk*)
|
1214 |
+
os=-nsk
|
1215 |
+
;;
|
1216 |
+
# Preserve the version number of sinix5.
|
1217 |
+
-sinix5.*)
|
1218 |
+
os=`echo $os | sed -e 's|sinix|sysv|'`
|
1219 |
+
;;
|
1220 |
+
-sinix*)
|
1221 |
+
os=-sysv4
|
1222 |
+
;;
|
1223 |
+
-triton*)
|
1224 |
+
os=-sysv3
|
1225 |
+
;;
|
1226 |
+
-oss*)
|
1227 |
+
os=-sysv3
|
1228 |
+
;;
|
1229 |
+
-svr4)
|
1230 |
+
os=-sysv4
|
1231 |
+
;;
|
1232 |
+
-svr3)
|
1233 |
+
os=-sysv3
|
1234 |
+
;;
|
1235 |
+
-sysvr4)
|
1236 |
+
os=-sysv4
|
1237 |
+
;;
|
1238 |
+
# This must come after -sysvr4.
|
1239 |
+
-sysv*)
|
1240 |
+
;;
|
1241 |
+
-ose*)
|
1242 |
+
os=-ose
|
1243 |
+
;;
|
1244 |
+
-es1800*)
|
1245 |
+
os=-ose
|
1246 |
+
;;
|
1247 |
+
-xenix)
|
1248 |
+
os=-xenix
|
1249 |
+
;;
|
1250 |
+
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
1251 |
+
os=-mint
|
1252 |
+
;;
|
1253 |
+
-aros*)
|
1254 |
+
os=-aros
|
1255 |
+
;;
|
1256 |
+
-kaos*)
|
1257 |
+
os=-kaos
|
1258 |
+
;;
|
1259 |
+
-none)
|
1260 |
+
;;
|
1261 |
+
*)
|
1262 |
+
# Get rid of the `-' at the beginning of $os.
|
1263 |
+
os=`echo $os | sed 's/[^-]*-//'`
|
1264 |
+
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
|
1265 |
+
exit 1
|
1266 |
+
;;
|
1267 |
+
esac
|
1268 |
+
else
|
1269 |
+
|
1270 |
+
# Here we handle the default operating systems that come with various machines.
|
1271 |
+
# The value should be what the vendor currently ships out the door with their
|
1272 |
+
# machine or put another way, the most popular os provided with the machine.
|
1273 |
+
|
1274 |
+
# Note that if you're going to try to match "-MANUFACTURER" here (say,
|
1275 |
+
# "-sun"), then you have to tell the case statement up towards the top
|
1276 |
+
# that MANUFACTURER isn't an operating system. Otherwise, code above
|
1277 |
+
# will signal an error saying that MANUFACTURER isn't an operating
|
1278 |
+
# system, and we'll never get to this point.
|
1279 |
+
|
1280 |
+
case $basic_machine in
|
1281 |
+
*-acorn)
|
1282 |
+
os=-riscix1.2
|
1283 |
+
;;
|
1284 |
+
arm*-rebel)
|
1285 |
+
os=-linux
|
1286 |
+
;;
|
1287 |
+
arm*-semi)
|
1288 |
+
os=-aout
|
1289 |
+
;;
|
1290 |
+
c4x-* | tic4x-*)
|
1291 |
+
os=-coff
|
1292 |
+
;;
|
1293 |
+
# This must come before the *-dec entry.
|
1294 |
+
pdp10-*)
|
1295 |
+
os=-tops20
|
1296 |
+
;;
|
1297 |
+
pdp11-*)
|
1298 |
+
os=-none
|
1299 |
+
;;
|
1300 |
+
*-dec | vax-*)
|
1301 |
+
os=-ultrix4.2
|
1302 |
+
;;
|
1303 |
+
m68*-apollo)
|
1304 |
+
os=-domain
|
1305 |
+
;;
|
1306 |
+
i386-sun)
|
1307 |
+
os=-sunos4.0.2
|
1308 |
+
;;
|
1309 |
+
m68000-sun)
|
1310 |
+
os=-sunos3
|
1311 |
+
# This also exists in the configure program, but was not the
|
1312 |
+
# default.
|
1313 |
+
# os=-sunos4
|
1314 |
+
;;
|
1315 |
+
m68*-cisco)
|
1316 |
+
os=-aout
|
1317 |
+
;;
|
1318 |
+
mips*-cisco)
|
1319 |
+
os=-elf
|
1320 |
+
;;
|
1321 |
+
mips*-*)
|
1322 |
+
os=-elf
|
1323 |
+
;;
|
1324 |
+
or32-*)
|
1325 |
+
os=-coff
|
1326 |
+
;;
|
1327 |
+
*-tti) # must be before sparc entry or we get the wrong os.
|
1328 |
+
os=-sysv3
|
1329 |
+
;;
|
1330 |
+
sparc-* | *-sun)
|
1331 |
+
os=-sunos4.1.1
|
1332 |
+
;;
|
1333 |
+
*-be)
|
1334 |
+
os=-beos
|
1335 |
+
;;
|
1336 |
+
*-ibm)
|
1337 |
+
os=-aix
|
1338 |
+
;;
|
1339 |
+
*-wec)
|
1340 |
+
os=-proelf
|
1341 |
+
;;
|
1342 |
+
*-winbond)
|
1343 |
+
os=-proelf
|
1344 |
+
;;
|
1345 |
+
*-oki)
|
1346 |
+
os=-proelf
|
1347 |
+
;;
|
1348 |
+
*-hp)
|
1349 |
+
os=-hpux
|
1350 |
+
;;
|
1351 |
+
*-hitachi)
|
1352 |
+
os=-hiux
|
1353 |
+
;;
|
1354 |
+
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
|
1355 |
+
os=-sysv
|
1356 |
+
;;
|
1357 |
+
*-cbm)
|
1358 |
+
os=-amigaos
|
1359 |
+
;;
|
1360 |
+
*-dg)
|
1361 |
+
os=-dgux
|
1362 |
+
;;
|
1363 |
+
*-dolphin)
|
1364 |
+
os=-sysv3
|
1365 |
+
;;
|
1366 |
+
m68k-ccur)
|
1367 |
+
os=-rtu
|
1368 |
+
;;
|
1369 |
+
m88k-omron*)
|
1370 |
+
os=-luna
|
1371 |
+
;;
|
1372 |
+
*-next )
|
1373 |
+
os=-nextstep
|
1374 |
+
;;
|
1375 |
+
*-sequent)
|
1376 |
+
os=-ptx
|
1377 |
+
;;
|
1378 |
+
*-crds)
|
1379 |
+
os=-unos
|
1380 |
+
;;
|
1381 |
+
*-ns)
|
1382 |
+
os=-genix
|
1383 |
+
;;
|
1384 |
+
i370-*)
|
1385 |
+
os=-mvs
|
1386 |
+
;;
|
1387 |
+
*-next)
|
1388 |
+
os=-nextstep3
|
1389 |
+
;;
|
1390 |
+
*-gould)
|
1391 |
+
os=-sysv
|
1392 |
+
;;
|
1393 |
+
*-highlevel)
|
1394 |
+
os=-bsd
|
1395 |
+
;;
|
1396 |
+
*-encore)
|
1397 |
+
os=-bsd
|
1398 |
+
;;
|
1399 |
+
*-sgi)
|
1400 |
+
os=-irix
|
1401 |
+
;;
|
1402 |
+
*-siemens)
|
1403 |
+
os=-sysv4
|
1404 |
+
;;
|
1405 |
+
*-masscomp)
|
1406 |
+
os=-rtu
|
1407 |
+
;;
|
1408 |
+
f30[01]-fujitsu | f700-fujitsu)
|
1409 |
+
os=-uxpv
|
1410 |
+
;;
|
1411 |
+
*-rom68k)
|
1412 |
+
os=-coff
|
1413 |
+
;;
|
1414 |
+
*-*bug)
|
1415 |
+
os=-coff
|
1416 |
+
;;
|
1417 |
+
*-apple)
|
1418 |
+
os=-macos
|
1419 |
+
;;
|
1420 |
+
*-atari*)
|
1421 |
+
os=-mint
|
1422 |
+
;;
|
1423 |
+
*)
|
1424 |
+
os=-none
|
1425 |
+
;;
|
1426 |
+
esac
|
1427 |
+
fi
|
1428 |
+
|
1429 |
+
# Here we handle the case where we know the os, and the CPU type, but not the
|
1430 |
+
# manufacturer. We pick the logical manufacturer.
|
1431 |
+
vendor=unknown
|
1432 |
+
case $basic_machine in
|
1433 |
+
*-unknown)
|
1434 |
+
case $os in
|
1435 |
+
-riscix*)
|
1436 |
+
vendor=acorn
|
1437 |
+
;;
|
1438 |
+
-sunos*)
|
1439 |
+
vendor=sun
|
1440 |
+
;;
|
1441 |
+
-aix*)
|
1442 |
+
vendor=ibm
|
1443 |
+
;;
|
1444 |
+
-beos*)
|
1445 |
+
vendor=be
|
1446 |
+
;;
|
1447 |
+
-hpux*)
|
1448 |
+
vendor=hp
|
1449 |
+
;;
|
1450 |
+
-mpeix*)
|
1451 |
+
vendor=hp
|
1452 |
+
;;
|
1453 |
+
-hiux*)
|
1454 |
+
vendor=hitachi
|
1455 |
+
;;
|
1456 |
+
-unos*)
|
1457 |
+
vendor=crds
|
1458 |
+
;;
|
1459 |
+
-dgux*)
|
1460 |
+
vendor=dg
|
1461 |
+
;;
|
1462 |
+
-luna*)
|
1463 |
+
vendor=omron
|
1464 |
+
;;
|
1465 |
+
-genix*)
|
1466 |
+
vendor=ns
|
1467 |
+
;;
|
1468 |
+
-mvs* | -opened*)
|
1469 |
+
vendor=ibm
|
1470 |
+
;;
|
1471 |
+
-ptx*)
|
1472 |
+
vendor=sequent
|
1473 |
+
;;
|
1474 |
+
-vxsim* | -vxworks* | -windiss*)
|
1475 |
+
vendor=wrs
|
1476 |
+
;;
|
1477 |
+
-aux*)
|
1478 |
+
vendor=apple
|
1479 |
+
;;
|
1480 |
+
-hms*)
|
1481 |
+
vendor=hitachi
|
1482 |
+
;;
|
1483 |
+
-mpw* | -macos*)
|
1484 |
+
vendor=apple
|
1485 |
+
;;
|
1486 |
+
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
1487 |
+
vendor=atari
|
1488 |
+
;;
|
1489 |
+
-vos*)
|
1490 |
+
vendor=stratus
|
1491 |
+
;;
|
1492 |
+
esac
|
1493 |
+
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
|
1494 |
+
;;
|
1495 |
+
esac
|
1496 |
+
|
1497 |
+
echo $basic_machine$os
|
1498 |
+
exit 0
|
1499 |
+
|
1500 |
+
# Local variables:
|
1501 |
+
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
1502 |
+
# time-stamp-start: "timestamp='"
|
1503 |
+
# time-stamp-format: "%:y-%02m-%02d"
|
1504 |
+
# time-stamp-end: "'"
|
1505 |
+
# End:
|
portaudio/bindings/cpp/build/gnu/configure
ADDED
The diff for this file is too large to render.
See raw diff
|
|
portaudio/bindings/cpp/build/gnu/configure.ac
ADDED
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
# PortAudioCpp V19 autoconf input file
|
3 |
+
# Shamelessly ripped from the PortAudio one by Dominic Mazzoni
|
4 |
+
# Ludwig Schwardt
|
5 |
+
#
|
6 |
+
|
7 |
+
# Require autoconf >= 2.13
|
8 |
+
AC_PREREQ(2.13)
|
9 |
+
|
10 |
+
AC_INIT([PortAudioCpp], [12])
|
11 |
+
AC_CONFIG_SRCDIR([../../include/portaudiocpp/PortAudioCpp.hxx])
|
12 |
+
|
13 |
+
###### Top-level directory of pacpp
|
14 |
+
###### This makes it easy to shuffle the build directories
|
15 |
+
###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
|
16 |
+
PACPP_ROOT="../.."
|
17 |
+
|
18 |
+
######
|
19 |
+
###### SET THIS TO PORTAUDIO DIRECTORY
|
20 |
+
######
|
21 |
+
PORTAUDIO="$PACPP_ROOT/../portaudio"
|
22 |
+
|
23 |
+
# Various other variables and flags
|
24 |
+
|
25 |
+
PACPP_INC="$PACPP_ROOT/include"
|
26 |
+
INCLUDES="-I$PACPP_INC -I$PORTAUDIO -I$PORTAUDIO/pa_common"
|
27 |
+
CFLAGS="-g -O2 -Wall -ansi -pedantic $INCLUDES"
|
28 |
+
CXXFLAGS="$CFLAGS"
|
29 |
+
PALIBDIR="$PORTAUDIO/lib"
|
30 |
+
|
31 |
+
# Checks for programs
|
32 |
+
|
33 |
+
AC_PROG_CC
|
34 |
+
AC_PROG_CXX
|
35 |
+
AC_PROG_LN_S
|
36 |
+
AC_PROG_RANLIB
|
37 |
+
AC_PROG_INSTALL
|
38 |
+
AC_PATH_PROG(AR, ar, no)
|
39 |
+
if [[ $AR = "no" ]] ; then
|
40 |
+
AC_MSG_ERROR("Could not find ar - needed to create a library");
|
41 |
+
fi
|
42 |
+
|
43 |
+
# This must be one of the first tests we do or it will fail...
|
44 |
+
AC_C_BIGENDIAN
|
45 |
+
|
46 |
+
# Transfer these variables to the Makefile
|
47 |
+
AC_SUBST(PACPP_ROOT)
|
48 |
+
AC_SUBST(PORTAUDIO)
|
49 |
+
AC_SUBST(PADLL)
|
50 |
+
AC_SUBST(PACPP_DLL)
|
51 |
+
AC_SUBST(PACPP_INC)
|
52 |
+
AC_SUBST(SHARED_FLAGS)
|
53 |
+
AC_SUBST(DLL_LIBS)
|
54 |
+
AC_SUBST(CXXFLAGS)
|
55 |
+
|
56 |
+
##################### CHECK FOR INSTALLED PACKAGES ############################
|
57 |
+
|
58 |
+
# checks for various host APIs and arguments to configure that
|
59 |
+
# turn them on or off
|
60 |
+
|
61 |
+
AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
|
62 |
+
|
63 |
+
# Determine the host description for the subsequent test.
|
64 |
+
# PKG_CHECK_MODULES seems to check and set the host variable also, but
|
65 |
+
# that then requires pkg-config availability which is not standard on
|
66 |
+
# MinGW systems and can be a pain to install.
|
67 |
+
AC_CANONICAL_HOST
|
68 |
+
|
69 |
+
PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)
|
70 |
+
|
71 |
+
AC_ARG_WITH(alsa,
|
72 |
+
[ --with-alsa (default=auto)],
|
73 |
+
with_alsa=$withval, with_alsa="yes")
|
74 |
+
|
75 |
+
AC_ARG_WITH(jack,
|
76 |
+
[ --with-jack (default=auto)],
|
77 |
+
with_jack=$withval, with_jack="yes")
|
78 |
+
|
79 |
+
AC_ARG_WITH(oss,
|
80 |
+
[ --with-oss (default=yes)],
|
81 |
+
with_oss=$withval, with_oss="yes")
|
82 |
+
|
83 |
+
AC_ARG_WITH(host_os,
|
84 |
+
[ --with-host_os (no default)],
|
85 |
+
host_os=$withval)
|
86 |
+
|
87 |
+
AC_ARG_WITH(winapi,
|
88 |
+
[ --with-winapi ((wmme/directx/asio) default=wmme)],
|
89 |
+
with_winapi=$withval, with_winapi="wmme")
|
90 |
+
|
91 |
+
# Mac API added for ASIO, can have other api's listed
|
92 |
+
AC_ARG_WITH(macapi,
|
93 |
+
[ --with-macapi (asio) default=asio)],
|
94 |
+
with_macapi=$withval, with_macapi="asio")
|
95 |
+
|
96 |
+
AC_ARG_WITH(asiodir,
|
97 |
+
[ --with-asiodir (default=/usr/local/asiosdk2)],
|
98 |
+
with_asiodir=$withval, with_asiodir="/usr/local/asiosdk2")
|
99 |
+
|
100 |
+
AC_ARG_WITH(dxdir,
|
101 |
+
[ --with-dxdir (default=/usr/local/dx7sdk)],
|
102 |
+
with_dxdir=$withval, with_dxdir="/usr/local/dx7sdk")
|
103 |
+
|
104 |
+
|
105 |
+
##################### HOST-SPECIFIC LIBRARY SETTINGS ##########################
|
106 |
+
|
107 |
+
case "${host_os}" in
|
108 |
+
darwin* )
|
109 |
+
# Mac OS X configuration
|
110 |
+
|
111 |
+
LIBS="-framework AudioUnit -framework AudioToolbox -framework CoreAudio";
|
112 |
+
PADLL="libportaudio.dylib";
|
113 |
+
PACPP_DLL="libportaudiocpp.dylib";
|
114 |
+
SHARED_FLAGS="-framework AudioUnit -framework AudioToolbox";
|
115 |
+
SHARED_FLAGS="$SHARED_FLAGS -framework CoreAudio -dynamiclib";
|
116 |
+
if [[ $with_macapi = "asio" ]] ; then
|
117 |
+
if [[ $with_asiodir ]] ; then
|
118 |
+
ASIODIR="$with_asiodir";
|
119 |
+
else
|
120 |
+
ASIODIR="/usr/local/asiosdk2";
|
121 |
+
fi
|
122 |
+
echo "ASIODIR: $ASIODIR";
|
123 |
+
fi
|
124 |
+
;;
|
125 |
+
|
126 |
+
mingw* )
|
127 |
+
# MingW configuration
|
128 |
+
|
129 |
+
echo "WINAPI: $with_winapi"
|
130 |
+
if [[ $with_winapi = "directx" ]] ; then
|
131 |
+
if [[ $with_dxdir ]] ; then
|
132 |
+
DXDIR="$with_dxdir";
|
133 |
+
else
|
134 |
+
DXDIR="/usr/local/dx7sdk";
|
135 |
+
fi
|
136 |
+
echo "DXDIR: $DXDIR"
|
137 |
+
LIBS="-L$PALIBDIR -lportaudio"
|
138 |
+
LIBS="$LIBS -lwinmm -lm -ldsound -lole32";
|
139 |
+
PADLL="portaudio.dll";
|
140 |
+
PACPP_DLL="portaudiocpp.dll";
|
141 |
+
SHARED_FLAGS="-shared -mthreads";
|
142 |
+
DLL_LIBS="-lwinmm -lm -L./dx7sdk/lib -ldsound -lole32";
|
143 |
+
CFLAGS="$CFLAGS -DPA_NO_WMME -DPA_NO_ASIO";
|
144 |
+
CXXFLAGS="$CFLAGS"
|
145 |
+
elif [[ $with_winapi = "asio" ]] ; then
|
146 |
+
if [[ $with_asiodir ]] ; then
|
147 |
+
ASIODIR="$with_asiodir";
|
148 |
+
else
|
149 |
+
ASIODIR="/usr/local/asiosdk2";
|
150 |
+
fi
|
151 |
+
echo "ASIODIR: $ASIODIR"
|
152 |
+
|
153 |
+
LIBS="-L$PALIBDIR -lportaudio"
|
154 |
+
LIBS="$LIBS -lwinmm -lm -lstdc++ -lole32 -luuid";
|
155 |
+
PADLL="portaudio.dll";
|
156 |
+
PACPP_DLL="portaudiocpp.dll";
|
157 |
+
SHARED_FLAGS="-shared -mthreads";
|
158 |
+
DLL_LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid";
|
159 |
+
CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -DPA_NO_WMME -DPA_NO_DS -DWINDOWS";
|
160 |
+
CXXFLAGS="$CFLAGS";
|
161 |
+
else # WMME default
|
162 |
+
LIBS="-L$PALIBDIR -lportaudio"
|
163 |
+
LIBS="$LIBS -lwinmm -lm -lstdc++ -lole32 -luuid";
|
164 |
+
PADLL="portaudio.dll";
|
165 |
+
PACPP_DLL="portaudiocpp.dll";
|
166 |
+
SHARED_FLAGS="-shared -mthreads";
|
167 |
+
DLL_LIBS="-lwinmm";
|
168 |
+
CFLAGS="$CFLAGS -DPA_NO_DS -DPA_NO_ASIO";
|
169 |
+
CXXFLAGS="$CFLAGS";
|
170 |
+
fi
|
171 |
+
;;
|
172 |
+
|
173 |
+
cygwin* )
|
174 |
+
# Cygwin configuration
|
175 |
+
|
176 |
+
LIBS="-L$PALIBDIR -lportaudio"
|
177 |
+
LIBS="$LIBS -lwinmm -lm";
|
178 |
+
PADLL="portaudio.dll";
|
179 |
+
PACPP_DLL="portaudiocpp.dll";
|
180 |
+
SHARED_FLAGS="-shared -mthreads";
|
181 |
+
DLL_LIBS="-lwinmm";
|
182 |
+
;;
|
183 |
+
|
184 |
+
*)
|
185 |
+
# Unix OSS configuration
|
186 |
+
|
187 |
+
AC_CHECK_LIB(pthread, pthread_create,
|
188 |
+
,
|
189 |
+
AC_MSG_ERROR([libpthread not found!]))
|
190 |
+
|
191 |
+
LIBS="$LIBS -L$PALIBDIR -lportaudio"
|
192 |
+
|
193 |
+
if [[ $have_jack = "yes" ] && [ $with_jack != "no" ]] ; then
|
194 |
+
LIBS="$LIBS $JACK_LIBS"
|
195 |
+
CFLAGS="$CFLAGS $JACK_CFLAGS"
|
196 |
+
AC_DEFINE(PA_USE_JACK)
|
197 |
+
fi
|
198 |
+
|
199 |
+
if [[ $have_alsa = "yes" ] && [ $with_alsa != "no" ]] ; then
|
200 |
+
LIBS="$LIBS -lasound"
|
201 |
+
AC_DEFINE(PA_USE_ALSA)
|
202 |
+
fi
|
203 |
+
|
204 |
+
if [[ $with_oss != "no" ]] ; then
|
205 |
+
AC_DEFINE(PA_USE_OSS)
|
206 |
+
fi
|
207 |
+
LIBS="$LIBS -lm -lpthread";
|
208 |
+
PADLL="libportaudio.so";
|
209 |
+
PACPP_DLL="libportaudiocpp.so";
|
210 |
+
SHARED_FLAGS="-shared";
|
211 |
+
esac
|
212 |
+
|
213 |
+
AC_CONFIG_FILES([Makefile])
|
214 |
+
AC_OUTPUT
|
portaudio/bindings/cpp/build/gnu/install-sh
ADDED
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
#
|
3 |
+
# install - install a program, script, or datafile
|
4 |
+
# This comes from X11R5 (mit/util/scripts/install.sh).
|
5 |
+
#
|
6 |
+
# Copyright 1991 by the Massachusetts Institute of Technology
|
7 |
+
#
|
8 |
+
# Permission to use, copy, modify, distribute, and sell this software and its
|
9 |
+
# documentation for any purpose is hereby granted without fee, provided that
|
10 |
+
# the above copyright notice appear in all copies and that both that
|
11 |
+
# copyright notice and this permission notice appear in supporting
|
12 |
+
# documentation, and that the name of M.I.T. not be used in advertising or
|
13 |
+
# publicity pertaining to distribution of the software without specific,
|
14 |
+
# written prior permission. M.I.T. makes no representations about the
|
15 |
+
# suitability of this software for any purpose. It is provided "as is"
|
16 |
+
# without express or implied warranty.
|
17 |
+
#
|
18 |
+
# Calling this script install-sh is preferred over install.sh, to prevent
|
19 |
+
# `make' implicit rules from creating a file called install from it
|
20 |
+
# when there is no Makefile.
|
21 |
+
#
|
22 |
+
# This script is compatible with the BSD install script, but was written
|
23 |
+
# from scratch. It can only install one file at a time, a restriction
|
24 |
+
# shared with many OS's install programs.
|
25 |
+
|
26 |
+
|
27 |
+
# set DOITPROG to echo to test this script
|
28 |
+
|
29 |
+
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
30 |
+
doit="${DOITPROG-}"
|
31 |
+
|
32 |
+
|
33 |
+
# put in absolute paths if you don't have them in your path; or use env. vars.
|
34 |
+
|
35 |
+
mvprog="${MVPROG-mv}"
|
36 |
+
cpprog="${CPPROG-cp}"
|
37 |
+
chmodprog="${CHMODPROG-chmod}"
|
38 |
+
chownprog="${CHOWNPROG-chown}"
|
39 |
+
chgrpprog="${CHGRPPROG-chgrp}"
|
40 |
+
stripprog="${STRIPPROG-strip}"
|
41 |
+
rmprog="${RMPROG-rm}"
|
42 |
+
mkdirprog="${MKDIRPROG-mkdir}"
|
43 |
+
|
44 |
+
transformbasename=""
|
45 |
+
transform_arg=""
|
46 |
+
instcmd="$mvprog"
|
47 |
+
chmodcmd="$chmodprog 0755"
|
48 |
+
chowncmd=""
|
49 |
+
chgrpcmd=""
|
50 |
+
stripcmd=""
|
51 |
+
rmcmd="$rmprog -f"
|
52 |
+
mvcmd="$mvprog"
|
53 |
+
src=""
|
54 |
+
dst=""
|
55 |
+
dir_arg=""
|
56 |
+
|
57 |
+
while [ x"$1" != x ]; do
|
58 |
+
case $1 in
|
59 |
+
-c) instcmd="$cpprog"
|
60 |
+
shift
|
61 |
+
continue;;
|
62 |
+
|
63 |
+
-d) dir_arg=true
|
64 |
+
shift
|
65 |
+
continue;;
|
66 |
+
|
67 |
+
-m) chmodcmd="$chmodprog $2"
|
68 |
+
shift
|
69 |
+
shift
|
70 |
+
continue;;
|
71 |
+
|
72 |
+
-o) chowncmd="$chownprog $2"
|
73 |
+
shift
|
74 |
+
shift
|
75 |
+
continue;;
|
76 |
+
|
77 |
+
-g) chgrpcmd="$chgrpprog $2"
|
78 |
+
shift
|
79 |
+
shift
|
80 |
+
continue;;
|
81 |
+
|
82 |
+
-s) stripcmd="$stripprog"
|
83 |
+
shift
|
84 |
+
continue;;
|
85 |
+
|
86 |
+
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
87 |
+
shift
|
88 |
+
continue;;
|
89 |
+
|
90 |
+
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
91 |
+
shift
|
92 |
+
continue;;
|
93 |
+
|
94 |
+
*) if [ x"$src" = x ]
|
95 |
+
then
|
96 |
+
src=$1
|
97 |
+
else
|
98 |
+
# this colon is to work around a 386BSD /bin/sh bug
|
99 |
+
:
|
100 |
+
dst=$1
|
101 |
+
fi
|
102 |
+
shift
|
103 |
+
continue;;
|
104 |
+
esac
|
105 |
+
done
|
106 |
+
|
107 |
+
if [ x"$src" = x ]
|
108 |
+
then
|
109 |
+
echo "install: no input file specified"
|
110 |
+
exit 1
|
111 |
+
else
|
112 |
+
true
|
113 |
+
fi
|
114 |
+
|
115 |
+
if [ x"$dir_arg" != x ]; then
|
116 |
+
dst=$src
|
117 |
+
src=""
|
118 |
+
|
119 |
+
if [ -d $dst ]; then
|
120 |
+
instcmd=:
|
121 |
+
chmodcmd=""
|
122 |
+
else
|
123 |
+
instcmd=mkdir
|
124 |
+
fi
|
125 |
+
else
|
126 |
+
|
127 |
+
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
128 |
+
# might cause directories to be created, which would be especially bad
|
129 |
+
# if $src (and thus $dsttmp) contains '*'.
|
130 |
+
|
131 |
+
if [ -f $src -o -d $src ]
|
132 |
+
then
|
133 |
+
true
|
134 |
+
else
|
135 |
+
echo "install: $src does not exist"
|
136 |
+
exit 1
|
137 |
+
fi
|
138 |
+
|
139 |
+
if [ x"$dst" = x ]
|
140 |
+
then
|
141 |
+
echo "install: no destination specified"
|
142 |
+
exit 1
|
143 |
+
else
|
144 |
+
true
|
145 |
+
fi
|
146 |
+
|
147 |
+
# If destination is a directory, append the input filename; if your system
|
148 |
+
# does not like double slashes in filenames, you may need to add some logic
|
149 |
+
|
150 |
+
if [ -d $dst ]
|
151 |
+
then
|
152 |
+
dst="$dst"/`basename $src`
|
153 |
+
else
|
154 |
+
true
|
155 |
+
fi
|
156 |
+
fi
|
157 |
+
|
158 |
+
## this sed command emulates the dirname command
|
159 |
+
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
160 |
+
|
161 |
+
# Make sure that the destination directory exists.
|
162 |
+
# this part is taken from Noah Friedman's mkinstalldirs script
|
163 |
+
|
164 |
+
# Skip lots of stat calls in the usual case.
|
165 |
+
if [ ! -d "$dstdir" ]; then
|
166 |
+
defaultIFS='
|
167 |
+
'
|
168 |
+
IFS="${IFS-${defaultIFS}}"
|
169 |
+
|
170 |
+
oIFS="${IFS}"
|
171 |
+
# Some sh's can't handle IFS=/ for some reason.
|
172 |
+
IFS='%'
|
173 |
+
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
174 |
+
IFS="${oIFS}"
|
175 |
+
|
176 |
+
pathcomp=''
|
177 |
+
|
178 |
+
while [ $# -ne 0 ] ; do
|
179 |
+
pathcomp="${pathcomp}${1}"
|
180 |
+
shift
|
181 |
+
|
182 |
+
if [ ! -d "${pathcomp}" ] ;
|
183 |
+
then
|
184 |
+
$mkdirprog "${pathcomp}"
|
185 |
+
else
|
186 |
+
true
|
187 |
+
fi
|
188 |
+
|
189 |
+
pathcomp="${pathcomp}/"
|
190 |
+
done
|
191 |
+
fi
|
192 |
+
|
193 |
+
if [ x"$dir_arg" != x ]
|
194 |
+
then
|
195 |
+
$doit $instcmd $dst &&
|
196 |
+
|
197 |
+
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
198 |
+
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
199 |
+
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
200 |
+
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
201 |
+
else
|
202 |
+
|
203 |
+
# If we're going to rename the final executable, determine the name now.
|
204 |
+
|
205 |
+
if [ x"$transformarg" = x ]
|
206 |
+
then
|
207 |
+
dstfile=`basename $dst`
|
208 |
+
else
|
209 |
+
dstfile=`basename $dst $transformbasename |
|
210 |
+
sed $transformarg`$transformbasename
|
211 |
+
fi
|
212 |
+
|
213 |
+
# don't allow the sed command to completely eliminate the filename
|
214 |
+
|
215 |
+
if [ x"$dstfile" = x ]
|
216 |
+
then
|
217 |
+
dstfile=`basename $dst`
|
218 |
+
else
|
219 |
+
true
|
220 |
+
fi
|
221 |
+
|
222 |
+
# Make a temp file name in the proper directory.
|
223 |
+
|
224 |
+
dsttmp=$dstdir/#inst.$$#
|
225 |
+
|
226 |
+
# Move or copy the file name to the temp name
|
227 |
+
|
228 |
+
$doit $instcmd $src $dsttmp &&
|
229 |
+
|
230 |
+
trap "rm -f ${dsttmp}" 0 &&
|
231 |
+
|
232 |
+
# and set any options; do chmod last to preserve setuid bits
|
233 |
+
|
234 |
+
# If any of these fail, we abort the whole thing. If we want to
|
235 |
+
# ignore errors from any of these, just make sure not to ignore
|
236 |
+
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
237 |
+
|
238 |
+
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
239 |
+
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
240 |
+
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
241 |
+
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
242 |
+
|
243 |
+
# Now rename the file to the real destination.
|
244 |
+
|
245 |
+
$doit $rmcmd -f $dstdir/$dstfile &&
|
246 |
+
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
247 |
+
|
248 |
+
fi &&
|
249 |
+
|
250 |
+
|
251 |
+
exit 0
|
portaudio/bindings/cpp/build/vc6/devs_example.dsp
ADDED
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Microsoft Developer Studio Project File - Name="devs_example" - Package Owner=<4>
|
2 |
+
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
3 |
+
# ** DO NOT EDIT **
|
4 |
+
|
5 |
+
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
6 |
+
|
7 |
+
CFG=devs_example - Win32 Debug
|
8 |
+
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
9 |
+
!MESSAGE use the Export Makefile command and run
|
10 |
+
!MESSAGE
|
11 |
+
!MESSAGE NMAKE /f "devs_example.mak".
|
12 |
+
!MESSAGE
|
13 |
+
!MESSAGE You can specify a configuration when running NMAKE
|
14 |
+
!MESSAGE by defining the macro CFG on the command line. For example:
|
15 |
+
!MESSAGE
|
16 |
+
!MESSAGE NMAKE /f "devs_example.mak" CFG="devs_example - Win32 Debug"
|
17 |
+
!MESSAGE
|
18 |
+
!MESSAGE Possible choices for configuration are:
|
19 |
+
!MESSAGE
|
20 |
+
!MESSAGE "devs_example - Win32 Release" (based on "Win32 (x86) Console Application")
|
21 |
+
!MESSAGE "devs_example - Win32 Debug" (based on "Win32 (x86) Console Application")
|
22 |
+
!MESSAGE
|
23 |
+
|
24 |
+
# Begin Project
|
25 |
+
# PROP AllowPerConfigDependencies 0
|
26 |
+
# PROP Scc_ProjName ""
|
27 |
+
# PROP Scc_LocalPath ""
|
28 |
+
CPP=cl.exe
|
29 |
+
RSC=rc.exe
|
30 |
+
|
31 |
+
!IF "$(CFG)" == "devs_example - Win32 Release"
|
32 |
+
|
33 |
+
# PROP BASE Use_MFC 0
|
34 |
+
# PROP BASE Use_Debug_Libraries 0
|
35 |
+
# PROP BASE Output_Dir "Release"
|
36 |
+
# PROP BASE Intermediate_Dir "Release"
|
37 |
+
# PROP BASE Target_Dir ""
|
38 |
+
# PROP Use_MFC 0
|
39 |
+
# PROP Use_Debug_Libraries 0
|
40 |
+
# PROP Output_Dir "Release"
|
41 |
+
# PROP Intermediate_Dir "Release"
|
42 |
+
# PROP Ignore_Export_Lib 0
|
43 |
+
# PROP Target_Dir ""
|
44 |
+
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
45 |
+
# ADD CPP /nologo /MTd /W3 /GX /O2 /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
|
46 |
+
# SUBTRACT CPP /YX
|
47 |
+
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
48 |
+
# ADD RSC /l 0x809 /d "NDEBUG"
|
49 |
+
BSC32=bscmake.exe
|
50 |
+
# ADD BASE BSC32 /nologo
|
51 |
+
# ADD BSC32 /nologo
|
52 |
+
LINK32=link.exe
|
53 |
+
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
54 |
+
# ADD LINK32 portaudiocpp-vc6-r.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/devs_example.exe" /libpath:"../../lib"
|
55 |
+
|
56 |
+
!ELSEIF "$(CFG)" == "devs_example - Win32 Debug"
|
57 |
+
|
58 |
+
# PROP BASE Use_MFC 0
|
59 |
+
# PROP BASE Use_Debug_Libraries 1
|
60 |
+
# PROP BASE Output_Dir "Debug"
|
61 |
+
# PROP BASE Intermediate_Dir "Debug"
|
62 |
+
# PROP BASE Target_Dir ""
|
63 |
+
# PROP Use_MFC 0
|
64 |
+
# PROP Use_Debug_Libraries 1
|
65 |
+
# PROP Output_Dir "Debug"
|
66 |
+
# PROP Intermediate_Dir "Debug"
|
67 |
+
# PROP Ignore_Export_Lib 0
|
68 |
+
# PROP Target_Dir ""
|
69 |
+
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
70 |
+
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../include/" /I "../../../../include/" /I "../../../../src/common/" /I "../../../../../asiosdk2/common/" /I "../../../../../asiosdk2/host/" /I "../../../../../asiosdk2/host/pc/" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
|
71 |
+
# SUBTRACT CPP /YX
|
72 |
+
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
73 |
+
# ADD RSC /l 0x809 /d "_DEBUG"
|
74 |
+
BSC32=bscmake.exe
|
75 |
+
# ADD BASE BSC32 /nologo
|
76 |
+
# ADD BSC32 /nologo
|
77 |
+
LINK32=link.exe
|
78 |
+
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
79 |
+
# ADD LINK32 portaudiocpp-vc6-d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/devs_example.exe" /pdbtype:sept /libpath:"../../lib"
|
80 |
+
|
81 |
+
!ENDIF
|
82 |
+
|
83 |
+
# Begin Target
|
84 |
+
|
85 |
+
# Name "devs_example - Win32 Release"
|
86 |
+
# Name "devs_example - Win32 Debug"
|
87 |
+
# Begin Group "Source Files"
|
88 |
+
|
89 |
+
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
90 |
+
# Begin Source File
|
91 |
+
|
92 |
+
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.cpp
|
93 |
+
# End Source File
|
94 |
+
# Begin Source File
|
95 |
+
|
96 |
+
SOURCE=..\..\..\..\src\common\pa_allocation.c
|
97 |
+
# End Source File
|
98 |
+
# Begin Source File
|
99 |
+
|
100 |
+
SOURCE=..\..\..\..\pa_asio\pa_asio.cpp
|
101 |
+
# End Source File
|
102 |
+
# Begin Source File
|
103 |
+
|
104 |
+
SOURCE=..\..\..\..\src\common\pa_converters.c
|
105 |
+
# End Source File
|
106 |
+
# Begin Source File
|
107 |
+
|
108 |
+
SOURCE=..\..\..\..\src\common\pa_cpuload.c
|
109 |
+
# End Source File
|
110 |
+
# Begin Source File
|
111 |
+
|
112 |
+
SOURCE=..\..\..\..\src\common\pa_dither.c
|
113 |
+
# End Source File
|
114 |
+
# Begin Source File
|
115 |
+
|
116 |
+
SOURCE=..\..\..\..\src\common\pa_front.c
|
117 |
+
# End Source File
|
118 |
+
# Begin Source File
|
119 |
+
|
120 |
+
SOURCE=..\..\..\..\src\common\pa_process.c
|
121 |
+
# End Source File
|
122 |
+
# Begin Source File
|
123 |
+
|
124 |
+
SOURCE=..\..\..\..\src\hostapi\skeleton\pa_hostapi_skeleton.c
|
125 |
+
# End Source File
|
126 |
+
# Begin Source File
|
127 |
+
|
128 |
+
SOURCE=..\..\..\..\src\common\pa_stream.c
|
129 |
+
# End Source File
|
130 |
+
# Begin Source File
|
131 |
+
|
132 |
+
SOURCE=..\..\..\..\src\common\pa_trace.c
|
133 |
+
# End Source File
|
134 |
+
# Begin Source File
|
135 |
+
|
136 |
+
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds.c
|
137 |
+
# End Source File
|
138 |
+
# Begin Source File
|
139 |
+
|
140 |
+
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.c
|
141 |
+
# End Source File
|
142 |
+
# Begin Source File
|
143 |
+
|
144 |
+
SOURCE=..\..\..\..\src\os\win\pa_win_hostapis.c
|
145 |
+
# End Source File
|
146 |
+
# Begin Source File
|
147 |
+
|
148 |
+
SOURCE=..\..\..\..\src\os\win\pa_win_util.c
|
149 |
+
# End Source File
|
150 |
+
# Begin Source File
|
151 |
+
|
152 |
+
SOURCE=..\..\..\..\src\hostapi\wmme\pa_win_wmme.c
|
153 |
+
# End Source File
|
154 |
+
# Begin Source File
|
155 |
+
|
156 |
+
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.c
|
157 |
+
# End Source File
|
158 |
+
# End Group
|
159 |
+
# Begin Group "Header Files"
|
160 |
+
|
161 |
+
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
162 |
+
# Begin Source File
|
163 |
+
|
164 |
+
SOURCE=..\..\..\..\pa_asio\iasiothiscallresolver.h
|
165 |
+
# End Source File
|
166 |
+
# Begin Source File
|
167 |
+
|
168 |
+
SOURCE=..\..\..\..\src\common\pa_allocation.h
|
169 |
+
# End Source File
|
170 |
+
# Begin Source File
|
171 |
+
|
172 |
+
SOURCE=..\..\..\..\src\common\pa_converters.h
|
173 |
+
# End Source File
|
174 |
+
# Begin Source File
|
175 |
+
|
176 |
+
SOURCE=..\..\..\..\src\common\pa_cpuload.h
|
177 |
+
# End Source File
|
178 |
+
# Begin Source File
|
179 |
+
|
180 |
+
SOURCE=..\..\..\..\src\common\pa_dither.h
|
181 |
+
# End Source File
|
182 |
+
# Begin Source File
|
183 |
+
|
184 |
+
SOURCE=..\..\..\..\src\common\pa_endianness.h
|
185 |
+
# End Source File
|
186 |
+
# Begin Source File
|
187 |
+
|
188 |
+
SOURCE=..\..\..\..\src\common\pa_hostapi.h
|
189 |
+
# End Source File
|
190 |
+
# Begin Source File
|
191 |
+
|
192 |
+
SOURCE=..\..\..\..\src\common\pa_process.h
|
193 |
+
# End Source File
|
194 |
+
# Begin Source File
|
195 |
+
|
196 |
+
SOURCE=..\..\..\..\src\common\pa_stream.h
|
197 |
+
# End Source File
|
198 |
+
# Begin Source File
|
199 |
+
|
200 |
+
SOURCE=..\..\..\..\src\common\pa_trace.h
|
201 |
+
# End Source File
|
202 |
+
# Begin Source File
|
203 |
+
|
204 |
+
SOURCE=..\..\..\..\src\common\pa_types.h
|
205 |
+
# End Source File
|
206 |
+
# Begin Source File
|
207 |
+
|
208 |
+
SOURCE=..\..\..\..\src\common\pa_util.h
|
209 |
+
# End Source File
|
210 |
+
# Begin Source File
|
211 |
+
|
212 |
+
SOURCE=..\..\..\..\src\hostapi\dsound\pa_win_ds_dynlink.h
|
213 |
+
# End Source File
|
214 |
+
# Begin Source File
|
215 |
+
|
216 |
+
SOURCE=..\..\..\..\src\os\win\pa_x86_plain_converters.h
|
217 |
+
# End Source File
|
218 |
+
# End Group
|
219 |
+
# Begin Group "Resource Files"
|
220 |
+
|
221 |
+
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
222 |
+
# End Group
|
223 |
+
# Begin Group "Example Files"
|
224 |
+
|
225 |
+
# PROP Default_Filter ""
|
226 |
+
# Begin Source File
|
227 |
+
|
228 |
+
SOURCE=..\..\example\devs.cxx
|
229 |
+
# End Source File
|
230 |
+
# End Group
|
231 |
+
# Begin Group "ASIO 2 SDK"
|
232 |
+
|
233 |
+
# PROP Default_Filter ""
|
234 |
+
# Begin Source File
|
235 |
+
|
236 |
+
SOURCE=..\..\..\..\..\asiosdk2\common\asio.cpp
|
237 |
+
# End Source File
|
238 |
+
# Begin Source File
|
239 |
+
|
240 |
+
SOURCE=..\..\..\..\..\asiosdk2\host\asiodrivers.cpp
|
241 |
+
# End Source File
|
242 |
+
# Begin Source File
|
243 |
+
|
244 |
+
SOURCE=..\..\..\..\..\asiosdk2\host\pc\asiolist.cpp
|
245 |
+
# End Source File
|
246 |
+
# End Group
|
247 |
+
# End Target
|
248 |
+
# End Project
|